LuaGameScript doesn't contain key entity_prototypes

Place to get help with not working mods / modding interface.
User avatar
oLaudix
Filter Inserter
Filter Inserter
Posts: 285
Joined: Sun Jun 14, 2015 3:24 pm
Contact:

LuaGameScript doesn't contain key entity_prototypes

Post 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.
Image
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3522
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: LuaGameScript doesn't contain key entity_prototypes

Post 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
Bilka
Factorio Staff
Factorio Staff
Posts: 3320
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: LuaGameScript doesn't contain key entity_prototypes

Post 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.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
User avatar
oLaudix
Filter Inserter
Filter Inserter
Posts: 285
Joined: Sun Jun 14, 2015 3:24 pm
Contact:

Re: LuaGameScript doesn't contain key entity_prototypes

Post 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.
Image
plexpt
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Mon Feb 07, 2022 2:32 am
Contact:

Re: LuaGameScript doesn't contain key entity_prototypes

Post by plexpt »

prototypes.get_entity_filtered() ??
Post Reply

Return to “Modding help”