General Question Command line parameters

Danzig70

New member
Joined
Jan 10, 2011
Messages
4
Reaction score
0
Points
0
Are there command line parameters that can be added to the orbiter.exe shortcut? I would like to load specific scenarios from a hyperlink.

The reason for this is that I would like to use the Orbiter Sim for traveling between places and then use something else for when you get there. (Like the space station)

Thanks.
 
None that I know.
 
The only interesting one is

-s <scenario-path>

to launch a scenario directly, bypassing the launchpad. Path is relative to $orbiterroot\Scenarios. Trailing .scn must be omitted. Enclosing the path in double quotes is a good idea.

There are a few other undocumented arguments, but they are either deprecated or not very useful for users.
 
The only interesting one is

-s <scenario-path>

to launch a scenario directly, bypassing the launchpad. Path is relative to $orbiterroot\Scenarios. Trailing .scn must be omitted. Enclosing the path in double quotes is a good idea.

There are a few other undocumented arguments, but they are either deprecated or not very useful for users.

I like this. I created a second desktop shortcut to load the current state scenario, so I can easily pick up right where I last left off if I closed in the middle of a mission/activity.

Thanks for sharing!

Regards,
n122vu
 
I forgot to mention: using the above syntax with -s (lower-case) terminates orbiter on closing the simulation session, independently of what shutdown option you have selected, while -S (capital) uses the default shutdown option (usually going back to the launchpad).
 
I forgot to mention: using the above syntax with -s (lower-case) terminates orbiter on closing the simulation session, independently of what shutdown option you have selected, while -S (capital) uses the default shutdown option (usually going back to the launchpad).

Great news! Thank you.
 
because it is probably looking in the working directory. its no problem, you just need to add the following line before that command:
cd <ORBITER_ROOT>, eg:cd C:\Orbiter or what ever
 
I was going to post this in the D3D9 thread, but realized it's more something for Dr. Martin himself:
Is it possible to make "orbiter_ng.exe" support command line switches like detailed in post #3?

I've tried this cmd file, but it doesn't work (it opens Launchpad though):
Code:
orbiter_ng -s "(Current state)"

whereas this one works well:
Code:
orbiter -s "(Current state)"
 
Thanks it works...though I don't understand why, since in that folder there's only "orbiter.exe"!
:cheers:
 
Last edited:
Thanks it works...though I don't understand why, since in that folder there's only "orbiter.exe"!
Orbiter uses the working directory to read its configuration (and the same set paths of other its components). The Modules/Server/orbiter.exe is the actual non-graphics Orbiter server. Orbiter_ng is only a simple program which is only used to launch the Modules/Server/orbiter.exe with the working path set to Orbiter's root directory, nothing more.
 
For debuging mode with VS, it would be great if there could be a parameter to launch Orbiter in windowed mode, because I have to kill the task of VS if the debugger stop the program in full screen mode (because I forgott to change the video mode to Window)...

Just a small wish :)...
 
Back
Top