PDA

View Full Version : PX Window Mode


MihaiS_
25 Oct 2011, 18:57
I can't get W:A to run in a window using ProjectX.

Here's my px.ini config:
[PX]
GameLogging=0
SchemeName=default.pxs
AAState=3
Windowed=1
VSync=0
TripleBuffering=0
Framelimit=0
BackBuffers=0

Could anyone assist please?

Pac-Man
25 Oct 2011, 19:00
Have u fixed your WormKit problem yet (installing worms in another than the program files folder)?

It will work this way

MihaiS_
25 Oct 2011, 19:02
Yes, WormKit started working again as I mentioned in the previous thread, but I can't get W:A to run windowed.

Pac-Man
25 Oct 2011, 19:02
Only ingame will run windowed, not the menu.

MihaiS_
25 Oct 2011, 19:05
Right. I think I read that somewhere before. Thanks for reminding.

Is there any way to force the menu into windowed mode as well?

Pac-Man
25 Oct 2011, 19:10
No, not yet. You could with DxWnd, but since it's using an ugly control + control painting system it doesn't work correctly.

MihaiS_
25 Oct 2011, 19:20
I'm willing to try. Could you give more info? (What to get and what to do.)

Pac-Man
25 Oct 2011, 19:20
No, it just won't work. Forget about that.
If you need a snooper to chat in the game lobby, have a look at snoop.worms2d.info.

MihaiS_
25 Oct 2011, 19:32
No, I actually have 3 large screens and whenever I go into worms, everything gets messed on 2 of them. I just played a game, windowed mode is wonderful, but in-between games- same story. Oh well...

Thanks for the support.

StepS
25 Oct 2011, 21:13
No, I actually have 3 large screens and whenever I go into worms, everything gets messed on 2 of them. I just played a game, windowed mode is wonderful, but in-between games- same story. Oh well...

Thanks for the support.

Try this one (http://myfiles.my1.ru/wa/other/dxwnd.rar). The best compatibility options for WA are already configured, just change the path in options or in dxwnd.ini. Note that the input forms, comboboxes and such aren't properly displayed (with a white zone above or inside), and also you will return to black frontend after playing a game. When dxwnd.exe is running, any launch of WA will use the windowed mode. Use on your own risk.

MihaiS_
25 Oct 2011, 22:02
Thanks, StepS, but will this work with Wormkit? I see that the path indicates to WA.exe, so I'm guessing that if I chose wormkit it will then launch wa in fullscreen mode, right?

Pac-Man
25 Oct 2011, 22:06
Or use WormkitDS

STEPS get a link and a fresh beer

MihaiS_
25 Oct 2011, 22:07
How will that help? Please guide me through this.

Pac-Man
25 Oct 2011, 22:08
Wait until Steps has posted. He has enough time to explain things.

franpa
26 Oct 2011, 01:55
If you read the change log included with the latest update to the game, you will find there is a button combination you can press to force the game to reset the colours. Whenever a display gets corrupted by a screensaver or similar just press this button combination :)

MihaiS_
26 Oct 2011, 02:21
If you're replying to me, I already know about it. You suggested it to me a long time ago. Now I'm just interested in having the W:A menu displayed in windowed mode.

franpa
26 Oct 2011, 03:51
The only reliable way to do that is to run the game in a virtual emulator like VMWare or VirtualPC.

MihaiS_
26 Oct 2011, 04:06
The only reliable way to do that is to run the game in a virtual emulator like VMWare or VirtualPC.

I'm around here for some time, man, it's just that I had a dozen accounts :D

But back to virtual computers... here's an outdated thread:
http://forum.team17.co.uk/showthread.php?t=39509
then...
http://forum.team17.co.uk/showthread.php?t=45045

Don't want to play W:A on a virtual computer, unless it runs smooth when roping and there are no more issues with the pointer and other stuff.

Gonna wait and see if StepS is going to give more info about dxwnd and WormkitDS.

StepS
26 Oct 2011, 07:26
I'm around here for some time, man, it's just that I had a dozen accounts :D

But back to virtual computers... here's an outdated thread:
http://forum.team17.co.uk/showthread.php?t=39509
then...
http://forum.team17.co.uk/showthread.php?t=45045

Don't want to play W:A on a virtual computer, unless it runs smooth when roping and there are no more issues with the pointer and other stuff.

Gonna wait and see if StepS is going to give more info about dxwnd and WormkitDS.

I think that the WKB article (http://worms2d.info/WormKitDS) should tell you enough. Mainly it's a DLL file which makes it possible for WA.exe loading wormkit modules by itself. There aren't any bugs or cons, only advantages. Also helps to solve WormKit-related problems (replays, executable for programs, etc) and allows to load WormKit modules under Linux. Kawoosh wrote it in C++ (not sure if he took some of the original WormKit code, the code itself doesn't look hard). CyberShadow has been pretty quiet about it, mainly because he hasn't tried it out yet. Well, nothing to be afraid of.

Pac-Man
26 Oct 2011, 07:29
Found it btw, FYI: http://forum.team17.co.uk/showthread.php?t=46030
EDIT: Steps was faster (isn't it school time? >:S) :D

GreeN
26 Oct 2011, 10:59
There aren't any bugs or cons, only advantages.

You mean except for making it very awkward to switch between WromKit and vanilla, right? Or making it very awkward to use multiple versions of WA.exe in the same folder.

Pac-Man
26 Oct 2011, 11:30
Create shortcut
-> add /nowk
-> Profit

rename the old executable files
-> move to game folder and set up shortcut
-> Profit

StepS
26 Oct 2011, 12:08
You mean except for making it very awkward to switch between WromKit and vanilla, right? Or making it very awkward to use multiple versions of WA.exe in the same folder.

Shift + right click on the WA.exe will give you an option to run it without WormKit modules. You may also make the shortcut (faq please (http://worms2d.info/WormKitDS#Can_I_temporarily_disable_WormKitDS.3F)) .
As for having multiple WA.exe in the same folder - I have no idea who would ever do that and for what purpose http://forum.team17.co.uk/images/newsmilies/ambivalent.gif If you want to have different sets of WA installations, just make separate folders.
And please, don't forget that we have a thread (http://forum.team17.co.uk/showthread.php?t=46030) about this. Thanks.

MihaiS_
26 Oct 2011, 17:26
Ok, this is revolutionary. I finally played a game of W:A completely windowed.

Thank you for all the information and tools you guys provided.

WormKitDS and DxWnd do wonders for those who seek to play W:A in a window.

As you said, there are some display problems with DxWnd, but it compensates.

---------------------------------------------------------------------------

I have noticed that the gray boxes in the main DxWnd view are actually an overlay, as the taskbar button preview shows:

http://img98.imageshack.us/img98/7820/snagstridery11m10d26h18.png

http://img191.imageshack.us/img191/7820/snagstridery11m10d26h18.png

Would there be any way to force transparency on that overlay?

---------------------------------------------------------------------------

Or even better, has anyone succeeded running W:A under DxWnd using Lookias' WheatSnooper?

StepS
26 Oct 2011, 17:33
Ok, this is revolutionary. I finally played a game of W:A completely windowed.

Thank you for all the information and tools you guys provided.

WormKitDS and DxWnd do wonders for those who seek to play W:A in a window.

As you said, there are some display problems with DxWnd, but it compensates.

---------------------------------------------------------------------------

I have noticed that the gray boxes in the main DxWnd view are actually an overlay, as the taskbar button preview shows

Would there be any way to force transparency on that overlay?

---------------------------------------------------------------------------

Or even better, has anyone succeeded running W:A under DxWnd using Lookias' WheatSnooper?

Well, that's the main problem. The good thing is that an author who posted this dxwnd before also included the source code for it. So if someone would be skilled enough or had a lot of free time, he could attempt to fix these overlays (I think it would be enough to hide them just). And the black-screen after playing a match.

Pac-Man
26 Oct 2011, 17:35
What has DxWnd to do with the overlays?
Another tool has to remove them. DxWnd is doing a completely different job.
Nostepsno
But theres not always an overlay. Also graphics are lost after minimizing. It's a blowjob.

MihaiS_
26 Oct 2011, 17:36
And the black-screen after playing a match.

I didn't get the black screen after playing a match.

MihaiS_
26 Oct 2011, 17:48
Haha, I just used a tool to make WA.exe transparent, and it seems to do the trick. I don't mind seeing through the window, I just wanted to know where to click.

http://img843.imageshack.us/img843/3583/snagstridery11m10d26h19.png

Note: I used ActualWindowManager to make WA.exe transparent, but there's tons of free utilities that allow making a window transparent.

StepS
26 Oct 2011, 20:10
I didn't get the black screen after playing a match.

Yeah, doesn't happen here too. Strange, but it happened to me before... Still the maximizing bug, then.
P.S. WARNING! DO NOT use dxwnd and Internet Explorer in the same time! It will crash repeatedly without a stop! (show-off screenshot (http://img703.imageshack.us/img703/9372/iebrokenfffuuu.png))

MihaiS_
26 Oct 2011, 20:20
Yeah, doesn't happen here too. Strange, but it happened to me before... Still the maximizing bug, then.
Still not an issue if using transparency. I minimized and restored the window several times without problems.

P.S. WARNING! DO NOT use dxwnd and Internet Explorer in the same time! It will crash repeatedly without a stop! (show-off screen (http://img256.imageshack.us/img256/9372/iebrokenfffuuu.png))
Internet Exwhat? Waterfox here, baby :D

StepS
26 Oct 2011, 20:36
Internet Exwhat? Waterfox here, baby :D

Just an advice for the case of.:o

Pac-Man
26 Oct 2011, 21:22
That's because of the kind of hardware acceleration IE uses.
If you mess around with old games, stop accusing other programs not working correctly then - other games often crash too when a DxWnd injected application is running.

MeDiccem
7 Nov 2011, 04:49
Is there a way to lock the cursor within the window when you use -w in the command line? Id like to play it in windowed mode but I cant move the view around because the cursor leaves the window instead of scrolling world view >_o

MihaiS_
7 Nov 2011, 08:15
You can't use -w with W:A and the cursor stays locked in the game window unless you minimize the game or use wkAntiKeyboardHook.dll and use alt+tab or the windows key.

StepS
7 Nov 2011, 11:03
Is there a way to lock the cursor within the window when you use -w in the command line? Id like to play it in windowed mode but I cant move the view around because the cursor leaves the window instead of scrolling world view >_o

that's abnormal. Check your configuration. Try to use PX.ini instead of -w