Pages: [1]
  Print  
Author Topic: passing parameters to openarena on launch  (Read 6598 times)
vindimy
Bigger member


Cakes 15
Posts: 161


lolwut?


WWW
« 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?
Logged

sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #1 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)
Logged

There are nothing offending in my posts.
vindimy
Bigger member


Cakes 15
Posts: 161


lolwut?


WWW
« Reply #2 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
Logged

Pages: [1]
  Print  
 
Jump to: