LuaGameScript doesn't contain key entity_prototypes
LuaGameScript doesn't contain key entity_prototypes
Anyone knows what did game.entity_prototypes turn into? Couldnt find the info in 2.0 Modding changelog preview nor Modding API changelog preview.

Re: LuaGameScript doesn't contain key entity_prototypes
prototypes.entityoLaudix wrote: Tue Oct 22, 2024 4:31 pm Anyone knows what did game.entity_prototypes turn into? Couldnt find the info in 2.0 Modding changelog preview nor Modding API changelog preview.
Re: LuaGameScript doesn't contain key entity_prototypes
It's in the changelog like this:
Moved prototypes access from LuaGameScript::X_prototypes to LuaPrototypes::X.
Moved filtered prototypes access from LuaGameScript::get_filtered_X_prototypes to LuaPrototypes::get_X_filtered.
Moved prototypes access from LuaGameScript::X_prototypes to LuaPrototypes::X.
Moved filtered prototypes access from LuaGameScript::get_filtered_X_prototypes to LuaPrototypes::get_X_filtered.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: LuaGameScript doesn't contain key entity_prototypes
Ah i see. I was just searching for entity_prototypes like a dumbass.Bilka wrote: Tue Oct 22, 2024 4:36 pm It's in the changelog like this:
Moved prototypes access from LuaGameScript::X_prototypes to LuaPrototypes::X.
Moved filtered prototypes access from LuaGameScript::get_filtered_X_prototypes to LuaPrototypes::get_X_filtered.

Re: LuaGameScript doesn't contain key entity_prototypes
prototypes.get_entity_filtered() ??