LuaEquipmentGrid index

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
Linver
Fast Inserter
Fast Inserter
Posts: 158
Joined: Wed Jan 09, 2019 2:28 pm
Contact:

LuaEquipmentGrid index

Post by Linver »

Hi again, related to the post of LuaEquipmentGrid , why the LuaEquipmentGrid doesen't have an index? I suppose that is why they are in a one to one association to an entity, so for identify it is possible use the index of the entity, but is weird that miss an unique identificator when all other LuaObject have it. Also, this missing property if the request in the other post wouldn't implemented (about the fact that exist situations where is know the grid but not the entity that own it).

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: LuaEquipmentGrid index

Post by Klonan »

Linver wrote:
Thu Jul 09, 2020 6:09 am
but is weird that miss an unique identificator when all other LuaObject have it.
Not all Lua Objects have a Unique ID, in fact very many don't, even many entities, such as resources, trees, don't have a unique ID.

Looking at the equipment grid, there is nothing internally to give to you, there is no unique ID in the engine for an equipment grid, so this modding request isn't easy to fulfill.

User avatar
Linver
Fast Inserter
Fast Inserter
Posts: 158
Joined: Wed Jan 09, 2019 2:28 pm
Contact:

Re: LuaEquipmentGrid index

Post by Linver »

Klonan wrote:
Thu Jul 09, 2020 9:30 am
Linver wrote:
Thu Jul 09, 2020 6:09 am
but is weird that miss an unique identificator when all other LuaObject have it.
Not all Lua Objects have a Unique ID, in fact very many don't, even many entities, such as resources, trees, don't have a unique ID.

Looking at the equipment grid, there is nothing internally to give to you, there is no unique ID in the engine for an equipment grid, so this modding request isn't easy to fulfill.
Understand, anyway, thank you for the answer

Post Reply

Return to “Modding interface requests”