Finding file paths for rebinding - BFrizzleFoShizzle/RE_Kenshi GitHub Wiki
In order to rebind a file path using RE_Kenshi, you must know the exact path Kenshi uses to open it.
RE_Kenshi has a file I/O logging system to help in finding these paths.
To find a file path, first enable file I/O logging in RE_Kenshi's in-game settings menu:
Once enabled, you must coax the game into opening the file. This usually means loading a game and moving to a location that has an object that is dependent on your target file. In some cases, you may also have to restart Kenshi after toggling file I/O logging, as some files are only opened when Kenshi first starts up, and the logger only logs files opened AFTER enabling this setting. Having this setting enabled before starting Kenshi will ensure that such files are logged.
Once you've coaxed the game into loading your file, exit it and open the file FileIOLog.txt
in Kenshi's install directory:
Hit ctrl+F and search for the filename you want to rebind:
Your target rebind filename needs to be JSON-escaped (hint: there are online tools for this).
E.g. "data\newland/land\fullmap.tif"
becomes "data\\newland/land\\fullmap.tif"
Follow Using RE_Kenshi to mod hard coded file paths for more information on correctly-formatting your RE_Kenshi.json
/ file rebind.
Final example RE_Kenshi.json
:
{
"FileRebinds" : {
"data\\newland/land\\fullmap.tif" : "$(modroot \"Your mod name here\")/fullmap.tif"
}
}