[2.0.55]Mod breaks reading capitalized extensions only when in a .zip
Posted: Sun Jun 29, 2025 1:48 am
Heya,
Really weird interaction inside a mod I am working on recently.
I had an external blender script change some files from "filename.png" to "filename.PNG"
This continues to work if the mod is extracted inside the mod folder (i.e. during development ...Factorio/mods/mod_name_2.2.1/... ), but when the folder is zipped up into an archive and the mod attempts to open it (...Factorio/mods/mod_name_2.2.1.zip), the case sensitivity of the extension stops the mod from loading (it cannot find the file).
It's not a wild issue, I presume also referring explicitly the case sensitivity in the mod data would also fix it. But it was an odd quirk that caught me off guard and thought I'd bring awareness to it.
Cheers
Really weird interaction inside a mod I am working on recently.
I had an external blender script change some files from "filename.png" to "filename.PNG"
This continues to work if the mod is extracted inside the mod folder (i.e. during development ...Factorio/mods/mod_name_2.2.1/... ), but when the folder is zipped up into an archive and the mod attempts to open it (...Factorio/mods/mod_name_2.2.1.zip), the case sensitivity of the extension stops the mod from loading (it cannot find the file).
It's not a wild issue, I presume also referring explicitly the case sensitivity in the mod data would also fix it. But it was an odd quirk that caught me off guard and thought I'd bring awareness to it.
Cheers