OpenArena Message Boards

OpenArena => General => Topic started by: vindimy on May 07, 2009, 01:04:45 AM



Title: passing parameters to openarena on launch
Post by: vindimy on May 07, 2009, 01:04:45 AM

I'm interested in passing parameters to openarena.exe / openarena.i386 so that the following can be achieved:

* Immediately connect to some game server
* Immediately start playing certain map in certain game type

I think I know the answers:

Code:
openarena.exe +set server 10.0.0.1

Code:
openarena.exe +set map oasago2 +set g_gametype 4

But I can't test these 'cause I don't have a working installation of OA at the time e:/

Do you think that's right / there's another way?


Title: Re: passing parameters to openarena on launch
Post by: sago007 on May 07, 2009, 03:35:33 AM
To connect to a server I think it is:
openarena.exe +connect 10.0.0.1 (no "set" because "connect" is a command not a cvar)

I don't know how to start a listening server from the command line.

Edit:
openarena.exe +set g_gametype 4 +map oasago2 (again no "set" because "map" is a command. cvars must be set before the command)


Title: Re: passing parameters to openarena on launch
Post by: vindimy on May 07, 2009, 07:00:10 PM
Thanks, this is helpful! I wasn't aware that cvars and commands are not the same things (there's also binds...).

I'm assuming that "+connect 10.0.0.1" could also work as "+connect 10.0.0.1:27960" but I'll have to try it when I can.

On a related subject, do you know of a place where those commands and cvars are completely defined? I've been looking around ioquake3 and various gaming places, but it's all fragmented... What I have now is these links: http://oa-conf.thedimi.net/forum/showthread.php?tid=20