Lineaxe Posted December 10, 2021 Posted December 10, 2021 (edited) Hi , I am really stuck when I get this particular error message from the dcs.log . I don't know what line in my code has caused it and I have quite a few scheduled functions going on . So how can I find out which one of them is causing the attempt to index field '?' (a nil value) error? Out of those messages How can I use the stack traceback to show me which line Or where Or when Or what Or why (or even who? , although I suspect that might be me ) . Help ? 2021-12-10 17:29:40.930 INFO SCRIPTING: Error in SCHEDULER function:[string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00004FCC.lua"]:66209: attempt to index field '?' (a nil value) 2021-12-10 17:29:40.930 INFO SCRIPTING: stack traceback: [string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00004FCC.lua"]:9725: in function <[string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00004FCC.lua"]:9721> [string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00004FCC.lua"]:66209: in function <[string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00004FCC.lua"]:66177> (tail call): ? [C]: in function 'xpcall' [string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00004FCC.lua"]:10078: in function 'onEvent' [string "Scripts/World/EventHandlers.lua"]:13: in function <[string "Scripts/World/EventHandlers.lua"]:11> Edited December 10, 2021 by Lineaxe
Flappie Posted December 10, 2021 Posted December 10, 2021 Hi. Try this: Go here: "C:\Users\username\AppData\Local\Temp\DCS.openbeta\". Remove the content of the folder. Run DCS and retry your mission. This might not be enough. If you're still stuck, please attach the whole dcs.log file. On holiday
Solution Lineaxe Posted December 10, 2021 Author Solution Posted December 10, 2021 (edited) Heh, I think I have written some code that is causing this problem. Now I have over 3500 lines of code and several Schedules, functions and tons of Variables sprinkled liberally about in the code , most of them behaving nice enough update: Amazing it cleared those weird messages right up ! err it says its my solution , but it's not !! ... Edited December 10, 2021 by Lineaxe
Recommended Posts