Page 1 of 1

Does not match with any mod problem

Posted: Mon Apr 25, 2016 12:13 am
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.

Re: Does not match with any mod problem

Posted: Mon Apr 25, 2016 4:33 am
by DaveMcW
Your main folder name must be all lowercase, just like your zip name.

Re: Does not match with any mod problem

Posted: Mon Apr 25, 2016 4:58 am
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).

Re: Does not match with any mod problem

Posted: Mon Apr 25, 2016 8:57 am
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.

Re: Does not match with any mod problem

Posted: Mon Apr 25, 2016 9:09 am
by DaveMcW
Don't put the version number in the filename.

Re: Does not match with any mod problem

Posted: Mon Apr 25, 2016 9:30 am
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.

Re: Does not match with any mod problem

Posted: Tue Apr 26, 2016 6:18 am
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!