From 1d3d9b59761b8cd6d3aa61c79c03d9c2d1ff0093 Mon Sep 17 00:00:00 2001
From: Iwan1803 <47528836+Iwan1803@users.noreply.github.com>
Date: Sat, 18 Jan 2025 19:20:06 +0100
Subject: [PATCH 01/16] Update modDesc.xml
---
modDesc.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modDesc.xml b/modDesc.xml
index 4d1790b..f8cc64a 100644
--- a/modDesc.xml
+++ b/modDesc.xml
@@ -36,7 +36,7 @@ Changelog: Необходимые корректировки для FS25, нас
]]>
- 3.0.0.2
+ 3.0.0.3-RC
icon_AutoDrive.dds
From 4bc9f6538f90df7802df488d4083db0ffa4323b1 Mon Sep 17 00:00:00 2001
From: Iwan1803 <47528836+Iwan1803@users.noreply.github.com>
Date: Sat, 18 Jan 2025 19:20:26 +0100
Subject: [PATCH 02/16] Update AutoDrive.lua
---
scripts/AutoDrive.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/AutoDrive.lua b/scripts/AutoDrive.lua
index 2be37d2..ecbd7f4 100644
--- a/scripts/AutoDrive.lua
+++ b/scripts/AutoDrive.lua
@@ -1,5 +1,5 @@
AutoDrive = {}
-AutoDrive.version = "3.0.0.2"
+AutoDrive.version = "3.0.0.3-RC"
AutoDrive.directory = g_currentModDirectory
From 3ae9c076c6c28713aa6093a8f1e21217acd0e2ea Mon Sep 17 00:00:00 2001
From: Iwan1803 <47528836+Iwan1803@users.noreply.github.com>
Date: Sat, 18 Jan 2025 19:22:39 +0100
Subject: [PATCH 03/16] Update translation_de.xml
---
translations/translation_de.xml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/translations/translation_de.xml b/translations/translation_de.xml
index 60e5fb1..9f3ef6e 100644
--- a/translations/translation_de.xml
+++ b/translations/translation_de.xml
@@ -259,8 +259,8 @@
-
-
+
+
@@ -376,4 +376,4 @@
-
\ No newline at end of file
+
From 02311e0bf611921787ea788143f7fed8814ddcd4 Mon Sep 17 00:00:00 2001
From: Roby1164
Date: Sun, 19 Jan 2025 09:21:57 +0100
Subject: [PATCH 04/16] Update translation_it.xml
Updated for 3.0.0.2
---
translations/translation_it.xml | 42 ++++++++++++++++-----------------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/translations/translation_it.xml b/translations/translation_it.xml
index 2974168..f6361d8 100644
--- a/translations/translation_it.xml
+++ b/translations/translation_it.xml
@@ -10,9 +10,9 @@
-
+
-
+
@@ -60,22 +60,22 @@
-
-
+
+
-
+
-
-
+
+
@@ -98,13 +98,13 @@
-
+
-
+
-
+
@@ -132,8 +132,8 @@
-
-
+
+
@@ -150,7 +150,7 @@
-
+
@@ -182,7 +182,7 @@
-
+
@@ -201,7 +201,7 @@
-
+
@@ -225,7 +225,7 @@
-
+
@@ -237,7 +237,7 @@
-
+
@@ -344,17 +344,17 @@
-
+
-
+
-
+
-
+
From ae75b65fe8b59bbb9c5dad1fc2840801fd5e6a84 Mon Sep 17 00:00:00 2001
From: Gonimy-Vetrom
Date: Sun, 19 Jan 2025 19:31:46 +0200
Subject: [PATCH 05/16] Update translation_uk.xml
---
translations/translation_uk.xml | 714 ++++++++++++++++----------------
1 file changed, 357 insertions(+), 357 deletions(-)
diff --git a/translations/translation_uk.xml b/translations/translation_uk.xml
index a2238a5..30db6be 100644
--- a/translations/translation_uk.xml
+++ b/translations/translation_uk.xml
@@ -2,363 +2,363 @@
Gonimy_Vetrom
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -376,4 +376,4 @@
-
\ No newline at end of file
+
From b9f7b810237bef130af00cc8a1efe6a2fd01a0ce Mon Sep 17 00:00:00 2001
From: Gonimy-Vetrom
Date: Sun, 19 Jan 2025 19:39:26 +0200
Subject: [PATCH 06/16] Update translation_ru.xml
---
translations/translation_ru.xml | 128 ++++++++++++++++----------------
1 file changed, 64 insertions(+), 64 deletions(-)
diff --git a/translations/translation_ru.xml b/translations/translation_ru.xml
index d30477a..5422472 100644
--- a/translations/translation_ru.xml
+++ b/translations/translation_ru.xml
@@ -17,9 +17,9 @@
-
-
-
+
+
+
@@ -83,10 +83,10 @@
-
-
-
-
+
+
+
+
@@ -207,7 +207,7 @@
-
+
@@ -255,12 +255,12 @@
-
+
-
-
+
+
@@ -268,7 +268,7 @@
-
+
@@ -276,61 +276,61 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -376,4 +376,4 @@
-
\ No newline at end of file
+
From dbf81493f7f461c9b58645e2f35cf84ced473d25 Mon Sep 17 00:00:00 2001
From: Gonimy-Vetrom
Date: Sun, 19 Jan 2025 19:45:20 +0200
Subject: [PATCH 07/16] Update translation_uk.xml
---
translations/translation_uk.xml | 710 ++++++++++++++++----------------
1 file changed, 355 insertions(+), 355 deletions(-)
diff --git a/translations/translation_uk.xml b/translations/translation_uk.xml
index 30db6be..fd01bed 100644
--- a/translations/translation_uk.xml
+++ b/translations/translation_uk.xml
@@ -2,363 +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
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From 1759426d834682f53dde0aef48032fe0b064e1e3 Mon Sep 17 00:00:00 2001
From: Gonimy-Vetrom
Date: Sun, 19 Jan 2025 19:46:55 +0200
Subject: [PATCH 08/16] Update translation_ru.xml
---
translations/translation_ru.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/translations/translation_ru.xml b/translations/translation_ru.xml
index 5422472..fb6622e 100644
--- a/translations/translation_ru.xml
+++ b/translations/translation_ru.xml
@@ -326,9 +326,9 @@
-
+
-
+
From 2706b9ce6656a382003e9ce6bbc99dab886e5299 Mon Sep 17 00:00:00 2001
From: Thomas Matern
Date: Thu, 23 Jan 2025 16:23:05 +1300
Subject: [PATCH 09/16] Fix #151 - don't turn off lights when AD is stopped.
The game seems to do this automatically if there is no driver in the vehicle.
---
scripts/Specialization.lua | 3 ---
1 file changed, 3 deletions(-)
diff --git a/scripts/Specialization.lua b/scripts/Specialization.lua
index d039a24..86d137f 100644
--- a/scripts/Specialization.lua
+++ b/scripts/Specialization.lua
@@ -1670,9 +1670,6 @@ function AutoDrive:updateAutoDriveLights(switchOff)
if AutoDrive.getSetting("useHazardLightReverse", self) and self.setTurnLightState then
self:setTurnLightState(Lights.TURNLIGHT_OFF)
end
- if self.updateAutomaticLights ~= nil then
- self:updateAutomaticLights(false, false)
- end
elseif self.ad ~= nil and self.ad.stateModule:isActive() then
local isInRangeToLoadUnloadTarget = false
local isInBunkerSilo = false
From 45636dfecb7e88e7131a4232367f0ba4d0d63ffe Mon Sep 17 00:00:00 2001
From: Axel32019 <52026009+Axel32019@users.noreply.github.com>
Date: Fri, 24 Jan 2025 19:44:02 +0100
Subject: [PATCH 10/16] NEW: delete waypoints in selectable range
---
scripts/Hud.lua | 71 ++++++++++++++++++++++++++++++--
scripts/Manager/GraphManager.lua | 19 +++++++++
scripts/Specialization.lua | 10 ++++-
3 files changed, 95 insertions(+), 5 deletions(-)
diff --git a/scripts/Hud.lua b/scripts/Hud.lua
index 24e9cf2..d559afe 100644
--- a/scripts/Hud.lua
+++ b/scripts/Hud.lua
@@ -419,7 +419,7 @@ end
function AutoDriveHud:mouseEvent(vehicle, posX, posY, isDown, isUp, button)
local mouseActiveForAutoDrive = (g_gui.currentGui == nil or AutoDrive.aiFrameOpen) and (g_inputBinding:getShowMouseCursor() == true)
-
+
if mouseActiveForAutoDrive then
local mouseEventHandled = false
local silent = false
@@ -461,10 +461,56 @@ function AutoDriveHud:mouseEvent(vehicle, posX, posY, isDown, isUp, button)
AutoDrive.resetMouseSelections(vehicle)
end
- vehicle.ad.hoveredNodeId = nil
+ vehicle.ad.hoveredNodeId = nil
vehicle.ad.sectionWayPoints = {}
- local adjustedPaths = false
- if (not mouseEventHandled) and AutoDrive.isInExtendedEditorMode() and g_gui.currentGui == nil then
+ vehicle.ad.selectionRange = vehicle.ad.selectionRange or 1 -- start with 1m range
+ local adjustedPaths = false
+ if (not mouseEventHandled) and AutoDrive.isInExtendedEditorMode() and g_gui.currentGui == nil then
+ if
+ not AutoDrive.leftLSHIFTmodifierKeyPressed
+ and not AutoDrive.leftCTRLmodifierKeyPressed
+ and AutoDrive.leftALTmodifierKeyPressed
+ and not AutoDrive.rightSHIFTmodifierKeyPressed
+ and vehicle.ad.newcreated == nil
+ and vehicle.ad.selectedNodeId ~= nil
+ then
+ -- selected node and LALT pressed
+ AutoDriveHud.debugMsg(vehicle, "AutoDriveHud:mouseEvent selection start")
+ AutoDrive.mouseWheelActive = true
+ if button == 4 and isUp and vehicle.ad.selectionRange > 1 then
+ AutoDriveHud.debugMsg(vehicle, "AutoDriveHud:mouseEvent decrement")
+ -- decrement range
+ vehicle.ad.selectionActive = true
+ vehicle.ad.selectionRange = vehicle.ad.selectionRange - 0.5
+ vehicle.ad.selectionWayPoints = self:getSelectionWayPoints(vehicle)
+ elseif button == 5 and isUp and vehicle.ad.selectionRange < AutoDrive.drawDistance / 2 then
+ AutoDriveHud.debugMsg(vehicle, "AutoDriveHud:mouseEvent increment")
+ -- increment range
+ vehicle.ad.selectionActive = true
+ vehicle.ad.selectionRange = vehicle.ad.selectionRange + 0.5
+ vehicle.ad.selectionWayPoints = self:getSelectionWayPoints(vehicle)
+ elseif vehicle.ad.selectionActive then
+ -- activated again
+ vehicle.ad.selectionWayPoints = self:getSelectionWayPoints(vehicle)
+ end
+ if button == 1 and isUp and vehicle.ad.selectionActive then
+ -- delete selected wayPoints
+ AutoDriveHud.debugMsg(vehicle, "AutoDriveHud:mouseEvent delete selection")
+ ADGraphManager:deleteWayPointsInSelection(vehicle)
+ vehicle:resetWayPointsDistance()
+ vehicle.ad.selectedNodeId = nil
+ end
+ else
+ -- clear selection wayPoints
+ if vehicle.ad.selectionWayPoints and #vehicle.ad.selectionWayPoints > 0 then
+ for _, wayPointId in pairs(vehicle.ad.selectionWayPoints) do
+ local wayPoint = ADGraphManager:getWayPointById(wayPointId)
+ wayPoint.isSelected = false
+ end
+ vehicle.ad.selectionWayPoints = {}
+ end
+ end
+
if
not AutoDrive.leftLSHIFTmodifierKeyPressed
and not AutoDrive.leftCTRLmodifierKeyPressed
@@ -879,6 +925,23 @@ function AutoDriveHud:deleteMapHotspot(vehicle)
end
end
+function AutoDriveHud:getSelectionWayPoints(vehicle)
+ local selectionWayPoints = {}
+ if vehicle.ad.selectionActive and vehicle.ad.selectedNodeId then
+ local selectedWayPoint = ADGraphManager:getWayPointById(vehicle.ad.selectedNodeId)
+ for _, elem in pairs(AutoDrive.getWayPointsDistance(vehicle)) do
+ local distance = MathUtil.vector2Length(elem.wayPoint.x - selectedWayPoint.x , elem.wayPoint.z - selectedWayPoint.z)
+ if distance <= vehicle.ad.selectionRange then
+ elem.wayPoint.isSelected = true
+ table.insert(selectionWayPoints, elem.wayPoint.id)
+ else
+ elem.wayPoint.isSelected = false
+ end
+ end
+ end
+ return selectionWayPoints
+end
+
function AutoDrive:ingameMapElementMouseEvent(superFunc, posX, posY, isDown, isUp, button, eventUsed)
eventUsed = superFunc(self, posX, posY, isDown, isUp, button, eventUsed)
diff --git a/scripts/Manager/GraphManager.lua b/scripts/Manager/GraphManager.lua
index 4782a84..b84d40d 100644
--- a/scripts/Manager/GraphManager.lua
+++ b/scripts/Manager/GraphManager.lua
@@ -1704,6 +1704,25 @@ function ADGraphManager:deleteWayPointsInSection(vehicle)
end
end
+function ADGraphManager:deleteWayPointsInSelection(vehicle)
+ if vehicle.ad.selectionWayPoints and #vehicle.ad.selectionWayPoints > 0 then
+ -- delete the wayPoints
+ local pointsToDelete = {}
+ for i = 1, #vehicle.ad.selectionWayPoints do
+ table.insert(pointsToDelete, vehicle.ad.selectionWayPoints[i])
+ end
+ -- sort the wayPoints to delete in descant order to ensure correct linkage deletion
+ local sort_func = function(a, b)
+ return a > b
+ end
+ table.sort(pointsToDelete, sort_func)
+ for i = 1, #pointsToDelete do
+ ADGraphManager:removeWayPoint(pointsToDelete[i])
+ end
+ vehicle.ad.selectionWayPoints = {}
+ end
+end
+
function ADGraphManager:deleteColorSelectionWayPoints()
-- delete the color selection wayPoints in descant order to ensure correct linkage deletion
local actualID = self:getWayPointsCount()
diff --git a/scripts/Specialization.lua b/scripts/Specialization.lua
index 86d137f..175fca4 100644
--- a/scripts/Specialization.lua
+++ b/scripts/Specialization.lua
@@ -869,7 +869,7 @@ function AutoDrive:onDrawEditorMode()
if AutoDrive.isInExtendedEditorMode() then
arrowPosition = DrawingManager.arrows.position.middle
if AutoDrive.enableSphere == true then
- if AutoDrive.mouseIsAtPos(point, 0.01) then
+ if AutoDrive.mouseIsAtPos(point, 0.01) or point.isSelected then
DrawingManager:addSphereTask(x, y, z, 3, unpack(AutoDrive.currentColors.ad_color_hoveredNode))
else
if point.id == self.ad.selectedNodeId then
@@ -1052,6 +1052,14 @@ function AutoDrive:onDrawEditorMode()
end
end
end
+
+ if AutoDrive.isInExtendedEditorMode() and AutoDrive.enableSphere == true then
+ if self.ad.selectionWayPoints and #self.ad.selectionWayPoints > 0 then
+ -- draw range circle for selection wayPoints
+ local selectedWayPoint = ADGraphManager:getWayPointById(self.ad.selectedNodeId)
+ DebugUtil.drawDebugCircle(selectedWayPoint.x, selectedWayPoint.y, selectedWayPoint.z, self.ad.selectionRange, 30, AutoDrive.currentColors.ad_color_hoveredNode, true)
+ end
+ end
end
function AutoDrive:startAutoDrive()
From cd23b10a74660b3ef20685d39cad6b95a7b1809c Mon Sep 17 00:00:00 2001
From: Thomas Matern
Date: Sat, 25 Jan 2025 22:48:09 +1300
Subject: [PATCH 11/16] #154 - delay validating the filltype until everything
was loaded, fixes an issue where AD forgets the selected filltype
---
scripts/AutoDrive.lua | 1 +
scripts/Utils/TrailerUtil.lua | 10 +++++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/scripts/AutoDrive.lua b/scripts/AutoDrive.lua
index ecbd7f4..716040d 100644
--- a/scripts/AutoDrive.lua
+++ b/scripts/AutoDrive.lua
@@ -531,6 +531,7 @@ function AutoDrive:init()
loadSample(AutoDrive.selectedWayPointSample, fileName, false)
end
AutoDrivePlaceableData:setActive(true)
+ AutoDrive:setValidSupportedFillTypesForAllVehicles()
AutoDrive:autostartHelpers()
end
diff --git a/scripts/Utils/TrailerUtil.lua b/scripts/Utils/TrailerUtil.lua
index 72718eb..cc8effa 100644
--- a/scripts/Utils/TrailerUtil.lua
+++ b/scripts/Utils/TrailerUtil.lua
@@ -1042,7 +1042,7 @@ function AutoDrive.getValidSupportedFillTypes(vehicle, excludedVehicles)
end
function AutoDrive.setValidSupportedFillType(vehicle, excludedImplementIndex)
- if vehicle == nil then
+ if vehicle == nil or vehicle.ad == nil or vehicle.ad.stateModule == nil or AutoDrive.isFirstRun == nil then
return
end
@@ -1099,4 +1099,12 @@ function AutoDrive.setValidSupportedFillType(vehicle, excludedImplementIndex)
end
return ret
+end
+
+function AutoDrive:setValidSupportedFillTypesForAllVehicles()
+ -- This is called once via AutoDrive:init. We initially suppress filltype updates to deal with
+ -- the random order of onPostAttachImplement calls. This function repeats those suppressed calls.
+ for _, vehicle in pairs(self:getAllVehicles()) do
+ self:setValidSupportedFillType(vehicle)
+ end
end
\ No newline at end of file
From 9d204e74abde3d2b55249466806e26ada9d65443 Mon Sep 17 00:00:00 2001
From: Iwan1803 <47528836+Iwan1803@users.noreply.github.com>
Date: Thu, 30 Jan 2025 14:17:13 +0100
Subject: [PATCH 12/16] Update AutoDrive.lua
possible fix for Patch 1.5
---
scripts/AutoDrive.lua | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/AutoDrive.lua b/scripts/AutoDrive.lua
index 716040d..f855051 100644
--- a/scripts/AutoDrive.lua
+++ b/scripts/AutoDrive.lua
@@ -218,7 +218,8 @@ function AutoDrive:loadMap(name)
AutoDrive.Hud:loadHud()
-- Save Configuration when saving savegame
- FSBaseMission.saveSavegame = Utils.appendedFunction(FSBaseMission.saveSavegame, AutoDrive.saveSavegame)
+ -- Fix for 1.5 - FSBaseMission.saveSavegame = Utils.appendedFunction(FSBaseMission.saveSavegame, AutoDrive.saveSavegame)
+ ItemSystem.save = Utils.prependedFunction(ItemSystem.save, AutoDrive.saveSavegame)
LoadTrigger.onFillTypeSelection = Utils.appendedFunction(LoadTrigger.onFillTypeSelection, AutoDrive.onFillTypeSelection)
From 62622896e1988dd267292a2806dbafb150edad12 Mon Sep 17 00:00:00 2001
From: Thomas Matern
Date: Fri, 31 Jan 2025 19:40:36 +1300
Subject: [PATCH 13/16] Log the RoutesManager folder to help with debugging
#160
---
scripts/Manager/RoutesManager.lua | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/Manager/RoutesManager.lua b/scripts/Manager/RoutesManager.lua
index 7e007bb..ef98116 100644
--- a/scripts/Manager/RoutesManager.lua
+++ b/scripts/Manager/RoutesManager.lua
@@ -27,6 +27,7 @@ function ADRoutesManager:load()
createFolder(self.managerFolder)
self.routesFolder = self.managerFolder .. "routes/"
createFolder(self.routesFolder)
+ Logging.info("[AD] RoutesManager folder: '" .. self.routesFolder .. "'")
self.cfnFile = self.managerFolder .. "reload.cfn"
From 60a3b8e37e4cba56e9c5693119d9199d3a535b2b Mon Sep 17 00:00:00 2001
From: Iwan1803 <47528836+Iwan1803@users.noreply.github.com>
Date: Fri, 31 Jan 2025 08:03:26 +0100
Subject: [PATCH 14/16] Update README.md
---
README.md | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 1043e9a..673ae86 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# FS25_AutoDrive
FS25 version of the AutoDrive mod
-### Latest Release: 3.0.0.2
+### Latest Release: 3.0.0.4

Direct Download: https://github.com/Stephan-S/FS25_AutoDrive/releases/latest/download/FS25_AutoDrive.zip
@@ -31,6 +31,10 @@ Direct Download: https://github.com/Williwillswisse/AD_T_intersection/releases/l
Direct Download: https://github.com/Williwillswisse/AD_reverseToMarker/releases/latest/download/FS25_AutoDrive_reverseToMarker.zip
Repository: https://github.com/Williwillswisse
+## Placeables with already prepared AD routes (separate mods)
+A growing number of ingame placeables, e.g. buildings, silos, productions and so on with integrated AD routes.
+Download: https://hof-hirschfeld.de/category/autodrive/
+
## Course Editor
The course editor is now maintained by @KillBait and can be found here:
https://github.com/KillBait/AutoDrive_Course_Editor
From 25cc0f129b8d07bdace849b95c9677068669e387 Mon Sep 17 00:00:00 2001
From: Iwan1803 <47528836+Iwan1803@users.noreply.github.com>
Date: Fri, 31 Jan 2025 08:08:43 +0100
Subject: [PATCH 15/16] Update modDesc.xml
---
modDesc.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modDesc.xml b/modDesc.xml
index f8cc64a..1128366 100644
--- a/modDesc.xml
+++ b/modDesc.xml
@@ -36,7 +36,7 @@ Changelog: Необходимые корректировки для FS25, нас
]]>
- 3.0.0.3-RC
+ 3.0.0.4
icon_AutoDrive.dds
From 877728b24f733a89e1b6629d0eb6d50377f40614 Mon Sep 17 00:00:00 2001
From: Iwan1803 <47528836+Iwan1803@users.noreply.github.com>
Date: Fri, 31 Jan 2025 08:09:00 +0100
Subject: [PATCH 16/16] Update AutoDrive.lua
---
scripts/AutoDrive.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/AutoDrive.lua b/scripts/AutoDrive.lua
index f855051..d9419cf 100644
--- a/scripts/AutoDrive.lua
+++ b/scripts/AutoDrive.lua
@@ -1,5 +1,5 @@
AutoDrive = {}
-AutoDrive.version = "3.0.0.3-RC"
+AutoDrive.version = "3.0.0.4"
AutoDrive.directory = g_currentModDirectory