[boskid][2.0.31] LuaEntity::get_logistic_sections() doesn't work on ghosts (anymore?)

This subforum contains all the issues which we already resolved.
User avatar
Quezler
Fast Inserter
Fast Inserter
Posts: 108
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

[boskid][2.0.31] LuaEntity::get_logistic_sections() doesn't work on ghosts (anymore?)

Post by Quezler »

125405

It was implemented a few versions ago but i don't recall if i actually verified it at the time, but either way it currently does not work:

Edit 1: note that get_logistic_point() does work on ghosts now, its just that get_logistic_sections() doesn't seem to work.
Attachments
Screenshot 2025-01-18 at 11.57.49.png
Screenshot 2025-01-18 at 11.57.49.png (232.69 KiB) Viewed 206 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3422
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.31] LuaEntity::get_logistic_sections() doesn't work on ghosts (anymore?)

Post by boskid »

It looks like the fix was implemented but not verified. There is one piece missing. For a temporary workaround you can call get_logistic_sections(0), just ignore an intentionally undocumented parameter.
User avatar
Quezler
Fast Inserter
Fast Inserter
Posts: 108
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

Re: [2.0.31] LuaEntity::get_logistic_sections() doesn't work on ghosts (anymore?)

Post by Quezler »

Thanks for the suggestion, it just so happened to be the same route i took, glad that other method supports ghosts since 2.0.29, looking forward to revert:
https://github.com/Quezler/glutenfree/c ... 1ee7424906
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3422
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.31] LuaEntity::get_logistic_sections() doesn't work on ghosts (anymore?)

Post by boskid »

This issue is now fixed for 2.0.32.
Post Reply

Return to “Resolved Problems and Bugs”