Error in assignID

Place to get help with not working mods / modding interface.
User avatar
metzyn
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Tue Mar 19, 2013 10:49 pm
Contact:

Error in assignID

Post by metzyn »

I'm making a mod that adds new solar panels to the game. I'm running into this error upon starting up Factorio:

Code: Select all

Error in assignID, 'new-solar-panel' was not recognized id of item
What do I need to avoid this error?
Factorio Modder
Solar Expansion
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Error in assignID

Post by kovarex »

Hello,

You are missing definition of item called new-solar-panel.

The result in minable properties in entity definition specifies name of the item you get when you mine the entity.
User avatar
metzyn
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Tue Mar 19, 2013 10:49 pm
Contact:

Re: Error in assignID

Post by metzyn »

That did it! Thank you!

Now... where can I find a way to modify the power output?
Factorio Modder
Solar Expansion
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: Error in assignID

Post by FreeER »

metzyn wrote:Now... where can I find a way to modify the power output?
That would be the "production = 1" line in the entities definition, though I did not see this line on the steam engine it could be that the devs have hard coded the steam-engines power production :D

note that the solar panel ingame shows output == 60, thus 1 == 60 and 10 == 600. Perhaps this is the production per tick and ingame shows the production per second...
<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
metzyn
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Tue Mar 19, 2013 10:49 pm
Contact:

Re: Error in assignID

Post by metzyn »

FreeER wrote:
metzyn wrote:Now... where can I find a way to modify the power output?
That would be the "production = 1" line in the entities definition, though I did not see this line on the steam engine it could be that the devs have hard coded the steam-engines power production :D

note that the solar panel ingame shows output == 60, thus 1 == 60 and 10 == 600. Perhaps this is the production per tick and ingame shows the production per second...
Sweet, thanks!
Factorio Modder
Solar Expansion
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Error in assignID

Post by kovarex »

FreeER wrote:Perhaps this is the production per tick and ingame shows the production per second...
Exactly.
Post Reply

Return to “Modding help”