PatchOperations: Case Sensitivity

Started by CannibarRechter, September 18, 2017, 08:38:55 PM

Previous topic - Next topic

CannibarRechter

Hi,

It appears that the game is case-insensitive for defs, but case sensitive for patching. The game should decide which it is: case sensitive or not.

CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects

ison

Could you please upload a minimal example of this problem? Isn't it because xpaths are case sensitive in general?

CannibarRechter

Just take any core mod def, take it's <defName>XXX</defName> tag, and rename to <DefName>XXX</DefName>. The def will successfully load, because rimworld matches defs to the C# in a case-insensitive way. xpath isn't so forgiving.

I would frankly prefer that the core be case-sensitive, but right now, it's annoying, because it's neither case-sensitive nor case-insensitve.
CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects

SpaceDorf

Maxim 1   : Pillage, then burn
Maxim 37 : There is no overkill. There is only open fire and reload.
Rule 34 of Rimworld :There is a mod for that.
Avatar Made by Chickenplucker

ZorbaTHut

You'll be glad to know this is (mostly) fixed in A18; the game now spams you with annoyed warnings if defs rely on case-insensitivity, and of course the core defs now have the proper case. From here it will rely on mod developers fixing the case in their mods, but they now have quite a bit of incentive to do so :)