Hi!
i was just fooling around on ChatGPT when i wanted to try out if it knew some code for Orbiter2016
here are my results (first are the questions i asked then the answers)
Question 1: Can you write a basic Planet Code for Orbiter 2016?
Question 2: can you make me a Basic Spacecraft4 .ini Vessel file?
Question3: Can you write me a scenario file for Orbiter 2016?
Its not really SDK but i thought it was interesting, what do you all think of this?
i was just fooling around on ChatGPT when i wanted to try out if it knew some code for Orbiter2016
here are my results (first are the questions i asked then the answers)
Question 1: Can you write a basic Planet Code for Orbiter 2016?
Sure! Here's a basic planet code for Orbiter 2016:
; === Configuration file for planet ===
Name = MyPlanet
EllipticOrbit = TRUE ; ignore perturbations
HasElements = TRUE ; orbital elements follow
; === Planetary Mean Orbits ===
Epoch = 2451545.0 ; epoch Julian date
SemiMajorAxis = 149597870700 ; in metres
Eccentricity = 0.01671022
Inclination = 0.0
LongAscNode = 0.0
LongPerihelion = 102.94719
MeanLongitude = 100.46435
; === Physical Parameters ===
Mass = 5.9722e24 ; in kg
Size = 6371000.0 ; mean radius in metres
AlbedoRGB = 0.7 0.7 0.7
; === Rotation Elements ===
SidRotPeriod = 86164.09 ; 23h 56m 4.09s
SidRotOffset = 0.0 ; default orientation
Obliquity = 0.40910518 ; in radians
LAN = 0.0 ; vernal equinox
; === Atmospheric Parameters ===
AtmPressure0 = 101.325e3 ; pressure at sea level in Pa
AtmDensity0 = 1.225 ; density at sea level in kg/m^3
AtmGasConstant = 287.058 ; specific gas constant in J/(K kg)
AtmGamma = 1.4 ; specific heat ratio c_p/c_v
AtmAltLimit = 100000.0 ; altitude at which atmosphere ends in metres
AtmHorizonAlt = 2000.0 ; altitude at which horizon is visible in metres
AtmHazeExtent = 0.1 ; extent of atmospheric haze
AtmColor0 = 0.61 0.8 1.0 ; base color of atmosphere
AtmHazeColor = 0.75 0.9 1.0 ; color of atmospheric haze
; === Data for the Visual ===
MaxPatchResolution = 8 ; highest sphere patch level
; === Visualisation Parameters ===
MinCloudResolution = 1 ; cloud layer from this resolution
MaxCloudResolution = 6 ; highest cloud resolution level
This code defines a planet with basic physical and atmospheric parameters, as well as an elliptical orbit with elements specified. You can customize these parameters to create your own planet in Orbiter 2016.
Question 2: can you make me a Basic Spacecraft4 .ini Vessel file?
Answer: Sure, here's an example of a basic spacecraft4 vessel .ini file for Orbiter 2016:
[VESSEL]
Meshname = spacecraft4\spacecraft4.msh
Mass = 1000
EmptyMass = 500
Thrust = 5000
Isp = 300
EngineAnimation = spacecraft4\engine_anim.msh
DockingPort = 0.0 0.0 10.0 0.0 0.0 1.0
This example includes the basic parameters for a spacecraft4 vessel, including its mesh file name, mass, thrust, specific impulse, engine animation, and docking port position. You can modify these parameters to customize the vessel for your specific needs.
Question3: Can you write me a scenario file for Orbiter 2016?
Answer: Sure! Here's a sample scenario file for Orbiter 2016
BEGIN_DESC
Basic scenario for Orbiter 2016
END_DESC
BEGIN_ENVIRONMENT
System Sol
Date MJD 59000
END_ENVIRONMENT
BEGIN_FOCUS
VESSEL Shuttle-A
NAVMODE 1
TRACKMODE 2
END_FOCUS
BEGIN_HUD
PROJMODE 0
NEAR_CLIP 1
FAR_CLIP 200000000
FOV 60.0
COCKPIT_PANEL 0
PANEL_TRANSPARENCY 0.0
PANEL_COLOR 0 0 0
END_HUD
BEGIN_CAMERA
TARGET Shuttle-A
MODE Cockpit
END_CAMERA
BEGIN_MFD_LEFT
TYPE Surface
END_MFD_LEFT
BEGIN_MFD_RIGHT
TYPE Map
END_MFD_RIGHT
BEGIN_SHIPS
Shuttle-A "Default Shuttle"
{
MODEL ShuttleA
STATUS Landed Earth
POS 28.5 -80.6 0
HEADING 90
ALT 200
PTDOWN 0
}
END_SHIPS
This scenario places the player's spacecraft, Shuttle-A, on the launchpad at Kennedy Space Center in Florida, USA. The HUD is set up to display a cockpit view and two MFDs on the left and right sides of the screen. The camera is set to focus on Shuttle-A and is in cockpit mode. The environment is set to the Sol system and the date is set to MJD 59000.
Its not really SDK but i thought it was interesting, what do you all think of this?