A way to get a ghost LogisticPoint

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
PennyJim
Long Handed Inserter
Long Handed Inserter
Posts: 87
Joined: Wed Jan 18, 2023 3:49 am
Contact:

A way to get a ghost LogisticPoint

Post by PennyJim »

I can get the control behavior of a requester chest just fine when an entity is a ghost, but not get_requester_point(). I assume this is because it's not a 'real' LogisticPoint.

I know this is part of gamestate though, as players can now edit it. So I request some way of getting this disconnected LogisticPoint so I can edit it via script just the same.

this might also be considered a bug report, if so here's the title I would've made: [2.0.11] get_logistic_point() returns empty table on ghost
I didn't put it in bug reports because I thought it might've been intentional due to the assumed detail of it not being 'real'


Btw, I already uploaded the mod I was trying to do this in for another bug report, so you can see my workaround if you want.
User avatar
PennyJim
Long Handed Inserter
Long Handed Inserter
Posts: 87
Joined: Wed Jan 18, 2023 3:49 am
Contact:

Re: A way to get a ghost LogisticPoint

Post by PennyJim »

Got added in 2.0.29 :D
Scripting
  • Changed LuaEntity::get_logistic_point() and LuaEntity::get_logistic_sections() to work with ghosts.
Post Reply

Return to “Modding interface requests”