Windowed mode

Post bug reports and ask for help with other issues here.

Moderators: wdolson, MOD_War-in-the-Pacific-Admirals-Edition

Post Reply
storn
Posts: 7
Joined: Sun Jul 17, 2022 6:30 pm

Windowed mode

Post by storn »

Hi there,

just bought the game and have a little bit of problems to run it in windowed mode in another then the "stocked" resolution (aka the tiny square).

Tried Sea Bee app (it looks like it is not saving anything, do not know why) and after that googeld and found the command lines for the .exe

So i used this line: -wd -pxf1920 -pyf1080 -archive -deepColor -multiaudio -dd_sw -altFont

As far as i understand, it should start the game in windowed mode (it does) and in an 1920:1080 resolution ( it does not).

So, where is my mistake?
Any help appreciated
Nikel
Posts: 3234
Joined: Tue Mar 24, 2009 10:51 am

Re: Windowed mode

Post by Nikel »

What is your screen resolution?
Last edited by Nikel on Sat Apr 29, 2023 8:52 am, edited 2 times in total.
storn
Posts: 7
Joined: Sun Jul 17, 2022 6:30 pm

Re: Windowed mode

Post by storn »

edit: did not work without the f either

Found it here:

https://www.matrixgames.com/forums/view ... 3&t=319897
Korvar wrote: Fri Dec 29, 2017 5:58 pm Welcome to the game/forums!

There is full support for widescreen up to about 3000 x 1500 or so (if I recall correctly) as of the latest official update (and latest unofficial releases). It's just a matter of configuration.

You'll want to create a shortcut to the game's executable file (.exe) in the game directory if you want to play the official release or in the "Beta2" subdirectory if you have installed and want to play the latest unofficial release.

As for the use of switches in the shortcut, you'll want to add them at the end of the quoted path in the "Target" field as shown below (with one space after the last quotation mark, then the switches):

Image

Keep in mind that the "dashes" are the minus sign and that all switches are case sensitive. For resolution configuration you'll want to use the -f OR -w switch (fullscreen or windowed) in addition to the -pxfxxxx and -pyfyyyy switches where the "xxxx" and "yyyy" represent the numerical resolution dimensions. The 'f' in 'pyf' / 'pxf' stands for 'forced' resolution - it is the preferred method of setting resolution.

There is also a readme file in the game directory that explains most of the game's switches - but do not copy/paste directly from the .pdf file. It uses the wrong dash characters and they won't work. Go ahead and re-type them using the minus key (next to the plus key).

Edit:
For reference, here is the complete Target field in my shortcut:

Code: Select all

"C:\War in the Pacific Admiral's Edition\Beta2\War in the Pacific Admiral Edition.exe" -wd -pxf1920 -pyf1080 -archive -deepColor -multiaudio -dd_sw -altFont


You'll most likely want to use the -dd_sw switch, as the game's interface can be slow without it (except in the newest version of Windows 10, ver 1709, the opposite seems to be true from initial reports). -altFont improves the readability of the game's font, and -deepColor improves the color depth. -archive is used for generating the files needed for the 3rd party utilities Combat Reporter / WitP Tracker / Intel Monkey. -multiaudio resolves a possible misalignment of audio with multi-core processors.

The switches are a game of experimentation. Assuming you want to use 1920 x 1080 as your resolution, I think a good starting point for getting the graphics set up would be:

Code: Select all

 -f -pxf1920 -pyf1080 -deepColor -dd_sw -altFont
Nikel
Posts: 3234
Joined: Tue Mar 24, 2009 10:51 am

Re: Windowed mode

Post by Nikel »

Oh sorry, edited my post above and you have already answered.

So what is your screen resolution?
storn
Posts: 7
Joined: Sun Jul 17, 2022 6:30 pm

Re: Windowed mode

Post by storn »

Nikel wrote: Sat Apr 29, 2023 8:47 am What is your screen resolution?
1920:1080

tried also different resolutions in the command line, nothing changed, always the same squared window
Nikel
Posts: 3234
Joined: Tue Mar 24, 2009 10:51 am

Re: Windowed mode

Post by Nikel »

That is the problem.

You cannot fit your maximum resolution in a window. You will have to use -f instead of -w for the maximum.

You will have to reduce it to a smaller resolution.

Which smaller resolutions your monitor supports?
Last edited by Nikel on Sat Apr 29, 2023 9:09 am, edited 1 time in total.
storn
Posts: 7
Joined: Sun Jul 17, 2022 6:30 pm

Re: Windowed mode

Post by storn »

as said, nothing changes when i alter the resolution. So even with 780 : 500 or other completly odd settings, always the same square
Nikel
Posts: 3234
Joined: Tue Mar 24, 2009 10:51 am

Re: Windowed mode

Post by Nikel »

I have 1920 x 1200 in full screen.

Did some tests windowed.

If you use -px -py, you will have to use a smaller resolution that your monitor support, example 1680 x 1050, 1600 x 900, etc.

If you use -pxf -pyf, you can use other resolutions, just tried -w -pxf1910 -pyf1000 and is nearly full screen in a window, with the taskbar not hidden.
storn
Posts: 7
Joined: Sun Jul 17, 2022 6:30 pm

Re: Windowed mode

Post by storn »

Sadly not working for me. But it looks like the whole command-line is not working, as also the skip video etc. will not apply. Strange thing.

But thank you very much for your effords.
Nikel
Posts: 3234
Joined: Tue Mar 24, 2009 10:51 am

Re: Windowed mode

Post by Nikel »

It works, you are doing something wrong.

Just in case the commands are applied in the shortcut of the exe, in the target box, like is displayed in the pic above.

May you post the similar pic in your computer?
storn
Posts: 7
Joined: Sun Jul 17, 2022 6:30 pm

Re: Windowed mode

Post by storn »

Image
Image
Image
Image
Nikel
Posts: 3234
Joined: Tue Mar 24, 2009 10:51 am

Re: Windowed mode

Post by Nikel »

Looks OK to me. So more questions :)

Those are the correct drive and folder where the game is installed?

Did you update the game? You may post the main menu screen to see the version.


Edit: the second box should be F:\, but tried here and works the same :)
storn
Posts: 7
Joined: Sun Jul 17, 2022 6:30 pm

Re: Windowed mode

Post by storn »

Nikel wrote: Sat Apr 29, 2023 11:47 am (...)

Did you update the game? You may post the main menu screen to see the version.


(...)
Shame on me :oops:

Was not updated correctly, now it works fine. Thanks man, realy gratefull, never thought of it. ~
Nikel
Posts: 3234
Joined: Tue Mar 24, 2009 10:51 am

Re: Windowed mode

Post by Nikel »

Yes, the command switches were added in one of the updates.


Enjoy the game! :)
Post Reply

Return to “Tech Support”