Advanced Logistics System


Extended Logistics Network View and Monitoring

Utilities
7 years ago
0.13 - 0.15
47

b Oarc scenario compatibility (missing variable initialization) fix

7 years ago
(updated 7 years ago)

The pre tags are being inserted by the forum editor and are not part of the needed code. I am having trouble getting newlines to work within that block.

control.lua

function initForce(force)
local forceName = force.name

<pre>--Initialize Variables - Causes errors later in mod if these do not exist here. if global.hasSystem == nil then global.hasSystem = {} end if global.networks == nil then global.networks = {} end if global.networksCount == nil then global.networksCount = {} end if global.networksNames == nil then global.networksNames = {} end if global.disconnectedChests == nil then global.disconnectedChests = {} end if global.normalChests == nil then global.normalChests = {} end if global.logisticsItems == nil then global.logisticsItems = {} end if global.logisticsItemsTotal == nil then global.logisticsItemsTotal = {} end if global.normalItems == nil then global.normalItems = {} end if global.normalItemsTotal == nil then global.normalItemsTotal = {} end if global.logisticsChests == nil then global.logisticsChests = {} end -- hasSystem </pre>

...

New response