tutorial convertire moduri din fs 2009 in fs2011(IN ENGLEZA)

In jos

tutorial convertire moduri din fs 2009 in fs2011(IN ENGLEZA)

Mesaj Scris de FlorinEL8 la data de Sam Sept 01, 2012 1:09 am

Before you try to use this guide, please read this:

The mod you prolly try to convert to LS 2011, has to be LS2009 Gold ready.

Also the mod name is only allowed to have those letters/numbers: "-",numbers from "0-9", letters from "a - z" and "_".
This can be a reason if your mod does not appear in the store after converting it.


The examples shown below are from the Case-IH 1455XL i converted for myself.
So you need to edit the fuelCapacity for example to your own needs.

Open your mods .xml (For example 1455XL.xml)
And change this:
<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>

Into this:
<?xml version="1.0" encoding="utf-8" standalone="no" ?>

Then put this:
<accelerationSpeed maxAcceleration="0.2" deceleration="0.6" />

Above of this
<fuelCapacity>YourFuelCapacity</fuelCapacity>
Example 1455XL 155
<fuelUsage>YourFuelUsage</fuelUsage>
Example 1455XL 0.005

Its supposted to look like this now:

Code:

<accelerationSpeed maxAcceleration="0.2" deceleration="0.6" />

<fuelCapacity>Your fuelCapacity</fuelCapacity>
<fuelUsage>FuelUsage here</fuelUsage>


And put <tipCamera index="4|2" />
below of <cameras count="x">

x means the number of cameras your tractor has. Example 1455XL "2"


It should look like this now:
Code:

<cameras count="2">
<camera1 index="4|0" rotatable="true" rotateNode="4" limit="true" rotMinX="-1.4" rotMaxX="0" transMin="4" transMax="20" />
<camera2 index="5" rotatable="true" limit="false" rotMinX="0" rotMaxX="0" transMin="0" transMax="0" />
</cameras>
Take the cameras count part from your own tractor, this one is only for the 1455XL.

<tipCamera index="4|2" />


Sound part:
As theres no fendt in this game, (many modders used some of the fendt sounds back in ls 2009.)
We have to edit this part.

Code:

Before:
<attachSound file="$data/vehicles/steerable/fendt/attach.wav" pitchOffset="1" />
<motorStopSound file="$data/vehicles/steerable/fendt/fendt716out.wav" pitchOffset="1" />
<compressedAirSound file="$data/vehicles/steerable/fendt/compressedAir.wav" pitchOffset="1" volume="1.0"/>
<compressionSound file="$data/vehicles/steerable/fendt/compressorWork.wav" pitchOffset="1" volume="1.5"/>
<aiMotorSound file="$data/vehicles/steerable/fendt/fendt716idleAI.wav" pitchOffset="1" radius="25" innerRadius="4" volume="1.0" />

After:
<attachSound file="data/vehicles/steerable/deutz/attach.wav" pitchOffset="1" />
<motorStopSound file="$data/vehicles/steerable/deutz/agro620_out.wav" pitchOffset="1" />
<compressedAirSound file="$data/vehicles/steerable/deutz/compressedAir.wav" pitchOffset="1" volume="1.0"/>
<compressionSound file="$data/vehicles/steerable/deutz/compressorWork.wav" pitchOffset="1" volume="1.5"/>
<aiMotorSound file="$data/vehicles/steerable/deutz/agro620_idleAI.wav" pitchOffset="1" radius="25" innerRadius="4" volume="1.0" />


If theres no steerable/fendt/ in your .xmls sound part then don't edit it.

modDesc:
First of all change this:
<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
<modDesc descVersion="1">

into this:
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="4">

And add this:
Code:

<title>
<en>Sample mod</en>
<de>Beispiel mod</de>
</title>


You have to add few things here,put <iconFilename> below <description> (iconFilename => store.png of your tractor,description is a example.)

<description>
<en>Converted 1455XL</en>
<de>Converted 1455XL</de>
</description>
<iconFilename>Case.png</iconFilename>
Also add this one below <iconFilename>
<multiplayer supported="true"/>

Should look like this now:

Code:

<description>
<en>Converted 1455XL</en>
<de>Converted 1455XL</de>
</description>
<iconFilename>Case.png</iconFilename>
<multiplayer supported="true"/>


Quick and easy version for ModDesc:

Code:

<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
into
<?xml version="1.0" encoding="utf-8" standalone="no" ?>

<modDesc descVersion="1">
into
<modDesc descVersion="4">

Add this:
<version>1.0</version>

And add this:
<multiplayer supported="true"/>

Also add this:
<iconFilename>Storepictureofthemod.png</iconFilename>

And add the title of your mod
<title>
<en>Modname here</en>
<de>Modname hier</de>
</title>


Script Converting

Code:

Seek this in your .Lua file, for example: Maxxum.lua.
InputBinding.getButtonKeyName

And replace it with this:
InputBinding.getKeyNamesOfDigitalAction


Code:

Old:
acceleration = -InputBinding.getAnalogInputAxis(InputBinding.AXIS_FORWARD);
if InputBinding.isAxisZero(acceleration) then
acceleration = -InputBinding.getDigitalInputAxis(InputBinding.AXIS_FORWARD);
end;

New:
acceleration = -InputBinding.getAnalogInputAxis(InputBinding.AXIS_MOVE_FORWARD_VEHICLE);
if InputBinding.isAxisZero(acceleration) then
acceleration = -InputBinding.getDigitalInputAxis(InputBinding.AXIS_MOVE_FORWARD_VEHICLE);
end;


Errors:
sometimes one points missing, seek the function named above and search for one "." add another to it.
Should look like this now: ".."[/b]

Files:
Example of the Moddesc.xml and the 1455XL.xml, converted using this tutorial.
[Trebuie sa fiti inscris si conectat pentru a vedea acest link]
avatar
FlorinEL8
WebMaster
WebMaster

Mesaje : 1
Localizare : Teleorman

Vezi profilul utilizatorului http://farming-romania2012.hitforum.ro

Sus In jos

Sus


 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum