Difference between revisions of "Scenarios"

From OrbiterWiki
Jump to navigation Jump to search
m (Reverted edits by 200.221.10.104 (Talk); changed back to last version by Urwumpe)
Line 1: Line 1:
[http://dataqic25.youtells.info/ data qic 2 5] [http://foppapedretti.roof-top.info/ foppapedretti favola] [http://aspire1362wlmi.youtells.info/ aspire 1362wlmi] [http://trioct01.wellso.info/ trio ct01] [http://norefeatninasky.snorke.info/ nore feat nina sky oye mi canto] [http://hondakmzero.wellso.info/ honda km zero] [http://cassettelegno.wellso.info/ cassette legno] [http://lavoroverona.driven4.info/ Lavoro verona] [http://discotecavr.driven4.info/ discoteca vr 2000] [http://driven4.info/index6_1333.html link] [http://flamsteedjohn.wellso.info/ flamsteed john] [http://marchedeivideofonini.driven4.info/ marche dei videofonini] [http://chatthardlive.youtells.info/ chatt hard live] [http://driven4.info/index0_2000.html homepage] [http://danford.wellso.info/ dan ford] [http://ilbaciodellapantera.driven4.info/ il bacio della pantera - il figlio della notte] [http://domenicomorfeo.youtells.info/ domenico morfeo] [http://batteriamotorola.youtells.info/ batteria motorola v60] [http://moretv.snorke.info/ moretv] [http://citroenc5anno2002.snorke.info/ citroen c5 anno 2002] [http://madripericolose.driven4.info/ madri pericolose] [http://snorke.info/index7_1500.html link] [http://enemafree.youtells.info/ enema free] [http://roof-top.info/index2_2000.html url] [http://snorke.info/ snorke.info] [http://damechenoa.youtells.info/ dame chenoa] [http://wwwpeugeotitprivilege.wellso.info/ www peugeot it privilege] [http://snorke.info/index3_2250.html map] [http://karenanton.youtells.info/ karen anton] [http://snorke.info/index5_1500.html url] [http://eizol578.roof-top.info/ eizo l578] [http://hotelfedora.youtells.info/ hotel fedora] [http://hl1250.driven4.info/ hl 1250] [http://ladescaradamp3.snorke.info/ la descarada mp3] [http://mvaugustapulman.roof-top.info/ mv augusta pulman] [http://cavalleriarusticana.wellso.info/ cavalleria rusticana] [http://inviotelematico.wellso.info/ invio telematico della dichiarazione] [http://whoopigoldberg.driven4.info/ whoopi goldberg] [http://extremepaintbrawl.roof-top.info/ extreme paintbrawl 2] [http://testocanzonenapoletana.youtells.info/ testo canzone napoletana] [http://putasconanimales.driven4.info/ putas con animales] [http://hotelluxroma.youtells.info/ hotel lux roma] [http://batteriaacertravelmate.roof-top.info/ batteria acer travelmate 630] [http://youtells.info/index5_1666.html link] [http://lavocedellaforesta.wellso.info/ la voce della foresta] [http://lcd1366.driven4.info/ lcd 1366] [http://troieinspiagia.snorke.info/ troie in spiagia] [http://quierotenerte.roof-top.info/ quiero tenerte zion lenox] [http://saracuginidicampagna.wellso.info/ sara cugini di campagna] [http://tosaerba.driven4.info/ tosaerba] [http://concessionaria.youtells.info/ concessionaria simoni] [http://maredipiu.snorke.info/ mare di piu] [http://conserveedestratti.snorke.info/ conserve ed estratti alimentari] [http://bp780skyocera.driven4.info/ bp 780s kyocera] [http://tracer7600.driven4.info/ tracer 7600] [http://youtells.info/index9_625.html link] [http://epsonp-2000.roof-top.info/ epson p-2000 multimedia viewer] [http://sitecomwl124.snorke.info/ sitecom wl 124] [http://banalizzare.snorke.info/ banalizzare] [http://bigliettoaereomilano.youtells.info/ biglietto aereo milano reggio calabria] [http://gunsnrosesuse.snorke.info/ guns nroses use your illusion world tour 1992 vol 02] [http://saabcabriolet.driven4.info/ saab cabriolet] [http://urszula.youtells.info/ urszula] [http://exz110.youtells.info/ ex z110] [http://basikaraokescaricabili.driven4.info/ basi karaoke scaricabili gratis] [http://lavendettadibruce.wellso.info/ la vendetta di bruce lee] [http://wwwphotohard.driven4.info/ www photo hard eva henger com] [http://colantfoto.driven4.info/ colant foto] [http://superstarjamelia.driven4.info/ superstar jamelia lyrics] [http://userburn.youtells.info/ user burn] [http://avventuraavarsavia.youtells.info/ avventura a varsavia] [http://microsoftdigital.roof-top.info/ microsoft digital image studio 10] [http://myimmortalspartiti.youtells.info/ my immortal spartiti] [http://oroscopoleonardo.roof-top.info/ oroscopo leonardo] [http://agonum.wellso.info/ agonum] [http://epicasrl.roof-top.info/ epica srl] [http://junior.driven4.info/ junior] [http://snorke.info/index0_562.html page] [http://ignisk.roof-top.info/ ignis k] [http://wwindireit.snorke.info/ ww indire it] [http://fotoannuncidonne.snorke.info/ fotoannunci donne mature] [http://lexmarkp6350.wellso.info/ lexmark p6350] [http://nuoveedizioni.wellso.info/ nuove edizioni del giglio] [http://maxtoronetouch.youtells.info/ maxtor onetouch ii firewire 800 edition] [http://philips32pf7320.wellso.info/ philips 32pf7320 10] [http://driven4.info/index2_1333.html index] [http://copertinacd.driven4.info/ copertina cd hot party] [http://genovaannunci.roof-top.info/ genova annunci] [http://liupen.wellso.info/ liupen] [http://globalsatbt.wellso.info/ globalsat bt 338 gps] [http://ricettaperfare.snorke.info/ ricetta per fare il pane] [http://kiss1504.youtells.info/ kiss 1504] [http://lettoremp3watch.roof-top.info/ lettore mp3 watch movie] [http://traghettibarcellona.wellso.info/ traghetti barcellona ibiza] [http://mib30.driven4.info/ mib 30] [http://pietraligure.roof-top.info/ pietra ligure ospedale] [http://gliarabi.snorke.info/ gli arabi] [http://roof-top.info/index0_1333.html index] [http://youtells.info/index2_1666.html homepage] [http://texshop.youtells.info/ texshop] ==CREATING SCENARIOS==
+
==CREATING SCENARIOS==
  
 
Scenarios 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.
Line 159: 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
+
That way, we are going to add this code, which will place your ship at Cape Cañaveral runway...
 +
<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 DeltaGlider 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:Tutorials]][[Category:Addon tutorials]]

Revision as of 09:26, 25 October 2007

CREATING SCENARIOS

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.

Open Notepad and paste the following text...

BEGIN_DESC
Ready to take off.
END_DESC

BEGIN_ENVIRONMENT
System Sol
Date MJD 51981.6009797824
END_ENVIRONMENT

BEGIN_FOCUS
Ship GL-01
END_FOCUS

BEGIN_CAMERA
TARGET GL-01
MODE Cockpit
FOV 60.00
END_CAMERA

BEGIN_MFD Left
TYPE Surface
SPDMODE 1
END_MFD

BEGIN_MFD Right
TYPE Orbit
PROJ Ship
FRAME Ecliptic
REF Earth
END_MFD

BEGIN_PANEL
END_PANEL

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
END_SHIPS

...and now let's try to understand what we just pasted.

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.

BEGIN_DESC
Ready to take off.
END_DESC

ENVIRONMENT SECTION

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 used MJD format.

How to set a date is something that we might leave for future lessons. Let's see how environment section looks...

BEGIN_ENVIRONMENT
System Sol
Date MJD 51981.6009797824
END_ENVIRONMENT

FOCUS SECTION

Now, let's see where YOU will be when the mission starts. The focus section describes the ship you will pilot or the object you will control when you start your mission.

In the following case you have a ship named "GL-01". It's a custom name. We will need to define the properties of this ship later.

BEGIN_FOCUS
Ship GL-01
END_FOCUS

CAMERA SECTION

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.

BEGIN_CAMERA
TARGET GL-01
MODE Cockpit
FOV 60.00
END_CAMERA

MFD SECTION

In your cockpit you have 2 screens called MFDs which will display some info. Each MFD is configured differently. We won't cover yet how to configure MFDs.

BEGIN_MFD Left
TYPE Surface
SPDMODE 1
END_MFD

BEGIN_MFD Right
TYPE Orbit
PROJ Ship
FRAME Ecliptic
REF Earth
END_MFD

PANEL SECTION

The next section is the panel section. We won't cover it here. So let's leave it like this...

BEGIN_PANEL
END_PANEL

SHIPS SECTION

Now it comes the time when we define the properties of your ship in the ships section. In this case we have only one ship in our entire universe. It is GL-01. Remember? GL-01 is a DeltaGlider class ship. You will have a limited set of classes unless you install other spacecratf/aircraft addons that add more classes.

The status indicates if you are landed or if you are moving (Orbit).

POS indicates your longitude and latitude.

HEADING indicates the direction of the nose of your ship. If you put a ship in a runway you might like it to aim at the end of the runway.

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.

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
END_SHIPS

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?

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.

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ñaveral runway...

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

As we add the code, your ship section should look like this...

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

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 DeltaGlider 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


created by "Pablo Luna from Costa Rica", posted with his permission