ENO Posted May 2, 2014 Posted May 2, 2014 00045.803 ERROR DCS: Mission script error: : [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:768: Group doesn't exist stack traceback: [C]: ? [C]: in function 'getName' [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:768: in function 'FindNearestEnemy' [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:1406: in function 'CallSpawn' [string "CallSpawn("blue", 3, "spawn2", 400)"]:1: in main chunk 00047.694 ERROR DCS: Mission script error: : [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:768: Group doesn't exist stack traceback: [C]: ? [C]: in function 'getName' [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:768: in function 'FindNearestEnemy' [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:1406: in function 'CallSpawn' [string "CallSpawn("blue", 6, "pickzone1", 400)"]:1: in main chunk I thought this was fixed... but I'm getting this error again. Any ideas?Eno's Killbox.1.2.8.a.miz "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
ENO Posted May 2, 2014 Author Posted May 2, 2014 00844.445 INFO SCRIPTING: mist.scheduleFunction, error in scheduled function: [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:4254: Parameter #1 (unit name string) missed 01400.471 WARNING LOG: 277 duplicate message(s) skipped. Also getting a lot of these- are these significant? I'm seeing a lot of people joining but then disconnecting... not sure what's up. "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
number3 Posted May 2, 2014 Posted May 2, 2014 Looks like the log from your first post is complaining about this line ... if groupside == 2 then for i=1,#RedList do if RedList ~= nil then groupName = RedList:getName() group = Group.getByName(groupName) if group ~= nil then ... RedList at that index may not equal nill. But have you checked to print the table to see what RedList is at that index? It could be something else all together. 1 314-я смешанная авиационная дивизия 314th Mixed Aviation Division: The "Fighting Lemmings"- Forums: http://314thsquadron.enjin.com/ - ED Forum Group: http://forums.eagle.ru/group.php?groupid=119
ajax Posted May 2, 2014 Posted May 2, 2014 (edited) The error in the first post is in CTTS. The following is code in its 'FindNearestEnemy()' function: local RedList = coalition.getGroups(1, nil) -- gets most recent grouplist local BlueList = coalition.getGroups(2, nil)As noted in the 1.2.8 OpenBeta Test section, due to a scripting-engine bug these functions no longer work for airplanes and helicopters. Basically, the 'RedList' and 'BlueList' tables do not contain any 'valid' groups of these two categories. As a result, errors are propagated in subsequent code that rely on these groups being there. (See http://forums.eagle.ru/showthread.php?t=122534 ) Edited May 2, 2014 by ajax
ENO Posted May 3, 2014 Author Posted May 3, 2014 Thanks Ajax- thing is the only items associated with these scripts are infantry. Also- for some reason the script works in my newer missions made within 128 (beta) Not sure what the issue is but it sure is frustrating. "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
ENO Posted May 3, 2014 Author Posted May 3, 2014 05714.357 INFO SCRIPTING: mist.scheduleFunction, error in scheduled function: [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:4254: Parameter #1 (unit name string) missed 06348.057 WARNING LOG: 316 duplicate message(s) skipped. Still getting these- mean anything to anyone? "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
RagnarDa Posted May 3, 2014 Posted May 3, 2014 I get these too. I am using MiST and my own scripts. Not sure if there is any problem with it. DCS AJS37 HACKERMAN There will always be bugs. If everything is a priority nothing is.
ajax Posted May 3, 2014 Posted May 3, 2014 (edited) ...the only items associated with these scripts are infantry. That may be your intent, but the FindNearestEnemy function as written will return all group types including non-valid entries for helicopters and airplanes. As subsequent code iterates through the table, for example doing other functions such as group:getUnits(), it will eventually run across one of the non-valid groups and cause an error. If infantry only is desired you can change the functions to local RedList = coalition.getGroups(1, Group.Category.GROUND) and local BlueList = coalition.getGroups(2, Group.Category.GROUND) which should fix the CTTS script. I suspect the mist errors are due to its functions being passed invalid groups. The mist error message, "unit name string missed", could have been caused by something like units = group:getUnits() followed by units[1].getName() function. Without looking at mist more closely, I can't be sure. But these errors are conceivably all related. Edited May 3, 2014 by ajax swapped indexes for red and blue side. oops, right the first time.
ajax Posted May 3, 2014 Posted May 3, 2014 (edited) Also- for some reason the script works in my newer missions made within 128 (beta) I have seen this, as well. It makes absolutely no sense. It almost seems as if the very first time a coalition.getGroups() function is called it works and thereafter it doesn't. Hmmm. Edited May 3, 2014 by ajax additional thoughts
ENO Posted May 3, 2014 Author Posted May 3, 2014 (edited) So change lines 760 / 761: local RedList = coalition.getGroups(1, nil) -- gets most recent grouplist local BlueList = coalition.getGroups(2, nil) To this: local RedList = coalition.getGroups(1, Group.Categories.GROUND) local BlueList = coalition.getGroups(2, Group.Categories.GROUND) Edited May 3, 2014 by ENO "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
ajax Posted May 3, 2014 Posted May 3, 2014 (edited) Yes, that should fix the CTTS error. (Switch red and blue -- I was right the first time: red = 1 and blue = 2. Sorry about that.) Also, it should be Groups.Category.GROUND not Groups.categories.GROUND. Edited May 3, 2014 by ajax
ENO Posted May 3, 2014 Author Posted May 3, 2014 Corrected- thanks! "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
gregzagk Posted May 10, 2014 Posted May 10, 2014 Hello.The script does not seem to work with these changes in the lines. Is it working for you? "ARGO" DCS UH-1H DLC SP Campaign 373vFS DCS World squadron (Greece) - www.buddyspike.net "ARGO 2.0 Project Phoenix" UH-1H DLC Campaign - WIP
ajax Posted May 10, 2014 Posted May 10, 2014 There are actually two scripts to consider. The CTTS script is working now with the changes. However, there are a number of problems that seem to be cropping up with Mist. I was able to get Eno's mission to run without errors by modifying Mist (3.3) as follows: [font=Courier New]--change line 4251 --from groupsToAdd[#groupsToAdd + 1] = [color=Red]Unit.getByName(eventData)[/color]:getGroup():getName() --to groupsToAdd[#groupsToAdd + 1] = [color=Red]eventData[/color]:getGroup():getName() --change line 4254 --from [/font][font=Courier New][font=Courier New] groupsToAdd[#groupsToAdd + 1] = [color=Red]Unit.getByName(eventData)[/color]:getGroup():getName() --to groupsToAdd[#groupsToAdd + 1] = [color=Red]eventData[/color]:getGroup():getName() [/font] --add to the section of code starting at line 4472 --old if string.upper(newTable['category']) == 'GROUND_UNIT' then mistCategory = 'vehicle' newTable['category'] = mistCategory elseif string.upper(newTable['category']) == 'AIRPLANE' then mistCategory = 'plane' newTable['category'] = mistCategory end --new if string.upper(newTable['category']) == 'GROUND_UNIT' then mistCategory = 'vehicle' newTable['category'] = mistCategory elseif string.upper(newTable['category']) == 'AIRPLANE' then mistCategory = 'plane' newTable['category'] = mistCategory [color=Red] elseif string.upper(newTable['category']) == 'HELICOPTER' then mistCategory = 'helicopter' newTable['category'] = mistCategory elseif string.upper(newTable['category']) == 'SHIP' then mistCategory = 'ship' newTable['category'] = mistCategory [/color] end [/font]
ENO Posted May 26, 2014 Author Posted May 26, 2014 AJAX if that fixes all those other missions of mine that have hit the crapper recently I promise I will create a dozen IDs in ED forums and rep you with them all. "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
FubarBundy Posted May 26, 2014 Posted May 26, 2014 work around for invisible infantry ? Just wondering if anybody has managed a work around which stops ctts dropped infantry being invisible when there are uncontrolled aircraft on the opposite side. This is really messing up something I've been working on for the 51st server :mad:
ajax Posted May 26, 2014 Posted May 26, 2014 (edited) Does anything show up in the error log when that happens? Edit: FubarBundy, check your PMs. Edited May 26, 2014 by ajax
FubarBundy Posted May 26, 2014 Posted May 26, 2014 re ctts problem. No error message, just wont spawn troops although "troops dropped" message still appears. happens only when there are uncontrolled (I think red) aircraft are in the mission. I've got a ver with and a ver without... just trying to figure out how to send em over the pm. (Poor confused old man that I am!)
ED Team NineLine Posted May 27, 2014 ED Team Posted May 27, 2014 Please make sure you include any logs and all available info, including missions or scripts the problems are happening. I or another tester will report this tonight. Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug**
ENO Posted May 27, 2014 Author Posted May 27, 2014 No error message, just wont spawn troops although "troops dropped" message still appears. happens only when there are uncontrolled (I think red) aircraft are in the mission. I've got a ver with and a ver without... just trying to figure out how to send em over the pm. (Poor confused old man that I am!) Eh Fubar... do you have a LOT of units in the mission where this is happening? "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
FubarBundy Posted May 29, 2014 Posted May 29, 2014 It was happening anywhere the infantry were supposed to be dropped. Ajax has found the cure by making some changes in CTTS and Mist. Not sure what exactly.. as I said, I just a poor, confused old man :D
gregzagk Posted May 29, 2014 Posted May 29, 2014 Could you publish the solution cause it didn't work with the changes from the previous posts. (It still wont spawn units but we dont get any errors) Thanks in advance :thumbup: "ARGO" DCS UH-1H DLC SP Campaign 373vFS DCS World squadron (Greece) - www.buddyspike.net "ARGO 2.0 Project Phoenix" UH-1H DLC Campaign - WIP
ajax Posted May 29, 2014 Posted May 29, 2014 First, make sure you modify both Mist and CTTS. Otherwise the fixes won't work. I will post the files later. Can't do it from work. (If you want the Mist file it is already posted in another forum section. DCS World/bugs and problems/game crashes then look for Eno's latest post. I think this path is right but I'm not sure.)
ENO Posted May 29, 2014 Author Posted May 29, 2014 Still getting this error with both CTTS and MIST modified files: 00033.923 INFO SCRIPTING: Mist version 3.3.22 loaded. 00045.633 ERROR DCS: Mission script error: : [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:761: attempt to index field 'Categories' (a nil value) stack traceback: [C]: ? [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:761: in function 'FindNearestEnemy' [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:1407: in function 'CallSpawn' [string "CallSpawn("blue", 8, "spawn2", 500)"]:1: in main chunk 00046.144 ERROR DCS: Mission script error: : [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:761: attempt to index field 'Categories' (a nil value) stack traceback: [C]: ? [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:761: in function 'FindNearestEnemy' [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:1407: in function 'CallSpawn' [string "CallSpawn("red", 8, "spawn6", 500)"]:1: in main chunk "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
ED Team NineLine Posted May 29, 2014 ED Team Posted May 29, 2014 ENO, do you mind making me a simple small mission that would generate this error right off the start that I can submit to the Devs? If its releated to the stuff ajax has posted it might be fixed already in the dev branch, but I wouldnt mind submitting it just in case anyways. Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug**
Recommended Posts