Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Commit

Permalink
v1.4
Browse files Browse the repository at this point in the history
- release version
- everything compiled with luajit for better performance
  • Loading branch information
Mogli12 committed Aug 9, 2016
1 parent 4e96fdf commit 834e5c4
Show file tree
Hide file tree
Showing 15 changed files with 90 additions and 11 deletions.
16 changes: 13 additions & 3 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
del zzzMrGearboxAddon.zip
cd zzzMrGearboxAddon
"C:\Program Files\WinRAR\winrar" A -r ..\zzzMrGearboxAddon.zip *.*
setlocal
set modname=zzzMrGearboxAddon
del %modname%.zip
cd %modname%
for %%I in (..\src\*.lua) do call :loopbody "%%~fI"
"C:\Program Files\WinRAR\winrar" A -r ..\%modname%.zip *.*
cd ..
goto :EOF

:loopbody
echo %~n1
call c:\work\luapower-all-master\luajit -bg ..\src\%~n1.lua %~n1.luc
goto :EOF

5 changes: 3 additions & 2 deletions deploy.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@echo "mods"
@xcopy zzzMrGearboxAddon.zip "C:\Users\d027464\Documents\My Games\FarmingSimulator2015\mods" /R/U/Y/Q
setlocal
@set modname=zzzMrGearboxAddon
@xcopy %modname%.zip "C:\Users\d027464\Documents\My Games\FarmingSimulator2015\mods" /R/U/Y/Q
File renamed without changes.
10 changes: 8 additions & 2 deletions zzzMrGearboxAddon/mrGearboxMogli.lua → src/mrGearboxMogli.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6082,12 +6082,18 @@ end
function mrGearboxMogliMotor:updateSpeedLimit( dt )
self.currentSpeedLimit = math.huge

local speedLimit = self.vehicle:getSpeedLimit(true) * mrGearboxMogli.kmhTOms
local speedLimit = self.vehicle:getSpeedLimit(true)

if not ( self.vehicle.steeringEnabled ) then
speedLimit = math.min( speedLimit, self.speedLimit )
end

if self.vehicle.tempomatMogliV14.keepSpeedLimit ~= nil then
speedLimit = math.min( speedLimit, self.vehicle.tempomatMogliV14.keepSpeedLimit * mrGearboxMogli.kmhTOms )
speedLimit = math.min( speedLimit, self.vehicle.tempomatMogliV14.keepSpeedLimit )
end

speedLimit = speedLimit * mrGearboxMogli.kmhTOms

if self.vehicle.mrGbMS.SpeedLimiter
or self.vehicle.cruiseControl.state > 0
or self.vehicle.mrGbML.hydroTargetSpeed ~= nil then
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ if tempomatMogli == nil or tempomatMogli.version == nil or tempomatMogli.version
if self.mrGbMS ~= nil
and self.mrGbMD ~= nil
and not ( self.mrGbMS.Hydrostatic )
and not ( self:mrGbMGetAutomatic( ) )
and self.mrGbMD.Speed ~= nil
and self.mrGbMD.Speed > 0
and self.mrGbMS.IdleRpm ~= nil
Expand Down
Binary file modified zzzMrGearboxAddon.zip
Binary file not shown.
12 changes: 8 additions & 4 deletions zzzMrGearboxAddon/modDesc.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="23">
<author>Mogli aka Biedens</author>
<author>Mogli aka Biedens; Italian translation by zed636</author>
<title>
<en>Gearbox AddOn</en>
<de>Getriebe AddOn</de>
<it>Cambio AddOn</it>
</title>
<description>
<en>Gearbox:
Expand All @@ -12,14 +13,17 @@
<de>Getriebe:
<![CDATA[Fügt allen konfigurierten Fahrzeugen die Spezialisierung mrGearboxMogli hinzu]]>
</de>
<it>Cambio
</it>
</description>
<multiplayer supported="true"/>
<iconFilename>dds/store.dds</iconFilename>
<version>1.3.4.0</version>
<version>1.4.0.0</version>
<l10n>
<text name="mrGearboxMogliVERSION">
<de>Getriebe v1.4 rc2 von Mogli</de>
<en>Gearbox v1.4 rc2 by mogli</en></text>
<de>Getriebe v1.4 von Mogli</de>
<en>Gearbox v1.4 by mogli</en></text>
<it>Cambio v1.4 by mogli</it>
<text name="mrGearboxMogliSHIFTGEARUP"><de>Getriebe: Gang hoch</de><en>Gearbox: Gear up</en><it>Cambio: marcia su</it></text>
<text name="mrGearboxMogliSHIFTGEARDOWN"><de>Getriebe: Gang runter</de><en>Gearbox: Gear down</en><it>Cambio: marcia giù</it></text>
<text name="mrGearboxMogliSHIFTRANGEUP"><de>Getriebe: Gruppe hoch</de><en>Gearbox: Range up</en><it>Cambio: gruppo su</it></text>
Expand Down
Binary file added zzzMrGearboxAddon/mogliBase.luc
Binary file not shown.
Binary file added zzzMrGearboxAddon/mrGearboxMogli.luc
Binary file not shown.
Binary file added zzzMrGearboxAddon/mrGearboxMogliLoader.luc
Binary file not shown.
Binary file added zzzMrGearboxAddon/register.luc
Binary file not shown.
Binary file added zzzMrGearboxAddon/tempomatMogli.luc
Binary file not shown.
57 changes: 57 additions & 0 deletions zzzMrGearboxAddon/zzzMrGearboxAddonConfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1453,6 +1453,63 @@
</gearboxMogli>
</vehicle>

<vehicle>
<!-- actros 4163 SLT with G280-16 VIAB -->
<mod name="MB_NG_1632" isPrefix="true">
<link href="http://www.modhoster.de/mods/mb-ng-1632-4x4"/>
<xmlFile name="Mercedes_Benz_NG_1632_4x4.xml"/>
</mod>

<gearboxMogli speedLimiter="false" launchGearSpeed="30">
<!-- http://kds.vsb.cz/mhd/konstrukce-prevodovky_soubory/image012.jpg -->
<gears axleSpeed="5.25" tireWidth="315" tireRatio="80" rimDiameter="22.5" automatic="false" shiftTimeMs="800">
<gear name="C" forwardOnly="true" inverseRatio="13.09"/>
<gear name="R" reverseOnly="true" inverseRatio="11.06"/>
<gear name="1" forwardOnly="true" inverseRatio="8.68"/>
<gear name="2" forwardOnly="true" inverseRatio="6.37"/>
<gear name="3" forwardOnly="true" inverseRatio="4.65"/>
<gear name="4" forwardOnly="true" inverseRatio="3.43"/>
<gear name="5" forwardOnly="true" inverseRatio="2.53"/>
<gear name="6" forwardOnly="true" inverseRatio="1.86"/>
<gear name="7" forwardOnly="true" inverseRatio="1.36"/>
<gear name="8" forwardOnly="true" inverseRatio="1.00"/>
</gears>

<realEngine idleRpm="600" ratedRpm="2500">
<!-- 2500: 320(320) | 2500: 320(320) | 1500..1500: 1030(1030) | 75 | 0.5 | 149 | 2 | 2600 | 1360: 210 -->
<torque rpm="350" motorTorque="622" fuelUsageRatio="226.5"/>
<torque rpm="700" motorTorque="827" fuelUsageRatio="217"/>
<torque rpm="900" motorTorque="916" fuelUsageRatio="213.4"/>
<torque rpm="1000" motorTorque="951" fuelUsageRatio="212.1"/>
<torque rpm="1100" motorTorque="979" fuelUsageRatio="211.1"/>
<torque rpm="1200" motorTorque="1001" fuelUsageRatio="210.4"/>
<torque rpm="1300" motorTorque="1017" fuelUsageRatio="210.1"/>
<torque rpm="1400" motorTorque="1027" fuelUsageRatio="210"/>
<torque rpm="1500" motorTorque="1030" fuelUsageRatio="210.4"/>
<torque rpm="1600" motorTorque="1023" fuelUsageRatio="211"/>
<torque rpm="1700" motorTorque="1014" fuelUsageRatio="212.1"/>
<torque rpm="1800" motorTorque="1004" fuelUsageRatio="213.5"/>
<torque rpm="1850" motorTorque="999" fuelUsageRatio="214.3"/>
<torque rpm="1900" motorTorque="993" fuelUsageRatio="215.2"/>
<torque rpm="1950" motorTorque="987" fuelUsageRatio="216.2"/>
<torque rpm="2000" motorTorque="981" fuelUsageRatio="217.4"/>
<torque rpm="2050" motorTorque="974" fuelUsageRatio="218.5"/>
<torque rpm="2100" motorTorque="967" fuelUsageRatio="219.8"/>
<torque rpm="2150" motorTorque="960" fuelUsageRatio="221.2"/>
<torque rpm="2200" motorTorque="952" fuelUsageRatio="222.7"/>
<torque rpm="2250" motorTorque="944" fuelUsageRatio="224.2"/>
<torque rpm="2300" motorTorque="936" fuelUsageRatio="225.9"/>
<torque rpm="2350" motorTorque="927" fuelUsageRatio="227.6"/>
<torque rpm="2400" motorTorque="918" fuelUsageRatio="229.4"/>
<torque rpm="2450" motorTorque="908" fuelUsageRatio="231.3"/>
<torque rpm="2500" motorTorque="899" fuelUsageRatio="233.3"/>
<torque rpm="2550" motorTorque="798" fuelUsageRatio="248.6"/>
<torque rpm="2600" motorTorque="494" fuelUsageRatio="319.4"/>
<torque rpm="2650" motorTorque="0" fuelUsageRatio="466.7"/>
</realEngine>
</gearboxMogli>
</vehicle>


<vehicle>
<mod name="Unimog_U400_WB">
Expand Down

0 comments on commit 834e5c4

Please sign in to comment.