Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Command Line Switch Reference

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> War in the Pacific: Admiral's Edition >> Tech Support >> Command Line Switch Reference Page: [1] 2   next >   >>
Login
Message << Older Topic   Newer Topic >>
Command Line Switch Reference - 9/18/2016 11:38:55 PM   
Knyvet


Posts: 138
Joined: 10/10/2009
Status: offline
Source: War in the Pacific: Admiral’s Edition Read me File – 21 January 2012 Version1.01.08r9

To use any of these, Right click to edit the Properties on the “Quick Start” shortcut to the game (located in your Start Menu folder for War in the Pacific: Admiral’s Edition). Do not edit the default desktop link, which points to an “autorun.exe” as that won’t work. You have to use the Quick Start link which points directly to the game executable. You’ll want to add these to the end of the “Target” field to get them to work.

COMMAND LINE SWITCHES
-altFont
Enables alternate in-game font (Lucida Sans Unicode).

-cpu4
(cpu1, cpu2, cpu3, cpu4) Switches set the cpu affinity for multi cpu systems. It will do nothing for single cores and will default to using all cores if a core is designated which is not there (for example using -cpu3 on a dual core system). We’ve found this to be very useful on some multi-core systems, especially Intel processors.

If used alone, the -cpu# switches will keep the game running on the CPU specified all the time. If used with the -SingleCpuStart switch, it will only use that core when starting the game. If used with the -SingleCpuOrders switch, it will stay in single CPU mode for starting and the orders phase, but will run in multicore. If one of the SingleCpu switches is used without a -cpu# switch, it will default to cpu 1 when it is in single core.

-deepColor
Enables 32 bit color, intended for Full Screen mode.

-skipVideo
Skip the intro video when starting the game.

-colorBlind
Support for color blindness.

-w
Windowed mode, so that the window is within desktop.

-wd
Windowed mode, daily autosaves.

-ww
Windowed mode, weekly autosaves.

-f
Full-screen mode.

-fd
Full screen, daily autosaves.

-fw
Full screen, weekly autosaves.

-px#### -py####
To have any effect x must be greater than 1024 and y must be greater than 768. If values less than or equal to px=1024 and py=768 are used the original values of 1024 and 768 will be substituted.

Spanning mode is not supported and user should ensure that both the video adapter and monitor support the px and py values.

We were unable to test on all possible monitor combinations, if you experience issues you should immediately remove the –px –py from your command line switches to revert to standard display behavior.
See above.

-dd_sw
Handles DirectDraw via Software. We’ve found this can make a huge difference on many systems as far as reducing interface lag and making button clicking in-game more responsive. On a few newer systems this can cause some visual glitches and slow combat animations though, so give it a try and remove it if it’s not ideal on your system.

-archive
Put data reports in archive directory.

-multiaudio
Invokes a fix that changes audio timing for multicore machines.

-SingleCpuOrders
Starts the game in single CPU mode and stays in single CPU for the orders phase, switches to multi CPU mode for running the turn, then switches back to single mode for the next orders phase. We’ve found this to be useful on some multi-core systems, especially AMD processors. Use this or –SingleCpuStart, not both.

-SingleCpuStart
Starts the game in single CPU mode. Switches to multi CPU mode if available later. We’ve found this to be useful on some multi-core systems, especially AMD processors.

-archive
Daily autosave.

-r
Show Roads.

-fixedArt
Will not use rotating images.
Post #: 1
RE: Command Line Switch Reference - 9/19/2016 12:58:55 AM   
Korvar


Posts: 813
Joined: 9/3/2014
Status: offline
Good idea!

A couple more that come to mind:

-pxf#### -pyf####
A more 'forceful' implementation of the -px and -py switches. Allows 'non-standard' resolutions. If the -px -py switches aren't working for you, try these.

-noFire
Disables the fires, explosions, etc. in the combat replays. Helps with certain video cards that don't handle these well.


Also, a few brief reminders:

-dd_sw and -deepColor are the ones to try first if you have slow interface issues (often in relatively newer versions of Windows: 7, 8, 10).

-archive is very important if you plan to use any of the optional add-on utilties to WitPAE (Tracker, Combat Reporter, Intel Monkey, etc.).

As 4k+ resolution monitors become more common, there has been at least one report of an upper resolution limit of 3000 x 1500 (unconfirmed so far) where slowness returns above that. It could easily be specific to the 1st report though.

(in reply to Knyvet)
Post #: 2
RE: Command Line Switch Reference - 9/19/2016 9:12:25 PM   
littleike

 

Posts: 135
Joined: 10/3/2007
Status: offline
skip this (i was adding -fixedArt but still present)


PS: -pxf and -pyf worked very well for me on my tablet. Now i can play in windowed mode without miss the last line (industries) of the main map and having access at the virtual keyboard when requested!!

< Message edited by littleike -- 9/19/2016 9:21:03 PM >

(in reply to Korvar)
Post #: 3
RE: Command Line Switch Reference - 9/21/2016 7:27:38 PM   
Taxcutter

 

Posts: 257
Joined: 4/4/2016
Status: offline
-pxf and -pyf have given me a glimmer of hope.

Scrolling lag has been reduced by maybe 25%. It will scroll a little now.

(in reply to littleike)
Post #: 4
RE: Command Line Switch Reference - 2/25/2018 5:12:43 PM   
Acme1970

 

Posts: 25
Joined: 1/25/2006
Status: offline
Does anyone know if these commands work with War Plan Orange too?

(in reply to Knyvet)
Post #: 5
RE: Command Line Switch Reference - 2/25/2018 5:30:59 PM   
btd64


Posts: 7331
Joined: 1/23/2010
From: Mass. USA. now in OHIO
Status: offline
NO. I tried them along time back with no joy....GP

_____________________________

Intel i7 4.3GHz 10th Gen,16GB Ram,Nvidia GeForce MX330

AKA General Patton

WPO,WITP,WITPAE-Mod Designer/Tester
DWU-Beta Tester
TOAW4-Alpha/Beta Tester

I don't like paying for the same real estate twice..Gen. George S. Patton

(in reply to Acme1970)
Post #: 6
RE: Command Line Switch Reference - 2/25/2018 6:03:54 PM   
BBfanboy


Posts: 15441
Joined: 8/4/2010
From: Winnipeg, MB
Status: offline

quote:

ORIGINAL: littleike

skip this (i was adding -fixedArt but still present)


PS: -pxf and -pyf worked very well for me on my tablet. Now i can play in windowed mode without miss the last line (industries) of the main map and having access at the virtual keyboard when requested!!

-fixedArt just means the art for units or equipment data does not rotate to give you an all-round view. It does not "fix" anything but the rotation.

_____________________________

No matter how bad a situation is, you can always make it worse. - Chris Hadfield : An Astronaut's Guide To Life On Earth

(in reply to littleike)
Post #: 7
RE: Command Line Switch Reference - 2/25/2018 9:58:21 PM   
Acme1970

 

Posts: 25
Joined: 1/25/2006
Status: offline

quote:

ORIGINAL: btd64

NO. I tried them along time back with no joy....GP


That's interesting, aren't the two games essentially using the same engine, you would figure the same commands would work.

(in reply to btd64)
Post #: 8
RE: Command Line Switch Reference - 2/25/2018 11:26:33 PM   
Alfred

 

Posts: 6245
Joined: 9/28/2006
Status: offline

quote:

ORIGINAL: Acme1970


quote:

ORIGINAL: btd64

NO. I tried them along time back with no joy....GP


That's interesting, aren't the two games essentially using the same engine, you would figure the same commands would work.


It isn't that straightforward.

WPO is basically just a database and unit art update on classical WITP. AE is that plus a substantial rewrite of the code. In doing that they also subsequently created the hooks to accommodate the new command line switches.

There is simply no comparison between the amount of new code programming which has gone into AE prior to and subsequent to its release with the code programming effort put into WPO.

Alfred

(in reply to Acme1970)
Post #: 9
RE: Command Line Switch Reference - 2/27/2018 9:02:09 PM   
ericv

 

Posts: 325
Joined: 1/21/2012
Status: offline
being a programmer myself i always wondered about the -cpu# switch


The OS decides which CPU to use for what application. Applications normally don't have anything to say about it.

Must be some assembly magic going on

(in reply to Alfred)
Post #: 10
RE: Command Line Switch Reference - 2/27/2018 9:16:03 PM   
BBfanboy


Posts: 15441
Joined: 8/4/2010
From: Winnipeg, MB
Status: offline

quote:

ORIGINAL: ericv

being a programmer myself i always wondered about the -cpu# switch


The OS decides which CPU to use for what application. Applications normally don't have anything to say about it.

Must be some assembly magic going on

I think the way it was explained is that the game engine code pre-dates the advent of multicore processors, so it defaults to CPU 1, which is also used by the O/S. The switches hook into the code in the right place to get the game to use another CPU. It didn't sound like the O/S would do that on its own for this particular old program.

_____________________________

No matter how bad a situation is, you can always make it worse. - Chris Hadfield : An Astronaut's Guide To Life On Earth

(in reply to ericv)
Post #: 11
RE: Command Line Switch Reference - 3/27/2018 10:13:37 PM   
cirrius06

 

Posts: 6
Joined: 3/27/2018
Status: offline
Hello,
I only have slow game problems and yet my new laptop is powerful, I7 / GC950MX / 8GB ram, etc ...
I have W10 version 1709 and I tried all the switches described on the forum ...
-dd_sw and -deepColor have no effect on my configuration.
If someone has an idea ? Thank you.

(in reply to BBfanboy)
Post #: 12
RE: Command Line Switch Reference - 3/27/2018 10:26:05 PM   
BBfanboy


Posts: 15441
Joined: 8/4/2010
From: Winnipeg, MB
Status: offline

quote:

ORIGINAL: cirrius06

Hello,
I only have slow game problems and yet my new laptop is powerful, I7 / GC950MX / 8GB ram, etc ...
I have W10 version 1709 and I tried all the switches described on the forum ...
-dd_sw and -deepColor have no effect on my configuration.
If someone has an idea ? Thank you.

Are you sure you are using the hyphen and not the minus sign ahead of the switches?
Another common mistake for first timers is that they use the shortcut that is installed by the game on the desktop. This shortcut does not point to the game executable, it points to a Autorun Menu that allows you to choose between game, editor, manual or updates. The switches will not work with this executable.
You need to go to the game directory, find the game executable itself, create a new shortcut to that and drag it to your desktop. Put the switches in there and it should work. Here is my line with the correct path for where the game is installed on my computer:

"C:\Matrix Games\War in the Pacific Admiral's Edition\War in the Pacific Admiral Edition.exe" -altFont -archive -deepColor -dd_sw -px1920 -py1080 -fixedArt -skipVideo -SingleCpuOrders -cpu2


Please post your complete path line for your startup, including the switches.

_____________________________

No matter how bad a situation is, you can always make it worse. - Chris Hadfield : An Astronaut's Guide To Life On Earth

(in reply to cirrius06)
Post #: 13
RE: Command Line Switch Reference - 3/28/2018 7:32:33 AM   
cirrius06

 

Posts: 6
Joined: 3/27/2018
Status: offline
Thank you for your reply.
I did exactly as you told me but alas it does not change the speed of the game.
It is especially the scrolling of the map that is impacted.
My PC is new I can not go back to version W10 / 1703 who in my opinion would be the cause of the problem?

(in reply to BBfanboy)
Post #: 14
RE: Command Line Switch Reference - 3/28/2018 12:50:02 PM   
btd64


Posts: 7331
Joined: 1/23/2010
From: Mass. USA. now in OHIO
Status: offline
Try this line up;
-skipVideo -fd -pxf1920 -pyf1080 -altFont -cpu2 -deepColor

I run windows 10 and only have a 3 second slowdown with combat and animations during the night phase. It is something you can live with. Give it a try. You may have to change the rez setting to suit your computer....GP

_____________________________

Intel i7 4.3GHz 10th Gen,16GB Ram,Nvidia GeForce MX330

AKA General Patton

WPO,WITP,WITPAE-Mod Designer/Tester
DWU-Beta Tester
TOAW4-Alpha/Beta Tester

I don't like paying for the same real estate twice..Gen. George S. Patton

(in reply to cirrius06)
Post #: 15
RE: Command Line Switch Reference - 3/28/2018 1:11:17 PM   
MakeeLearn


Posts: 4231
Joined: 9/11/2016
Status: offline

quote:

ORIGINAL: cirrius06

Thank you for your reply.
I did exactly as you told me but alas it does not change the speed of the game.
It is especially the scrolling of the map that is impacted.
My PC is new I can not go back to version W10 / 1703 who in my opinion would be the cause of the problem?



Copy and post your Command Line Switch here.

(in reply to cirrius06)
Post #: 16
RE: Command Line Switch Reference - 3/28/2018 1:21:10 PM   
cirrius06

 

Posts: 6
Joined: 3/27/2018
Status: offline
Indeed there is a "small" improvement in the scrolling of the map.
Your formula seems to be the most successful among the dozen others tried ...
It will never be worth with Windows 7 but I will have to content myself!
Thank you very much for your help "btd64".

(in reply to MakeeLearn)
Post #: 17
RE: Command Line Switch Reference - 3/28/2018 1:26:35 PM   
btd64


Posts: 7331
Joined: 1/23/2010
From: Mass. USA. now in OHIO
Status: offline

quote:

ORIGINAL: cirrius06

Indeed there is a "small" improvement in the scrolling of the map.
Your formula seems to be the most successful among the dozen others tried ...
It will never be worth with Windows 7 but I will have to content myself!
Thank you very much for your help "btd64".


Your welcome Now add the -dd_sw switch to the end and see if that helps with the scrolling. don't remove any of the other switches when doing so....GP

_____________________________

Intel i7 4.3GHz 10th Gen,16GB Ram,Nvidia GeForce MX330

AKA General Patton

WPO,WITP,WITPAE-Mod Designer/Tester
DWU-Beta Tester
TOAW4-Alpha/Beta Tester

I don't like paying for the same real estate twice..Gen. George S. Patton

(in reply to cirrius06)
Post #: 18
RE: Command Line Switch Reference - 3/28/2018 1:43:16 PM   
cirrius06

 

Posts: 6
Joined: 3/27/2018
Status: offline
De MakeeLearn,
quote:

Copy and post your Command Line Switch here.


"C:\Matrix Games\War in the Pacific Admiral's Edition\War in the Pacific Admiral's Edition -skipVideo -fd -pxf1920 -pyf1080 -altFont -cpu2 -deepColor.exe"

The magic formula !?

(in reply to MakeeLearn)
Post #: 19
RE: Command Line Switch Reference - 3/28/2018 1:50:01 PM   
btd64


Posts: 7331
Joined: 1/23/2010
From: Mass. USA. now in OHIO
Status: offline
.exe shouldn't be on the end like that. I will post the whole thing in a few minutes. I'm running a turn....GP

_____________________________

Intel i7 4.3GHz 10th Gen,16GB Ram,Nvidia GeForce MX330

AKA General Patton

WPO,WITP,WITPAE-Mod Designer/Tester
DWU-Beta Tester
TOAW4-Alpha/Beta Tester

I don't like paying for the same real estate twice..Gen. George S. Patton

(in reply to cirrius06)
Post #: 20
RE: Command Line Switch Reference - 3/28/2018 1:58:47 PM   
cirrius06

 

Posts: 6
Joined: 3/27/2018
Status: offline
De btd64,
quote:

Your welcome Now add the -dd_sw switch to the end and see if that helps with the scrolling. don't remove any of the other switches when doing so....GP


No, unfortunately, it does not bring anything more ...
2by3 Games should make us a patch "special W10"!

(in reply to cirrius06)
Post #: 21
RE: Command Line Switch Reference - 3/28/2018 2:27:35 PM   
btd64


Posts: 7331
Joined: 1/23/2010
From: Mass. USA. now in OHIO
Status: offline
Setup your Target line like this. Notice where the .exe" is. Also make sure you are using the dash and not the minus key.

"C:\Matrix Games\WITPAE RA Mod\Beta2\War in the Pacific Admiral Edition.exe" -skipVideo -fd -pxf1920 -pyf1080 -altFont -cpu2 -deepColor

Try it this way and then try the -dd_sw switch if you don't have enough improvement.
One other thing, this target line assumes that you are running the latest Beta. Also the "WITPAE RA Mod" is my file name, so use your file name....GP

< Message edited by btd64 -- 3/28/2018 2:29:24 PM >


_____________________________

Intel i7 4.3GHz 10th Gen,16GB Ram,Nvidia GeForce MX330

AKA General Patton

WPO,WITP,WITPAE-Mod Designer/Tester
DWU-Beta Tester
TOAW4-Alpha/Beta Tester

I don't like paying for the same real estate twice..Gen. George S. Patton

(in reply to cirrius06)
Post #: 22
RE: Command Line Switch Reference - 3/28/2018 2:40:12 PM   
MakeeLearn


Posts: 4231
Joined: 9/11/2016
Status: offline
quote:

ORIGINAL: cirrius06

De MakeeLearn,
quote:

Copy and post your Command Line Switch here.




"C:\Matrix Games\War in the Pacific Admiral's Edition\War in the Pacific Admiral's Edition -skipVideo -fd -pxf1920 -pyf1080 -altFont -cpu2 -deepColor.exe"

The magic formula !?



Bad .exe !!! and quotes in wrong location.

My setup:
"C:\Matrix Games\War in the Pacific Admiral's Edition\Beta2\War in the Pacific Admiral Edition.exe" -SingleCpuOrders -deepColor -dd_sw -altFont

For non-Beta:
"C:\Matrix Games\War in the Pacific Admiral's Edition\War in the Pacific Admiral Edition.exe" -SingleCpuOrders -deepColor -dd_sw -altFont




Try replacing the -cpu2 with -SingleCpuOrders

I find it works well on my Intel and does not have the glitches that a dedicated -cpu# gives.

"-SingleCpuOrders : Starts the game in single CPU mode and stays in single CPU for the orders phase, switches to multi CPU mode for running the turn, then switches back to single mode for the next orders phase. We’ve found this to be useful on some multi-core systems, especially AMD processors. Use this or –SingleCpuStart, not both"

< Message edited by MakeeLearn -- 3/28/2018 2:49:09 PM >

(in reply to cirrius06)
Post #: 23
RE: Command Line Switch Reference - 3/28/2018 3:18:11 PM   
Lecivius


Posts: 4955
Joined: 8/5/2007
From: Denver
Status: offline
Considering how often this comes up, this should be stickied (is that even a word?) for reference.

_____________________________

If it ain't broke, don't fix it!

(in reply to MakeeLearn)
Post #: 24
RE: Command Line Switch Reference - 3/28/2018 4:26:17 PM   
cirrius06

 

Posts: 6
Joined: 3/27/2018
Status: offline
De MakeeLearn
quote:

For non-Beta:
"C:\Matrix Games\War in the Pacific Admiral's Edition\War in the Pacific Admiral Edition.exe" -SingleCpuOrders -deepColor -dd_sw -altFont


es it works a little more with the command 1 only CPU.
Thank you for your help guys, it becomes playable!

(in reply to Lecivius)
Post #: 25
RE: Command Line Switch Reference - 3/28/2018 5:32:29 PM   
BBfanboy


Posts: 15441
Joined: 8/4/2010
From: Winnipeg, MB
Status: offline

quote:

ORIGINAL: cirrius06

De MakeeLearn
quote:

For non-Beta:
"C:\Matrix Games\War in the Pacific Admiral's Edition\War in the Pacific Admiral Edition.exe" -SingleCpuOrders -deepColor -dd_sw -altFont


es it works a little more with the command 1 only CPU.
Thank you for your help guys, it becomes playable!

Now add -cpu2 after the -SingleCpuOrders . This forces the system to use a separate CPU thread for the game rather than CPU 1 which is busy running Windows.
I found doing this completely eliminated the delay during the night phase. If it doesn't help you can always delete it.

_____________________________

No matter how bad a situation is, you can always make it worse. - Chris Hadfield : An Astronaut's Guide To Life On Earth

(in reply to cirrius06)
Post #: 26
RE: Command Line Switch Reference - 3/28/2018 6:18:18 PM   
btd64


Posts: 7331
Joined: 1/23/2010
From: Mass. USA. now in OHIO
Status: offline
I'll try it and see what happens....GP

_____________________________

Intel i7 4.3GHz 10th Gen,16GB Ram,Nvidia GeForce MX330

AKA General Patton

WPO,WITP,WITPAE-Mod Designer/Tester
DWU-Beta Tester
TOAW4-Alpha/Beta Tester

I don't like paying for the same real estate twice..Gen. George S. Patton

(in reply to BBfanboy)
Post #: 27
RE: Command Line Switch Reference - 3/29/2018 2:11:44 AM   
Reg


Posts: 2765
Joined: 5/26/2000
From: Victoria, Australia
Status: offline

quote:

ORIGINAL: ericv

being a programmer myself i always wondered about the -cpu# switch


The OS decides which CPU to use for what application. Applications normally don't have anything to say about it.

Must be some assembly magic going on


Not at all.

SetThreadAffinityMask() is a standard Windows API.

see example here...



_____________________________

Cheers,
Reg.

(One day I will learn to spell - or check before posting....)
Uh oh, Firefox has a spell checker!! What excuse can I use now!!!

(in reply to ericv)
Post #: 28
RE: Command Line Switch Reference - 12/18/2018 9:37:51 AM   
fflaguna

 

Posts: 295
Joined: 12/29/2009
Status: offline
It took me forever to find this list of up-to-date switches. It deserves to be bumped or even stickied.

_____________________________


(in reply to Reg)
Post #: 29
RE: Command Line Switch Reference - 12/18/2018 2:01:26 PM   
Korvar


Posts: 813
Joined: 9/3/2014
Status: offline
FYI, I developed a small utility to make the configuration of the command switches easier. Link to the thread / download is in my signature.




_____________________________


(in reply to fflaguna)
Post #: 30
Page:   [1] 2   next >   >>
All Forums >> [New Releases from Matrix Games] >> War in the Pacific: Admiral's Edition >> Tech Support >> Command Line Switch Reference Page: [1] 2   next >   >>
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.191