Does not match with any mod problem

Place to get help with not working mods / modding interface.
User avatar
wEight
Inserter
Inserter
Posts: 28
Joined: Sun Apr 17, 2016 12:12 am
Contact:

Does not match with any mod problem

Post by wEight »

Started making a mod for this awesome game, I'm pretty sure everything matches.. but I'm definitely blind so you can help me with it.
Error
File Path
Code Part
I must be blind or something.. I'm pretty sure the names match.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Does not match with any mod problem

Post by DaveMcW »

Your main folder name must be all lowercase, just like your zip name.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15938
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Does not match with any mod problem

Post by Rseding91 »

DaveMcW wrote:Your main folder name must be all lowercase, just like your zip name.
The cases need to match (it doesn't explicitly need to be lowercase - so long as the cases match).
If you want to get ahold of me I'm almost always on Discord.
User avatar
wEight
Inserter
Inserter
Posts: 28
Joined: Sun Apr 17, 2016 12:12 am
Contact:

Re: Does not match with any mod problem

Post by wEight »

I tried it anyway only on the artillery_bunker_extension like this

Code: Select all

__artillerybunkers_0.0.1__/graphics/artillery_bunker_extension.png
And of course renamed the folder in the zip file (They both match if that's necessary). Then I launched Factorio and this time it blamed the next one (artillery_bunker_extension2) because I only changed the folder name of the first png then I assumed that changing the others will lead to success. But no luck again. It blames the same png file again. Also, before changing it (When I first encountered the error) There was another filename in the code but above... it had the same path. But why did it blame this one? Here's a little extended code
Code
Those extra brackets under are for closing the part of the code above the shown.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Does not match with any mod problem

Post by DaveMcW »

Don't put the version number in the filename.
User avatar
wEight
Inserter
Inserter
Posts: 28
Joined: Sun Apr 17, 2016 12:12 am
Contact:

Re: Does not match with any mod problem

Post by wEight »

Boy, that sure was hard to think about... thanks. But there really should be something to check if the folder contains uppercase letters or numbers then display it in the error before checking whether the folder's name (mod) exists.
doc
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Mon Mar 28, 2016 3:52 pm
Contact:

Re: Does not match with any mod problem

Post by doc »

You are allowed uppercase letters and numbers, but the cases must all match. So if your mod name is ArtilleryBunkers then your zip should be ArtilleryBunkers_0.0.1.zip, the folder inside it should be ArtilleryBunkers_0.0.1, and then you can use __ArtilleryBunkers__ in your graphics paths in Lua. Everything in the game is case sensitive (also function and variable names, prototype names, everything.) For this reason it's probably easier to always keep everything lowercase so you never have to remember what was capitalised where!
Post Reply

Return to “Modding help”