Updating Mod to 16.36, Replacing "full_or_satisfied_request"
Posted: Sat Mar 31, 2018 4:31 pm
There's a mod I've been using for a long time, but the developer hasn't updated it for 0.16+. I've been fixing it, but I came across an issue in "control.lua" I can't seem to resolve. This is the line:
The problem is "full_or_satisfied_requesters" which has been removed from the "LuaLogisticNetwork" object. According to older documentation, this is the definition:
Is there a way to create a new array that would provide the same information? My only current workaround is to just comment out the entire loop and proceed without the data it provides. I assume the fix involves using the "requesters" array in the "LuaLogisticNetwork" object, but I'm uncertain about how to get the data from it.
Code: Select all
for x,chest in pairs(net.full_or_satisfied_requesters) do
Code: Select all
full_or_satisfied_requesters :: array of LuaEntity [Read-only]
All entities that have full or satisfied logistic requester points in this network.