Page 1 of 1

[2.0.14] LuaItemPrototype still points to no longer existing LuaGameScript::item_prototypes

Posted: Mon Nov 04, 2024 4:28 pm
by LCStark
https://lua-api.factorio.com/latest/cla ... otype.html

Class description at the top says:
Prototype of an item. For example, an item prototype can be obtained from LuaGameScript::item_prototypes by its name: prototypes.item["iron-plate"].
The `prototypes.item["iron-plate"]` is correct, but the `LuaGameScript::item_prototypes` is a leftover from the previous version, and the link leads to property that no longer exists. It should probably be replaced with a link to `LuaPrototypes::item`.

Re: [2.0.14] LuaItemPrototype still points to no longer existing LuaGameScript::item_prototypes

Posted: Mon Nov 04, 2024 10:53 pm
by PennyJim
Duplicate of 117189, which is to be fixed with next release.

Re: [2.0.14] LuaItemPrototype still points to no longer existing LuaGameScript::item_prototypes

Posted: Mon Nov 04, 2024 11:00 pm
by LCStark
Thanks for the info, I've searched the forums but didn't found that one.

Re: [2.0.14] LuaItemPrototype still points to no longer existing LuaGameScript::item_prototypes

Posted: Mon Nov 04, 2024 11:05 pm
by PennyJim
Yeah, you have to use advanced search to search subforums as well as the current forum. Kind of a hassle, but it's how it is.