Page 1 of 1

A batch file to automatically make TDBs

Posted: Wed Oct 09, 2013 4:02 am
by Aury
See attachment for the .zip file with the .bat in it.

How to make TDBs with this file:

Say you have your mod in /TranscendenceBeta/Extensions/MyMod/Mod.xml

Just copy Transcendence.tdb from /TranscendenceBeta/ into the same folder as Mod.xml, and then rename it as _Transcendence.tdb - this will prevent the game from attempting to load it when it sees it, which will cause errors. This lets you keep the .tdb file in there for convenience.

Next, place TransCompiler.exe in the folder with _Transcendence.tdb and Mod.xml

Lastly, extract makeTDBs.bat into this folder

Your folder should now contain:

Code: Select all

_Transcendence.tdb
makeTDBs.bat
Mod.xml
TransCompiler.exe
Just click on makeTDBs.bat, hit 'enter' and it will automatically compile every Library, Adventure and Extension that it finds!

After it runs you will find a folder in the file, containing all the .tdb files, so it now looks like this:

Code: Select all

_TDB/Mod.tdb
_Transcendence.tdb
makeTDBs.bat
Mod.xml
TransCompiler.exe
You can then distribute your compiled TDB!

WARNING: Do not have any non-transcendence xml files - it will attempt to compile them and fail. This produces dummy .tdbs in the _TDB folder, which can get messy.
WARNING: Do not have the string "<TranscendenceModule>" - even if commented out with "<!-- -->" - inside of any .xml file that you wish to compile, as it will end up skipping the file, thinking that it is just a module.
WARNING: This overwrites any existing files, so if you want to save an old version of the TDB, make sure you back it up before running this

If I can get it working, there will be a decompiler version too. I'm having trouble with it, so it may be a while.