Lineaxe Posted April 20, 2022 Posted April 20, 2022 (edited) I want to troubleshoot the error messages in dcs.log coming from the lua code I have written. A lot of the dcs.log messages have given me a line number in my lua code. I can look at the line and I fix the error in the code . These following errors give out lots of information, but none of it points the way to where the errors in my code might be. Now, I want to dig deeper into the dcs.log so I can find out what I did to cause these errors to be added into dcs.log file. So, Here are the two latest errors I am chasing down. I have managed to fix (most of?) the errors which have pointed to a line number in my code & had triggered an error in the log. Where can I find more information on the dcs.log and the meaning of all these numbers and such ? I want to dig deeper into the dcs.log 2022-04-18 20:12:53.143 INFO SCRIPTING: Error in SCHEDULER function:[string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:52476: attempt to call method 'GetVec2' (a nil value) 2022-04-18 20:12:53.143 INFO SCRIPTING: stack traceback: [string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:10081: in function 'GetVec2' [string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:52476: in function <[string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:52472> (tail call): ? [C]: in function 'xpcall' [string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:10429: in function 'onEvent' [string "Scripts/World/EventHandlers.lua"]:13: in function <[string "Scripts/World/EventHandlers.lua"]:11> [C]: in function 'addStaticObject' [string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:32947: in function <[string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:32853> (tail call): ? [string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:44625: in function <[string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:44615> (tail call): ? [C]: in function 'xpcall' [string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:8958: in function <[string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:8895> 2022-04-18 20:12:53.147 INFO SCRIPTING: Error in SCHEDULER function:[string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:52476: attempt to call method 'GetVec2' (a nil value) 2022-04-18 20:12:53.148 INFO SCRIPTING: stack traceback: [string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:10081: in function 'GetVec2' [string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:52476: in function <[string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:52472> (tail call): ? [C]: in function 'xpcall' [string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:10429: in function 'onEvent' [string "Scripts/World/EventHandlers.lua"]:13: in function <[string "Scripts/World/EventHandlers.lua"]:11> [C]: in function 'addStaticObject' [string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:32947: in function <[string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:32853> (tail call): ? [string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:44625: in function <[string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:44615> (tail call): ? [C]: in function 'xpcall' [string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:8958: in function <[string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:8895> 2022-04-18 19:48:58.116 INFO SCRIPTING: Error in timer function: [string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:32430: attempt to perform arithmetic on field 'Time' (a nil value) 2022-04-18 19:48:58.116 INFO SCRIPTING: stack traceback: [string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:8906: in function <[string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:8903> [string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:32430: in function <[string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:32406> (tail call): ? [C]: in function 'xpcall' [string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:8950: in function <[string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:8895> Edited April 20, 2022 by Lineaxe
Flappie Posted April 20, 2022 Posted April 20, 2022 (edited) 2022-04-18 20:12:53.143 INFO SCRIPTING: Error in SCHEDULER function:[string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:52476: attempt to call method 'GetVec2' (a nil value) Go to your mis00002050.lua file, line 52476. You should find a call to 'GetVec2'. DCS tried to call it, to no avail. Now, DCS gets back in time so you can understand where the issue comes from: 2022-04-18 20:12:53.143 INFO SCRIPTING: stack traceback: [string "C:\Users\username\AppData\Local\Temp\DCS.openbeta\/~mis00002050.lua"]:10081: in function 'GetVec2' It says where this 'GetVec2' function comes from: line 10081 of the same .lua file. If you want more help, you should attach your mission. Edited April 20, 2022 by Flappie On holiday
Lineaxe Posted April 21, 2022 Author Posted April 21, 2022 (edited) Hi Flappie!! my mission is pretty big to attach I try to just keep it at one spot. So I just updated the the latest copies of the mission, Chop-U ,at DCS World . There is a daytime & a night time version for it. I do my testing and debugging using the daytime one. https://www.digitalcombatsimulator.com/en/files/3311904/ https://www.digitalcombatsimulator.com/en/files/3311903/ Edited April 21, 2022 by Lineaxe
Lineaxe Posted April 22, 2022 Author Posted April 22, 2022 Where would I find a file called Quote mis00002050.lua file my file is not named that at all , and I would think this filename is created as some kind of file compilation of moose and my files or something else that is created on the fly for a virtual lua interpreter ?
Lineaxe Posted April 22, 2022 Author Posted April 22, 2022 Hmm, I am running the daytime one at the moment and just finished playing through the mission in a few different vehicles. So you can not even download the file from there? I wonder if maybe you need to go directly to the download site inside a separate window and search through the download user files for my name. The files should show up that way. I can't imagine them not properly getting transferred over to DCS World. I checked & I can't attach anything larger than 5 meg here.
Recommended Posts