preload button hover image:
HomeSearchRankingsStatisticsAboutContact
Current Time: Sep 25, 2018, 08:34:51 am
 Mount&Blade Repository » Modding Tools » UpdateModuleParties - update module_parties.py after using Map Editor
      
Registration is not required to download. However, it will allow you to vote, comment, and request upload access. Forgot your password?
View this file on the M&B NexusFile Listing: UpdateModuleParties - update module_parties.py after using Map Editor
Last Updated: Dec 22, 2008, 01:33:29 pm
First Created: Sep 24, 2008, 09:57:54 am
File version: 1.1
For M&B version: N/A
Downloads: 2,450 Size: 392.1 KB
Views: 4,804 Type: ZIP
Home:  Taleworlds Forum
Rating (2 votes): 5.0 / 5.0
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.

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

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

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.
Commands
More From This Author
Comments
IP: logged
 UpdateModuleParties - update module (v 1.1)  » posted by COGlory on Jan 15, 2010, 11:19:04 am
Brilliant!
IP: logged
 UpdateModuleParties - update module (v 1.1)  » posted by Abhuva on Apr 29, 2010, 08:31:35 am
Saved me a lot of time and worked like a charm. Thx for it :-P
HomeSearchRankingsStatisticsAboutContact

Hosted by Hypernia.
Website © 2018 FenriSoft. The core site script is PHCDownload (© 2005-2018).