Description:
This program will create a module_parties_new.py by reading the python code from an existing module_parties.py and the following data from a parties.txt file:
- field 2: party name
- field 10: initial coordinates
- field 12: party direction in degrees (optional)
This is helpful if you use the Map Editor to move or rename parties on the world map but want to re-build your module using module_parties.py in the future.
NOTE: Currently this program only updates parties that exist in both module_parties.py and parties.txt, so you cannot create new parties in the map editor and expect those to be copied to module_parties.py. You must create any new parties in module_parties.py first.
Instructions:
Place a module_parties.py and parties.txt in the same folder as this executable and run it.
Possible Workflow:
1) create new towns/castles/villages in module_parties.py, run build_module.bat, create a parties.txt file.
2) use the Map Editor to move/rename/rotate parties on the map, save changes to parties.txt
3) put module_parties.py and parties.txt into the same folder as UpdateModuleParties.exe, run it and it should create module_parties_new.py
4) rename module_parties_new.py to module_parties.py (backup your old module_parties.py)
5) re-run build_module.bat, launch your mod and the towns should be in the correct location
Download:
http://www.mbrepository.com/file.php?id=884
Version History:
v1.0 September 24, 2008 - initial release, only allowed updating party coordinates.
v1.1 December 22, 2008 - modified program to update names and rotation.
Notes:
- this has only been tested very briefly so please post in the forum if there are any problems or suggestions.
- Some changes, like updating the icons, which can be made with the Map Editor will not be updated in module_parties_new.py
- There are some other programs available that reverse-engineer the parties.txt to create python code. You can use these as an alternative to this program:
kt0's party script - http://forums.taleworlds.com/index.php/topic,61873.0.html
nath9091's C++ code - http://forums.taleworlds.com/index.php/topic,74416.0.html
This program will create a module_parties_new.py by reading the python code from an existing module_parties.py and the following data from a parties.txt file:
- field 2: party name
- field 10: initial coordinates
- field 12: party direction in degrees (optional)
This is helpful if you use the Map Editor to move or rename parties on the world map but want to re-build your module using module_parties.py in the future.
NOTE: Currently this program only updates parties that exist in both module_parties.py and parties.txt, so you cannot create new parties in the map editor and expect those to be copied to module_parties.py. You must create any new parties in module_parties.py first.
Instructions:
Place a module_parties.py and parties.txt in the same folder as this executable and run it.
Possible Workflow:
1) create new towns/castles/villages in module_parties.py, run build_module.bat, create a parties.txt file.
2) use the Map Editor to move/rename/rotate parties on the map, save changes to parties.txt
3) put module_parties.py and parties.txt into the same folder as UpdateModuleParties.exe, run it and it should create module_parties_new.py
4) rename module_parties_new.py to module_parties.py (backup your old module_parties.py)
5) re-run build_module.bat, launch your mod and the towns should be in the correct location
Download:
http://www.mbrepository.com/file.php?id=884
Version History:
v1.0 September 24, 2008 - initial release, only allowed updating party coordinates.
v1.1 December 22, 2008 - modified program to update names and rotation.
Notes:
- this has only been tested very briefly so please post in the forum if there are any problems or suggestions.
- Some changes, like updating the icons, which can be made with the Map Editor will not be updated in module_parties_new.py
- There are some other programs available that reverse-engineer the parties.txt to create python code. You can use these as an alternative to this program:
kt0's party script - http://forums.taleworlds.com/index.php/topic,61873.0.html
nath9091's C++ code - http://forums.taleworlds.com/index.php/topic,74416.0.html