Modding Help Need help with editing and creating custom maps!

Discussion in 'Mods' started by trickstre, Feb 18, 2020.

  1. trickstre

    trickstre Void-Bound Voyager

    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.
     
    • Melindee

      Melindee Big Damn Hero

      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!
       
      • trickstre

        trickstre Void-Bound Voyager

        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"]
        }
         
        • Melindee

          Melindee Big Damn Hero

          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"
          },

          ],
           
            Last edited: Feb 19, 2020
          • trickstre

            trickstre Void-Bound Voyager

            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.
             
              Last edited by a moderator: Feb 24, 2020
            • Melindee

              Melindee Big Damn Hero

            • trickstre

              trickstre Void-Bound Voyager

              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
               
              • Melindee

                Melindee Big Damn Hero

                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.
                 
                • trickstre

                  trickstre Void-Bound Voyager

                  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
                   

                  Share This Page