after the updated at patch 1.4.1 and the update at 1.4 some script have the error can you see in the attached log.
Why??
I didn't think that is the script because almost all scripts give the exact same error.
Can I resolve it??
The error is this, for ALL script:
Code: Select all
2022-04-28 22:00 Error: Invalid self object given for SpecializationManager.addSpecialization. Usage: 'g_specializationManager:addSpecialization(name, className, filename, customEnvironment)'
2022-04-28 22:00 LUA call stack:
dataS/scripts/mods.lua (391) : printCallstack
=E:/Utente-Ottavio/Documents/My Games/FarmingSimulator2022/mods/FS22_airHoseConnectSound/airHoseConnectSoundRegister.lua (12) : 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
2022-04-28 22:00 Error: Invalid customEnvironment given for SpecializationManager.addSpecialization. Should be a string or nil.
2022-04-28 22:00 LUA call stack:
dataS/scripts/mods.lua (396) : printCallstack
=E:/Utente-Ottavio/Documents/My Games/FarmingSimulator2022/mods/FS22_airHoseConnectSound/airHoseConnectSoundRegister.lua (12) : 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