This is of course referring to the official Module Builder which Armagan just released.
I posted this in the bug forum, but it's probably more useful here, so I'm reproducing and cleaning it up here. Also, everyone else, post your findings as well!
First, I recommend editing your "build_module.bat" batch file a bit to fix Windows not knowing where Python is, and to clean things up a bit. You should edit the first line below and replace "C:\Python24" with your Python install folder, if it's different than the default. Here's my version of the file now line for line:
Since it creates a bunch of PYC format files (compiled copies of the scripts) which are not needed after it finished, the "@del *.pyc" line cleans up all the temporary PYC files so you don't have to look at them.
The @ symbol at the start of a line (like I also added to the pause line) in a batch file makes it not show the command line being executed to the window, though it will still run it. No big deal, just makes the output a little cleaner.
I've checked, and Armagan's python scripts recreate every file other than "map.txt" and "module_info.txt", and of course the files in the SceneObj folder. Cool!
EDIT: Another tip, when editing the "module_info.py" file to point to the directory you're exporting to, be sure to use forward-slashes (/) instead of back-slashes (\) in the path. Normally for Windows it would be the other way around, but the scripts will not compile and will give you an EOL error if you use back-slashes.
I posted this in the bug forum, but it's probably more useful here, so I'm reproducing and cleaning it up here. Also, everyone else, post your findings as well!
First, I recommend editing your "build_module.bat" batch file a bit to fix Windows not knowing where Python is, and to clean things up a bit. You should edit the first line below and replace "C:\Python24" with your Python install folder, if it's different than the default. Here's my version of the file now line for line:
Code:
@set PATH=C:\Python24;%PATH%
python process_strings.py
python process_items.py
python process_map_icons.py
python process_factions.py
python process_scenes.py
python process_troops.py
python process_party_tmps.py
python process_parties.py
python process_quests.py
python process_scripts.py
python process_mission_tmps.py
python process_game_menus.py
python process_dialogs.py
@del *.pyc
@pause
The @ symbol at the start of a line (like I also added to the pause line) in a batch file makes it not show the command line being executed to the window, though it will still run it. No big deal, just makes the output a little cleaner.
I've checked, and Armagan's python scripts recreate every file other than "map.txt" and "module_info.txt", and of course the files in the SceneObj folder. Cool!
EDIT: Another tip, when editing the "module_info.py" file to point to the directory you're exporting to, be sure to use forward-slashes (/) instead of back-slashes (\) in the path. Normally for Windows it would be the other way around, but the scripts will not compile and will give you an EOL error if you use back-slashes.