Trouble with resolution

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
User avatar
kipman725
Trained
Trained
Posts: 84
Joined: 03 Feb 2007, 01:52
Location: UK

Trouble with resolution

Post 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
Duel Heavy Cannon Python Tracks... gonna roll right over you
User avatar
lav_coyote25
Professional
Professional
Posts: 3434
Joined: 08 Aug 2006, 23:18

Re: Trouble with resolution

Post 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
‎"to prepare for disaster is to invite it, to not prepare for disaster is a fools choice" -me (kim-lav_coyote25-metcalfe) - it used to be attributed to unknown - but adding the last bit , it now makes sense.
User avatar
kage
Regular
Regular
Posts: 751
Joined: 05 Dec 2006, 21:45

Re: Trouble with resolution

Post 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.
Last edited by kage on 03 Feb 2007, 11:53, edited 1 time in total.
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: Trouble with resolution

Post 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.
We want information... information... information.
User avatar
lav_coyote25
Professional
Professional
Posts: 3434
Joined: 08 Aug 2006, 23:18

Re: Trouble with resolution

Post by lav_coyote25 »

so on top of getting old - i am going blind and ... ( insert insane looking smiley here... ;D )
‎"to prepare for disaster is to invite it, to not prepare for disaster is a fools choice" -me (kim-lav_coyote25-metcalfe) - it used to be attributed to unknown - but adding the last bit , it now makes sense.
User avatar
kage
Regular
Regular
Posts: 751
Joined: 05 Dec 2006, 21:45

Re: Trouble with resolution

Post 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?!
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Trouble with resolution

Post 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.
User avatar
kipman725
Trained
Trained
Posts: 84
Joined: 03 Feb 2007, 01:52
Location: UK

Re: Trouble with resolution

Post by kipman725 »

thats fixed it thanks :)
Duel Heavy Cannon Python Tracks... gonna roll right over you
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18

Re: Trouble with resolution

Post by Giel »

kipman725 wrote: thats fixed it thanks :)
shadows are disabled as well now?
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
User avatar
kipman725
Trained
Trained
Posts: 84
Joined: 03 Feb 2007, 01:52
Location: UK

Re: Trouble with resolution

Post by kipman725 »

negative but I upgraded my graphics card so there is no longer any reason to disable them
Duel Heavy Cannon Python Tracks... gonna roll right over you