Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
6.03.00040 Grimme DLC fix
Browse files Browse the repository at this point in the history
- fix call stack with harvesters with no pipe, fixes #6824
- stop at end option back for mode 5, closes #6808
- Köckerling Vectors added to the vehicle configuration, so CP
handles them as towed implements with wheels, fixes #6823
  • Loading branch information
pvaiko committed Feb 14, 2021
1 parent f1540e5 commit 3ed4d25
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 12 deletions.
26 changes: 15 additions & 11 deletions CombineAIDriver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1499,20 +1499,24 @@ end

--- Make life easier for unloaders, increases reach of the pipe
function CombineAIDriver:fixMaxRotationLimit()
local LastPipeNode = self.pipe.nodes and self.pipe.nodes[#self.pipe.nodes]
if self:isChopper() and LastPipeNode and LastPipeNode.maxRotationLimits then
self.oldLastPipeNodeMaxRotationLimit = LastPipeNode.maxRotationLimits
self:debug('Chopper fix maxRotationLimits, old Values: x=%s, y= %s, z =%s', tostring(LastPipeNode.maxRotationLimits[1]), tostring(LastPipeNode.maxRotationLimits[2]), tostring(LastPipeNode.maxRotationLimits[3]))
LastPipeNode.maxRotationLimits = nil
end
if self.pipe then
local lastPipeNode = self.pipe.nodes and self.pipe.nodes[#self.pipe.nodes]
if self:isChopper() and lastPipeNode and lastPipeNode.maxRotationLimits then
self.oldLastPipeNodeMaxRotationLimit = lastPipeNode.maxRotationLimits
self:debug('Chopper fix maxRotationLimits, old Values: x=%s, y= %s, z =%s', tostring(lastPipeNode.maxRotationLimits[1]), tostring(lastPipeNode.maxRotationLimits[2]), tostring(lastPipeNode.maxRotationLimits[3]))
lastPipeNode.maxRotationLimits = nil
end
end
end

function CombineAIDriver:resetFixMaxRotationLimit()
local LastPipeNode = self.pipe.nodes and self.pipe.nodes[#self.pipe.nodes]
if LastPipeNode and self.oldLastPipeNodeMaxRotationLimit then
LastPipeNode.maxRotationLimits = self.oldLastPipeNodeMaxRotationLimit
self:debug('Chopper: reset maxRotationLimits is x=%s, y= %s, z =%s', tostring(LastPipeNode.maxRotationLimits[1]), tostring(LastPipeNode.maxRotationLimits[3]), tostring(LastPipeNode.maxRotationLimits[3]))
self.oldLastPipeNodeMaxRotationLimit = nil
if self.pipe then
local lastPipeNode = self.pipe.nodes and self.pipe.nodes[#self.pipe.nodes]
if lastPipeNode and self.oldLastPipeNodeMaxRotationLimit then
lastPipeNode.maxRotationLimits = self.oldLastPipeNodeMaxRotationLimit
self:debug('Chopper: reset maxRotationLimits is x=%s, y= %s, z =%s', tostring(lastPipeNode.maxRotationLimits[1]), tostring(lastPipeNode.maxRotationLimits[3]), tostring(lastPipeNode.maxRotationLimits[3]))
self.oldLastPipeNodeMaxRotationLimit = nil
end
end
end

Expand Down
9 changes: 9 additions & 0 deletions config/VehicleConfigurations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,15 @@ You can define the following custom settings:
/>
<!--[MODS]-->

<!--Mod: KOECKERLING Vector 460-->
<Vehicle name="vector460.xml"
implementWheelAlwaysOnGround = "true"
/>
<!--Mod: KOECKERLING Vector 620-->
<Vehicle name="vector620.xml"
implementWheelAlwaysOnGround = "true"
/>

<!--Harvester-->

<!--Implements-->
Expand Down
2 changes: 1 addition & 1 deletion modDesc.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="47">
<version>6.03.00039</version>
<version>6.03.00040</version>
<author><![CDATA[Courseplay.devTeam]]></author>
<title><!-- en=English de=German fr=French es=Spanish ru=Russian pl=Polish it=Italian br=Brazilian-Portuguese cs=Chinese(Simplified) ct=Chinese(Traditional) cz=Czech nl=Netherlands hu=Hungary jp=Japanese kr=Korean pt=Portuguese ro=Romanian tr=Turkish -->
<en>CoursePlay SIX</en>
Expand Down

0 comments on commit 3ed4d25

Please sign in to comment.