Changes to MercOpinions.xml[message #366228]
|
Tue, 13 August 2024 00:50
|
|
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
|
|
|