Skip to content

Conversation

@Scags
Copy link
Contributor

@Scags Scags commented Sep 30, 2020

Fixes some quirks with sm_dump_netprops_xml. I ran into some problems parsing this a few months back.

Adds an main tree.

Netprops can commonly use " in their names ("healing_array" in TF2 for example), but xml supports using both single and double quotes in attribute values, so now it opts to put in single quotes.

Edit:
I've provided a sample netprop dump for TF2 along with a basic Python script so you can compare the difference between them if you'd like. Script will fail with current command functionality.

Copy link
Member

@Headline Headline left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks!

I think it was understood that the xml being generated was bad, so changes to this area are very welcome. Hopefully this papers over any issues anyone was having with this xml output.

@Headline Headline merged commit b14c18e into alliedmodders:master Oct 1, 2020
@Headline Headline added the hacktoberfest-accepted opt-in for hacktoberfest prs label Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted opt-in for hacktoberfest prs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants