GtX - Silo Displays, lua error

anthu
Posts: 4972
Joined: Thu Nov 06, 2014 8:03 am

GtX - Silo Displays, lua error

Post by anthu »

Hello GtX
in your Silo Display mod,
https://www.farming-simulator.com/mod.p ... tle=fs2019
i have sometimes lua errors after saving and abort the game.

Code: Select all

2020-01-30 13:01 Game saved successfully.
2020-01-30 13:01 Warning (script): Unknown entity id 142245 in method 'calcDistanceFrom'.
2020-01-30 13:01 Error: Running LUA method 'mouseEvent'.
2020-01-30 13:01 C:/Users/anthu/Documents/My Games/FarmingSimulator2019/mods/FS19_SiloDisplays/scripts/SiloDisplay.lua:815: attempt to compare nil with number
2020-01-30 13:01 Error: Running LUA method 'update'.
2020-01-30 13:01 dataS/scripts/AchievementManager.lua(257) : attempt to index local 'farm' (a nil value)
2020-01-30 13:01 Error: Running LUA method 'update'.
2020-01-30 13:01 dataS/scripts/AchievementManager.lua(257) : attempt to index local 'farm' (a nil value)
2020-01-30 13:01 Error: Running LUA method 'update'.
2020-01-30 13:01 dataS/scripts/AchievementManager.lua(257) : attempt to index local 'farm' (a nil value)
2020-01-30 13:01 Error: Running LUA method 'update'.
2020-01-30 13:01 dataS/scripts/AchievementManager.lua(257) : attempt to index local 'farm' (a nil value)
2020-01-30 13:01 Error: Running LUA method 'update'.
2020-01-30 13:01 dataS/scripts/AchievementManager.lua(257) : attempt to index local 'farm' (a nil value)
2020-01-30 13:01 Error: Running LUA method 'update'.
2020-01-30 13:01 dataS/scripts/AchievementManager.lua(257) : attempt to index local 'farm' (a nil value)
2020-01-30 13:01 Error: Running LUA method 'update'.
...
...
...
it is not always, sometimes it abort savegames normal, sometimes the error apperas
i think 1 from 4 times im must abort FS19 in the taskmanager
i have placed 5 silodisplays (10 lines) ingame.
lg
andreas
User avatar
GtX
Posts: 89
Joined: Sat Oct 14, 2017 11:17 am

Re: GtX - Silo Displays, lua error

Post by GtX »

Hi andreas, :hi:

Thanks for reporting this. 2 other people also reported the error when exiting their game.

I personally have not been able to replicate the error when not using mods but a tester of mine did have the issue also and the issue should now be fixed as I made some changes to the code and his problems are solved.

The update has been submitted to Giants already for a few days so it should not be very long until release. *thumbsup*

Thanks again for your report and also to others that have reported this to me by other means.
GtX :this:

YouTube

GitHub

FS17 Mod Link

FS19 Mod Link

FS22 Mod Link

"A good friend is the friend who can make you laugh."
"What you do today is important because you are exchanging a day of your life for it"
anthu
Posts: 4972
Joined: Thu Nov 06, 2014 8:03 am

Re: GtX - Silo Displays, lua error

Post by anthu »

*thumbsup*
Thanks for the info.
Lg
Andress
Post Reply