Page 1 of 1

Error in assignID

Posted: Sat May 18, 2013 1:56 am
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?

Re: Error in assignID

Posted: Sat May 18, 2013 2:16 am
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.

Re: Error in assignID

Posted: Sat May 18, 2013 3:40 am
by metzyn
That did it! Thank you!

Now... where can I find a way to modify the power output?

Re: Error in assignID

Posted: Sat May 18, 2013 6:35 am
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...

Re: Error in assignID

Posted: Sat May 18, 2013 7:44 am
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!

Re: Error in assignID

Posted: Sat May 18, 2013 12:04 pm
by kovarex
FreeER wrote:Perhaps this is the production per tick and ingame shows the production per second...
Exactly.