[2.0] character.get_logistic_point() returns two items
Posted: Sat Oct 26, 2024 10:26 am
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!
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!