Page 1 of 1

Trouble with resolution

Posted: 03 Feb 2007, 02:15
by kipman725
Hello I am having trouble setting the resolution of wz2100 in linux:

kipman725@kip:/home$ warzone2100 --help
Warzone 2100:
  An OpenGL based 3D real time strategy game, scened in post-nuclear warfare
Usage:
  warzone2100 [OPTIONS]
Options:
  --cheat                    Run in cheat mode
  --datadir DIR              Set default datadir to DIR
  --debug FLAGS              Show debug for FLAGS
  --debugfile FILE          Log debug output in FILE
  --fullscreen              Play in fullscreen mode
  --help                    Show this help and exit
  --mod MOD                  Enable global mod MOD
  --mod_ca MOD              Enable campaign only mod MOD
  --mod_mp MOD              Enable multiplay only mod MOD
  --savegame NAME            Load a saved game NAME
  --window                  Play in windowed mode
  --version                  Output version info and exit
  --resolution WIDTHxHEIGHT  Set the resolution (screen or window)
  --(no)shadows              Toggles the shadows
  --(no)sound                Toggles the sound

so then I type warzone2100 --resolution 1280x1024 --fullscreen --noshadows

but the resolution remains unchanged and I still have shadows

Re: Trouble with resolution

Posted: 03 Feb 2007, 04:59
by lav_coyote25
"C:\Warzone 2100_205_rc2\warzone2100.exe"  --mod grim.wz --fullscreen --viewport 1280x1024


this is a desktop shortcut. it needs to be exactly what is shown  (your folder three may be different. set it to reflect what your folder tree is.)

any questions please ask.
;D

Re: Trouble with resolution

Posted: 03 Feb 2007, 09:21
by kage
er... bro, coyote. heh, kip's not using windows...

ah, looks like i found the problem. well, maybe i didn't. anyways, in the most recent versions, --resolution is deprecated in favor of --viewport, and there may have been a version where the command line help and documentation said "--resolution" when it was really accepting "--viewport", though i might be wrong. i really don't know what the deal is with --resolution not working, but i'm pretty sure that --viewport will work in the later releases. if --resolution isn't working, it is probably either a bug from one of the older versions, or something is wrong with your xrandr or xvidmode programs (don't know which, if either, would be used implicitly), though if you have little trouble changing the fullscreen resolution of other games, then it's probably just a game bug. as said, unless you have a specific interest in that particular version, the newer versions shouldn't have that problem.

edit: removed now pointless link. also, ignore the above.

Re: Trouble with resolution

Posted: 03 Feb 2007, 10:10
by cybersphinx
Eh, other way round: --resolution replaced --viewport, since viewport was pretty undescriptive. So if the help says --resolution, that should work... Any useful output? Which version (that could be added to the output...)? What does the game do (I guess run in 640x480 windowed)? Try Alt-s, that should deactivate the shadows, and Alt-enter switches to fullscreen.

Re: Trouble with resolution

Posted: 03 Feb 2007, 11:32
by lav_coyote25
so on top of getting old - i am going blind and ... ( insert insane looking smiley here... ;D )

Re: Trouble with resolution

Posted: 03 Feb 2007, 11:49
by kage
so the --resolution option is so far only in svn?

oh, and coyote brings up an important point: why the hell don't we have a straight-jacket smiley?!

Re: Trouble with resolution

Posted: 03 Feb 2007, 13:29
by DevUrandom
*g*
You found my early April's fools joke. ;)

To be honest: When I put the change from --viewport to --resolution into the 2.0 version, I changed the --help description, but forgot the actual parameter. That's why the 2.0.5 version says it wants --resolution, but really wants --viewport.
This is of course fixed for the 2.0.6 version.

Re: Trouble with resolution

Posted: 04 Feb 2007, 17:49
by kipman725
thats fixed it thanks :)

Re: Trouble with resolution

Posted: 04 Feb 2007, 23:18
by Giel
kipman725 wrote: thats fixed it thanks :)
shadows are disabled as well now?

Re: Trouble with resolution

Posted: 04 Feb 2007, 23:57
by kipman725
negative but I upgraded my graphics card so there is no longer any reason to disable them