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
LockedDoorWarps
andWarp
Action TileDatas to the prefixedCustom_
before the map name. - Converts all maps to CSV layer format.
- Has support for
mergeMaps
,addMaps
,onlyWarps
andspouseRooms
. - Changes CP
PatchMode
field to be based on the TMXLremoveEmpty
field, if applicable.
- Download the latest release.
- Install Python between 3.8 and 3.10 and the latest release of Tiled.
- Place your TMXL mod in
TMXL/
, so that thecontent.json
isTMXL/content.json
. - Run
main.py
, this is likely viapy main.py
, but could also bepython main.py
orpython3 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
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.
- Does not work on Windows Subsystem for Linux (WSL) likely due to file paths.