Snagar Development Site
  • Home
  • News
  • Plugins
  • Applications
    • Mission-X Editor
    • Mission Installer
    • Scripts
  • Missions
  • Documentation
    • Overview of XML Writing
    • XSD: XML Schema Definition
    • v2.0 Tutorials >
      • intro [v2.0]
      • Triggers and Events [v2.0] >
        • Solution 02 [v2.0]
      • Mission Ending [v2.0]
      • Dropping Object [v2.0]
  • Staff

Mission Generator - thoughts

31/12/2018

0 Comments

 
Picture
Hi fellow simmers,

In this post I would like to rant about the possibility of integrating random missions and its implication.
When we jump into a flight simulator, any flight sim, one of the things we would like to know is: "what should we do today", or something along these lines.
To have a sense of purpose, That is not an easy thing. When you fly in DCS you know what you are going to do, but in open world flight sim, it is up to you to make the adventure.
This was one reason why I started Mission-X coding back in 2009. I wanted to be able to "tell a story" or to "make an experience" inside X-Plane world. In Mission-X v3 I think you have enough tools to do that, you just need some patience and free time.

But, what if I do not want to think to much on a story and prepare a mission or adventure ?
This is were a mission generator come in handy, sort of.
Myself, I'm not a huge fan of generating a mission that will ask you to fly from location X to Y and then you just find yourself in a no way zone where you could not land or the area is not passable. Other cases would be the lack of interesting scenery or locations. It is basically like drawing  blindfolded (more or less).
The image above taken from x-plane shows how complex it is to pick a random location and a good one.


So what are the options I thought of:
  • Fully randomized: could be great if can overcome the "blindfold" issue.
  • Base on templates - give me some rules of what to expect.

My first steps in generating a mission was: let the plugin generate a mission file just like any designer, so it can read it and treat it as any human generated mission.
This was my first goal. I wanted the plugin to use same "xml language" I defined and layout in the "designer guide". This gives me a good boundaries of what to expect, it also provide the simmer of designer a file he/she can copy to their own folder and tweak it to their heart content, and then make a new mission out of it.

My second goal was to make it simple. Now that is a bold claim, but I think once you understand the rules, you see that it should not be hard to customize it, but more on that later.
The mission generator for now, will use Template files as a rule book for generating a mission. Even more, it will walk on the line of: ad-hoc locations, and won't randomize the coordinates for now.
Why am I using this approach ?
Main reason was - focus and better experiences.
When using such an approach, it means that some work need to be done. But, to make it simpler for the designer, he/she do not need to modify the the template "rules" but only add coordinates of interest that would like to be part of the generated mission.

Here is an example:
My first attempt was to create a medevac mission for helicopters around Seattle.
Using the Mission-X rules, I had to create at least 2 goals. First goal - you should reach location A to pick someone and the second goal - fly to a location to "drop" this someone.
This should be simple, but which locations should I pick ? I do not have access to X-Plane roads and parsing the roads just to place a good location is not a simple task.
Solution: allow the designer to define their own point of interest. You just need to add the <point> element in the template (at the correct location)



Code Editor

    
Picture
and the plugin will pick one of them as the location of interest (location A).
Here is and example to a mission generating template.
Only the blue box represents the mission itself, the rest are points of interest I picked.
The example is a 2 goal template based. One represent injured location and the second landing area. Each second location represent a Helicopter ramp but not every location looks like a hospital area, most are residential ones.

The Template itself has rules, syntax rules, but most of them are already borrowed from the standard mission file, and only few are new.
If you go over the template you might noticed that the returning location is also using a random location from ad-hoc list.
The coming version will have a special goal type: "start" which means return to the starting location (simplifies template creation).
I will continue to make the template simple and streamlined to be accessible by many (I hope).



Why do I think this is a better approach for now?
  • You can create specific templates for specific planes/helicopters.
  • You can hand pick interesting locations that would be plausible to fly too.
  • Diversity: As long as we will add more points, the "random mission generator" will have more data to build missions, and hopefully challenging ones too.
  • You can copy the mission file and make it the bases of your own mission, by adding or removing parts of it.
  • Check different scenery and prepare points of interest based on that scenery.
  • Create templates for different locations (Los Angeles, New York etc)
  • Create more diverse templates with more goals for different adventures (TBD)
  • [edit] Share your customized template with others.

Cons:
  • Main con, you can't just push a button and you generate a mission no matter where you are.
  • Restricted to only locations that were predefined by designer.
  • If scenery will be changes locations might be nullified.

In away, templates could be more interesting than just generating a mission for every possible location. I'm not saying that it won't be implemented in the plugin, only that for the first attempt and as a base for the other options in the future, I think that using a template approach could be educational and through experience we should be able to build a better Mission Generator".

Please share your thoughts, you can send me an e-mail: snagar.dev@gmail.com

Until next time
have a great simming
Saar



0 Comments

Mission-X v3.0.216.2 - Release Build

27/12/2018

0 Comments

 

Hi all,

I hope that this build will be the last bug fix. We found that in specific case when designer used 3D objects and the "replace_xxx" attributes, the plugin did not handle it correctly.

Please go over to the plugin page, and download the latest build.

Cheers
Saar

0 Comments

    Author

    Creation is something I always wanted to do. Since I'm not that good in painting/writing, I decided to contribute in programming.

    Archives

    October 2019
    August 2019
    February 2019
    January 2019
    December 2018
    November 2018
    August 2018
    July 2018
    April 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    April 2017
    November 2016
    September 2016
    August 2016
    April 2016
    February 2016
    January 2016
    December 2015
    August 2015
    July 2015
    May 2015
    April 2015
    March 2015
    February 2015
    October 2014
    April 2014
    February 2014
    December 2013
    November 2013
    September 2013
    August 2013
    April 2013
    March 2013
    November 2012
    August 2012
    July 2012
    May 2012
    April 2012
    March 2012
    January 2012
    December 2011
    November 2011
    October 2011
    September 2011
    August 2011
    June 2011
    May 2011
    April 2011
    March 2011
    February 2011
    January 2011
    December 2010
    November 2010
    October 2010
    September 2010

    RSS Feed

Powered by Create your own unique website with customizable templates.