Updating Mod to 16.36, Replacing "full_or_satisfied_request"

Place to get help with not working mods / modding interface.
ledzilla
Inserter
Inserter
Posts: 23
Joined: Wed Jun 08, 2016 5:55 pm
Contact:

Updating Mod to 16.36, Replacing "full_or_satisfied_request"

Post by ledzilla »

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:

Code: Select all

for x,chest in pairs(net.full_or_satisfied_requesters) do
The problem is "full_or_satisfied_requesters" which has been removed from the "LuaLogisticNetwork" object. According to older documentation, this is the definition:

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. 
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.

Post Reply

Return to “Modding help”