This is a tool to convert TMXLoader/TMX Map toolkit mods to CP mods.
- Converts all tbin files to tmx files.
- Renames all map property warps to to fit with the CP requirement for a prefixed
Custom_before the map name. - Renames all
LockedDoorWarpsandWarpAction TileDatas to the prefixedCustom_before the map name. - Converts all maps to CSV layer format.
- Has support for
mergeMaps,addMaps,onlyWarpsandspouseRooms. - Changes CP
PatchModefield to be based on the TMXLremoveEmptyfield, if applicable. - Convert all
festivalSpotsto useData/festivals/[date]. - Convert all shops to
Data/Shops.
- Download the source code and unzip it.
- Install Python, ideally 3.11 or later.
- Edit the config.json to point to your game folder (the one containing
Stardew Valley.exe) (backslashes must be escaped). - Place your TMXL mod in
TMXL/, so that thecontent.jsonisTMXL/content.json. If this folder doesn't exist, just make it relative to themain.py. - Run
main.py, this is likely viapy main.py, but could also bepython main.pyorpython3 main.py. - Find your converted mod in
CP/. - Make sure to do any manual edits in other portions of the mod, such as NPC schedules, disposition data, etc.
If there is an error automatically installing dependencies, you can install them manually via pip install -r requirements.txt. You may need to use py -m pip, python -m pip or python3 -m pip instead of pip depending on your Python installation.
If you have any improvements or contributions, please feel free to make a pull request or open an issue.