[Modding] How to add an exit

Dead Cells110 views1 favorites1 min readby LAbareUpdated Jun 26, 2022View on Steam ↗

Result

This is what it looks like ingame. Entering this zone will instantly yeet you to the level transition you chose.

0/ Fixing the skin duplicates bug

Needed only once per version.

:: Change the value of DCPATH for your system SET DCPATH=C:\Program Files (x86)\Steam\steamapps\common\Dead Cells CD "%DCPATH%\ModTools" :: Unpack res.pak and data.cdb PAKTool.exe -Expand -refpak "%DCPATH%\res.pak" -outdir "%DCPATH%\ModTools\skins_fixed" CDBTool.exe -Expand -outdir "%DCPATH%\ModTools\skins_fixed\00-CDB_EXPANDED" -refcdb "%DCPATH%\ModTools\skins_fixed\data.cdb" :: Delete duplicate skins SET SKINPATH=%DCPATH%\ModTools\skins_fixed\00-CDB_EXPANDED\skin\PlayableCharacters del "%SKINPATH%\092---FlawlessBehemoth.json" del "%SKINPATH%\093---FlawlessBeholder.json" del "%SKINPATH%\094---FlawlessHotk.json" del "%SKINPATH%\095---FlawlessGiant.json" del "%SKINPATH%\096---FlawlessAssassin.json" del "%SKINPATH%\097---FlawlessGardener.json" del "%SKINPATH%\098---FlawlessTick.json" :: Collapse data.cdb and clean up CDBTool.exe -Collapse -indir "%DCPATH%\ModTools\skins_fixed\00-CDB_EXPANDED" -outcdb "%DCPATH%\ModTools\skins_fixed\data.cdb" rmdir /s /q "%DCPATH%\ModTools\skins_fixed\00-CDB_EXPANDED" :: Collapse res.pak and clean up PAKTool.exe -Collapse -inDir "%DCPATH%\ModTools\skins_fixed" -outPak "%DCPATH%\res.pak" rmdir /s /q "%DCPATH%\ModTools\skins_fixed"

1/ Extract rooms from res.pak

Let's prepare the playground

:: Change these variables as you wish SET MODNAME=boss_exits-v29 SET DCPATH=C:\Program Files (x86)\Steam\steamapps\common\Dead Cells CD "%DCPATH%\ModTools"

Extract res.pak
PAKTool.exe -Expand -refpak ..\res.pak -outdir "%MODNAME%\res"

Extract rooms with TmxTool
:: Beware of spaces in folder names TmxTool\TmxTool.exe -Expand -TmxBin "%MODNAME%\res\tiled" -TmxXml "%MODNAME%\tmxxml"

2/ Work in Tiled

Create project: see ModsDoc.
- Save project in folder "tmxxml"
- Add subfolder "tmx" to project
- Set folder "tmxxml" and file "objecttypes.json" in Project Properties.

Find a unique room to edit
- used only once in the whole game
- doesn’t already have a SpecialEquipment

Create a SpecialEquipment with customId=fallToNextLevel and level=T_whatever
Change the room type in CDB to Exit

3/ Repack the whole thing

Repack rooms with TmxTool
:: Still beware of spaces in folder names TmxTool\TmxTool.exe -Collapse -TmxBin "%MODNAME%\res\tiled" -TmxXml "%MODNAME%\tmxxml"

Create diffpak
:: Needs absolute paths PAKTool.exe -CreateDiffPak -refpak "%DCPATH%\res.pak" -indir "%DCPATH%\ModTools\%MODNAME%\res" -outPak "%DCPATH%\ModTools\%MODNAME%\res.pak"

Let's clean up the rooms we don't need
PAKTool.exe -Expand -refpak "%MODNAME%\res.pak" -outdir "%MODNAME%\cleanup" :: Delete by hand all the rooms you didn't edit PAKTool.exe -Collapse -inDir "%MODNAME%\cleanup" -outPak "%MODNAME%\res.pak"

This guide was created by its original author on the Steam Community. Are you the author and want it removed? Request removal.