So I've been working on this custom NPC for about 6 months. I haven't gotten around to finishing it because I really need help getting a custom map for him. I want to try editing the town, and placing his house right there. Or adding a new map you can enter from the Bus Stop. Can somebody maybe give me a rundown of how coding works for editing and creating maps? I've been looking through different tutorials and files from different maps, and I'm honestly too much of a rookie to figure this out on my own lmao.
Are you using TMX Loader? You can follow the example from a mod that uses TMX to see how the coding is used. Good luck!
Yes, I'm using TMX Loader. I've tried using examples from other mods but for some reason my custom maps/edited maps just wont appear in-game? Here's one from one of the maps I'm trying to input. Here, I'm basically trying to put a basement that leads to one of my custom NPCs room: { "addMaps": [ { "name":"KathleensRoom", "file": "KathleensRoom.tmx", }, ], "replaceMaps": [ { "name": "ArchaeologyHouse":, "file": "ArchaeologyHouse.tbin", } ], "onlyWarps": [ { "name": "ArchaeologyHouse", "addWarps": [ "3 15 Town 101 90 6 19 KathleensRoom 10 1 7 19 KathleensRoom 11 1 8 20 KathleensRoom 11 1" ] } ], "scripts":["script.lua"] }
Are you merging or adding maps? Try this, for starters: { "mergeMaps": [ { "name": "ArchaeologyHouse", "file": "assets/ArchaeologyHouse.tbin", "position": [??], } ], "addMaps": [ { "name": "KathleensRoom", "file": "assets/KathleensRoom.tbin" }, ],
May I ask what the position does and how to get it? I'm also trying to add and replace maps only. I want to put a door or a staircase in the museum that leads to a basement.
Position refers to the tilesheet in the map: https://stardewvalleywiki.com/Modding:Maps You need that to get the proper place on the map. I am assuming you're using Tiled, right?
Yes, I'm using Tiled And your referring to the x y coords thing right? I tried putting that on your code but it didn't work
Make sure you're not using any immersive mods like SVE or Karmylla's. Something tells me that your mod wouldn't work with those types of mods. Alternatively, you can just try something else- some things are just too hardcoded to work around even with modding tools such as Tiled.
Thank you so much, I just got my map working! Turns out I just had to rename the ArcheologyHouse. Problem now is putting light in my NPCs room, hahahaha