[2.0.77] Case-insensitive requires when unzipped, case-sensitive when zipped

Bugs that are actually features.
User avatar
kirazy
Filter Inserter
Filter Inserter
Posts: 436
Joined: Tue Mar 06, 2018 12:18 am
Contact:

[2.0.77] Case-insensitive requires when unzipped, case-sensitive when zipped

Post by kirazy »

I develop on Windows, and just got foot-gunned by something subtle.

Issue:
- When your OS supports case-insensitive file paths (e.g., Windows), and you have your mod unzipped and Factorio is loading it from the folder, a file required using the wrong case loads correctly.
- When you zip that same folder and attempt to load it, it will fail with file not found.

Desired Behavior:
- Case-sensitivity between zip-based and folder-based mod loading should match. 😭 (Which is to say, folder-based should be more strict to match deployed behavior)

It works on my machine™.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16843
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.77] Case-insensitive requires when unzipped, case-sensitive when zipped

Post by Rseding91 »

Thanks for the report however I don't believe we will be dong anything about this. Specifically case-checking every loaded file would add unnecessary overhead in the expected-correct case.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”