Load Vehicle Error

LexMari
Posts: 1
Joined: Sun Sep 08, 2019 11:15 am

Load Vehicle Error

Post by LexMari » Sun Sep 08, 2019 11:28 am

Hi All,

I made a conversion of the Allgaier A22 mod from FS15, to use if FS17. It appears in the shop, but when I try and buy it, it says 'Vehicle cannot be bought'
I went into developer mode and it says

Error loadVehicle: unknown type 'AllgaierA22_Conv.AllgaierA22_Conv' In 'C:/Temp/AllgaierA22/AllgaierA22.xml'

I know it is something to do with vehicle types.
I have changed both of them (in the ModDesc and AllgaierA22 XML files) to the same name, but the same thing happens.
What Should I do?

ModDesc XML:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<modDesc descVersion="32">
<author>Harvey</author>
<version>1.0.0.0</version>
<title>
<en>Allgaier A 22</en>
<de>Allgaier A 22</de>
</title>
<description>
<en>Allgaier A 22</en>
<de>Allgaier A 22</de>
</description>
<iconFilename>store.png</iconFilename>
<multiplayer supported="true"/>
<specializations>
<specialization name="Scheiben" className="toggleAnimatedParts" filename="ScriptData/toggleAnimatedParts.lua"/>
<specialization name="Schwungrad" className="Schwungrad" filename="ScriptData/Schwungrad.lua"/>
<specialization name="beleuchtung31" className="BEL3" filename="ScriptData/beleuchtungV31.lua"/>
<specialization name="realExhaustParticleSystemV3" className="realExhaustParticleSystemV3" filename="ScriptData/realExhaustParticleSystemV3.lua"/>
</specializations>
<vehicleTypes>
<type name="AllgaierA22_Conv" className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua">
<specialization name="attacherJoints"/>
<specialization name="lights"/>
<specialization name="motorized"/>
<specialization name="steerable"/>
<specialization name="cylindered"/>
<!--removed specialization 'hirable'-->
<!--changed specialization 'aiTractor'-->
<specialization name="aiVehicle"/>
<specialization name="bunkerSiloCompacter"/>
<specialization name="honk"/>
<specialization name="beleuchtung31"/>
<specialization name="realExhaustParticleSystemV3"/>
<specialization name="Schwungrad"/>
<specialization name="Scheiben"/>
</type>
</vehicleTypes>
<storeItems>
<storeItem xmlFilename="AllgaierA22.xml" rootNode="vehicle"/>
</storeItems>
<brands>
<brand name="ADDITIONALOLDTIMERPACKAGE" title="Additional Oldtimer Package" image="IngameData/brand.png"/>
</brands>
<inputBindings>
<input name="BEL3LEFT" key1="KEY_KP_1" button=""/>
<input name="BEL3WARN" key1="KEY_KP_2" button=""/>
<input name="BEL3RIGHT" key1="KEY_KP_3" button=""/>
<input name="Kurbel" key1="KEY_KP_5" button=""/>
<input name="AllgaierA22Klappe" key1="KEY_KP_4" button=""/>
</inputBindings>
<l10n>
<text name="input_Kurbel">
<en>Kurbel einblenden</en>
<de>Kurbel einblenden</de>
</text>
<text name="input_BEL3LEFT">
<de>Blinker links</de>
<en>left turnlights</en>
</text>
<text name="input_BEL3RIGHT">
<de>Blinker rechts</de>
<en>right turnlights</en>
</text>
<text name="input_BEL3WARN">
<de>Warnblinker</de>
<en>hazard lights</en>
</text>
<text name="input_AllgaierA22Klappe">
<en>Front Klappe</en>
<de>Front Klappe</de>
</text>
</l10n>
</modDesc>

Allgaier A22 XML:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<vehicle type="AllgaierA22_Conv">
<annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>
<filename>AllgaierA22.i3d</filename>
<size width="1.8" length="2.5"/>
<wheels autoRotateBackSpeed="2.5">
<wheel rotSpeed="40" repr="0" deltaY="0.15" rotMin="-30" rotMax="30" driveNode="0|0" radius="0.36" suspTravel="0.2" spring="45" damper="20" mass="0.296"/>
<wheel rotSpeed="40" repr="1" deltaY="0.15" rotMin="-30" rotMax="30" driveNode="1|0" radius="0.36" suspTravel="0.2" spring="45" damper="20" mass="0.296"/>
<wheel rotSpeed="0" repr="2" deltaY="0.13" radius="0.53" suspTravel="0.15" spring="45" damper="20" mass="0.4"/>
<wheel rotSpeed="0" repr="3" deltaY="0.13" radius="0.53" suspTravel="0.15" spring="45" damper="20" mass="0.4"/>
</wheels>
<motor minRpm="100" maxRpm="625 1000 2000 1032" maxTorques="-1 -1 -1 -1" brakeForce="8.5" lowBrakeForceScale="0.35" lowBrakeForceSpeedLimit="1" compensateWheelRadius="true" accelerations="1 1 1 1" forwardGearRatio="34" backwardGearRatio="17" differentialRatio="1" rpmFadeOutRange="20">
<torque rpm="2000" torque="0.48"/>
<backwardTorque rpm="100" torque="1.3"/>
<backwardTorque rpm="500" torque="1"/>
<backwardTorque rpm="600" torque="0"/>
</motor>
<accelerationSpeed maxAcceleration="0.25" deceleration="0.6" backwardDeceleration="0.7"/>
<fuelCapacity>50</fuelCapacity>
<fuelUsage>0.0005</fuelUsage>
<bunkerSiloCompacter compactingScale="0.5"/>
<Schwungrad index="0>4|3|0" speedFactor="1"/>
<cameras count="2">
<camera1 index="9|1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0"/>
<camera2 index="9|0|0" rotatable="true" rotateNode="9|0" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="4" transMax="35">
<raycastNode index="0>8|2"/>
<raycastNode index="0>8|3"/>
</camera2>
</cameras>
<lights>
<!--to be adjusted manually-->
<low>
<light realLight="0>10|0" lightTypes="0"/>
</low>
<!--to be adjusted manually-->
<high>
<light realLight="0>10|0" lightTypes="0"/>
</high>
<!--to be adjusted manually-->
<states>0 1 2</states>
</lights>
<lightsaddon lightsStayOn="true" strobesAreBeacons="true">
<light type="work" index="0>4|3|0|0|0" inputName="Kurbel" helptext="Kurbel" stayOn="true"/>
<light type="dirLeft" index="0>10|1"/>
<light type="dirRight" index="0>10|2"/>
<flashers soundfile="SoundData/blinktick.wav" lowPitch="0.6" highPitch="0.8" volume="0.6" autoreturn="true" tolerance="0.9"/>
<toggleSound pitch="0.5"/>
</lightsaddon>
<exitPoint index="0>8|1"/>
<steering index="0>4|1|2|0|0|0" rotationSpeed="7.5"/>
<enterReferenceNode index="0>"/>
<trailerAttacherJoints>
<trailerAttacherJoint index="0>8|5" maxRotLimit="10 80 80" ptoOutputNode="0>8|6" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d"/>
<trailerAttacherJoint index="0>8|0" low="true" ptoOutputNode="0>8|6" ptoFilename="$data/vehicles/steerable/powerTakeoff.i3d"/>
<trailerAttacherJoint index="0>8|7" maxRotLimit="20 85 85"/>
</trailerAttacherJoints>
<animParts>
<animPart index="0>4|0|3" id="AllgaierA22Klappe" showHelp="true" rotMin="0 0 0" rotMax="0 -125 0" moveTime="0.75"/>
</animParts>
<attachSound file="$data/vehicles/steerable/deutz/attach.wav" pitchOffset="1"/>
<motorStartSound file="SoundData/start.wav" pitchOffset="1" volume="1.4"/>
<motorSound file="SoundData/idle.wav" pitchOffset="1" pitchScale="0.015" pitchMax="2" volume="1.4"/>
<motorStopSound file="SoundData/stop.wav" pitchOffset="1"/>
<compressedAirSound file="$data/vehicles/steerable/kramer/kramerKL200_brake.wav" pitchOffset="1" volume="0.85"/>
<honkSound file="$dataS2/sounds/horn.wav" volume="1" innerRadius="35" radius="80"/>
<exhaustParticleSystems count="1">
<exhaustParticleSystem1 node="0>8|4" position="0 0 0" rotation="0 0 0" file="IngameData/realParticles.i3d"/>
</exhaustParticleSystems>
<realExhaustParticleSystem hasSecondPS="true" parameter="exhaustingSystem" minAlpha="0.1" maxAlpha="1">
<SecondParticleSystem node="0>8|4" position="0 0 0" rotation="0 0 0" file="IngameData/newRealParticles.i3d"/>
</realExhaustParticleSystem>
<characterNode index="0>6" cameraMinDistance="1.5" filename="$dataS2/character/player/player.xml" spineRotation=""/>
<ai>
<trafficCollisionTrigger index="0>7|0"/>
</ai>
<movingParts>
<movingPart index="0>1|1" referencePoint="0>0|3" referenceFrame="0>" scaleZ="true" isActiveDirty="true" playSound="false"/>
<movingPart index="0>5|0" referencePoint="0>1|5" referenceFrame="0>" scaleZ="true" isActiveDirty="true" playSound="false"/>
</movingParts>
<steeringAnimationNodes>
<animationNode index="0>5" wheelIndex="0" minXRot="25" maxXRot="-25"/>
</steeringAnimationNodes>
<components count="1">
<component1 centerOfMass="0 0 0.2" solverIterationCount="10"/>
</components>
<schemaOverlay file="$data/vehicles/schemas/vehicleSchema.png" fileSelected="$data/vehicles/schemas/vehicleSchemaSelected.png" width="0.5" height="0.5" attacherJointPosition="0.5 0"/>
<storeData>
<name>
<en>Allgaier A 22</en>
<de>Allgaier A 22</de>
</name>
<functions/>
<specs/>
<image>IngameData/store.png</image>
<price>7700</price>
<dailyUpkeep>3</dailyUpkeep>
<lifetime>600</lifetime>
<rotation>0</rotation>
<brand>ADDITIONALOLDTIMERPACKAGE</brand>
<category/>
</storeData>
</vehicle>