Skip to content

Commit

Permalink
v1.0.0.0
Browse files Browse the repository at this point in the history
Initial release
  • Loading branch information
Slivicon committed Dec 2, 2017
1 parent 559766e commit db9974b
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

*.db
53 changes: 53 additions & 0 deletions LongerLogCuts.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
-- Longer Log Cuts for Farming Simulator 17
-- @description: This increases the maximum length of wood harvester cuts from 8m to 15m.
-- @author: Slivicon
-- Change Log stored in modDesc.xml
--

LongerLogCuts = {};

local modItem = ModsUtil.findModItemByModName(g_currentModName);
local LongerLogCuts_mt = Class(LongerLogCuts, Mission00);

LongerLogCuts.version = (modItem and modItem.version) and modItem.version or "?.?.?";

function LongerLogCuts:new(baseDirectory, customMt)
local mt = customMt;
if mt == nil then
mt = LongerLogCuts_mt;
end;
local self = LongerLogCuts:superClass():new(baseDirectory, mt);
return self;
end;

function LongerLogCuts:doPostLoad(savegame)
local cutMax = self.cutLengthMax;
local newMax = 15;
if cutMax ~= nil and cutMax < newMax then
self.cutLengthMax = newMax;
end;
end;

function LongerLogCuts:loadMap(name)
end;

function LongerLogCuts:deleteMap()
end;

function LongerLogCuts:keyEvent(unicode, sym, modifier, isDown)
end;

function LongerLogCuts:mouseEvent(posX, posY, isDown, isUp, button)
end;

function LongerLogCuts:draw()
end;

function LongerLogCuts:update(dt)
end;

addModEventListener(LongerLogCuts);

WoodHarvester.postLoad = Utils.appendedFunction(WoodHarvester.postLoad, LongerLogCuts.doPostLoad);

print(string.format("Script loaded: LongerLogCuts.lua (v%s)", LongerLogCuts.version));
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# LongerLogCuts

This is a custom script mod for Farming Simulator 17 PC which increases the maximum length of wood harvester cuts from 8m to 15m.
44 changes: 44 additions & 0 deletions modDesc.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="38">
<author>Slivicon</author>
<version>1.0.0.0</version>
<title>
<de>Holzerntemaschine längerer Holzschnitt</de>
<en>Longer Log Cuts</en>
<fr>Coupes de bois plus longues</fr>
</title>
<description>
<de><![CDATA[
Dies erhöht die maximale Schnittlänge einer Holzerntemaschine von 8 m auf 15 m.
Änderungsprotokoll:
v1.0.0.0 2017-12-02
   - Erstveröffentlichung
]]></de>
<en><![CDATA[
This increases the maximum length of wood harvester cuts from 8m to 15m.
Change log:
v1.0.0.0 2017-12-02
- Initial release
]]></en>
<fr><![CDATA[
Cela augmente la longueur maximale des coupes faites par une récolteuse de bois de 8m à 15m.
Journal des changements:
v1.0.0.0 2017-12-02
   - Première version
]]></fr>
</description>
<iconFilename>store.dds</iconFilename>
<multiplayer supported="true" />
<extraSourceFiles>
<sourceFile filename="LongerLogCuts.lua" />
</extraSourceFiles>
</modDesc>
Binary file added store.dds
Binary file not shown.

0 comments on commit db9974b

Please sign in to comment.