Board index FlightGear Development Tutorials and missions

"Mission" for helicopters

Interactive in-sim tutorials and missions

"Mission" for helicopters

Postby Marius_A » Fri Apr 04, 2014 12:12 pm

Creating "mission" for helicopters.
Currently studying the available tools (Tutorials, GUI, 3D modelling).

Preliminary results:
Marius_A
 
Posts: 89
Joined: Wed Dec 04, 2013 2:20 pm

Re: "Mission" for helicopters

Postby Hooray » Fri Apr 04, 2014 12:39 pm

very good job, that's pretty cool !
I would definitely add this to the upcoming newsletter, maybe even add a dedicated article (or just extend the tutorials article)

This could be a pretty cool feature for flug's bombable addon, but also for de profundis manual: Subject: Cross Country Tutorial II - a VFR guide, or the recent "Isle of Man" track.

Also see:

But it would probably make sense to generalize the underlying Nasal code a bit and extend the tutorials system accordingly. We have quite a few ideas on improving it, see: http://wiki.flightgear.org/Talk:Tutorials

PS: If you're looking for a nice challenge, see: viewtopic.php?f=34&t=21554&p=196102&hilit=#p196064
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11340
Joined: Tue Mar 25, 2008 8:40 am

Re: "Mission" for helicopters

Postby Marius_A » Tue Apr 08, 2014 8:47 am

Thank you for information.


Correct me if i'm headed in the wrong direction:

my plan is to modify current tutorial structure
Code: Select all
<tutorial>
   <name>...</name>
   <description>...</description>
   <models>
      ...
   </models>

   <init>
      ...
   </init>

   <step>
      ...
   </step>

   <end>
      ...
   </end>
</tutorial>

to make it look like this:
Code: Select all
<tutorial>
   <name>...</name>
   <description>...</description>
   <models>
      ...
   </models>
   <dialogs>
      ...
   </dialogs>

   <init>
      ...
   </init>

   <step>
      <models>
         ...
      </models>
      <dialogs>
         ...
      </dialogs>
      ...
   </step>

   <end>
      ...
   </end>
</tutorial>

The models and dialogs contained in <tutorial>...</tutorial> will be visible/available during all the tutorial/mission.
The models and dialogs contained in each <step>...</step> will be visible/available when the corresponding step is active.
I'm using the following directories to store mission-related files:

  • Tutorials(missions/adventures):
    fg-root/Missions
  • Dialogs:
    fg-root/Missions/Dialogs
  • Sound files:
    fg-root/Sound/Missions
  • 3D models:
    fg-root/Models/Missions
Marius_A
 
Posts: 89
Joined: Wed Dec 04, 2013 2:20 pm

Re: "Mission" for helicopters

Postby Hooray » Tue Apr 08, 2014 11:47 am

it would be a good idea to coordinate this a little with Stuart.
And any changed or new features should obviously be optional and have sane default settings.
In general, you'll want to focus on generic building blocks that can be reused for different purposes, such as for example Thorsten's effort here: Flightgear on foot

Regarding GUI dialogs, it would probably be a good idea not to use XML dialogs, but rather extend gui.nas to support procedurally-created dialogs for your needs - that way, porting things to use canvas (eventually) will be much more straightforward. There are already several dialog creation helpers in gui.nas, which can be either sub-classed/extended or customized for missions.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11340
Joined: Tue Mar 25, 2008 8:40 am

Re: "Mission" for helicopters

Postby Marius_A » Wed Apr 09, 2014 12:23 pm

Oil platform landing challenge:
Marius_A
 
Posts: 89
Joined: Wed Dec 04, 2013 2:20 pm

Re: "Mission" for helicopters

Postby Hooray » Wed Apr 09, 2014 12:41 pm

great job, and I really like the fact that you are reusing existing stuff and extending the tutorials subsystem - that approach is so much better than the usual method of coming up with stuff from scratch and then complaining that FG is lacking certain features. If we could extend the tutorial system to provide all these things as building blocks, people could come up with arbitrary adventures and missions - which is a really long-standing and popular feature request, and we have enough existing projects that could benefit from something like this.

From a coding point of view, I would suggest to generalize the aircraft-specific stuff - so that aircraft specific parameters are looked up from an XML checklist: http://wiki.flightgear.org/Aircraft_Checklists
Those are just XML files, and if anything is missing, it can be added within seconds. The main point being, that this would allow us to support aircraft-agnostic tutorials (missions/adventures), where people could select a different aircraft - for example, the bo105 or the R22: http://wiki.flightgear.org/Talk:Tutoria ... gnostic.29

From a "missing design" point of view, I can help you use the Nasal/Canvas MapStructure framework to come up with a GUI dialog where you can place "hoops" (targets) on a map, and then edit those to refine altitude/orientation/position etc. Most of the required features are already supported - We really only need to add a new controller that responds to mouse events.

That should allow people to easily create their own missions (tutorials) - as a workaround, we could also use the route manager and flightplan() APIs to place hoops for each waypoint

I'll send a heads-up to Thorsten and DFaber so that they're aware of your work here - because this is clearly overlapping with their most recent effort, and manually coming up with an "event management structure" without using Stuart's existing work simply doesn't scale as well.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11340
Joined: Tue Mar 25, 2008 8:40 am

Re: "Mission" for helicopters

Postby Michat » Wed Apr 09, 2014 7:16 pm

Good Job Marius_A. Congratulations.
User avatar
Michat
 
Posts: 962
Joined: Mon Jan 25, 2010 6:24 pm
Location: Spain
Version: 191b
OS: GNewSense

Re: "Mission" for helicopters

Postby Michat » Thu Apr 10, 2014 11:33 pm

And thanks for your contribution.

Image
User avatar
Michat
 
Posts: 962
Joined: Mon Jan 25, 2010 6:24 pm
Location: Spain
Version: 191b
OS: GNewSense

Re: "Mission" for helicopters

Postby Marius_A » Fri Apr 11, 2014 11:10 am

Nice picture :o ! I'm truly grateful :)



Progress update:

Tutorial system now supports DFaber's "Walker":


Walker is enabled by adding <walker/> into corresponding step:
Code: Select all
...
<step> <!-- this step must be completed in aircraft mode -->
  ...
</step>
...
<step> <!-- this step must be completed in walker mode -->
   <walker/>
   ...
</step>
...
Marius_A
 
Posts: 89
Joined: Wed Dec 04, 2013 2:20 pm

Re: "Mission" for helicopters

Postby stuart » Sat Apr 12, 2014 8:43 pm

Hi,

This is really impressive and I'd be delighted to integrate it into git (assuming someone else doesn't do so before me)


Unfortunately I'm currently without a FG-capable computer, but should be in a position to look at it in more detail in about a month.

Great work!

Stuart
G-MWLX
User avatar
stuart
Moderator
 
Posts: 1469
Joined: Wed Nov 29, 2006 9:56 am
Location: Edinburgh
Callsign: G-MWLX

Re: "Mission" for helicopters

Postby F_D2760 » Sun Apr 13, 2014 8:54 am

Hi,

Really nice job!
KUbuntu 18.04
AMD Phenom(tm) II X4 955 3200 GHz
AMD Radeon HD 5770 Series
22" + 22"
12 Go
F_D2760
 
Posts: 71
Joined: Thu May 09, 2013 12:27 pm
Location: France
Callsign: F_D2760
Version: Last one
OS: KUbuntu 17.10

Re: "Mission" for helicopters

Postby x7cusick8x » Tue Apr 15, 2014 6:35 pm

This looks like it would be great to create SAR missions for my HH-60J as well as Submarine hunts for my SH-60B or even transport missions for the UH-60 Blackhawk/ CH-47 Chinook
x7cusick8x
 
Posts: 177
Joined: Wed May 15, 2013 1:05 am
Callsign: 84-104
Version: 2.10
OS: MacOSX

Re: "Mission" for helicopters

Postby Hooray » Tue Apr 15, 2014 6:37 pm

mission ideas can be posted here: viewtopic.php?f=6&t=22698v
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11340
Joined: Tue Mar 25, 2008 8:40 am


Return to Tutorials and missions

Who is online

Users browsing this forum: No registered users and 1 guest