Community Forum

LUA Error

Forum Overview >> Farming Simulator 19

CategoryFarming Simulator 19
Created07.07.2019 13:48


Alex Cosmin (Alex35BzH) 07.07.2019 13:48
Hello everyone!

I need some help for a mod conversion, i have that error:

Error: Running LUA method 'mouseEvent'. With that one i can't open the tool in shop.
And i have than one too, 'vehicle.filename' is not supported anymore, use 'vehicle.base.filename and i dn't really know how to fix it

There's the log error

2019-07-06 11:54 LUA call stack:
2019-07-06 11:54 dataS/scripts/utils/Utils.lua (356) : printCallstack
2019-07-06 11:54 dataS/scripts/i3d/I3DManager.lua (44) : getFilename
2019-07-06 11:54 dataS/scripts/vehicles/Vehicle.lua (333) : loadSharedI3DFile
2019-07-06 11:54 dataS/scripts/gui/ShopConfigScreen.lua (837) : load
2019-07-06 11:54 dataS/scripts/gui/ShopConfigScreen.lua (620) : loadCurrentConfiguration
2019-07-06 11:54 dataS/scripts/gui/ShopConfigScreen.lua (974) : updateData
2019-07-06 11:54 dataS/scripts/gui/ShopConfigScreen.lua (1056) : updateDisplay
2019-07-06 11:54 dataS/scripts/gui/ShopMenu.lua (483) : setStoreItem
2019-07-06 11:54 dataS/scripts/gui/ShopController.lua (193) : callback
2019-07-06 11:54 dataS/scripts/gui/ShopController.lua (624) : switchToConfigurationCallback
2019-07-06 11:54 dataS/scripts/gui/ShopController.lua (601) : buyVehicle
2019-07-06 11:54 dataS/scripts/gui/ShopMenu.lua (688) : buy
2019-07-06 11:54 dataS/scripts/gui/ShopItemsFrame.lua (425) : notifyActivatedDisplayItemCallback
2019-07-06 11:54 dataS/scripts/gui/elements/ListElement.lua (556) : raiseCallback
2019-07-06 11:54 dataS/scripts/gui/elements/ListElement.lua (537) : notifyDoubleClick
2019-07-06 11:54 dataS/scripts/gui/elements/ListElement.lua (651) : onMouseUp
2019-07-06 11:54 dataS/scripts/gui/elements/GuiElement.lua (616) : mouseEvent
2019-07-06 11:54 dataS/scripts/gui/elements/GuiElement.lua (616) : mouseEvent
2019-07-06 11:54 dataS/scripts/gui/elements/GuiElement.lua (616) : mouseEvent
2019-07-06 11:54 dataS/scripts/gui/elements/GuiElement.lua (616) : mouseEvent
2019-07-06 11:54 dataS/scripts/gui/elements/GuiElement.lua (616) : mouseEvent
2019-07-06 11:54 dataS/scripts/gui/elements/GuiElement.lua (616) : mouseEvent
2019-07-06 11:54 dataS/scripts/gui/base/Gui.lua (561) : mouseEvent
2019-07-06 11:54 dataS/scripts/main.lua (1742) : mouseEvent
2019-07-06 11:54 Error: Running LUA method 'mouseEvent'.
2019-07-06 11:54 dataS/scripts/i3d/I3DManager.lua(55) : table index is nil
2019-07-06 11:54 Warning (C:/Users/coco/Documents/My Games/FarmingSimulator2019/mods/FS19_PoettingerX8/PoettingerX8.xml): 'vehicle.filename' is not supported anymore, use 'vehicle.base.filename' instead

Thank's for help!

Bilbo Beutlin (BBeutlin) 07.07.2019 14:48
Assuming the vehicle uses a custom LUA script for specialization (or other), you need to re-write the script and adapt to FS19. That's not trivial and you'll need enhanced knowledge and experience in FS scripting.

Alex Cosmin (Alex35BzH) 07.07.2019 16:15
And i can't delete that script?

Bilbo Beutlin (BBeutlin) 07.07.2019 20:03
Yes - you can. However not by deleting simply the .lua file.
You must look where this is referenced in the modDesc.xml and take out the respective tags, maybe changing the vehicle type in xml.
If you're lucky, the vehicle will have restricted features only, if not it won't work at all.

Alex Cosmin (Alex35BzH) 08.07.2019 12:02
Ok i will check that, thank's a lot @BBeutlin


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