Jump to content

Recommended Posts

Posted (edited)

Ok I’m working on a new mission for my self to learn pattern procedures in the uh1. I have laid out several trigger points for a two ship flight of hueys.

 

Now I have several questions I need answers to . I’m sure I might be able to figure them out in a month of research I wish these you tube videos had written notes or scripts as I have a hard time understanding some and even the ones I do comprehend I’m having to start and stop so much to take notes I loose all continuity and the tiechniqe isn’t sinking in. So I figure if there’s a couple of willing mission builders that would hold my hand and answer these questions then I’ll build upon it.and based on my learning style will be able to progress faster than you tube video watching.

 

1) I plan on following most sops for this mission. So to start with once I spawn I’ll turn on the battery following the -10 check list, then call ground for start up permission. Then turn on thre anti collision lights to let everyone know I’m starting up. Once started I’ll turn off the ac’s and call for a hover check go up to 5’ check the instruments and set it down. Then call ground for taxi to the opposite end of the runway I’ll need to get permission to cross lines along the way . I want it random wether I’m required to stop and wait for clearance or if I’m cleared to the lines at the end of the runway where I’ll hold short. Call tower for clearance to enter the runway pause call for takeoff permission, once granted take off pulling up to 150’ before I hit the turning point to turn 90 degrees right I’ll have to check the heading and since it’s a story stretch max altitude will be 200agl. Then turn 90 left again check heading and final altitude will be 500’agl. 90 Left to hdg xxx down to 150’agl then 90 left to final line up on runway pausing over the numbers at 5’agl then gently set it down. I know I left some calls out but I was hoping for some knowledgeable help here also.

 

What I want is timers and tasks checks if I don’t do something in a correct amount of time I want a message reminding me either an info or atc call so that I follow protocol for the whole flight. The turn calls will be radio calls based on trigger zones I guess but besides drawing the circle for the zone I have no clue where to code what or how to code it. The startup I would like to pretend the cp is calling out the -10 steps and making all radio calls when I’m lead ac. Otherwise I want the ai in the other ac to make all calls once comm check is done.

 

I would like for the ac that I don’t choose to be ai after a time. To begin with I’m gonna take -2 after I learn things there I’ll switch to -1. If it’s not possible I guess I could setup two uh1 groups one where the pilot in -1 is ai and the pilot in -2 is client or player then the other group it will be the other way around. But I was hoping to have a second group full ai doing the same thing pattern work and making all the correct radio calls and getting proper response from the atc.

 

Can anyone help. Me here this could be any airport but I’m doing Nellie afb eventually I’ll even modify it to the actual departures and arrival routes but that just changing the turns and there locations and maybe a fell more radio calls.

 

Also one more thing based on my radio call on final will determine if it’s a full stop landing touch and go landing or emergency landing. Based on the type of landing the atc will tell me to taxi and what route , to continue training or the proper call or see rescue vehicles waiting on me to shut down or taxi of the runway and shutdown.

 

Can anyone help me with this once working on my single player mode I’d like help moving it to a local map server I’m setting up and adding mods etc then we will work on the next version eventually being able to pull up the f10 menu and select the traing for that day or have the server reboot every so often and on restart load the mission for that period. Eventually I would like to use it to practice for and do check rides based on certain criteria but that way down the line.

 

Anyone willing to help me get started?

 

 

One more thing how can you use callsigns not in the default list I would like to add several callsigns to the drop down list if that isn’t allowed which it should be how to have different callsigns for the mission that know is allowed?

 

One last thing is there away to build missions on an iPad?

Edited by BlacleyCole

BlackeyCole 20years usaf

XP-11. Dcs 2.5OB

Acer predator laptop/ i7 7720, 2.4ghz, 32 gb ddr4 ram, 500gb ssd,1tb hdd,nvidia 1080 8gb vram

 

 

New FlightSim Blog at https://blackeysblog.wordpress.com. Go visit it and leave me feedback and or comments so I can make it better. A new post every Friday.

Posted

There are a number of ways to go about this, with some tasks easier one way or another. Kind of like if you have a geometry problem, and it can be trivial if you use angles in classical geometry, or inversely much simpler if you solve equations analytically.

 

The two main techniques are:

1- Trigger-based actions

2- Event loop

 

(technically (1) might use an event loop, but it would be an internal DCS one that we don't have access to)

 

TRIGGER-BASED ACTIONS

Those are easily done via the Mission Editor, as you said. The standard techniques are:

 

A- Zone-based triggers and other stuff that you set up in the trigger menu

B- Anything in a group's advanced waypoint conditions

 

This includes dealing with flags, which you set somewhere and use as trigger conditions somewhere else. It also works very well when you want to get a group to do something at or after a certain time, or when it enters/exits a zone.

 

EVENT LOOP

This is the more "advanced" technique, which is closer to the analytical geometry thing. Here you say "well I can run scripts, why don't I make an event loop in my script and check every x seconds what's going on? I can then precisely do things with my own variables, etc..."

 

An event loop generally functions better when you want to use a custom F10 menu since generally you'll have one in your code anyway: you constantly need to update the F10 menu to make it contextual to the situation you're in.

 

In your specific case, you need a detailed contextual F10 menu, coupled with precise knowledge of what's going on. So I suggest going the event loop route.

Every time you hit the F10 menu item, it triggers a specific function. That function can respond based in random or deterministic fashion, and set a condition for future success (you can use flags and/or lua variables for that).

Say for example you hit F10 to land. The requestLanding() function chooses between 50% full stop and 50% go landing. If it selects full stop, it will message you and then schedule a 1-second timer on a function that checks your helicopter speed and ground altitude. That function will succeed if you are at 0/0 for say 3 seconds, and fail if you exceed 120 seconds from calling the function.

 

Anyway, it's basic event management in code, and you just have to figure out within the DCS api what info you need to monitor to succeed/fail in the tasks that you want.

 

Finally, you can mix and match both techniques by using flags. In your code you use:

trigger.action.setUserFlag(200, 3) -- this sets flag 200 to value 3

trigger.misc.getUserFlag(200) -- this returns 3

As long as you use flags with numbers, you can use them also in the Mission Editor.

Posted

Thanks for your analysis of my situation and i agree with you but I’m not sure how and where to put the scripts or the syntax needed. I know a lot use notepad ++ since it help with formatting the commands and gives hints to the syntax.

 

I’m sorry I’m not able to understand a lot of the voices in the you tube tutorials plus stopping every now and then taking notes I’m losing a lot of comprehension. What i need is a tutor that will work with me on team speak and team viewer to get my mission started with the scripting part.

BlackeyCole 20years usaf

XP-11. Dcs 2.5OB

Acer predator laptop/ i7 7720, 2.4ghz, 32 gb ddr4 ram, 500gb ssd,1tb hdd,nvidia 1080 8gb vram

 

 

New FlightSim Blog at https://blackeysblog.wordpress.com. Go visit it and leave me feedback and or comments so I can make it better. A new post every Friday.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...