Editing Scenarios

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
==CREATING SCENARIOS==
 
==CREATING SCENARIOS==
  
Scenarios in [[Orbiter]] contain a series of data that may change depending on many things.
+
Scenarios contain a series of data that may change depending on many things.
 
But we are covering the basics to build a scenario. We are going to build a scenario using the standard orbiter install.
 
But we are covering the basics to build a scenario. We are going to build a scenario using the standard orbiter install.
  
Line 53: Line 53:
 
END_SHIPS
 
END_SHIPS
 
</pre>
 
</pre>
...and now let's learn about what we just pasted.
+
...and now let's try to understand what we just pasted.
  
 
===DESCRIPTION SECTION===
 
===DESCRIPTION SECTION===
  
The following text makes scenario to display a description in the Orbiter Launchpad window, before you load a scenario. In this case it will display "Ready to take off" in the launch pad window. It can be left blank if you don't want to include anything in the description.
+
The following text makes scenario to display a description in the Orbiter Launchpad window, before you load a scenario. In this case it will display "Ready to take off" in the launch pad window.
 
<pre>
 
<pre>
 
BEGIN_DESC
 
BEGIN_DESC
Line 63: Line 63:
 
END_DESC
 
END_DESC
 
</pre>
 
</pre>
 
 
===ENVIRONMENT SECTION===
 
===ENVIRONMENT SECTION===
  
The environment section specifies the [[Solar System|solar system]]. It refers to a CFG file (Sol.cfg) that contains data on [[planet|planets]] and other space bodies. It also sets the time when the scenario will start.
+
The environment section specifies the solar system. It refers to a CFG file (Sol.cfg) that contains data on planets and other space bodies. It also sets the time when the scenario will start.
It's not the standard DD/MM/YYY HH:MM format - It uses [[Julian Day|MJD]] format. If you browse your "\Orbiter\Utils" directory, you will find a program named "Date.exe" which allows you to convert to and from MJD format.
+
It's not the standard DD/MM/YYY HH:MM format. It used MJD format.
  
 
How to set a date is something that we might leave for future lessons. Let's see how environment section looks...
 
How to set a date is something that we might leave for future lessons. Let's see how environment section looks...
Line 76: Line 75:
 
END_ENVIRONMENT
 
END_ENVIRONMENT
 
</pre>
 
</pre>
 
 
===FOCUS SECTION===
 
===FOCUS SECTION===
  
Line 90: Line 88:
 
===CAMERA SECTION===
 
===CAMERA SECTION===
  
The camera section indicates if you are looking at your ship from the inside or the outside. We won't cover the camera parameter variations yet. In this case you start right inside the cockpit. Also notice you  can change the default Field of View (FOV) value for the scenario if you want to start out with a wider or more narrow view.
+
The camera section indicates if you are looking your ship from the inside or the outside. We won't cover the camera parameter variations yet. In this case you start right inside the cockpit.
 
<pre>
 
<pre>
 
BEGIN_CAMERA
 
BEGIN_CAMERA
Line 98: Line 96:
 
END_CAMERA
 
END_CAMERA
 
</pre>
 
</pre>
 
 
===MFD SECTION===
 
===MFD SECTION===
  
Line 136: Line 133:
 
PRPLEVEL indicates your level of propellant in the different tanks each ship has. Configuration of this parameter may change from a ship class to another.
 
PRPLEVEL indicates your level of propellant in the different tanks each ship has. Configuration of this parameter may change from a ship class to another.
  
The rest of the parameters depend on what ship you are piloting. Let's see how the ships section would look. This will add a ship that will be located at a landing pad at [[Cape Canaveral]].
+
The rest of the parameters depend on what ship you are piloting. Let's see how the ships section would look. This will add a ship that will be located at a landing pad at Cape Canaveral.
 
<pre>
 
<pre>
 
BEGIN_SHIPS
 
BEGIN_SHIPS
Line 154: Line 151:
 
===ADDING MORE SHIPS TO YOUR SCENARIO===
 
===ADDING MORE SHIPS TO YOUR SCENARIO===
  
We want to add another [[Delta-glider]] ship called "GL-02" which should be parked at the end of a runway. Where is the end of the runway?
+
We want to add another Delta Glider ship called "GL-02" which should be parked at the end of a runway. Where is the end of the runway?
  
You need to load your scenario, press F1 for external view and then zoom out and rotate your view until you have the camera right at the beginning of the runway. Now press CTRL-F1.
+
You need to load your scenario, press F1 for external view and then zoom out and rotae your view until you have the camera right at the beginning of the runway. Now press CTRL-F1.
  
 
Do you remember how we got the latitude and longitude for our base in our previous lesson? Let's do the same trick.
 
Do you remember how we got the latitude and longitude for our base in our previous lesson? Let's do the same trick.
Line 162: Line 159:
 
We can copy and paste the GL-01 properties and then add the latitude and longitude, and change the ship name. But don't forget about the heading...
 
We can copy and paste the GL-01 properties and then add the latitude and longitude, and change the ship name. But don't forget about the heading...
  
That way, we are going to add this code, which will place your ship at Cape Ca&#241;averal runway...
+
That way, we are going to add this code, which will place your ship at Cape Ca
<pre>
 
GL-02: DeltaGlider
 
STATUS Landed Earth
 
POS -80.560213 +28.455060
 
HEADING 308.00
 
PRPLEVEL 0:1.000 1:1.000
 
NAVFREQ 402 94 0 0
 
XPDR 0
 
GEAR 1 1.0000
 
END
 
</pre>
 
As we add the code, your ship section should look like this...
 
<pre>
 
BEGIN_SHIPS
 
GL-01: DeltaGlider
 
STATUS Landed Earth
 
BASE Cape Canaveral:1
 
POS -80.6758964 28.5227640
 
HEADING 150.00
 
PRPLEVEL 0:1.000 1:1.000
 
NAVFREQ 402 94 0 0
 
XPDR 0
 
GEAR 1 1.0000
 
END
 
GL-02: DeltaGlider
 
STATUS Landed Earth
 
POS -80.560213 +28.455060
 
HEADING 308.00
 
PRPLEVEL 0:1.000 1:1.000
 
NAVFREQ 402 94 0 0
 
XPDR 0
 
GEAR 1 1.0000
 
END
 
END_SHIPS
 
</pre>
 
Now we have 2 ships in your scenario. You may use F3 to display a window that allows you to switch from one ship to another.
 
 
 
Congratulations, you have created your first scenario!!
 
 
 
===OTHER IMPORTANT ISSUES===
 
 
 
Now edit other scenarios using Notepad and learn how they are built.
 
Just remember... if a ship class is not present, either your ships would look invisible, or it may crash orbiter to desktop.
 
 
 
If the FOCUS section has a ship that is not defined in the SHIPS section, you may have problems too. If you refer to a non existent MFD or if you have any syntax error when defining the parameters for each property, you may have problems.
 
 
 
If a scenario is crashing, try to add a standard [[Delta-glider]] ship only. If it crashes, the problem is elsewhere, a syntax error probably. If not, then you don't have the required files to have a certain ship flying.
 
 
 
You also may try to see the camera section for each scenario and what results are obtained. if you read the Orbiter manual, you may find more information about the contents of each scenario.
 
 
 
===External Links===
 
*[http://orbit.m6.net/v2/read.asp?id=25089 Orbiter Forum Discussion]
 
 
 
----
 
created by "Pablo Luna from Costa Rica", posted with his permission
 
 
 
[[Category: Articles]]
 
[[Category:Tutorials]]
 
[[Category:Add-on tutorials]]
 

Please note that all contributions to OrbiterWiki are considered to be released under the GNU Free Documentation License 1.2 (see OrbiterWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)