fix: AD's 'AL unload' sættes til center ved Start af udkørsel med autoload-bil (stod på fra → ingen aflæsning ved salgssted); pris-% = kurven alene (v1.12.10.0)
This commit is contained in:
@@ -37,6 +37,7 @@ FS25_AutoDrive = {
|
||||
settings = {
|
||||
useFolders = {values = {false, true}, current = 1, isVehicleSpecific = false},
|
||||
rotateTargets = {values = {1, 2, 3, 4}, current = 1, isVehicleSpecific = true},
|
||||
ALUnload = {values = {0, 1, 2, 3, 4}, current = 1, isVehicleSpecific = true},
|
||||
},
|
||||
getAllVehicles = function() return vehicles end,
|
||||
getAllUnits = function(vehicle) return vehicle.trailers end,
|
||||
@@ -101,7 +102,7 @@ local function makeVehicle(uniqueId, name, carriable, capacity, x, z)
|
||||
startAutoDrive = function(self) self.ad.stateModule.active = true; self.started = (self.started or 0) + 1 end,
|
||||
getClosestWayPoint = function() return nil, 0 end,
|
||||
stopAutoDrive = function(self) self.ad.stateModule.active = false; self.stopped = (self.stopped or 0) + 1 end,
|
||||
ad = {stateModule = stateModule, settings = {rotateTargets = {values = {1, 2, 3, 4}, current = 1, new = 1, isVehicleSpecific = true}}},
|
||||
ad = {stateModule = stateModule, settings = {rotateTargets = {values = {1, 2, 3, 4}, current = 1, new = 1, isVehicleSpecific = true}, ALUnload = {values = {0, 1, 2, 3, 4}, current = 1, new = 1, isVehicleSpecific = true}}},
|
||||
}
|
||||
nodePositions = nodePositions or {}
|
||||
nodePositions[uniqueId] = {x = x or 0, z = z or 0}
|
||||
@@ -522,6 +523,14 @@ check("Cout3 bulk-vogn: kun TMR", table.concat(bulkTractor.ad.stateModule.select
|
||||
check("Cout3 UAL-vogn: kurve", table.concat(ualTractor.ad.stateModule.selectedFillTypes, ","), tostring(BASKET))
|
||||
check("Cout3 rotation kun pålæsning", bulkTractor.ad.settings.rotateTargets.current, 2)
|
||||
check("Cout3 startet", bulkTractor.started, 1)
|
||||
-- AD's "AL unload" er slået FRA som standard (values[1] = 0): autoload-vognen ville aldrig læsse af
|
||||
-- ved salgsstedet. Ved Start sættes den til "center" hvis den er fra; et brugervalg (left/right/behind) røres ikke.
|
||||
check("Cout3 ALUnload sat til center for autoload-bil", ualTractor.ad.settings.ALUnload.current, 2)
|
||||
check("Cout3 ALUnload rører ikke tipvogn", bulkTractor.ad.settings.ALUnload.current, 1)
|
||||
ualTractor.ad.settings.ALUnload.current = 4
|
||||
ualTractor.ad.stateModule.active = false
|
||||
ADRunsController.startRun(adEnv, out.id)
|
||||
check("Cout3 ALUnload brugervalg bevares", ualTractor.ad.settings.ALUnload.current, 4)
|
||||
|
||||
-- Cout4: produkter til fanen (politik slået op, sorteret på titel) og status
|
||||
local list = ADRunsController.getRunProducts(adEnv, outRun)
|
||||
|
||||
Reference in New Issue
Block a user