Script for converting The Settlers 2 RTX files into RTTR LUA scripts.
git clone [email protected]:kubaau/rtx2lua.git
Python 3
python rtx2lua.py RTX_FILE [CAMPAIGN_NAME {roman}] [TXT_FOLDER {TXT_roman}] [> OUTPUT_FILE]
# examples
python rtx2lua.py MISSIONS_roman/MIS_0000.RTX
python rtx2lua.py MISSIONS_fanpaign/MIS_0001.RTX fanpaign TXT_fanpaign > temp.lua
The command !GLOBAL_SET_BOBS
is currently not handled. This means that some maps whose RTX scripts use this command will show wrong objects. This is especially apparent in FANpaign chapter 3 where a wall of watchtowers and some fortresses are rendered as stalagmites in RttR.