Need help with converting mod

SomeRandomGamer
Posts: 15
Joined: Sat May 23, 2015 7:51 pm

Need help with converting mod

Post by SomeRandomGamer » Sun Aug 06, 2017 2:08 pm

Hello, I am trying to convert a marshall 804 mod from fs 2009 to fs 15. I know nothing about xml, but I have managed to get it to show up in the in-game shop but I cannot purchase it as I get an error "The vehicle/implement could not be purchased. Please try again." I put both the moddesc and the log below. I would love if someone could help me!

Mod desc
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="21">
<author>SomeRandomGamer</author>
<version>1.0</version>
<title>
<en>Marshall 804</en>
<de>Marshall 804</de>
</title>
<description>
<en>Marshall 804 description</en>
<de>Marshall 804 Beschreibung</de>
</description>
<iconFilename>store.png</iconFilename>
<multiplayer supported="true"/>
<vehicleTypes>
<type name="Marshall804" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
<specialization name="animatedVehicle" />
<specialization name="motorized" />
<specialization name="steerable" />
<specialization name="drivable" />
<specialization name="cylindered" />
<specialization name="hirable" />
<specialization name="aiTractor" />
</type>
</vehicleTypes>
<storeItems>
<storeItem>
<name>
<de>Marshall 804</de>
<en>Marshall 804</en>
</name>
<rotation>0</rotation>
<image brand="MarshallBrand.png" active="store.png"/>
<price>20000</price>
<dailyUpkeep>175</dailyUpkeep>
<xmlFilename>marshall804.xml</xmlFilename>
<brand>Marshall</brand>
<category>tractors</category>
<specs>
<power>80</power>
</specs>
</storeItem>
</storeItems>
</modDesc>
log
GIANTS Engine Runtime 6.0.2 64bit (Build Date: Jan 14 2016)
Copyright (c) 2008-2015, GIANTS Software GmbH (giants-software.com), All Rights Reserved.
Copyright (c) 2003-2015, Christian Ammann and Stefan Geiger, All Rights Reserved.
Application: FarmingSimulator2015
Main System
CPU: Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
Memory: 8149 MB
OS: Windows NT 6.2 64-bit
Physics System
Version: 5.9.4
Thread(s): 2
Input System
Keyboard enabled
Mouse enabled
Gamepad/Joystick enabled
Force Feedback disabled
Sound System
Driver: OpenAL
Version: 1.1
Device: Generic Software
Max. sources: 256
Render System
Driver: OpenGL
Card Vendor: NVIDIA Corporation
Renderer: GeForce GTX 750 Ti/PCIe/SSE2
Version: 4.5.0 NVIDIA 382.05
Shader Version: 4.50 NVIDIA
max_texture_layers: 16
OpenGL initialization successful
Hardware Profile
Level: Very High (forced)
View Distance Factor: 1.300000
Shadow Quality: 2.000000
Skip Mipmaps: 0
LOD Distance Factor: 1.300000
Terrain LOD Distance Factor: 2.000000
Foliage View Distance Factor: 1.600000
Volume Mesh Tessellation Factor: 0.750000
Tyre Tracks Segments Factor: 4.000000
Farming Simulator 15
Version: 1.4.2.0 1.4.2RC1
Available Languages: en fr es it nl pt
Language: en
Game vehicle types loaded
Mod directory: C:/Users/James/Documents/My Games/FarmingSimulator2015/mods/
Error: No license for dlc pdlc_holmerPack. Please reinstall.
Load mod: marshall804
Register vehicle type: marshall804.Marshall804
dataS/cameraPath01.i3d (0.11 ms)
dataS/cameraPath02.i3d (0.12 ms)
dataS/cameraPath03.i3d (0.12 ms)
data/sky/sky_day_night.i3d (6.15 ms)
data/sky/rain.i3d (1.04 ms)
data/sky/hail.i3d (0.70 ms)
data/sky/dust.i3d (1.01 ms)
data/maps/map01.i3d (5966.69 ms)
Disabled withering for: wheat, barley, rape, maize, sugarBeet
data/vehicles/trailers/brantner/brantnerE8041.i3d (10.45 ms)
data/vehicles/tools/koeckerling/koeckerlingTrio300M.i3d (18.25 ms)
data/vehicles/particleAnimations/koeckerling/koeckerlingTrio300M.i3d (4.29 ms)
data/vehicles/tools/kuhn/kuhnVariMaster153.i3d (17.82 ms)
data/vehicles/particleAnimations/kuhn/kuhnVariMaster153.i3d (1.07 ms)
data/vehicles/tools/suer/suerSB700.i3d (3.95 ms)
data/vehicles/tools/kuhn/kuhnFC3525F.i3d (16.08 ms)
data/vehicles/tools/kuhn/kuhnGA8521.i3d (18.74 ms)
data/vehicles/tools/kuhn/kuhnGF6502.i3d (15.53 ms)
data/vehicles/tools/suer/suerSB1000.i3d (0.92 ms)
data/vehicles/tools/vogelNoot/vogelNootTerraDisc600.i3d (20.76 ms)
data/vehicles/particleAnimations/vogelNoot/vogelNootTerraDisc600.i3d (1.24 ms)
data/vehicles/trailers/ursus/ursusZ586.i3d (16.44 ms)
data/vehicles/frontLoaders/stoll/stollFrontLoaderFZ.i3d (9.98 ms)
data/vehicles/steerable/deutz/deutzAgroStar661.i3d (43.22 ms)
dataS2/character/player/player.i3d (230.75 ms)
data/vehicles/steerable/cars/piQup.i3d (13.98 ms)
data/vehicles/steerable/huerlimann/huerlimannH488.i3d (34.86 ms)
data/vehicles/trailers/krampe/krampeBandit750.i3d (19.10 ms)
data/vehicles/steerable/sampoRosenlew/sampoRosenlewC6.i3d (60.81 ms)
data/vehicles/frontLoaders/stoll/stollToolBaleGrab.i3d (16.99 ms)
data/vehicles/tools/poettinger/poettingerVitasem302A.i3d (22.91 ms)
data/vehicles/particleAnimations/poettinger/poettingerVitasem302A.i3d (1.03 ms)
data/vehicles/cutters/sampoRosenlew/sampoRosenlewC6.i3d (15.09 ms)
data/vehicles/steerable/newHolland/newHollandT475.i3d (38.57 ms)
data/vehicles/tools/suer/suerSB1600.i3d (0.77 ms)
data/vehicles/frontLoaders/stoll/stollToolLogFork.i3d (1.02 ms)
data/vehicles/balers/newHolland/newHollandRollBelt150.i3d (22.29 ms)
data/maps/models/objects/roundbales/roundbaleStraw_w112_d130.i3d (4.36 ms)
data/vehicles/trailers/stepa/stepaFHL13AK.i3d (20.84 ms)
data/vehicles/steerable/newHolland/newHollandT8320.i3d (39.49 ms)
data/vehicles/tools/amazone/amazoneUF1801.i3d (14.84 ms)
data/vehicles/trailers/jenz/jenzHem583.i3d (32.01 ms)
data/vehicles/trailers/bergmann/bergmannCarex38S.i3d (19.84 ms)
data/vehicles/trailers/krampe/krampeBBS900.i3d (15.56 ms)
data/vehicles/cutters/krone/kroneXDisc6200.i3d (15.11 ms)
data/vehicles/cutters/krone/kroneEasyFlow300.i3d (5.74 ms)
data/vehicles/steerable/krone/kroneBigX1100.i3d (38.03 ms)
data/vehicles/trailers/kroeger/kroegerTAW30.i3d (19.71 ms)
data/vehicles/trailers/kroeger/kroegerHKD302.i3d (17.66 ms)
data/placeables/highPressureWasher/kaercher/kaercherHDS918-4M.i3d (16.42 ms)
data/maps/models/natural/trees/treeSpruce40m.i3d (2.16 ms)
data/maps/models/natural/trees/treeAsh15m.i3d (1.84 ms)
data/maps/models/natural/trees/treeOak20m.i3d (2.38 ms)
dataS/character/player/playerCCT.i3d (5.77 ms)
data/firstPerson/chainsaws/husqvarna/husqvarna550.i3d (16.71 ms)
data/firstPerson/chainsaws/jonsered/jonsered2252.i3d (14.88 ms)
data/firstPerson/chainsaws/mcCulloch/mcCullochCS410.i3d (15.52 ms)
Warning (performance): Texture C:/Users/James/Documents/My Games/FarmingSimulator2015/mods//marshall804/store.png raw format.
Warning (compatibility): Texture C:/Users/James/Documents/My Games/FarmingSimulator2015/mods//marshall804/MarshallBrand.png width or height doesn't equal 2^n.
Warning (performance): Texture C:/Users/James/Documents/My Games/FarmingSimulator2015/mods//marshall804/MarshallBrand.png raw format.
Error loadVehicle: unknown type 'marshall804.fiat980' in 'C:/Users/James/Documents/My Games/FarmingSimulator2015/mods//marshall804/marshall804.xml'
Warning (performance): Texture C:/Users/James/Documents/My Games/FarmingSimulator2015/mods//marshall804/store.png raw format.
Warning (compatibility): Texture C:/Users/James/Documents/My Games/FarmingSimulator2015/mods//marshall804/MarshallBrand.png width or height doesn't equal 2^n.
Warning (performance): Texture C:/Users/James/Documents/My Games/FarmingSimulator2015/mods//marshall804/MarshallBrand.png raw format.
Edit: Added marshall804.xml
marshall804.xml
<?xml version="1.0" encoding="ISO-8859-1"?>

-<vehicle type="fiat980">

<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>


-<name>

<en>marshall804</en>

<de>marshall804</de>

</name>

<description/>

<filename>marshall.i3d</filename>


-<wheels autoRotateBackSpeed="2.5">

<wheel mass="0.2" damper="0" spring="180" suspTravel="0" deltaY="0" radius="0.7" driveNode="0|0" repr="0" driveMode="2" rotMin="-32" rotMax="32" rotSpeed="70"/>

<wheel mass="0.2" damper="0" spring="180" suspTravel="0" deltaY="0" radius="0.7" driveNode="1|0" repr="1" driveMode="2" rotMin="-32" rotMax="32" rotSpeed="70"/>

<wheel mass="0.3" damper="0" spring="180" suspTravel="0.2" deltaY="0.1" radius="0.95" repr="2" driveMode="1" rotSpeed="0"/>

<wheel mass="0.3" damper="0" spring="180" suspTravel="0.2" deltaY="0.1" radius="0.95" repr="3" driveMode="1" rotSpeed="0"/>

</wheels>


-<motor rpmFadeOutRange="20" differentialRatio="3.4" backwardGearRatio="1.8" forwardGearRatio="4.0 3.0 2.2" brakeForce="6.5" maxRpm="600 950 1850" minRpm="300">

<torque torque="4.5" rpm="500"/>

<torque torque="5.1" rpm="900"/>

<torque torque="6.25" rpm="1300"/>

<torque torque="6.76" rpm="1750"/>

<torque torque="6.76" rpm="1800"/>

</motor>

<fuelCapacity>71</fuelCapacity>

<fuelUsage>0.0007</fuelUsage>

<downForce>4</downForce>


-<cameras count="2">

<camera1 transMax="20" transMin="4" rotMaxX="0" rotMinX="-1.4" limit="true" rotateNode="4" rotatable="true" index="4|0"/>

<camera2 transMax="0" transMin="0" rotMaxX="0" rotMinX="0" limit="false" rotatable="true" index="5"/>

</cameras>


-<lights count="2">

<light1 index="12"/>

<light2 index="13"/>

</lights>


-<extraWeights count="10">

<weight1 index="28"/>

<weight2 index="29"/>

<weight3 index="30"/>

<weight4 index="31"/>

<weight5 index="32"/>

<weight6 index="33"/>

<weight7 index="34"/>

<weight8 index="35"/>

<weight9 index="36"/>

<weight10 index="37"/>

</extraWeights>

<maxWeight weight="100"/>

<steering index="17|0" rotationSpeed="6"/>

<enterReferenceNode index="0>"/>

<exitPoint index="9"/>

<size lengthOffset="-0.1" length="5" width="3"/>


-<cuttingAreas count="0">

<!--cuttingArea1 startIndex="6" widthIndex="7" heightIndex="8" losing="true"/-->


</cuttingAreas>


-<trailerAttacherJoints>

<trailerAttacherJoint index="10"/>

<trailerAttacherJoint index="26"/>

</trailerAttacherJoints>

<tipCamera index="11"/>

<attachSound pitchOffset="1" file="data/vehicles/steerable/fendt/attach.wav"/>

<motorStartSound pitchOffset="1" file="startti.wav" volume="1.4"/>

<motorSound pitchOffset="1" file="idle.wav" volume="1.4" pitchMax="1.65" pitchScale="0.03"/>

<motorSoundRun pitchOffset="0.5" file="fiat_move.wav" volume="0.5" pitchMax="1.05" pitchScale="0.02"/>

<motorStopSound pitchOffset="1" file="fiat_out.wav"/>

<aiMotorSound radius="25" pitchOffset="1" file="fiat_move_ai.wav" volume="1.4" innerRadius="4"/>


-<exhaustParticleSystems count="1">

<exhaustParticleSystem1 file="exhaustParticleSystem.i3d" rotation="-7.04327 0 0" position="0.34871 3.28989 0.14982"/>

</exhaustParticleSystems>


-<attacherJoints>


-<attacherJoint index="14|0|0" moveTime="1.5" maxRotLimit="0 0 20" maxTransLimit="0 0.1 0" maxRot2="15 0 0" rotationNode2="14|0" maxRot="-25 0 0" rotationNode="14">

<bottomArm rotationNode="15" zScale="-1" referenceNode="15|0|0" translationNode="15|0"/>

<topArm rotationNode="16" zScale="-1" referenceNode="16|0|0" translationNode="16|0"/>

</attacherJoint>

</attacherJoints>

<characterNode index="18" cameraMinDistance="1.5"/>

<aiTrafficCollisionTrigger index="19"/>


-<components count="1">

<component1 solverIterationCount="10" centerOfMass="0 -0.3 0"/>

</components>


-<drivingHydraulic count="2">

<drivingHydraulic1 hydraulicPunchFixPoint="0|1|0" fenderFixPoint="0|1" hydraulicPunch="25|0|0|0" hydraulic="25"/>

<drivingHydraulic2 hydraulicPunchFixPoint="0|2|0" fenderFixPoint="0|2" hydraulicPunch="27|0" hydraulic="27"/>

</drivingHydraulic>

</vehicle>

User avatar
BlackFox403
Posts: 44
Joined: Wed Feb 17, 2016 3:49 am

Re: Need help with converting mod

Post by BlackFox403 » Sun Aug 06, 2017 4:06 pm

Here;s the problem...
In the modDesc.xml you have this line

<type name="Marshall804" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">

and in the marshall804.xml you have this line

-<vehicle type="fiat980">

If you are using the name Marshall804 it needs to be the same in the vehicle type.

Here is the indicator -- Error loadVehicle: unknown type 'marshall804.fiat980' in 'C:/Users/James/Documents/My Games/FarmingSimulator2015/mods//marshall804/marshall804.xml'

SomeRandomGamer
Posts: 15
Joined: Sat May 23, 2015 7:51 pm

Re: Need help with converting mod

Post by SomeRandomGamer » Sun Aug 06, 2017 4:32 pm

I now get this in the log
Index: 0>5|1|0|0|2|2|0|0|0|0
Error loading camera vehicle.cameras.camera2: invalid camera node
Error: No cameras in xml file: C:/Users/James/Documents/My Games/FarmingSimulator2015/mods//marshall804/marshall804.xml
Error: index out of range
LUA call stack:
D:/code/lsim2015/build/finalbin/dataS/scripts/Utils.lua(9) : printCallstack
D:/code/lsim2015/build/finalbin/dataS/scripts/Utils.lua(49) : checkChildIndex
D:/code/lsim2015/build/finalbin/dataS/scripts/vehicles/specializations/Drivable.lua(35) : indexToObject
D:/code/lsim2015/build/finalbin/dataS/scripts/vehicles/Vehicle.lua(1174)
D:/code/lsim2015/build/finalbin/dataS/scripts/vehicles/Vehicle.lua(105) : loadFinished
D:/code/lsim2015/build/finalbin/dataS/scripts/BaseMission.lua(660) : load
D:/code/lsim2015/build/finalbin/dataS/scripts/BaseMission.lua(754) : loadVehicle
D:/code/lsim2015/build/finalbin/dataS/scripts/BuyVehicleEvent.lua(83) : loadVehicleAtPlace
D:/code/lsim2015/build/finalbin/dataS/scripts/network/Connection.lua(53) : run
D:/code/lsim2015/build/finalbin/dataS/scripts/gui/ShopScreen.lua(913) : sendEvent
D:/code/lsim2015/build/finalbin/dataS/scripts/gui/Gui.lua(301) : update
D:/code/lsim2015/build/finalbin/dataS/scripts/main.lua(1441) : update
Index: 0>5|1|0|0|1|0|0|0
Error: Running LUA method 'update'.
D:/code/lsim2015/build/finalbin/dataS/scripts/vehicles/specializations/Drivable.lua(62) : attempt to index a nil value

Post Reply