LuaGameScript doesn't contain key entity_prototypes
Posted: 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.
www.factorio.com
https://forums.factorio.com/
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.
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.