johnv2pt0 Posted August 20, 2014 Posted August 20, 2014 I'm having a hard time getting this to work. I've tried running this via do script on a trigger and also tried adding it to the advanced waypoint properties of the unit itself on it's last waypoint. What am I doing wrong? I get an "error in error handling" message.
Grimes Posted August 20, 2014 Posted August 20, 2014 You have a syntax error which is causing that error message. Make sure all of the unput values are the right type. http://wiki.hoggit.us/view/GroundPatrol The error in error handling message is actually the result of slmod. Remove the '--' from slmodmissionScripting.lua located in your saved games/DCS/Scripts/net/Slmod folder that are in front of sanitizeModule('debug') . Once you do that error messages will display correctly again. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
johnv2pt0 Posted August 20, 2014 Author Posted August 20, 2014 Remove the '--' from slmodmissionScripting.lua located in your saved games/DCS/Scripts/net/Slmod folder that are in front of sanitizeModule('debug') . Once you do that error messages will display correctly again. I actually didn't have that part commented out. Any other ideas on how to get the error messages working?
Grimes Posted August 20, 2014 Posted August 20, 2014 That is very odd. I'm not sure how else that would occur. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
ajax Posted August 20, 2014 Posted August 20, 2014 I've seen that error message when there is a syntax error in the text of a 'Do Script' entry. The same text run from 'Do Script File' will generate a 'syntax error' message. Don't know why that is, though.
Flagrum Posted August 20, 2014 Posted August 20, 2014 I'm having a hard time getting this to work. I've tried running this via do script on a trigger and also tried adding it to the advanced waypoint properties of the unit itself on it's last waypoint. What am I doing wrong? I get an "error in error handling" message. Post your dcs.log and me.log files - that could help to narrow it down.
johnv2pt0 Posted August 20, 2014 Author Posted August 20, 2014 Ok, so based on Grime's advice it was a syntax error, I went back and found it eventually. Boom, mist.ground.patrol works brilliantly. But, a bigger problem is that I only ever get this "error in error handling" message. I really hate asking for help when it's something that I should get a clue on and figure out myself. Also, maybe you guys could help me out on this runway bombing script. It was Speed's? originally from the flanker mission, but changed to suit my needs. Works fine on another mission, but doesn't on this one. SlmodMissionScripting.lua and RunwayBombing.lua attached. Any help is appreciated...like I said, I think getting the debug to work will solve most of my problems.Sukhumi Strike.mizRunwayScoring.luaSlmodMissionScripting.luadcs.log.txtme.log.txt
Grimes Posted August 20, 2014 Posted August 20, 2014 As my grandpa used to say, "I was up-de-mix". The comment out NEEDs to be in front of sanitizeModule('debug'), so it doesn't run that code! Yeah that was my fault, I was looking at one of my local copies of slmod and just got it backwards. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
johnv2pt0 Posted August 21, 2014 Author Posted August 21, 2014 As my grandpa used to say, "I was up-de-mix". The comment out NEEDs to be in front of sanitizeModule('debug'), so it doesn't run that code! Yeah that was my fault, I was looking at one of my local copies of slmod and just got it backwards. Roger! So, this runway hit scoring script seems to be telling me that "LuaClass" doesn't exist anymore. Did the coding for MIST change so that this won't work anymore or is there some other extremely obvious thing I'm missing lol? The script is from Speed and worked before. Taken from here: http://forums.eagle.ru/showpost.php?p=1713860&postcount=7
Grimes Posted August 21, 2014 Posted August 21, 2014 I'll have a look at it to see if I can get it working again. It was written before weapons were an object within the scripting engine, so it might be easier to adapt it to current features. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
johnv2pt0 Posted August 22, 2014 Author Posted August 22, 2014 See here for new code: http://forums.eagle.ru/showthread.php?p=2154477#post2154477 Thanks again Grimes
Recommended Posts