Skip to content

Read new MercOpinions.xml format#323

Merged
Asdow merged 1 commit into
masterfrom
merc-opinions
Aug 12, 2024
Merged

Read new MercOpinions.xml format#323
Asdow merged 1 commit into
masterfrom
merc-opinions

Conversation

@Asdow
Copy link
Copy Markdown
Contributor

@Asdow Asdow commented Aug 12, 2024

Requires accompanying gameDir change 1dot13/gamedir#95.

MercOpinions.xml now only contains opinions that are not 0. A new tag with fields "id" and "modifier" are used instead of old ones that had 255 <Opinion%d> $value$ </Opinion%d> tags for all profiles.

Loading time of MercOpinions.xml went down from ~4.047 s to 0.011 s due to this change with default 1.13 VFS config.

A small cmd utility tool for converting existing MercOpinions.xml data into the new format is available at https://github.com/Asdow/JA2-ConvertXMLData/tree/master

@Asdow Asdow requested a review from majcosta August 12, 2024 18:37
Copy link
Copy Markdown
Contributor

@majcosta majcosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread Tactical/XML.cpp Outdated
Requires accompanying gameDir change.

MercOpinions.xml now only contains opinions that are not 0. A new tag with fields "id" and "modifier" are used instead of old ones that had 255 <Opinion%d> $value$ </Opinion%d> tags for all profiles.

Loading time of MercOpinions.xml went down from ~4.047 s to 0.011 s due to this change with default 1.13 VFS config.
@Asdow Asdow merged commit caa02cd into master Aug 12, 2024
@Asdow Asdow deleted the merc-opinions branch August 12, 2024 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants