Require windowed mode but can't set resolution

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

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

farflamex
Posts: 73
Joined: Wed Jul 22, 2009 10:23 pm

Require windowed mode but can't set resolution

Post by farflamex »

I had the problem that many others are having of extremely sluggish performance in full-screen but setting to windowed mode fixes it completely. The problem is, I can't seem to get it to accept any resolution values and it always gives me a tiny little window, about half the size of my screen. My monitor's native resolution is 1920 x 1080 but it seems to be setting it to 1080 x 800. Changing the px and py values just seems to be ignored. Here's my command line.

"D:\Matrix Games\War in the Pacific Admiral's Edition\War in the Pacific Admiral Edition.exe" -skipVideo -altFont -archive -deepcolor -w -px1920 -py1080 -skipVideo -cpu3

I've tried the Seabee utility but that just seems to be creating the switches for me and I think I'm typing them correctly above anyway?

I've tried changing the px/py to various values but it just ignores whatever I type and uses the small window which is almost as unplayable as the laggy version and a huge strain on my eyes.
User avatar
geofflambert
Posts: 14887
Joined: Thu Dec 23, 2010 2:18 pm
Location: St. Louis

RE: Require windowed mode but can't set resolution

Post by geofflambert »

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

is what I'm using. I notice you didn't cap the C in -deepColor, don't know if that makes a difference. I don't remember what the difference is between -cpu1 and -cpu3

-fd is for full display

User avatar
geofflambert
Posts: 14887
Joined: Thu Dec 23, 2010 2:18 pm
Location: St. Louis

RE: Require windowed mode but can't set resolution

Post by geofflambert »

Here's an interesting comment from another thread. I fix the one problem by moving the windows command bar to the side instead of the bottom. It covers a little bit there but unimportant stuff.



Image
Attachments
screenusage.jpg
screenusage.jpg (245.04 KiB) Viewed 738 times

User avatar
geofflambert
Posts: 14887
Joined: Thu Dec 23, 2010 2:18 pm
Location: St. Louis

RE: Require windowed mode but can't set resolution

Post by geofflambert »

Left click on the bar and drag it to the right. You could put it on the left or move it to the top, also.

Sorry, the interesting comment:
Attachments
i c.jpg
i c.jpg (105.04 KiB) Viewed 738 times

User avatar
geofflambert
Posts: 14887
Joined: Thu Dec 23, 2010 2:18 pm
Location: St. Louis

RE: Require windowed mode but can't set resolution

Post by geofflambert »

.

Image
Attachments
ic.jpg
ic.jpg (105.04 KiB) Viewed 738 times

farflamex
Posts: 73
Joined: Wed Jul 22, 2009 10:23 pm

RE: Require windowed mode but can't set resolution

Post by farflamex »

Thanks for the replies Geoff, unfortunately none of this seems to work. I was hoping that the -fd switch might fix it but to no avail.

It does show in the window and it performs fine and I'm fine with the window being a bit smaller than my screen size. I don't need it to be full-screen and to be honest, I prefer games in windows than full-screen as it's easier to tab out. It's just that the window I have is so small that I can only see a small piece of the map. I need it to size to about 1800 x 900 or thereabouts, which would be just a bit smaller than my screen resolution. For some reason, it seems to just revert to 1080 x 800.

I think I read something about a 'force resolution' option, maybe that's what I'm looking for. Can't find it now.

I'm not in a huge rush thankfully as I can't play until tomorrow really and I'm just going to run through some tutorials for a while, so it's bearable and playable. But I'd like to get this fixed at some point.

Thanks again for your response [:)]
User avatar
821Bobo
Posts: 2415
Joined: Tue Feb 08, 2011 2:20 pm
Location: Slovakia

RE: Require windowed mode but can't set resolution

Post by 821Bobo »

If I recall not all resolutions are supported. Try 1440x900.
farflamex
Posts: 73
Joined: Wed Jul 22, 2009 10:23 pm

RE: Require windowed mode but can't set resolution

Post by farflamex »

That doesn't work either. Thanks for the idea though. I think 1920 x 1080 probably would work though because iirc that's the resolution that it's set at initially (or at least, the examples on various messages seem to use the same res). Is there a list of supported resolutions? I don't think this is the problem though since it's just perma-stuck on the smallest res.
User avatar
Anachro
Posts: 2506
Joined: Mon Nov 23, 2015 4:51 pm
Location: The Coastal Elite

RE: Require windowed mode but can't set resolution

Post by Anachro »

Hmm, I 1920x1080 should definitely work. I think I had your problem once before but fixed it and don't remember how. For reference, here are the switches I use. I recently upgraded my monitor, but the resolution I used previously was 1920/1080.
-altFont -archive -deepColor -px2560 -py1440 -skipVideo -SingleCpuOrders -dd_sw -w
"Now excuse me while I go polish my balls ..." - BBfanboy
User avatar
HansBolter
Posts: 7457
Joined: Thu Jul 06, 2006 12:30 pm
Location: United States

RE: Require windowed mode but can't set resolution

Post by HansBolter »

I prefer a lower resolution to make icons and text more legible.

I run the game at 1280 x 720.

On my older computer (Win 10) with on board graphics I had to reset my Windows resolution to match the game resolution to get the game to run full screen and fill the monitor.

On my newer machine (Win 10) with a GeForce 1060 graphics card I no longer have to reset the Windows resolution to match the game resolution to get it to run full screen and fill the monitor.

Sometimes the querks are hardware driven and you have to experiment to over come them.

Hans

User avatar
821Bobo
Posts: 2415
Joined: Tue Feb 08, 2011 2:20 pm
Location: Slovakia

RE: Require windowed mode but can't set resolution

Post by 821Bobo »

Also can be you are using wrong dash. If it is the bigger one(em dash) like on the screenshot it won't work.

Image
Attachments
dashissue.jpg
dashissue.jpg (62.69 KiB) Viewed 738 times
Alfred
Posts: 6683
Joined: Thu Sep 28, 2006 7:56 am

RE: Require windowed mode but can't set resolution

Post by Alfred »

1.  Read these threads:
 
https://www.matrixgames.com/forums/tm.asp?m=4457237&mpage=1&key=&#4462713
 
https://www.matrixgames.com/forums/tm.asp?m=4637477
 
https://www.matrixgames.com/forums/tm.asp?m=4415089
 
 
2.  pxf and pyf are the resolution forcing switches.  To work both the monitor and the video card must be able to support the forced values.
 
 
3.  The switches are case sensitive.  If the appropriate case is not used, that switch is not applied.
 
 
Screenshots really should be provided by the OP.
 
Alfred
farflamex
Posts: 73
Joined: Wed Jul 22, 2009 10:23 pm

RE: Require windowed mode but can't set resolution

Post by farflamex »

Thanks for all the tips guys. Looks like I stumbled on the correct solution for my machine, from the first of the threads listed above. The switches that work for me are -px1920 -py1080 -deepColor -cpu2

It does mean that it's running in full-screen but that's fine. It's very responsive and now that I look at it like this, I prefer it because the icons aren't so small.

So I think I'm sorted for now, thanks for your time and help. If I do run into more problems, I'll be sure to post screenshots next time [:)]
User avatar
Kull
Posts: 2744
Joined: Tue Jul 03, 2007 3:43 am
Location: El Paso, TX

RE: Require windowed mode but can't set resolution

Post by Kull »

Just be aware that there's a known problem with Windows 10 systems. When a "mouse-over" pop-up window disappears in AE, it leaves behind a "bleed-through" from the desktop. It's extremely irritating, to put it mildly. Although a few people have said they don't have this problem, for most the only solution is "windowed mode".
User avatar
BBfanboy
Posts: 20742
Joined: Wed Aug 04, 2010 5:36 pm
Location: Winnipeg, MB
Contact:

RE: Require windowed mode but can't set resolution

Post by BBfanboy »

ORIGINAL: Kull

Just be aware that there's a known problem with Windows 10 systems. When a "mouse-over" pop-up window disappears in AE, it leaves behind a "bleed-through" from the desktop. It's extremely irritating, to put it mildly. Although a few people have said they don't have this problem, for most the only solution is "windowed mode".
I don't have the problem but I wonder if the solution is different. I opened the Windows 10 display properties and turned off transparency. Because I also run windowed mode I can't say which thing stopped the problem.
No matter how bad a situation is, you can always make it worse. - Chris Hadfield : An Astronaut's Guide To Life On Earth
User avatar
Kull
Posts: 2744
Joined: Tue Jul 03, 2007 3:43 am
Location: El Paso, TX

RE: Require windowed mode but can't set resolution

Post by Kull »

ORIGINAL: BBfanboy

I don't have the problem but I wonder if the solution is different. I opened the Windows 10 display properties and turned off transparency. Because I also run windowed mode I can't say which thing stopped the problem.

My settings are "transparency on", so as a test I removed the -wd switch and, to my shock, the bleed-through bug is gone! Tried a few different screen resolutions and all worked fine. The bug was not original to Win10 (it first appeared in October 2017 after one their major updates), so perhaps it was solved in a subsequent release.

Anyway, that's good to know. I'll stop telling new folks that Windowed Mode is mandatory (useful for other reasons, of course).
farflamex
Posts: 73
Joined: Wed Jul 22, 2009 10:23 pm

RE: Require windowed mode but can't set resolution

Post by farflamex »

Hopefully I won't face this problem. I'm not able to play it properly yet as I don't have time and I really want to sit down when I have a few hours (days?) spare to get into it. I'll try to do a quick run-through first though to see if I run into the bleed-through problem, if I do, I'll have to go back to the drawing board and try to get it working in windowed mode.

What am I looking for to recreate the bug? Which mouse-over pop-ups am I looking for?
User avatar
Kull
Posts: 2744
Joined: Tue Jul 03, 2007 3:43 am
Location: El Paso, TX

RE: Require windowed mode but can't set resolution

Post by Kull »

ORIGINAL: farflamex

Hopefully I won't face this problem. I'm not able to play it properly yet as I don't have time and I really want to sit down when I have a few hours (days?) spare to get into it. I'll try to do a quick run-through first though to see if I run into the bleed-through problem, if I do, I'll have to go back to the drawing board and try to get it working in windowed mode.

What am I looking for to recreate the bug? Which mouse-over pop-ups am I looking for?

As an example, put your cursor over a task force and you'll get a small pop-up window describing what's in it. The instant the mouse moves somewhere else, the message box should vanish and you'll see the map below it. If the bug is present, you won't see the map, but rather some portion of the desktop behind the game. If you have the bug, there won't be any doubt. Hopefully not.
farflamex
Posts: 73
Joined: Wed Jul 22, 2009 10:23 pm

RE: Require windowed mode but can't set resolution

Post by farflamex »

Excellent, it doesn't happen on mine, the window disappears and the map is redrawn correctly. Thanks for all the help, looks like I'm ready for a weekend of grognardery [:D]
User avatar
BillBrown
Posts: 2335
Joined: Sat Jun 15, 2002 3:55 am

RE: Require windowed mode but can't set resolution

Post by BillBrown »

ORIGINAL: farflamex

Excellent, it doesn't happen on mine, the window disappears and the map is redrawn correctly. Thanks for all the help, looks like I'm ready for a weekend of grognardery [:D]

If you really get into it, you are in for a lifetime of grognardery.
Post Reply

Return to “Tech Support”