COMMUNITY FORUM

error loadVehicle

Forum Overview >> Farming Simulator 17

CategoryFarming Simulator 17
Created16.04.2018 17:02


Brunori Simone (simo230999br) 16.04.2018 17:02
Hi, I am trying to convert an fs15 mod to fs17 (only for private purposes) but I have that error when i am going to buy the mod in the game shop:

Error loadVehicle: unknown type 'NewHollandAL59_4x4.Fiatagri' in 'D:/FS_MOD/mods/NewHollandAL59_4x4/NewHolland3560AL.xml'

modDesc.xml:


<vehicleTypes>
<type name="Fiatagri" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
<specialization name="workArea" />
<specialization name="attacherJoints" />
<specialization name="fillVolume" />
<specialization name="lights" />
<specialization name="animatedVehicle" />
<specialization name="turnOnVehicle" />
<specialization name="cylindered" />
<specialization name="foldable" />
<specialization name="motorized" />
<specialization name="pipe" />
<specialization name="steerable" />
<specialization name="drivable" />
<specialization name="fillable" />
<specialization name="overloading" />
<specialization name="combine" />
<specialization name="aiVehicle" />
<specialization name="honk" />
<specialization name="crawler" />
<specialization name="mouseControlsVehicle" />
<specialization name="washable" />
<specialization name="mountable" />
<specialization name="interactiveControl" />
<specialization name="interactiveWindows" />
<specialization name="interactiveButtons" />
<specialization name="doorOpener" />
<specialization name="speedJoystick" />
<specialization name="delayedRotation" />
<specialization name="universalToggleParts"/>
<specialization name="warningSigns" />
</type>
</vehicleTypes>

<storeItems>
<storeItem xmlFilename="NewHolland3560AL.xml"/>
</storeItems>



NewHolland3560AL.xml:

<vehicle type="Fiatagri">
<annotation>Copyright (C) Riguz00, All Rights Reserved.</annotation>
<storeData>
<name>AL59</name>
<specs>
<power>300</power>
<maxSpeed>20</maxSpeed>
<combination>NH 25ft,980CF 12</combination>
</specs>
<functions>
<function>$l10n_function_combine</function>
<function>$l10n_function_combineNeedsCutter</function>
</functions>
<image>Store.dds</image>
<price>40000</price>
<dailyUpkeep>1760</dailyUpkeep>
<lifetime>600</lifetime>
<rotation>0</rotation>
<brand>NEWHOLLAND</brand>
<category>harvesters</category>
<vertexBufferMemoryUsage>2697664</vertexBufferMemoryUsage>
<indexBufferMemoryUsage>462864</indexBufferMemoryUsage>
<textureMemoryUsage>28311984</textureMemoryUsage>
<instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
<instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
</storeData>
<typeDesc>$l10n_typeDesc_combine</typeDesc>
<filename>NewHolland3560AL.i3d</filename>

...

Bilbo Beutlin (BBeutlin) 17.04.2018 04:06
You have twice the opening tag
<vehicle type="Fiatagri">

Brunori Simone (simo230999br) 17.04.2018 15:30
Sorry that is my error copying xml code, in the xml there is only one tag

Bilbo Beutlin (BBeutlin) 17.04.2018 15:59
ah ok. ;)
In the next step check the order of the <specialization name=..
Many specs require certain predecessors.
See for reference the "vehicleTypes.xml" in install folder sdk.
For example: "fillVolume" requires "fillable" defined already.

It is useful for test to comment out custom, non-standard scripts. They might be incompatible with FS17.

Brunori Simone (simo230999br) 17.04.2018 22:18
thanks it worked :)



Note: Log in to post. Create a new account here.