Community Forum

WorkArea.lua - specialization problem

Forum Overview >> Farming Simulator 15

CategoryFarming Simulator 15
Created28.05.2015 22:04


Martin Fabik (Unknown) 28.05.2015 22:16
Hi,

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:
-- workArea
-- attachable
-- animatedVehicle
-- cylindered
-- fillable
-- turnOnVehicle
-- powerConsumer
-- sprayer
-- washable
-- mountable
-- showFillLevel

If you want definition of showFillLevel you can check this:
http://farm-share.clan.sk/script/showFillLevel.txt

I can't see any relations between showFillLevel and workArea. This combination perfect works in my other mod without any errors.

Regards,
Martin Fabík

Emil Drefers (Unknown) 29.05.2015 08:23
Hi,

hmmmmm, weird.

what is the difference between this mod and the mod in which your script (showFillLevel) causes no problems?

Cheers,
Emil





Martin Fabik (Unknown) 29.05.2015 14:34
Hi,

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.

Regards,
Martin Fabík

Emil Drefers (Unknown) 29.05.2015 15:58
Hi,

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

Cheers,
Emil



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