Author Topic: War2 graphics for Win Vista/7/8/8.1/10/2012 fixed  (Read 179163 times)

Offline iL

  • Administrator
  • Ogre Mage
  • *****
  • Posts: 1649
    • View Profile
War2 graphics for Win Vista/7/8/8.1/10/2012 fixed
« on: December 11, 2015, 08:05:42 PM »
Thanks a lot to aqrit, i think he is the most experienced developer for all that ddraw things.

He just released the new version of his well-known ddraw.dll specially for war2.

I checked it on different systems: WinXP x64, Win Vista x32, Win7 x32, Win7 x64, Win10 R2 x64, Win2012 R2 x64.
Some of them as virtual machines, some on real computers.

This DLL works exactly as declared on all the systems i tried. And war2 behaviour is exactly the same for every OS:
Palette have been correct for all tests: alt-tab never broke it, creating game and back to chat never broke it. Random palette breaks have no been happened for me also.
PrtScr works fine in-game and saves the same picture that you can see during the game.

But here's the bug still exists while making SS in-chat: it saves cyan screen in-chat to PCX. That is a declared behaviour and works the same on all the checked systems.
But here's a way to bypass broken SS in-chat: You can use Alt-PrtSrc instead of PrtSrc, then screenshot will be copied to clipboard instead of PCX-file, then you can Alt-Tab, run "mspaint" or any other graphics editor and paste (Ctrl-V) the clipboard content. It's also aqrit's idea published here: http://forum.war2.ru/index.php/topic,897.msg12196.html#msg12196

Here's also a small problem with warvideo appeared: saved video is blinking. That is expected problem, but i don't think it's critical. Just to let you know.
Also need to try live streaming software with this DLL. It's quite possible it will be blinking also, i'll check that later. I never tried to stream videos... So would be great if someone experienced in live streaming check that faster.

Here are some screenshots to show what exactly have been fixed by this patch in win8.1/win10/win2012 (comparing with original clean version of war2). I made screenshots from windows 10:
mix of letters in connection window:
Spoiler

fixed by ddraw.dll:

No icons and black squares under button letters:
Spoiler

fixed by ddraw.dll:

PrtScr screenshot from bnet chat in origianl war2 with no ddraw:
Spoiler

Cyan screen with ddraw.dll:

Use Alt-PrtScr instead and paste your SS into mspaint to save it. I used that way to make 4 previous screenshots.

And here's the blinking warvideo sample: http://forum.war2.ru/index.php?action=dlattach;topic=1790.0;attach=415


How to install this dll:
Just copy the file ddraw.dll to war2combat directory overwriting previous file if exists. Then you just can start war2 as usual and see the changes.


old version
Here's the dll file (enough to play):
"ftp://ftp.war2.ru/war2/ddraw3/ddraw.dll"
Here's the original archive including the source code (for depelovers):
"ftp://ftp.war2.ru/war2/ddraw3/war2_ddraw_test.zip"

And this is an original link to aqrit's version:
http://www.bitpatch.com/downloads/war2_ddraw_test.zip


fixed ftp links broken by smf -mousey

UPD by iL:
here's the updated blur-fixing version:
Here is the 10 second fix:
http://www.bitpatch.com/downloads/war2_ddraw_test2.zip
it uses hot-patching to hook some font functions to disable anti-aliasing.


UPD by iL:
the build with d3d
http://www.bitpatch.com/downloads/war2_ddraw_test3.zip

it adds an alt+enter shortcut to flip between windowed and fullscreen views.
edit: alt+enter seems to crash currently if used on the battle.net screen :(
edit: it is also missing one of the kludges to redraw the screen ... so yeah WIP


http://www.bitpatch.com/downloads/war2_ddraw_test4.zip
 
This *barely tested* build should have a nice speed up ( not measured ) from using a pixel shader.
It has some additional system requirements but I'm guessing everyone should still be able to run it.

Also have some problems with alt-tab.

Here is a "pass-thru" version for Win8 and Win10 users, who aren't happy with the full version.
http://www.bitpatch.com/downloads/war2_ddraw_minimal.zip


Source code on github for developers:
https://github.com/aqrit/war2_ddraw
https://github.com/aqrit/war2_ddraw/tree/minimal

ddraw is also compatible with starcraft broodwar, discussion: http://www.teamliquid.net/forum/brood-war/499943-ddraw-fix-by-aqrit
« Last Edit: January 12, 2016, 06:04:25 AM by iL »
Need help to translate War2Combat to German, French, Italian, Polish or another language: http://forum.war2.ru/index.php/topic,4728.0.html
Please, contact me if you are interested in that.

Offline iL

  • Administrator
  • Ogre Mage
  • *****
  • Posts: 1649
    • View Profile
Re: War2 graphics for Win Vista/7/8/8.1/10/2012 fixed
« Reply #1 on: December 11, 2015, 08:11:21 PM »
some additional files to add...
Need help to translate War2Combat to German, French, Italian, Polish or another language: http://forum.war2.ru/index.php/topic,4728.0.html
Please, contact me if you are interested in that.

Offline EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • Posts: 6059
  • "It's going to be Legen-(wait for it......)-DARY!"
    • View Profile
    • Clan EviL Official Page
Re: War2 graphics for Win Vista/7/8/8.1/10/2012 fixed
« Reply #2 on: December 11, 2015, 08:33:09 PM »
Very nice.


Sent from my Motorola DynaTAC 8000X using Tapatalk

-Administrator of Clan EviL
-Developer (Trivia Development and Analytics)

Offline xboi209

  • Grunt
  • ***
  • Posts: 80
    • View Profile
Re: War2 graphics for Win Vista/7/8/8.1/10/2012 fixed
« Reply #3 on: December 11, 2015, 08:40:31 PM »
@aqrit What's the license for your source code? Please add one to be explicit

Offline Delete mine too

  • Death Knight
  • *********
  • Posts: 2652
  • http://meatspin.com
    • View Profile
    • http://meatspin.com
Re: War2 graphics for Win Vista/7/8/8.1/10/2012 fixed
« Reply #4 on: December 11, 2015, 08:58:47 PM »
Omg I can't wait to get home. I knew that guy had some experience because his post in development section. The community thanks you greatly bro. So did he emulation the old parameters for the GDI causing the broken display?

Once again thank you sir. Any donations he can collect??

Offline xboi209

  • Grunt
  • ***
  • Posts: 80
    • View Profile
Re: War2 graphics for Win Vista/7/8/8.1/10/2012 fixed
« Reply #5 on: December 11, 2015, 09:59:53 PM »
Seems to also work for StarCraft!

Offline shesycompany

  • Death Knight
  • *********
  • Posts: 3587
  • retired, be in music section
    • View Profile
Re: War2 graphics for Win Vista/7/8/8.1/10/2012 fixed
« Reply #6 on: December 11, 2015, 10:16:32 PM »
great my sc is messed up in 7!
« Last Edit: January 05, 2016, 11:28:07 AM by easycompany »

Offline EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • Posts: 6059
  • "It's going to be Legen-(wait for it......)-DARY!"
    • View Profile
    • Clan EviL Official Page
Re: War2 graphics for Win Vista/7/8/8.1/10/2012 fixed
« Reply #7 on: December 11, 2015, 10:29:21 PM »

Seems to also work for StarCraft!

Great, you playing on USeast?


Sent from my Motorola DynaTAC 8000X using Tapatalk

-Administrator of Clan EviL
-Developer (Trivia Development and Analytics)

Offline Nox

  • Death Knight
  • *********
  • Posts: 4119
    • View Profile
Re: War2 graphics for Win Vista/7/8/8.1/10/2012 fixed
« Reply #8 on: December 11, 2015, 10:42:05 PM »
Fixing the staff is possible??!!
Mr.120apm aka U8! Best player of the world losing 4v3 against Phillip5256.

Offline xboi209

  • Grunt
  • ***
  • Posts: 80
    • View Profile
Re: War2 graphics for Win Vista/7/8/8.1/10/2012 fixed
« Reply #9 on: December 11, 2015, 10:46:33 PM »

Seems to also work for StarCraft!

Great, you playing on USeast?


Sent from my Motorola DynaTAC 8000X using Tapatalk
no

Offline EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • Posts: 6059
  • "It's going to be Legen-(wait for it......)-DARY!"
    • View Profile
    • Clan EviL Official Page
Re: War2 graphics for Win Vista/7/8/8.1/10/2012 fixed
« Reply #10 on: December 11, 2015, 10:47:07 PM »


Seems to also work for StarCraft!

Great, you playing on USeast?


Sent from my Motorola DynaTAC 8000X using Tapatalk
no

Lame [emoji24]


Sent from my Motorola DynaTAC 8000X using Tapatalk

-Administrator of Clan EviL
-Developer (Trivia Development and Analytics)

Offline EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • Posts: 6059
  • "It's going to be Legen-(wait for it......)-DARY!"
    • View Profile
    • Clan EviL Official Page
Re: War2 graphics for Win Vista/7/8/8.1/10/2012 fixed
« Reply #11 on: December 11, 2015, 10:48:03 PM »
Works great on 10 Pro. Nice job.


Sent from my Motorola DynaTAC 8000X using Tapatalk

-Administrator of Clan EviL
-Developer (Trivia Development and Analytics)

Offline EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • Posts: 6059
  • "It's going to be Legen-(wait for it......)-DARY!"
    • View Profile
    • Clan EviL Official Page
Re: War2 graphics for Win Vista/7/8/8.1/10/2012 fixed
« Reply #12 on: December 11, 2015, 11:19:59 PM »
Warvideo does have that blinking problem, not a game killer tho.


Sent from my Motorola DynaTAC 8000X using Tapatalk

-Administrator of Clan EviL
-Developer (Trivia Development and Analytics)

Offline Certified MENSA Genius Brain (smart)

  • "The Architect"
  • Global Moderator
  • Dragon
  • *****
  • Posts: 5384
    • View Profile
Re: War2 graphics for Win Vista/7/8/8.1/10/2012 fixed
« Reply #13 on: December 12, 2015, 04:18:52 AM »
Wow, I did not expect this!!  This is enormous for the future of the game!  Lol @ Warvid :(
    

Offline EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • Posts: 6059
  • "It's going to be Legen-(wait for it......)-DARY!"
    • View Profile
    • Clan EviL Official Page
Re: War2 graphics for Win Vista/7/8/8.1/10/2012 fixed
« Reply #14 on: December 12, 2015, 05:59:30 AM »

Fixing the staff is possible??!!

[emoji23][emoji23]


Sent from my Motorola DynaTAC 8000X using Tapatalk

-Administrator of Clan EviL
-Developer (Trivia Development and Analytics)