Skip to content
/ rtx2lua Public

Script for converting The Settlers 2 RTX files into RTTR LUA scripts.

License

Notifications You must be signed in to change notification settings

kubaau/rtx2lua

Repository files navigation

Script for converting The Settlers 2 RTX files into RTTR LUA scripts.

git clone [email protected]:kubaau/rtx2lua.git

Requires

Python 3

Usage

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

Known issues

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.

About

Script for converting The Settlers 2 RTX files into RTTR LUA scripts.

Resources

License

Stars

Watchers

Forks