Page 1 of 1

Burner Generator Entity Prototype has no Burner Prototype

Posted: Sat Feb 15, 2020 10:14 am
by mika89
hi!

shouldn't the entity-prototype of the burner-generator have the burner_prototype field set?

/c game.print(game.entity_prototypes["burner-generator"].burner_prototype)

returns nil.
i don't know if thats a bug or feature :)

Re: Burner Generator Entity Prototype has no Burner Prototype

Posted: Sat Feb 15, 2020 1:23 pm
by darkfrei
In data stage it's done such as:
2020-02-15T14_22_45-_D__Factorio_0.18_factorio-current.log - Notepad++.png
2020-02-15T14_22_45-_D__Factorio_0.18_factorio-current.log - Notepad++.png (18.36 KiB) Viewed 2412 times

Code: Select all

/c log (game.player.selected.help())

Code: Select all

/c log (game.player.selected.prototype.help())

For burner generator prototype it will be:
burner generator prototype help
And the

Code: Select all

/c log (game.player.selected.prototype.burner_prototype.help())
gives error :(
It looks like a bug.

Re: Burner Generator Entity Prototype has no Burner Prototype

Posted: Mon Feb 17, 2020 3:18 pm
by Rseding91
Fixed for the next release.