Home » MODDING HQ 1.13 » v1.13 General Development Talk » Changes to MercOpinions.xml
Changes to MercOpinions.xml[message #366228] Tue, 13 August 2024 00:50
Asdow is currently offline Asdow

 
Messages:134
Registered:August 2010
As a heads up to anyone working or playing mods and updating to newer 1.13 versions, I made changes to the MercOpinions.xml data format in this commit https://github.com/1dot13/source/commit/caa02cd6b7e65254888602bded5a664077ed88c5

Due to the change, the loading time of reading merc opinions from the file upon game startup dropped from ~4 seconds to ~0.01 seconds. For reference, loading ALL the xml files combined takes around 4.7 seconds, so that single file read was responsible for 85% of total load time.

I also wrote a small commandline utility tool to convert old MercOpinion.xml files to the new format, which can be downloaded from here: https://github.com/Asdow/JA2-ConvertXMLData
A ready made binary of it is available in the Releases and the readme has instructions on how to use it.

Report message to a moderator

Sergeant
 
Read Message
Previous Topic: Better default NCTH settings contest
Next Topic: XML Clean-Up
Goto Forum:
  


Current Time: Thu Nov 07 10:36:38 GMT+2 2024

Total time taken to generate the page: 0.00648 seconds