Page 1 of 1

LuaGameScript doesn't contain key entity_prototypes

Posted: Tue Oct 22, 2024 4:31 pm
by oLaudix
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

Posted: Tue Oct 22, 2024 4:36 pm
by boskid
oLaudix 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.
prototypes.entity

Re: LuaGameScript doesn't contain key entity_prototypes

Posted: Tue Oct 22, 2024 4:36 pm
by Bilka
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

Posted: Tue Oct 22, 2024 4:45 pm
by oLaudix
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.
Ah i see. I was just searching for entity_prototypes like a dumbass.

Re: LuaGameScript doesn't contain key entity_prototypes

Posted: Sun Nov 03, 2024 12:52 pm
by plexpt
prototypes.get_entity_filtered() ??