chore: STÅR STILLE viser AD's trailer-tilstand (læsser/tipper/ved trigger/bunker/AL-vent/last) — 1.62.317
This commit is contained in:
@@ -66,6 +66,16 @@ function ADStuckDiag.describe(vehicle)
|
||||
string.format("stopper=%s blokeret=%s", tostring(sdm ~= nil and sdm.isStoppingVehicle ~= nil and sdm:isStoppingVehicle()),
|
||||
tostring(sdm ~= nil and sdm.isBlocked)),
|
||||
}
|
||||
-- AD's trailer-tilstand: hvorfor AD selv holder vognen (in-game 17/10: tre EDK'er holdt 19 min med stopper=true)
|
||||
local tm = ad.trailerModule
|
||||
if tm ~= nil then
|
||||
local task = ad.taskModule ~= nil and ad.taskModule.activeTask or nil
|
||||
table.insert(parts, string.format("AD-vogn: læsser=%s tipper=%s vedTrigger=%s bunker=%s ALvent=%s last=%s",
|
||||
tostring(tm.isLoading), tostring(tm.isUnloading),
|
||||
tostring(tm.isActiveAtTrigger ~= nil and tm:isActiveAtTrigger()),
|
||||
tostring(tm.isUnloadingToBunkerSilo ~= nil and tm:isUnloadingToBunkerSilo()),
|
||||
tostring(task ~= nil and task.waitForALUnload), tostring(tm.fillLevel ~= nil and math.floor(tm.fillLevel) or "?")))
|
||||
end
|
||||
local wait = ADUnloadWait ~= nil and ADUnloadWait.getWaitFor ~= nil and ADUnloadWait.getWaitFor(vehicle) or nil
|
||||
local hold = ADOutbound ~= nil and ADOutbound.getHoldFor ~= nil and ADOutbound.getHoldFor(vehicle) or nil
|
||||
local pickup = ADSmartPickup ~= nil and ADSmartPickup.getActivePickup ~= nil and ADSmartPickup.getActivePickup(vehicle) or nil
|
||||
|
||||
Reference in New Issue
Block a user