Community Forum

Error loadVehicle: unknown type

Forum Overview >> Farming Simulator 2009

CategoryFarming Simulator 2009
Created21.06.2009 01:44

Julian Schlüter (Unknown) 21.06.2009 01:48
I've got a problem i'm creating a mod with a script but when i will buy it in the shop then comes the log.txt message Error loadVehicle: unknown type 'Easy_Cut_400.Krone' in 'C:/Dokumente und Einstellungen/Julian/Eigene Dateien/My Games/FarmingSimulator2009/mods/Easy_Cut_400/Krone.xml'

my modDesc with specializations shows so

and my xml so:

Copyright (C) GIANTS Software GmbH, All Rights Reserved.

Krone Easy Cut 400
Krone Easy Cut 400

Krone Easy Cut 400
Krone Easy Cut 400




sory for my baaaaaaaaad english

Julian Schlüter (Unknown) 21.06.2009 01:53
sry I had forgot that it was a xml script and it "verschwindet" as html in the forum specializations
specialization name="Krone" className="Krone" filename="Unit1.lua"
type name="Krone"className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua"
specialization name="mower"
specialization name="Krone"
specialization name="trailer"

vehicle type="Krone"
annotation Copyright (C) GIANTS Software GmbH, All Rights Reserved. annotation
en Krone Easy Cut 400 en
de Krone Easy Cut 400 de
description description
en Krone Easy Cut 400 en
de Krone Easy Cut 400 de

i think the rest arent so importent



sorry for my baaaaad english

Felix Sorge (Unknown) 21.06.2009 12:17
Hi Julian,

Name the lua exactly the same as the directory:

unknown type 'Easy_Cut_400.Krone'

Easy_Cut_400 is your directory name
and Krone your lua, name both exactly the same and then it should work


Julian Schlüter (Unknown) 21.06.2009 15:23
thanks outi

Julian Schlüter (Unknown) 21.06.2009 15:47
hello now i had written the files Krone.xml Krone.lua Krone.i3d and the folder Krone but now the problem is not 'Easy_Cut_400.Krone' the problem is 'Krone.Krone'

Stefan Geiger - GIANTS Software 22.06.2009 11:43
The names of your files do not matter. The only limit is, that you may not have any umlauts, special characters nor spaces in the name of the folder of the mod.
However Easy_Cut_400 is just fine, thats not the cause of your problem.

I think that you have an script error in your lua file. Thats why the specialization is not registered nor the vehicle type. Check your log file, the error message should be somewhere around the lines:
register vehicle type ...
register vehicle type ...

Julian Schlüter (Unknown) 23.06.2009 22:25
yes i had teh problem found thanks at sven777b and you

Gustav Neubert (Unknown) 28.06.2009 07:50
my vwhicles aren't at the map

Knut Are Nybo (Unknown) 22.10.2010 19:25
how did u fix the "Error loadVehicle: unknown type"? i been trying to convert a few mods from LS2009 Gold to LS2011 but i end up with this error on 30% of them.

Ismael Artacho Angel (Unknown) 14.04.2015 20:34
I have this mistake with to the add a specialitation, how fix it?

Ismael Artacho Angel (Unknown) 29.06.2015 19:47
the scripts work in other mods, isn't problem the script, the name is correct...

Emil Drefers (Unknown) 30.06.2015 07:53

please feel free to download any of the mods from the ModHub.

e.g. this mod should be using custom scripts

Have a look and try to understand what's going on.
There are more than enough examples out there.



Ismael Artacho Angel (Unknown) 01.07.2015 22:04

I know there are many examples, scripts using mods that work perfectly, but I can not to register the vehicle type.

The script should not cause problems because other mods work. I put the same name with no spaces.

Keep in mind something special for a vehicle type name.


Emil Drefers (Unknown) 02.07.2015 07:23

could please use a service like pastebin to post your files?
Namely the moddesc.xml and the vehicle.xml file - at least the important parts ;)


Ismael Artacho Angel (Unknown) 02.07.2015 10:35
modDesc.xml ->

magnum_AW520.xml ->

This vehicle is included in a pack and this vehicle only use this scripts, the others vehicles use vehicle type "tractor"

the name zip file influences?¿


Emil Drefers (Unknown) 02.07.2015 14:05

let's see ...

Are you sure this is correct:
<specialization name="moveAttacher" className="moveAttacher" filename="audio/moveableAttacher.lua"/>
Placing a script in an audio folder? Seems kind of weird to me ;)

Also this line is kind of incosistent to the normal naming convention
<specialization name="Fenster" className="AnimazioniParti" filename="audio/AnimazioniParti.lua"/>

Could you also post your log.txt ?
Maybe there's an error message before the one mentioned by you.
But so far I don't see any bad mistake ...

Also check every piece of the modDesc.xml again.
e.g.: the descVersion:
<modDesc descVersion="22">


Ismael Artacho Angel (Unknown) 02.07.2015 19:47
this is log.txt

"audio" is a simply name...

Fenster of AnimazioniParti work fine in other mod with this line.

Change descVersion to 22, but not work.

magnum_AW520.xml have the new vehicle type.


Emil Drefers (Unknown) 03.07.2015 08:15

could please update your modDesc.xml (post the complete one) and the beginning of the magnum_AW520.xml, if you changed something.

There must be an error in your mod somewhere ;)


Ismael Artacho Angel (Unknown) 03.07.2015 10:27
modDesc.xml ->

magnum_AW520.xml ->

other of this pack... renault_integral390.xml ->


Emil Drefers (Unknown) 03.07.2015 12:01

ah, now I found the error , - )

It should be

and not:

Also the log should state that a new vehicle type has been registered as soon as everything is correct:
Register vehicle type: Pack_Renault_Integral_v3.Magnum_AW


Ismael Artacho Angel (Unknown) 03.07.2015 20:59
¬¬... sh..... xD

thank you for your attention Emil!!

Regards! :)

Larry Davenport (Unknown) 20.02.2019 05:16

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