You are not logged in.

#1 2009-01-09 03:45:51

justin
Member
From: Philadelphia
Registered: 2007-04-18
Posts: 132

Sauerbraten resolution.

Anyone have any luck launching sauerbraten into a different resolution then from what is default?

sauerbraten-client -w1680 -h1050

doesn't work.

Offline

#2 2009-01-09 03:51:56

josomebody
Member
Registered: 2008-06-20
Posts: 190

Re: Sauerbraten resolution.

sauerbraten-client is a shell script that's not too good at taking options. edit that script to pass the resolution when it actually calls the binary, which is in /opt somewhere, and it'll work. you can call any other commandline options that way too.


: () { : | :& } ;:

Offline

#3 2009-01-09 03:59:06

justin
Member
From: Philadelphia
Registered: 2007-04-18
Posts: 132

Re: Sauerbraten resolution.

Since you replied so quickly, follow up question. Is there a command line option to turn off fullscreen? I'd rather run 1280x1024 in a window.

EDIT: I edited the script, but it still doesn't use the right resolution:

cat /usr/bin/sauerbraten-client 
#!/bin/sh

WIDTH=1680
HEIGHT=1050
[ -f /etc/conf.d/sauerbraten ] && . /etc/conf.d/sauerbraten

cd /opt/sauerbraten
if [ -f /usr/bin/aoss ]; then
    aoss bin/linux_client -w$WIDTH -h$HEIGHT
else
    bin/linux_client -w$WIDTH -h$HEIGHT
fi

Last edited by justin (2009-01-09 04:04:33)

Offline

#4 2009-01-09 04:04:27

josomebody
Member
Registered: 2008-06-20
Posts: 190

Re: Sauerbraten resolution.

pretty sure there is. not at my machine with sauer on it at the moment. it would be in the man page or the online docs.


: () { : | :& } ;:

Offline

#5 2009-01-09 04:28:41

josomebody
Member
Registered: 2008-06-20
Posts: 190

Re: Sauerbraten resolution.

You're trying to run it at 1680x1050?
It's been a while since I've fooled with it. Could be that they changed the format for cmdline options or some of them just aren't supported that way anymore and they forgot to document it, can't remember. One surefire solution is to put it in the config files, which you can edit in-game as long as the permissions are right on those files. Usually your settings will kick in after you close the menu the first time, and it'll prompt you if you're sure you want to do the change. Feels like a waste of a couple of seconds, but it works.


: () { : | :& } ;:

Offline

#6 2009-02-12 12:43:39

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: Sauerbraten resolution.

I solved this.



where you have the bold line there is another config file which is the one you should fix to get your resolution.

justin wrote:

Since you replied so quickly, follow up question. Is there a command line option to turn off fullscreen? I'd rather run 1280x1024 in a window.

EDIT: I edited the script, but it still doesn't use the right resolution:

---
cat /usr/bin/sauerbraten-client
#!/bin/sh

WIDTH=1680
HEIGHT=1050
[ -f /etc/conf.d/sauerbraten ] && . /etc/conf.d/sauerbraten

cd /opt/sauerbraten
if [ -f /usr/bin/aoss ]; then
    aoss bin/linux_client -w$WIDTH -h$HEIGHT
else
    bin/linux_client -w$WIDTH -h$HEIGHT
fi

so you must edit:
/etc/conf.d/sauerbraten

and set the resolution you wish.

Last edited by quarkup (2009-02-12 12:45:36)


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

#7 2009-02-22 08:48:00

listdata
Member
Registered: 2008-12-23
Posts: 102
Website

Re: Sauerbraten resolution.

quarkup wrote:

I solved this.



where you have the bold line there is another config file which is the one you should fix to get your resolution.

justin wrote:

Since you replied so quickly, follow up question. Is there a command line option to turn off fullscreen? I'd rather run 1280x1024 in a window.

EDIT: I edited the script, but it still doesn't use the right resolution:

---
cat /usr/bin/sauerbraten-client
#!/bin/sh

WIDTH=1680
HEIGHT=1050
[ -f /etc/conf.d/sauerbraten ] && . /etc/conf.d/sauerbraten

cd /opt/sauerbraten
if [ -f /usr/bin/aoss ]; then
    aoss bin/linux_client -w$WIDTH -h$HEIGHT
else
    bin/linux_client -w$WIDTH -h$HEIGHT
fi

so you must edit:
/etc/conf.d/sauerbraten

and set the resolution you wish.

Is there a way to turn off fullscreen mode? Every time I start the game I have to go into the display options and turn off the "fullscreen" option manually. sad

Last edited by listdata (2009-02-22 08:49:11)

Offline

Board footer

Powered by FluxBB