JanCraymer / FS22_HeadtrackingCameraSuspension

Headtracking Camera Fix for Farming Simulator 22
https://www.twitch.tv/cptcray
21 stars 2 forks source link

LUA error with patch 1.4.1 #2

Closed mrPassion78 closed 2 years ago

mrPassion78 commented 2 years ago

nearly all the script mods have the same LUA error with the patch.. would it be possible to update this awesome mod to? here is the lua error from the log:

2022-04-23 10:45 Load mod: FS22_HeadtrackingCameraSuspension 2022-04-23 10:45 Error: Invalid customEnvironment given for SpecializationManager.addSpecialization. Should be a string or nil. 2022-04-23 10:45 LUA call stack: dataS/scripts/mods.lua (396) : printCallstack =C:/Users/pasca/Documents/My Games/FarmingSimulator2022/mods/GAMEPLAY FS22/FS22_HeadtrackingCameraSuspension/HeadtrackingCameraSuspensionRegister.lua (2) : addSpecialization =[C] (4294967295) dataS/scripts/mods.lua (347) : source dataS/scripts/mods.lua (839) : source dataS/scripts/xml/XMLFile.lua (296) : closure dataS/scripts/mods.lua (836) : iterate dataS/scripts/gui/MPLoadingScreen.lua (754) : loadMod dataS/scripts/misc/AsyncTaskManager.lua (41) : lambda dataS/scripts/misc/AsyncTaskManager.lua (120) : runLambda dataS/scripts/misc/AsyncTaskManager.lua (146) : runTopTask dataS/scripts/main.lua (1152) : update

JanCraymer commented 2 years ago

Yes, I will fix this when I get a bit of time. The hotfix 1.4.1 made scripts, that throw this error, work again. So for now this is just a cosmetic error.

It might make sense to rewrite this script to not be a specialization at all. I have to think about that.

JanCraymer commented 2 years ago

Should be fixed with the latest release.