Page 1 of 1

Add a way to get the items request of an item-request-proxy.

Posted: Mon Jan 09, 2017 9:00 am
by Articulating
Title says it all, would be great to have some way to get the requests of an item-request-proxy entity.
EDIT: Would it also be possible to have the item-request-proxy be returned as the third value from LuaEntity::revive()?

Re: Add a way to get the items request of an item-request-proxy.

Posted: Mon Jan 09, 2017 12:42 pm
by Klonan
Articulating wrote:Title says it all, would be great to have some way to get the requests of an item-request-proxy entity.
EDIT: Would it also be possible to have the item-request-proxy be returned as the third value from LuaEntity::revive()?
There is this property for the entity ghosts:
http://lua-api.factorio.com/latest/LuaE ... m_requests

Re: Add a way to get the items request of an item-request-proxy.

Posted: Mon Jan 09, 2017 1:26 pm
by Articulating
Yes, but unfortunately that isn't very helpful after the ghost is revived.

Re: Add a way to get the items request of an item-request-proxy.

Posted: Mon Jan 09, 2017 2:36 pm
by posila
Turns out Rseding already implemented item_requests also for the proxy for 0.15

Re: Add a way to get the items request of an item-request-proxy.

Posted: Mon Jan 09, 2017 2:57 pm
by Articulating
Ah, unfortunately I missed it before in the 0.15 API changes list. Any chance we could still get the proxy request returned from ::revive()?

Re: Add a way to get the items request of an item-request-proxy.

Posted: Mon Jan 09, 2017 4:03 pm
by posila
Articulating wrote:Ah, unfortunately I missed it before in the 0.15 API changes list. Any chance we could still get the proxy request returned from ::revive()?
Ok, also implemented for 0.15

Re: Add a way to get the items request of an item-request-proxy.

Posted: Mon Jan 09, 2017 4:06 pm
by Nexela
You Devs steal my heart!