RimworldTogether / Rimworld-Together

A Community Driven Multiplayer Mod!
https://steamcommunity.com/sharedfiles/filedetails/?id=3005289691
Other
57 stars 27 forks source link

XML Parser to handle incorrect casing in about.xml #135

Closed nightred closed 1 month ago

nightred commented 1 month ago

This changes the XML parser to handle tags in any case. Resolves issues around mod authors not using proper formatting on XML tags.

Made the search for the about file ignore the case of the about file. This will now load AbOUt.Xml without issue.

Some minor changes to early escape on functions.

Fixes: #134

nightred commented 1 month ago

Interesting I will update when fixed.

nightred commented 1 month ago

Tested, mods load and XML tags are now case Insensitive

[08:31:14] | File > 'X:\Rimworld-Together\Source\Server\bin\Debug\net7.0\Mods\Required\Anomaly\About\about.xml'
[08:31:14] | Loaded > 'X:\Rimworld-Together\Source\Server\bin\Debug\net7.0\Mods\Required\Anomaly > 'ludeon.rimworld.anomaly'
[08:31:14] | File > 'X:\Rimworld-Together\Source\Server\bin\Debug\net7.0\Mods\Required\Biotech\About\abOUT.xml'
[08:31:14] | Loaded > 'X:\Rimworld-Together\Source\Server\bin\Debug\net7.0\Mods\Required\Biotech > 'ludeon.rimworld.biotech'
Byte-Nova commented 1 month ago

Got it, will test tomorrow and if everything is right push it as well