Path does not match any mod, but path is correct!

Place to get help with not working mods / modding interface.
iUltimateLP
Long Handed Inserter
Long Handed Inserter
Posts: 66
Joined: Sun May 24, 2015 4:41 pm
Contact:

Path does not match any mod, but path is correct!

Post by iUltimateLP »

Hi guys, I tried to implement a simple test storage chest inside my test mod. I did it all like in the Modding Tutorial in wiki, but everytime I start the game I get following error:
Error
What is wrong? Here are the contents of files:
item.lua
recipe.lua
entity.lua
Any suggestions? Thanks for help!
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Path does not match any mod, but path is correct!

Post by prg »

Omit the version number from the path in the item definition.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
itzJanuary
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon May 25, 2015 9:45 am
Contact:

Re: Path does not match any mod, but path is correct!

Post by itzJanuary »

It doesn't work because the path "__TestItems_0.0.1__/something" needs to be "__TestItems__/something".
iUltimateLP
Long Handed Inserter
Long Handed Inserter
Posts: 66
Joined: Sun May 24, 2015 4:41 pm
Contact:

Re: Path does not match any mod, but path is correct!

Post by iUltimateLP »

itzJanuary wrote:It doesn't work because the path "__TestItems_0.0.1__/something" needs to be "__TestItems__/something".
But then he says the folder isn't correctly named because the version is missing in folder name
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Path does not match any mod, but path is correct!

Post by prg »

The version number needs to be in the actual path where the mod is in, but not when you refer to it in the item definition.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
itzJanuary
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon May 25, 2015 9:45 am
Contact:

Re: Path does not match any mod, but path is correct!

Post by itzJanuary »

Please post your info.json. It could also have something to do with that.
iUltimateLP
Long Handed Inserter
Long Handed Inserter
Posts: 66
Joined: Sun May 24, 2015 4:41 pm
Contact:

Re: Path does not match any mod, but path is correct!

Post by iUltimateLP »

prg wrote:The version number needs to be in the actual path where the mod is in, but not when you refer to it in the item definition.
It worked! Thanks!
itzJanuary
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon May 25, 2015 9:45 am
Contact:

Re: Path does not match any mod, but path is correct!

Post by itzJanuary »

I think I understand what your problem is now.

The actual path has to be:
"Factorio/Mods/TestItems_0.0.1/something/axe.png"

but in the lua files it should be:
"__TestItems__/something/axe.png"
iUltimateLP
Long Handed Inserter
Long Handed Inserter
Posts: 66
Joined: Sun May 24, 2015 4:41 pm
Contact:

Re: Path does not match any mod, but path is correct!

Post by iUltimateLP »

itzJanuary wrote:I think I understand what your problem is now.

The actual path has to be:
"Factorio/Mods/TestItems_0.0.1/something/axe.png"

but in the lua files it should be:
"__TestItems__/something/axe.png"
Already fixed, but thanks for help! :)
Post Reply

Return to “Modding help”