Page 1 of 1

A way to get a ghost LogisticPoint

Posted: Sat Oct 26, 2024 1:26 am
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.

Re: A way to get a ghost LogisticPoint

Posted: Wed Jan 08, 2025 8:17 pm
by PennyJim
Got added in 2.0.29 :D
Scripting
  • Changed LuaEntity::get_logistic_point() and LuaEntity::get_logistic_sections() to work with ghosts.