[2.0] character.get_logistic_point() returns two items

Place to get help with not working mods / modding interface.
stagdancer
Burner Inserter
Burner Inserter
Posts: 12
Joined: Sun Jan 31, 2021 3:07 pm
Contact:

[2.0] character.get_logistic_point() returns two items

Post by stagdancer »

Hi,

I'm trying to re-implement a mod for 2.0 that checks the player character's logistic requests (and trash). It's more complex now, with LuaLogisticPoints and their sections.

I think I can call player.character.get_requester_point() to get the LogisticPoint I need. But I spent a while calling player.character.get_logistic_point(), which returns two LuaLogisticPoints (at least in the game examples I've tried). I can see that character.get_logistic_point()[1] is the same as what get_requester_point() supplies, but the other one, character.get_logistic_point()[2], is a mystery. It has no sections and no obvious identification, is_manual = true, it's enabled, and its trash_not_requested is false. Its mode is 3, which I think is logistic_mode.requester.

Does anyone know what this other LogisticPoint might be, please? Thanks!
Post Reply

Return to “Modding help”