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
Hello
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

mähwerk.i3d

thanks

Juli963

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"
specializations
vehicleTypes
type name="Krone"className="Vehicle" filename="$dataS/scripts/vehicles/Vehicle.lua"
specialization name="mower"
specialization name="Krone"
specialization name="trailer"
type
vehicleTypes

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

i think the rest arent so importent

thanks

juli963

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

mfg
outi

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
Hi,

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

e.g. this mod should be using custom scripts
http://farming-simulator.com/mod.php?lang=de&mod_id=20356&title=fs2015

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

Thanks!


Cheers,
Emil


Ismael Artacho Angel (Unknown) 01.07.2015 22:04
Hello,

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.

Greetings.

Emil Drefers (Unknown) 02.07.2015 07:23
Hi,

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 ;)

Cheers,
Emil

Ismael Artacho Angel (Unknown) 02.07.2015 10:35
modDesc.xml -> http://pastebin.com/4vfVUEba

magnum_AW520.xml -> http://pastebin.com/vqT6PGwq

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?¿

greetings.

Emil Drefers (Unknown) 02.07.2015 14:05
Hi,

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">


Cheers,
Emil

Ismael Artacho Angel (Unknown) 02.07.2015 19:47
this is log.txt http://pastebin.com/Ec85i4eM

"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.

Greetings.

Emil Drefers (Unknown) 03.07.2015 08:15
Hi,

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 ;)


Cheers,
Emil

Ismael Artacho Angel (Unknown) 03.07.2015 10:27
modDesc.xml -> http://pastebin.com/kJ2nx4Be

magnum_AW520.xml -> http://pastebin.com/7WJmQakp

other of this pack... renault_integral390.xml -> http://pastebin.com/GSq1iXPU

Greetings.

Emil Drefers (Unknown) 03.07.2015 12:01
Hi,

ah, now I found the error , - )

It should be
<vehicleTypes>

and not:
<vehiclesTypes>


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


Cheers,
Emil



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.