|Category||Farming Simulator 15|
|Martin Fabik (Hungar)||28.05.2015 22:16|
I have problem with workArea specialization. I need this spec. for liquid manure spreader but if I add my script I got this error:
Error: Running LUA method 'loadSharedI3DFileFinished'.
D:/code/lsim2015/build/finalbin/dataS/scripts/vehicles/specializations/WorkArea.lua(44) : WorkArea needs to be the first specialization which implements loadWorkAreaFromXML
Specializations in this mod is:
If you want definition of showFillLevel you can check this:
I can't see any relations between showFillLevel and workArea. This combination perfect works in my other mod without any errors.
|Emil Drefers (giants.edrefers)||29.05.2015 08:23|
what is the difference between this mod and the mod in which your script (showFillLevel) causes no problems?
|Martin Fabik (Hungar)||29.05.2015 14:34|
diference is only one: Mod where script causes no problem is fertilizer spreader and this mod is liquid manure spreader.
Maybe definition of function that print this error may help.
|Emil Drefers (giants.edrefers)||29.05.2015 15:58|
a "liquid manure spreader" would use the "ManureBarrel" specialization.
Anyway, the definition of the function which prints the error message does not help in this case, because it does exactly what it says.
It checks if the definition of the function "loadWorkAreaFromXML" is done by the WorkArea.lua first.
If not the error appears.
Somehow I do doubt that it has something to do with the script which you have posted.
Please try again if the error is really caused by this script.
Double check the order of your specializations, that is very important.
You can alos try to use a default vehicleType (manureBarrel, like in zunhammer18500PE for example) instead of your custom one to find out where the error is located.
By the way ... the naming convention suggests that a class starts with an upper case ;)
Note: Log in to post. Create a new account here.