Bug #12414

Startup parameters -x and -y being overwritten by ArmA2.cfg

Added by Kamran over 4 years ago. Updated almost 4 years ago.

Status:Expired Start date:07/28/2010
Priority:Normal Due date:11/01/2010
Assignee:- % Done:

0%

Category:Startup parameters
Target version:-
Affected ArmA II version:1.53 BETA First affected build:
Reproduced by another DH user:No First affected ArmA II version:
I am using some Mods:No Single / Multi Player?:
I am using:CO (A2+OA) BIForumURL:
Reproducible for you:Yes NGUrl:
Related to content of DLC: WIKIurl:

Description

-x and -y startup parameters are overwritten by winW and winH properties in ArmA2.cfg file when starting in windowed mode (-window).

Documentation see: http://community.bistudio.com/wiki/Arma2:_Startup_Parameters

Reproduction:
- Run A2 with -window -x=1024 -y=768 startup parameters
- Make sure, that winW and winH properties in ArmA2OA.cfg file are not set to 1024 and 768
- Problem: The A2 window is in the size specified by A2.cfg file

Expected:
- A2 window size should be set by startup parameters -x and -y (here: 1024x768)
- Startup parameters should have priority over .cfg-file

Seen on Windows 7 64bit (Aero disabled)

startupParamXY.png (402.6 kB) Kamran, 07/28/2010 11:16

History

Updated by Kamran over 4 years ago

Reproduceable in A1 Demo, too.

Updated by kju over 4 years ago

  • Due date set to 11/01/2010
  • Status changed from New to Assigned
  • Assignee set to Dwarden

tx

Updated by Kamran over 4 years ago

These parameters actually do not do anything at all. They do not alter screen resolution or window size (I remember they did for OFP and VBS1). Someone has extracted the parameters for A2.exe (see: http://community.bistudio.com/wiki/Talk:Arma2:_Startup_Parameters) and they are not listed, meaning, they do not exist.

According to VBS2 documentation and VBS Biki page (http://community.bistudio.com/wiki/Virtual_Battlespace:_Startup_Parameters) startup parameters -x=<number> and -y=<number> are deprecated since VBS2 (and probably for ArmA1 and ArmA2, too). VBS2 documentation states: Deprecated (use VBS2.cfg parameters instead) screen resolution / window size.

It looks like the information in the Biki for A1 and A2 startup parameters are a result of copy-and-pasting from previous products.

Updated by kju over 4 years ago

You can configure the size the arma2.cfg at least.

Render_H=960;
Render_W=1280;
Resolution_Bpp=32;
winDefH=960;
winDefW=1280;
winH=960;
winW=1280;
winX=0;
winY=0;
Resolution_W=1288;
Resolution_H=994;
refresh=75;
Windowed=0;

It should be these for window mode:

winH=960;
winW=1280;
winX=0;
winY=0;

Updated by Kamran over 4 years ago

Yes, that's for size and position in windowed mode. I guess an update on the Biki articles should be just fine.

Updated by kju over 4 years ago

Please do so. :)

Updated by kju over 4 years ago

  • Status changed from Assigned to Feedback
  • Assignee deleted (Dwarden)

Updated by Kamran about 4 years ago

Done.

Updated by kju almost 4 years ago

  • Status changed from Feedback to Expired

ty

Also available in: Atom PDF