fix: AutoDrive kører tømmevognens fulde læs til siloen ad vejnettet (v1.62.18)

This commit is contained in:
2026-10-04 20:23:28 +02:00
parent 5fe6b1dff5
commit f9c169ae46
4 changed files with 25 additions and 5 deletions
+4 -2
View File
@@ -705,7 +705,9 @@ end
-- Aflæsningsvogn under høst: Courseplays combine-unloader (bevist i AI-Bonden). Vognen venter ved
-- (waitX, waitZ) — markens F-markør — følger høsteren på marken og kører fuld til station. station =
-- den station Smart Pickups silovalg fandt; findes den ikke i Courseplays liste, bruges nærmeste.
function ADCpBridge.startUnloader(vehicle, fieldX, fieldZ, waitX, waitZ, station, onDone)
-- useGiants = false: Courseplay stopper ved fuld vogn, og AutoDrive (Hent og aflever, hjælper CP) kører læsset til
-- siloen ad vejnettet og genstarter CP (in-game 4/10: CP's egen kørsel til siloen fulgte ikke AD-nettet ind i graven)
function ADCpBridge.startUnloader(vehicle, fieldX, fieldZ, waitX, waitZ, station, onDone, useGiants)
if AIJobType == nil or AIJobType.COMBINE_UNLOADER_CP == nil then
return nil, "Courseplay (COMBINE_UNLOADER_CP) findes ikke"
end
@@ -732,7 +734,7 @@ function ADCpBridge.startUnloader(vehicle, fieldX, fieldZ, waitX, waitZ, station
end
end
end)
if params.useGiantsUnload ~= nil then pcall(function() params.useGiantsUnload:setValue(true) end) end
if params.useGiantsUnload ~= nil then pcall(function() params.useGiantsUnload:setValue(useGiants ~= false) end) end
end
pcall(function() job:setValues() end)
local chosen = nil