How to get the game to run

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

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

Post Reply
Chris21wen
Posts: 7723
Joined: Thu Jan 17, 2002 10:00 am
Location: Cottesmore, Rutland

How to get the game to run

Post by Chris21wen »

Use the command line Switches!

Why
Why you need them is simple, the game was written back in time when computers and particularly graphics were a lot simpler. Thanks to Microsoft and other tech companies they have got progressively more complex and faster in everything they do. Old games and stuff, like me, don't work well if at all in a modern world. So here's an attempt to explain switches.

Switches used with a program (Aps in modern parlance) are instructions to that program to work in a slightly different way and only work with that program. Generally these programs are executable files identified by the .exe at the end of they file name. Switches are simply tacked on to the end of *.exe command line that tell it to run. Autorun.exe is really a menu for running other programs, including other *.exe files that do not have any switches, such as the War in the Pacific Admiral Edition.exe. Ergo for the switches to have any effect you need to add them to the WitPAE.exe directly.

The other very, very imprtant thing about switches is syntax, a posh word for gammer or the structured/expected way a language works. As a computer is a stupid machine it needs precise instructions (syntax) on what to do hence the switches have to be exact or they won't be recognised as instructions and not work.

Example
Here's my command line on 64-bit i7 Windows 10 machine with 1920x1080 display. From what I've read in many threads on this subject one of the main fix is -deepColor forcing the use of 32-bit colour. More on that later. I stress that this is mine and the switches are more than likely to work on most computers.

"D:\Matrix Games\War in the Pacific AE\War in the Pacific Admiral Edition.exe" -pxf1900 -pyf1000 -cpu4 -dd_sw -altFont -multiaudio -deepColor -skipVideo -archive -w

Initial command line
"D:\Matrix Games\War in the Pacific AE\War in the Pacific Admiral Edition.exe" This is the default location and name. Mine is on the D: drive in a folder called \Matrix Games\ and the executable is called War in the Pacific Admiral Edition.exe. Any or all of this can be changed if required but this is the default location I istalled the game too and is what will appear in the my command line by default on stallation. One change that is likely occurs is if you only have one hard drive, C:. That then is what will appear at the start of the command ine. E.g. "C:\Matrix Games\W...

DO NOT DELETE THE QUOTATION MARKS, syntax again.

The switches
-w plays the game in a window. Full screen works but I've always had problems tabbing in and out of other stuff. I.e. switching to email and back. Doing so nearly always results in a scamble screen requring a game restart. A window doe NOT do that.
-pxf1900 -pyf1000 gives me a precise window 1900x1000 pixels occupying most of my 1920x1080 display. It's nearly full screen but I can see other open stuff behind making it easy to switch. You can also us -px#### -py#### but this has to be one of your displays default resolutions. E.g. 1920x1080 or 1600x900 with nothing in between. Set this to you display preference.
-cpu4 uses the forth and last central processing unit in the computer. I have four in mine, the last is one least used by other programs and therefore the one least liekly to be highjacked my other stuff I'm running, possibly avoiding the game to crash. There are two other -SingleCpu switches that you could also use but do not need them. See the WhatsNew.pdf for info
-dd_sw is something to do with how DirectDraw handles the game. It can often reduce the interface lag that can occur on many systems. Your going to have to lookup DierctDraw if you want more.
-altFont uses an alternative font (Lucida Sans Unicode) that is clearer, well it is for me.
-multiaudio fixes possible audio time issues.
-deepColor force the use of 32-bit colour as opposed to 256-bit colour on most modern computers. As the game was written for 32-bit not using this switch causes the graphics card to read each bit and convert it to 256-bit resulting in processing time hence graphic lags.
-skipVideo turns of the intro videos.
-archive saves the turns data reports in a \save\archives

Some of these switches can be essential for the game to run, others are just preferences like -skipVideo. You do not have use all, maybe not any and there are more which can be found in the WhatsNew.pdf.

Where is it
Most people run programs through a shortcut. This is what I have done but you can also run the game by directly clicking on the *.exe, if so then that is were the switches need to be.
Capture.JPG
Capture.JPG (62.12 KiB) Viewed 2543 times
Right click on the shortcut and from the context window that opens select the bottom option, properties. Another window will open with various tabs but by default the shortcut tab is selected as shown. Notice the blue highlighted text, that is the command line. Click at the end (right-hand side of the right quotation mark) the blue highlight will disappear allowing you to enter the switches, Note each switch, including the first, must be separated by a space; syntax again. You can also copy and paste my switches or for that matter anybody's switches that appear in the forum.

Once you have done click apply and then OK.

Now run the shortcut and all should be well. If not you will need tinker, changing switches but only do one at a time.

Seabees
A utility kindly written for those who don't want or can't edit directly. It works well but all it does is write the command line for you from the selections. https://www.matrixgames.com/forums/view ... 4&t=320302
User avatar
Cannon_Jackal
Posts: 39
Joined: Fri May 03, 2024 12:14 pm

Re: How to get the game to run

Post by Cannon_Jackal »

Chris21wen wrote: Sat Feb 18, 2023 1:25 pm Use the command line Switches!

<..>
Thank you - you helped me to solve this issue!

My 2cents:
1) All available handles are described in the supplied document "WITPAE Manual Last Official Update.docx", page 10-11
2) Additionally I used the handler -altFontSize for a bit larger font
1) When I loaded smaller scenario, the map's vertical movement started jerking on HD resolution, even in windowed mode. The game prefers 4:3 aspect ratio, and it seems that a standard formal resolution, not a custom one. So for my bigger monitor I used 1600x1200 px handles, and for my smaller - 1024x768 (the best results, naturally). It's actually quite comfortable because on wide screens you can nicely have the game and the manual next to each other

My another question though. Is there the option to zoom in or out the map? Or it's just scrolling it?
Chris21wen
Posts: 7723
Joined: Thu Jan 17, 2002 10:00 am
Location: Cottesmore, Rutland

Re: How to get the game to run

Post by Chris21wen »

No zoom, just scrolling or using the jump map in the bottom right.
PeteJC
Posts: 235
Joined: Sat Apr 03, 2021 10:28 pm

Re: How to get the game to run

Post by PeteJC »

Chris21 - thanks for posting. I am not fully following how I can fix my problem of the game not going to full screen. Can you post the exact steps on how to fix it. I am not fully following exactly where to go.
PeteJC
Posts: 235
Joined: Sat Apr 03, 2021 10:28 pm

Re: How to get the game to run

Post by PeteJC »

Chris 21 - disregard. I was able to load the game at a full screen (no ability to tab) after I downloaded the latest patch (had no played for over 10 years). Hopefully it will run fine but at least the game starts on a full screen.
Chris21wen
Posts: 7723
Joined: Thu Jan 17, 2002 10:00 am
Location: Cottesmore, Rutland

Re: How to get the game to run

Post by Chris21wen »

The command line is very unforgiving and a simple typo can prevent stuff happening. Try the Seabees ap it will write the line for you.
User avatar
denisonh
Posts: 2083
Joined: Fri Dec 21, 2001 10:00 am
Location: Upstate SC

Re: How to get the game to run

Post by denisonh »

I had the same problem but simply created a batch file to start WitP-AE. Worked like a champ.

Download the file to the directory with the .exe, change the file extension from .txt to .bat, and run it.

Use notepad to modify the extensions.
Attachments
Start1.txt
(122 Bytes) Downloaded 31 times
"Life is tough, it's even tougher when you're stupid" -SGT John M. Stryker, USMC
Chris21wen
Posts: 7723
Joined: Thu Jan 17, 2002 10:00 am
Location: Cottesmore, Rutland

Re: How to get the game to run

Post by Chris21wen »

Yes it works but you don't need to do that and anyway you still need to edit the switches in the bat file.
Post Reply

Return to “Tech Support”