Internal name is inconsistently (not?) case sensitive

A place to talk about the official Factorio mod portal (https://mods.factorio.com)
User avatar
BraveCaperCat
Filter Inserter
Filter Inserter
Posts: 507
Joined: Mon Jan 15, 2024 10:10 pm
Contact:

Internal name is inconsistently (not?) case sensitive

Post by BraveCaperCat »

I've been creating a mod called "Lightorio" (that's the internal name, btw) but the mod portal won't let me upload the mod, with the error "Mod with that name already exists." Even though I checked before I even started making the mod that the internal name wasn't already used by another mod. So, I go and type https://mods.factorio.com/mod/Lightorio into a new tab - but it returns a 404 error, saying that the mod definitely doesn't exist.

So, I search the mod portal normally for "Lightorio" and find a mod with that name exactly - but it doesn't have an internal name of "Lightorio"... It's internal name is "lightorio". The game definitely cares about whether my mod is named "Lightorio" or "lightorio" internally, but the mod portal seems to sometimes care (like with the exact URL I use to access the mod page) and sometimes not. (like with uploading a mod) This is really annoying for me, as now I have to go change the internal name of my mod, or not upload it to the mod portal, just because someone already used the lowercase version of that internal name, even though the game understands the difference.

Please change this so that the mod portal respects the fact that "Lightorio" and "lightorio" are 2 very distinct strings of characters, like the game already does and likely has been for years.
If you want to see the mods I've made, press one. If you need me to update a mod to 2.0, press two. If you're looking for QA, press three. If you've been waiting over 1 and a half years for Digital Age, bad luck.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4575
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Internal name is inconsistently (not?) case sensitive

Post by boskid »

This is not going to happen because mods are stored as zips in mods directory and windows being case insensitive would cause file name conflicts if there were 2 files to be put in the same directory that only differ in character cases, for example if someone had a Lightorio_1.0.0.zip and lightorio_1.0.0.zip downloaded at the same time.
User avatar
BraveCaperCat
Filter Inserter
Filter Inserter
Posts: 507
Joined: Mon Jan 15, 2024 10:10 pm
Contact:

Re: Internal name is inconsistently (not?) case sensitive

Post by BraveCaperCat »

boskid wrote: Wed Jun 17, 2026 3:57 am This is not going to happen because mods are stored as zips in mods directory and windows being case insensitive would cause file name conflicts if there were 2 files to be put in the same directory that only differ in character cases, for example if someone had a Lightorio_1.0.0.zip and lightorio_1.0.0.zip downloaded at the same time.
That still doesn't explain why the mod portal URL and the game itself is case sensitive - because otherwise, I would have been seeing the game asking me to update Lightorio Beta version 0.1.0 to version 2.0.1 and I would have realised that "Lightorio" was already taken, instead of just assuming that it was ok because of the URL.
Besides, not everyone uses windows. (though I have to admit, I am one of the people that do)

It really isn't an excuse to prevent me from uploading a mod I spent hours upon hours of my time working on to the mod portal, just because someone already released a mod that did something that no one needed, no one wanted, has less than 200 lines of code, doesn't even have the same internal name and (unlike my mod) could easily have been distributed under a different name.

Also, to tackle the issue of windows being case insensitive... Just prevent people from downloading two mods with the same name but different capitalization unless their file system is case sensitive. (there is in fact a command that will let you have a case sensitive file system on windows, I checked) I doubt anyone would actually complain about needing to have a case sensitive file system anyway, since it's unlikely that many people will want to download two mods with the same or even a similar name to begin with - and anyone who does can just be pointed to the appropriate steps to make their filesystem case sensitive. (or to not having both mods installed)

I'm sorry if I'm feeling a bit agitated right now, but every day this gets denied or overlooked will be another day that I cannot upload my mod and share it with the world, no matter how much time and effort I pour into it.
If you want to see the mods I've made, press one. If you need me to update a mod to 2.0, press two. If you're looking for QA, press three. If you've been waiting over 1 and a half years for Digital Age, bad luck.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16862
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Internal name is inconsistently (not?) case sensitive

Post by Rseding91 »

You'll have to pick another name.
If you want to get ahold of me I'm almost always on Discord.
Erfar
Inserter
Inserter
Posts: 47
Joined: Tue May 21, 2024 2:34 am
Contact:

Re: Internal name is inconsistently (not?) case sensitive

Post by Erfar »

But mod portal should absolutely also became non-case-sensetive or get some redirection function to remove confusion like this
Post Reply

Return to “Mod portal Discussion”