Problem with adding a new ore

Place to get help with not working mods / modding interface.
User avatar
FireHead996
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jun 21, 2014 11:14 pm
Contact:

Problem with adding a new ore

Post by FireHead996 »

Hi. At first, sorry for my bad English. This is not my native language.
I want to create my new ore, but when i try to launch the game, error appears:
Error:
Error in assignID, 'my-ore' was not recognized id of item
Can you guys help me? I took the fragments of code from the "base" module and i don't know what is wrong with it. :(
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: Problem with adding a new ore

Post by FreeER »

FireHead996 wrote:Error in assignID, 'my-ore' was not recognized id of item
Well, this is saying that Factorio did not find an item prototype with a name of 'my-ore', my assumption would be that you created a resource entity and changed it's mining result to 'my-ore' but did not create the 'my-ore' item for it to actually give the player, but without seeing the code that's mostly a (educated) guess :)
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net
User avatar
FireHead996
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jun 21, 2014 11:14 pm
Contact:

Re: Problem with adding a new ore

Post by FireHead996 »

You was right. I forgot about item entity. But it's not all. I launched the game, map editor, and when i click on resources tab, game crashes. Where is the problem now?
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: Problem with adding a new ore

Post by FreeER »

FireHead996 wrote:I launched the game, map editor, and when i click on resources tab, game crashes. Where is the problem now?
Hm...that one I can't make a proper guess about...Could you share the code?
User avatar
FireHead996
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jun 21, 2014 11:14 pm
Contact:

Re: Problem with adding a new ore

Post by FireHead996 »

I recovered nodes "flags" and "order" to the code and it places the ore, but i can't see it. I'm sure that i did graphics well and don't misspelled anything...
Code is in the attachment.
Attachments
NPM.rar
(85.24 KiB) Downloaded 145 times
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: Problem with adding a new ore

Post by FreeER »

FireHead996 wrote:Code is in the attachment.
hm, works fine in map editor, and if you turn the generation of the uranium up to very high and the other resources down, so it looks to me as if you are "simply" going to need to play with the autoplace peaks to prevent the other ores from overriding the uranium completely. Unfortunately I can't really help with that because I never really took the time to figure out exactly how they work...

edit: if it's invisible even in the editor for you maybe try deleting the crop-cache.dat file in the Factorio directory...
User avatar
FireHead996
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Jun 21, 2014 11:14 pm
Contact:

Re: Problem with adding a new ore

Post by FireHead996 »

I erased this file and now i see my ore. :) Thank you for your help. :D
Post Reply

Return to “Modding help”