Robert1983NL Posted May 10, 2013 Posted May 10, 2013 (edited) Hey guys, I'm very enthousiastic about DCS and about the Huey. I'm a total noob though. Discovered DCS only 1,5 months ago, but totally addicted. Now I've started working on missions. I plan to make realistic and immersive, short, action-packed missions, focused on the Huey. BUT, like I said, I'm a noob, and I'm running into problems. I've attached the MIZ file so if you guys could please download it and check it out to see what the problem is? :helpsmilie: If you've downloaded the file and fly the mission, you'll find yourself in a Huey flying north. Continue flying, after a couple seconds you'll see two green smoke markers. Land at the left smoke marker. After 10 seconds the troops you've got on board deplane. So far everything goes as I've planned it. BUT. The moment you land on the ground (I've defined this trigger with the conditions 'speed is less than 1' and 'altitude is less than 920' (Is 920' (MSL) correct, or can I just use '1'?)) the enemy group called 'NMY grp startled at ORANGE' is supposed to start moving. BUT THEY DON'T. And I don't understand why.... They did earlier, but when I added some more triggered actions, it stopped working. ALSO, 30 seconds after the first green smoke is thrown, I've group activated 'NMY RPG' to run to LZ PURPLE. They DO activate (simulating they're running outside of a hangar), but they don't follow their designated waypoints... WHY NOT? Please help me guys, and I'll promise to produce some realistic immersive missions the next couple of months! :-P You can find the mission on my rapidshare account: http://rapidshare.com/files/3626155798/GRIZZLY%20Air%20Raid%20v0.1.miz !!!EDIT!!! I updated my mission a little bit in the mean time, problem remained. Edited May 11, 2013 by Robert1983NL
Robert1983NL Posted May 11, 2013 Author Posted May 11, 2013 Come on guys... Almost 50 views in this thread, only 2 downloads of my mission, and 0 replies... :( I want to continue building! :D
TeTeT Posted May 11, 2013 Posted May 11, 2013 I'm a total mission building newb, but what helped me figuring out if the flags work as intended is the following snippet of lua: function() main currentLZ = trigger.misc.getUserFlag("1") returnLeg = trigger.misc.getUserFlag("2") message = message .. "Flag 1 (LZ) value: " .. currentLZ .. " flag 2 (need task) value: " .. returnLeg .. "\n" trigger.action.outText(message, 9) mist.scheduleFunction(main, {}, timer.getTime() + 10) end If you place this in a file and load it as script, it ought to print the current value of flags 1 and 2 every 10 seconds. Of course you may want to change the flags you monitor and/or give them a different name, as flag1 might not be your current LZ as in my example above. Probably there's even an easier way to monitor game state in DCS, but I haven't figured out that one.
Robert1983NL Posted May 11, 2013 Author Posted May 11, 2013 Thanks for your reply. Wow, that lua stuff is still way too complicated for me. But as I understand it I have to implement this script somewhere to check if the flags work? Where do I put the script? Also, I just found out that the troops that I intended to move, start moving WAY LATER than intended, after I've departed with the Huey. Is it maybe because they're scared they hear the chopper and they freeze in place? Also, they will not ALL move at once, and they won't continue past all of their waypoints...
Robert1983NL Posted May 11, 2013 Author Posted May 11, 2013 (edited) I've tried implementing the script by creating a trigger, CONTINUOUS, PLAYER IN ZONE, DO SCRIPT. But, now it gives me an error pop up every second. Edited May 11, 2013 by Robert1983NL
wess24m Posted May 11, 2013 Posted May 11, 2013 Didn't get a chance to fly it but I changed some things in the mission. If it works compare mine to yours, it's difficult to work on somebody elses mission. I changed the flag to set when you land and created another action on the same landing trigger area to activate the group once 10 sec has passed, once you're on the ground from the landing trigger it will set a flag and then trigger the 2nd event, in this case means counting down to 10 to activate your troops. My attempt
TeTeT Posted May 11, 2013 Posted May 11, 2013 The attached mission utilizes two scripts, mist and debug. The debug script looks like this: function main() message = "DEBUG\n" flag1smokeout = trigger.misc.getUserFlag("1") flag10firstdead = trigger.misc.getUserFlag("10") if flag1smokeout ~= nil then message = message .. "Flag 1 (smoke out) value: " .. flag1smokeout .. "\n" end if flag10firstdead ~= nil then message = message .. "Flag 10 (first dead) value: " .. flag10firstdead .. "\n" end trigger.action.outText(message, 9) mist.scheduleFunction(main, {}, timer.getTime() + 10) end trigger.action.outText("Debug initialized", 5) main() If you want to change it, copy it somewhere on your HD and use the file open browser from within the editor to load it into the mission. I have to dash now, might be back later.GRIZZLY Air Raid-luaDebug.miz
Robert1983NL Posted May 11, 2013 Author Posted May 11, 2013 Didn't get a chance to fly it but I changed some things in the mission. If it works compare mine to yours, it's difficult to work on somebody elses mission. I changed the flag to set when you land and created another action on the same landing trigger area to activate the group once 10 sec has passed, once you're on the ground from the landing trigger it will set a flag and then trigger the 2nd event, in this case means counting down to 10 to activate your troops. My attempt Hey Wess, thanks! But I just flew the mission, and nothing changed. The western insurgents still won't move... The eastern hardly, only two of them move. Very weird... It must be something simple I think...
TurboHog Posted May 11, 2013 Posted May 11, 2013 Hey Wess, thanks! But I just flew the mission, and nothing changed. The western insurgents still won't move... The eastern hardly, only two of them move. Very weird... It must be something simple I think... As far as I know Insurgent AK and RPG infantry do not have moving animations and for that reason they decided to not move at all because it would look silly if they're floatin' about ;) 'Frett'
Robert1983NL Posted May 11, 2013 Author Posted May 11, 2013 I have seen enemy infantry moving. I can make simple tasks for enemy infantry and they'll move. The problem starts when I'm using triggers. UPDATE: I have updated the mission a little bit, the link in the opening post has been updated. No big changes, just small things I worked on while the main problem still remains.
Robert1983NL Posted May 11, 2013 Author Posted May 11, 2013 TeteT, I've tried your debugging script. It seems to me the flags work as they should, the troops just don't respond like I want them to. To make it all very clear (hopefully), I made this screenshot:
YorZor Posted May 11, 2013 Posted May 11, 2013 The problem is the units are moving but very very very slow. Something like 20cm a minute.
KAMOV Posted May 11, 2013 Posted May 11, 2013 Hi Robert1983NL ,your mission corrected :thumbup:GRIZZLY Air Raid Modif KAMOV.miz La Plume est plus forte que l epee [sIGPIC][sIGPIC] [/sIGPIC] Amateurs de voilures tournantes,les inscriptions sont ouvertes BS 2/MI-8/MIG 21 DOC en Français =>Dispo ICI DCS WORLD Mes contributions => Cliquer LA
Robert1983NL Posted May 12, 2013 Author Posted May 12, 2013 Hey KAMOV, what have you done exactly? Now the troops aren't deployed by the Huey anymore, and I'm missing 3 insurgents, and the other group of insurgents isn't moving still.
Recommended Posts