chore: pålæsnings-diagnose viser rotation, fortsæt-ved-tom og modhold — 1.62.158
This commit is contained in:
@@ -74,8 +74,14 @@ local function adGates(adEnv, vehicle, trailer, trigger, fillType)
|
||||
end
|
||||
local tm = vehicle.ad.trailerModule
|
||||
if tm ~= nil then
|
||||
table.insert(parts, string.format("AD: isLoading=%s trigger=%s", tostring(tm.isLoading), tostring(tm.trigger ~= nil)))
|
||||
table.insert(parts, string.format("AD: isLoading=%s trigger=%s activeAtTrigger=%s", tostring(tm.isLoading), tostring(tm.trigger ~= nil),
|
||||
tostring(tm.isActiveAtTrigger ~= nil and tm:isActiveAtTrigger())))
|
||||
end
|
||||
-- LoadAtDestinationTask afslutter straks ved rotation "kun pålæsning"/"fortsæt ved tom silo" — medmindre modden holder vognen
|
||||
local okR, rotate = pcall(autoDrive.getSetting, "rotateTargets", vehicle)
|
||||
local okC, continueEmpty = pcall(autoDrive.getSetting, "continueOnEmptySilo", vehicle)
|
||||
local okW, wait = pcall(function() return ADSmartPickup ~= nil and ADSmartPickup.shouldWaitForLoading ~= nil and ADSmartPickup.shouldWaitForLoading(vehicle) end)
|
||||
table.insert(parts, string.format("rotér=%s fortsætTom=%s smartHolder=%s", okR and tostring(rotate) or "?", okC and tostring(continueEmpty) or "?", okW and tostring(wait) or "?"))
|
||||
return table.concat(parts, " ")
|
||||
end
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<modDesc descVersion="107">
|
||||
<author>masterdraco</author>
|
||||
<version>1.62.157.0</version>
|
||||
<version>1.62.158.0</version>
|
||||
<title>
|
||||
<en>AD Smart Pickup</en>
|
||||
</title>
|
||||
|
||||
Reference in New Issue
Block a user