Skip to content

Commit

Permalink
Fix #2: Issue with vaderstad XL825
Browse files Browse the repository at this point in the history
  • Loading branch information
yumi-modding committed Mar 5, 2021
1 parent 39600f8 commit 19c4af8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
Binary file modified FS19_StubbleCultivator.zip
Binary file not shown.
13 changes: 11 additions & 2 deletions modDesc.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="46">
<modDesc descVersion="53">
<author>yumi</author>
<version>1.0.0.1</version>
<version>1.0.0.2</version>
<title>
<en>Stubble Cultivator</en>
<fr>Déchaumeur</fr>
Expand All @@ -17,6 +17,9 @@ CHANGELOG:
Fixed in v1.0.0.1
- Work area detection error leading to chopped straw not applied every time it should
Fixed in v1.0.0.2
- Issue with Väderstad Carrier XL 825
- Adding polish translation
]]></en>
<de><![CDATA[
Dieser Mod ist eine globale Spezialisierung. Sie wird jedem Gerät hinzugefügt welches als Grubber oder Sämaschine eingetragen ist.
Expand All @@ -27,6 +30,9 @@ CHANGELOG:
Fixed in V 1.0.0.1
- Fehler bei der Erkennung des Arbeitsbereichs der dazu führt das gehäckseltes Stroh nicht immer angezeigt wird.
Fixed in v1.0.0.2
- Problem mit Väderstad Carrier XL 825
- Polnische Übersetzung hinzufügen
]]></de>
<fr><![CDATA[
Le mod est une spécialisation globale ajoutée à tous les outils implémentant la spec Cultivator et SowingMachine.
Expand All @@ -37,6 +43,9 @@ CHANGELOG:
Fixed in v1.0.0.1
- Erreur de détection de la zone de travail entraînant des manques de débris de paille à certains endroits
Fixed in v1.0.0.2
- Problème avec le Väderstad Carrier XL 825
- Ajout de la traduction polonaise
]]></fr>
</description>
<iconFilename>icon_StubbleCultivator.dds</iconFilename>
Expand Down
12 changes: 11 additions & 1 deletion scripts/StubbleCultivator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,17 @@ function StubbleCultivator:processCultivatorArea(superfunc, workArea, dt)
end

-- Start by applying cultivator layer type
local realArea, area = superfunc(self, workArea, dt)
local realArea = 0
local area = 0
if self:getIsStubbleCultivatorActive() and self.configFileName == "data/vehicles/vaderstad/carrierXL825/carrierXL825.xml" then
if workArea.index < 2 then
realArea, area = superfunc(self, workArea, dt)
end
else
realArea, area = superfunc(self, workArea, dt)
end



-- Then choppedStraw if active
if self:getIsStubbleCultivatorActive() and fruitIdx ~= nil then
Expand Down

0 comments on commit 19c4af8

Please sign in to comment.