Page 1 of 1

LUA method "mouse event" error

Posted: Wed Dec 07, 2022 9:48 pm
by beertje123
Hey, I've been experiencing problems with the "time saving stock check" mod, it the game it doesn't show anything. I can't see my stored goods I can't see any prices, I can only see the tab in the menu. On a new game the mod does work with all of the same mods installed, so I think there's something wrong with my saved game.
I saw this error in the log file, I think this is the problem but I don't know how to solve it.
2022-12-07 21:14 Error: Running LUA method 'mouseEvent'.
C:/Users/beren/Documents/My Games/FarmingSimulator2022/mods/FS22_TSStockCheck/gui/InGameMenuTSStockCheck.lua:1: attempt to index a nil value
2022-12-07 21:14 Error: Running LUA method 'update'.
C:/Users/beren/Documents/My Games/FarmingSimulator2022/mods/FS22_TSStockCheck/gui/InGameMenuTSStockCheck.lua:1: attempt to index a nil value
I'm including my entire log file as well.
Thanks in advance!

Edit don_apple: topic moved from "Technical Support" to "Modhub Bug Reports, since it is about an issue with a mod from the Modhub.

Re: LUA method "mouse event" error

Posted: Mon Dec 19, 2022 7:17 am
by Ethos
Posting to reply that I have the same error.

2022-12-18 20:08 Error: Running LUA method 'mouseEvent'.
C:/Users/Ethos/Documents/My Games/FarmingSimulator2022/mods/FS22_TSStockCheck/gui/InGameMenuTSStockCheck.lua:1: attempt to index a nil value
2022-12-18 20:08 Error: Running LUA method 'update'.
C:/Users/Ethos/Documents/My Games/FarmingSimulator2022/mods/FS22_TSStockCheck/gui/InGameMenuTSStockCheck.lua:1: attempt to index a nil value

Re: LUA method "mouse event" error

Posted: Mon Dec 19, 2022 11:17 am
by don_apple
According to the error messages in both cases they are caused by the FS22_TSStockCheck mod.

Therefore please disable this mod which should make the errors disappear.

If you still want to use the mod you should try to contact the author of the mod and make them aware of this issue, so the they can fix it in a new version of the mod.

Re: LUA method "mouse event" error

Posted: Wed Dec 21, 2022 9:11 am
by Ethos
I wouldn't know how to contact the mod author, but I did go through disabling and enabling mods & DLC's, and I discovered that the error goes away when disabling Pumps n' Hoses. I cannot say to what the root cause may be, but perhaps the mod author will see this message, and it may be of use to them.

Edit : As a final note, and I cannot for certain say that this is relevant, I had a hose pallet awaiting me at the store. When I finally retrieved it and spooled it on a carrier, the problem went away.

Re: LUA method "mouse event" error

Posted: Fri Dec 23, 2022 4:38 am
by Steel_Horse
I have posted the link to this thread to the TSS mod authors discord.

Re: LUA method "mouse event" error

Posted: Fri Dec 23, 2022 9:22 am
by TWProductions
Hi All,

I am the author of the Time Saving Stock Check. Thanks for the information above. I will take a look into what might be causing the issues.

I do know of one issue with the mod when using Object Storage on a Dedicated Server but will look into Pumps and Hoses DLC and the hose pallet.

Does the error stop the game loading or just when you are displaying the Stock Check screen?

I do have a discord channel available here https://discord.gg/zNTR742eEX.

Thanks for your patience while I look into the problems.

Regards.

TWProductions

Re: LUA method "mouse event" error

Posted: Sat Dec 24, 2022 12:19 am
by Steel_Horse
One observation, I think this error is a different and potentially occasional mod conflict between an unknown mod and the 1.8 patch. I use TSS on all my saves but have been starting to see this mouse event LUA error on only a couple. I havent been able to isolate the mod causing it. In my setup the issue doesnt affect gameplay, just causes the game to hang when I save and exit, This has been occuring on my Griffin save since the patch and yesterday started occurring on a different map and save that has previously been fine. Quite strange. I dont have pumps and hoses, but do have the Platinum DLC.

I am starting to look more closely at the quality of life mods I use that havent had an update for a while and which change/update in-game menus as I suspect Giants tweaked something in the patch that is not well understood.

Re: LUA method "mouse event" error

Posted: Sat Dec 24, 2022 3:08 pm
by TWProductions
There was indeed an issue with the Hose pallet from Pumps And Hoses which only stopped the Stock Check screen from displaying any items. I have fixed the issue and will be submitting a update with Giants in the New Year. If you want the fix sooner then please head over to the discord channel mentioned above and I will provide the update.

Re: LUA method "mouse event" error

Posted: Tue Jan 03, 2023 7:51 pm
by Ethos
I apologize for not replying sooner, and you all are awesome!

Thanks for your hard work, your mod is awesome.

Re: LUA method "mouse event" error

Posted: Sun Jan 08, 2023 11:41 am
by plsolar
Hi.
I have this error too, currently only on one save (Haut Beyleron). I have a lot of mods but I was able to isolate the one causing the error. In my case it is: Additional game settings. Maybe this will help someone.

Re: LUA method "mouse event" error

Posted: Thu Jan 12, 2023 8:59 pm
by Dim67
plsolar wrote: Sun Jan 08, 2023 11:41 am Hi.
I have this error too, currently only on one save (Haut Beyleron). I have a lot of mods but I was able to isolate the one causing the error. In my case it is: Additional game settings. Maybe this will help someone.
Same here. This mod causes some very weird behavior. My save ran fine for a long time, like weeks, then yesterday the game crashed on exit with the mouse event hud lua error. Reloaded my save with only this mod enabled and sure enough it crashed again. Game runs fine now with all my mods enabled except this one. So Rockstar needs to fix his mod.

Re: LUA method "mouse event" error

Posted: Wed Apr 24, 2024 1:02 pm
by Gabi ctl
Hello, I also have this error and I can't figure out how to fix it or if it doesn't appear anymore, it's something from the game or from the mods and I really don't know how to fix it because it's not from either part or from other