Skip to content

Commit

Permalink
Merge pull request #432 from Stephan-S/dev_axel32019
Browse files Browse the repository at this point in the history
Release 2.0.0.5
  • Loading branch information
Iwan1803 authored Mar 26, 2022
2 parents c905e32 + 228784a commit 853586c
Show file tree
Hide file tree
Showing 51 changed files with 1,377 additions and 588 deletions.
18 changes: 17 additions & 1 deletion gui/environmentSettingsPage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,23 @@
<GuiElement type="bitmap" profile="multiTextOptionSettingsBg" />
<GuiElement type="bitmap" profile="baseReference" position="730px 0px" size="50px 50px"/>
</GuiElement>
</GuiElement>
<GuiElement type="multiTextOption" profile="multiTextOptionSettings" onCreate="onCreateAutoDriveSetting" onClick="onOptionChange" name="useWorkLightsLoading" toolTipElementId="ingameMenuHelpBoxText">
<GuiElement type="button" profile="multiTextOptionSettingsLeft" />
<GuiElement type="button" profile="multiTextOptionSettingsRight" />
<GuiElement type="text" profile="multiTextOptionSettingsText" />
<GuiElement type="text" profile="multiTextOptionSettingsTitle" position="27px 0px" />
<GuiElement type="bitmap" profile="multiTextOptionSettingsBg" />
<GuiElement type="bitmap" profile="baseReference" position="730px 0px" size="50px 50px"/>
</GuiElement>
<GuiElement type="multiTextOption" profile="multiTextOptionSettings" onCreate="onCreateAutoDriveSetting" onClick="onOptionChange" name="useWorkLightsSilo" toolTipElementId="ingameMenuHelpBoxText">
<GuiElement type="button" profile="multiTextOptionSettingsLeft" />
<GuiElement type="button" profile="multiTextOptionSettingsRight" />
<GuiElement type="text" profile="multiTextOptionSettingsText" />
<GuiElement type="text" profile="multiTextOptionSettingsTitle" position="27px 0px" />
<GuiElement type="bitmap" profile="multiTextOptionSettingsBg" />
<GuiElement type="bitmap" profile="baseReference" position="730px 0px" size="50px 50px"/>
</GuiElement>
</GuiElement>
</GuiElement>

<GuiElement type="bitmap" profile="ingameMenuHelpRowBg" position="210px -64px" id="ingameMenuHelpBox" visible="false">
Expand Down
2 changes: 0 additions & 2 deletions gui/vehicleSettingsPage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@
<GuiElement type="bitmap" profile="multiTextOptionSettingsBg" />
<GuiElement type="bitmap" profile="baseReference" position="730px 0px" size="50px 50px"/>
</GuiElement>
<!--
<GuiElement type="multiTextOption" profile="multiTextOptionSettings" onCreate="onCreateAutoDriveSetting" onClick="onOptionChange" name="ALUnload" toolTipElementId="ingameMenuHelpBoxText">
<GuiElement type="button" profile="multiTextOptionSettingsLeft" />
<GuiElement type="button" profile="multiTextOptionSettingsRight" />
Expand All @@ -164,7 +163,6 @@
<GuiElement type="bitmap" profile="multiTextOptionSettingsBg" />
<GuiElement type="bitmap" profile="baseReference" position="730px 0px" size="50px 50px"/>
</GuiElement>
-->
</GuiElement>
</GuiElement>
<GuiElement type="bitmap" profile="ingameMenuHelpRowBg" position="210px -64px" id="ingameMenuHelpBox" visible="false">
Expand Down
2 changes: 1 addition & 1 deletion modDesc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Différents modes d'utilisation ont été ajoutés depuis les premières version
<![CDATA[Этот мод может быть использован для создания сети маршрутов для транспортных средств для автономного вождения. После настройки вы можете указать трактору, стоящему где-угодно рядом с сетью, проехать в любую точку, например, в магазин, поле №1 или в точку продажи.]]>
</ru>
</description>
<version>2.0.0.4</version>
<version>2.0.0.5</version>
<multiplayer supported="true" />
<iconFilename>icon.dds</iconFilename>
<extraSourceFiles>
Expand Down
17 changes: 13 additions & 4 deletions scripts/AutoDrive.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AutoDrive = {}
AutoDrive.version = "2.0.0.4"
AutoDrive.version = "2.0.0.5"

AutoDrive.directory = g_currentModDirectory

Expand All @@ -14,7 +14,7 @@ AutoDrive.experimentalFeatures.enableRoutesManagerOnDediServer = false
AutoDrive.experimentalFeatures.detectGrasField = true
AutoDrive.experimentalFeatures.colorAssignmentMode = false
AutoDrive.experimentalFeatures.UTurn = true
AutoDrive.experimentalFeatures.FoldImplements = false
AutoDrive.experimentalFeatures.FoldImplements = true

AutoDrive.dynamicChaseDistance = true
AutoDrive.smootherDriving = true
Expand Down Expand Up @@ -71,7 +71,7 @@ AutoDrive.SCAN_DIALOG_RESULT_NO = 3
AutoDrive.SCAN_DIALOG_RESULT_DONE = 4
AutoDrive.scanDialogState = AutoDrive.SCAN_DIALOG_NONE


AutoDrive.foldTimeout = 30000 -- 30 s time to fold all implements
AutoDrive.MAX_BUNKERSILO_LENGTH = 100 -- length of bunker silo where speed should be lowered

-- number of frames for performance modulo operation
Expand Down Expand Up @@ -126,6 +126,15 @@ AutoDrive.seedFillTypes = {
'LIQUIDFERTILIZER'
}

AutoDrive.modesToStartFromCP = {
-- AutoDrive.MODE_DRIVETO, not allowed
AutoDrive.MODE_PICKUPANDDELIVER,
-- AutoDrive.MODE_DELIVERTO, not allowed
AutoDrive.MODE_LOAD,
AutoDrive.MODE_UNLOAD
-- AutoDrive.MODE_BGA not allowed
}

function AutoDrive:onAllModsLoaded()
-- ADThirdPartyModsManager:load()
end
Expand Down Expand Up @@ -231,7 +240,7 @@ function AutoDrive:loadMap(name)
ADInputManager:load()

ADMultipleTargetsManager:load()
AutoDrive.initTelemetry()
-- AutoDrive.initTelemetry()

InGameMenuAIFrame.onFrameOpen = Utils.appendedFunction(InGameMenuAIFrame.onFrameOpen, AutoDrive.onAIFrameOpen)
InGameMenuAIFrame.onFrameClose = Utils.appendedFunction(InGameMenuAIFrame.onFrameClose, AutoDrive.onAIFrameClose)
Expand Down
5 changes: 4 additions & 1 deletion scripts/Events/HudInputEvent.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ function AutoDriveHudInputEventEvent:run(connection)
if self.eventType == self.TYPE_FIRST_MARKER then
local currentFirstMarker = self.vehicle.ad.stateModule:getFirstMarkerId()
if currentFirstMarker > 0 and currentFirstMarker ~= self.value then
AutoDrive:StopCP(self.vehicle)
if not (self.vehicle.spec_combine or AutoDrive.getIsBufferCombine(self.vehicle) or self.vehicle.ad.isCombine ~= nil) then
-- not stop / change CP for harvesters
AutoDrive:StopCP(self.vehicle)
end
end
self.vehicle.ad.stateModule:setFirstMarker(self.value)
end
Expand Down
Loading

0 comments on commit 853586c

Please sign in to comment.