Editing GPIS 2: Smack! Rescue
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 204: | Line 204: | ||
This script is written using very basic Lua and Orbiter API calls. This is for two reasons: | This script is written using very basic Lua and Orbiter API calls. This is for two reasons: | ||
− | + | a) People just learning Lua are not exposed to some of the more advanced features of the language. | |
− | + | b) I am just learning Lua, so I don't know much about these advanced features anyway | |
Notes: | Notes: | ||
− | + | 1) Configure Orbiter 2016 to display a Lua console window. This is accomplished by going to the "Modules" tab of the Launch Pad | |
− | + | and checking "Lua Console" under "Script tools and drivers." | |
− | + | 2) Start the "Smack!" scenario. Using the scenario tab in the Launch Pad, go to "Delta Glider" and select "Smack!" by double | |
− | + | clicking on it. | |
− | + | 3) Bring up the Lua console once the scenario starts with CTRL-F4. | |
− | + | 4) In the Lua console type "run ('Chapter2')." I used 'Chapter2' as the name of the script. If it is saved under a different | |
− | + | name, use that name. The Lua script can be started at any time once the scenario has been initiated. It will wait for the | |
− | + | vehicles to dock before continuing. | |
+ | 5) Once upon a time, the script was written so that 10x time was used during vehicle separation. This has been disabled (commented | ||
+ | out in the script) in order to better control separation distance. | ||
+ | 6) Movement to apoapsis is run at 100x time because a 1x time it takes a while (and some would get bored over this time period). | ||
+ | This speed is maintained until about +/- 20 seconds before apoapsis. Time to apoapsis is displayed as an annotation. | ||
+ | 7) Main engines are fired at +/- 10 seconds before apoapsis to begin orbit stabilization. Orbit eccentricities for both vehicles | ||
+ | are displayed as annotations. | ||
+ | 8) The script has finished when "End Script" is displayed in the Lua console window. This will occur 10 seconds after orbit | ||
+ | stabilization has been achieved. Do not close the console window until "End Script" has been displayed. | ||
Line 321: | Line 329: | ||
|} | |} | ||
− | + | [[Category:Tutorials]] | |
− | [[Category:Tutorials | ||
{{HasPrecis}} | {{HasPrecis}} |