Difference between revisions of "Cmdline arguments"

From Platinum Arts Sandbox Free 3D Game Maker
Jump to: navigation, search
(New page: in sandbox (and in fact, pretty much all cube 2 related projects), there are universal, server and client command line options, this is just a list of them, and their accepted values, note...)
(No difference)

Revision as of 16:33, 17 December 2008

in sandbox (and in fact, pretty much all cube 2 related projects), there are universal, server and client command line options, this is just a list of them, and their accepted values, note all arguments must be prefixed with a -

to change which arguments are used on launch, either launch it manually or..

Windows: edit the clickhere to start bat or use the launcher
Linux: edit the sandbox_unix script, or use the launcher

Universal

g - sets which game module to use, valid arguments are fps, movie or ssp
m - sets which webserver to use as it's masterserver to retrieve server listings and register your server on

client

q - sets which directory to use as home, it saves all files here
k - adds a directory as if it's in the main branch, perfect for loading mods without overwriting existing files
r - executes a configuration file before any real loading begins, executes init.cfg if no arguments are given
d - run the client as a dedicated server, this is already true for the server executable
w - sets the window's width, note if it can't find -h, it'll multiple this value by 3 and divide by 4 and use that as -h
h - sets the window's height, will multiply by 4 and divide by 3 and use the new value as -w if -w can't be found
z - sets the value for depthbits, should be a power of two, max at 32
b - sets the colour depth, the desktop depth is used when at 0
a - sets the value for antialiasing, should be a power of two, max at 16
v - sets vsync, vsync prevents frame tearing but also caps fps at your monitor's refresh rate
t - t0 or t by itself will made the game windowed, t1 will run fullscreen
s - sets the stencil bits, a power of two, above 0 and below 32, 1 is the default
f - f0 or f by itself will run sandbox in fixed-function mode (shaders are off), if given a number (1 or 2), it'll set the shader quality to that value (with shader on of course)
l - use as the start up map instead of the game module's default
x - execute the cubescript string at startup, eg -x"musicvol 0"

server

note the servers have additional options available for each game module

u - sets the maximum upload rate, best if left at 0
c - sets the maximum amountof clients that can connect to the server
i - sets the ip to host the server on, if you possess multiple ips, best if left alone

fps server

n - sets a name for the server for when it shows in someone's server list
p - sets the password needed to grab admin
o - sets whether people can grab master with or without the need for auth

movie server

n - sets a name for the server for when it shows in someone's server list
p - sets the password needed to grab admin
o - sets whether people can grab master with or without the need for approval