PDA

View Full Version : Windowed mode


RongYao
28 Dec 2012, 22:48
Okey so i sneaked my copy of worms 2.
Patched it to 1.0.1.5

And start to playing around with d3dwindower.
Here is some custom resolution 540x480 I think. That from right is 800x600 resolution. The most cool thing is that you can deform it to 300x600 or 800x400 or whatever you like in.
http://i50.tinypic.com/69f79l_th.png (http://i50.tinypic.com/69f79l.png)http://i48.tinypic.com/2zp4h79_th.png (http://i48.tinypic.com/2zp4h79.png)

You can minimize, move the window, but its kinda buggy, so just play it windowed. ;D

Extract these 3 in your worms2 folder.
ddraw.dll - by VEG
wndmode.dll - from D3DWindower, renamed to match the dll ddraw calling
hook.ini - D3DWindower config file (do not edit with notepad)

Windowed.ini - Change resolution there or the game path, run Windowed.bat to create new hook.ini Place the 3 files i mentioned above in your worms2 folder. Have fun there!
Hope to work for you!

Attachments can be more than 100kb so google docs link here.
Download: https://docs.google.com/open?id=0B7MS086qw3wgY0J3Uk1hYjFLSDg

StepS
29 Dec 2012, 15:24
i actually already adapted wndmode to WA and WWP but had problems with Worms 2. i'll look into it, thanks

RongYao
29 Dec 2012, 20:23
I played few games with it, thought i had some slowdowns, but when i enabled the background animations, full effects and set d3dwindower to use speedhack option it ran even better.

Still having the issue when desktop flickers, refreshing from time to time, also if i move the window around many time worms2 window takes more time to show up, but if i just don't touch the window it runs perfectly.

With this one works better.
33474

If you use non-standard resolution it may not work, but 480x360 640x480 800x600 1000x600 those works fine. I'm getting from 42 to 60 fps even at 640x320 runs very smooth.

So far played few matches alone, nothing crashed, no weird glitches, minimize works, moving around the window works, leaving it on background too, just should not leave the screen since it gets buggy which is not cool.

One fix about high resolution patch and tvsprites in replays.

Noticed that when you use the high resolution patch, the tvsprite is still 640x480 and it looks bad actually. Also that sprite was removed in the newer series.

See the first pic, 1024x768 internal resolution, 800x600 window resolution. the second pic is 800x600 internal resolution and 800x600 window resolution, which still have this glitch caused by the resolution patch, so i removed the sprites. second one is without the tv sprites.
3347533476

Heres the txt file.
1. Open Worms2.exe search by ascii or hex and delete the sprite names that should be loaded or replace the hex numbers with zeros, which is the same.
2. Save the exe file.
3. Important is to not add or delete bytes, filesize should remain the same.
33477

Why editing the exe instead of Gfx.dir file?
Well editing the exe doesn't ruin the sprites, game still has them, so if you return your original exe, they still will work
Also, if you edit the sprite file, the exe will look to load the sprites anyway, so you should as well remove them from the exe file or replace the ones in gfx file with new transparent sprites to achieve the same thing.
It will be much of a headache and theres less sense in that.

Wondering how that wasn't included in the s*natch patch, since it is cool to be able to turn those tv sprites on and off, for the people who like WA or WWP style more. ;)