Lineaxe Posted June 3, 2020 Posted June 3, 2020 Hi , My new mission works great except I am getting these messages. Sometimes quite a few of them . I think they are coming from the RAT but I have also spawned some Tank units for both sides . Not many , 12 or 14 each side . created inside a while ... do ... end loop. Should be no problem with the code I would think. But if others are using moose's RAT can you tell me what I can do to stop the messages from popping up? 2020-06-03 17:02:04.923 INFO SCRIPTING: 41045( 62908)/E: AIRBASE00915.FindFreeParkingSpotForAircraft(Sir Abu Nuayr: Looking for 1 parking spot(s) for aircraft of size 19.5 m (x=19.5,y=4.7,z=5.2) at termial type 216.) 2020-06-03 17:02:04.923 INFO SCRIPTING: Error in timer function: [string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis0000613E.lua"]:19722: Unit doesn't exist 2020-06-03 17:02:04.923 INFO SCRIPTING: stack traceback: [string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis0000613E.lua"]:6076: in function <[string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis0000613E.lua"]:6073> [C]: in function 'getName' [string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis0000613E.lua"]:19722: in function 'ScanObjects' [string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis0000613E.lua"]:41080: in function 'FindFreeParkingSpotForAircraft' [string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis0000613E.lua"]:62908: in function '_ModifySpawnTemplate' [string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis0000613E.lua"]:59821: in function '_SpawnWithRoute' [string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis0000613E.lua"]:60137: in function <[string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis0000613E.lua"]:60136> (tail call): ? [C]: in function 'xpcall' [string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis0000613E.lua"]:6129: in function <[string "C:\Users\jimru\AppData\Local\Temp\DCS.openbeta\/~mis0000613E.lua"]:6065>
rmk80 Posted June 10, 2020 Posted June 10, 2020 Hi, I observed the same error in a mission I’m building myself. I submitted an issue here: https://github.com/FlightControl-Master/MOOSE/issues/1334 I made a quick fix in the MOOSE.lua file, by adding a ~=nil check before line 19722 gets executed. That is throwing an error if it can’t get the unit’s name.
Recommended Posts