War2.ru Slogan
News: All hail our wise & benevolent admins!


Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Welcome to the forums! We're glad to have you here! :) You can register your account here, then feel free to introduce yourself in the Server.War2.ru board & let us know who you are on the server.

War2 graphics for Win Vista/7/8/8.1/10/2012 fixed 38346  202

Administrator Ogre Posts: 1020 Karma: +99/-9 *****

iL

  • Administrator
  • Ogre
  • *****
  • *
  • Posts: 1020
    • View Profile
*

iL

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
Administrator Ogre Posts: 1020 Karma: +99/-9 *****

iL

  • Administrator
  • Ogre
  • *****
  • *
  • Posts: 1020
    • View Profile
*

iL

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...
(ง︡'-'︠)ง "Bitchin!" ®©℗™ Dragon Posts: 6061 Karma: +135/-70 "It's going to be Legen-(wait for it......)-DARY!" **********

EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • *
  • Posts: 6061
  • "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
Grunt Posts: 80 Karma: +7/-0 ***

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
Ogre Mage Posts: 2350 Karma: +75/-1 ********

tupac

  • Ogre Mage
  • ********
  • *
  • Posts: 2350
    • View Profile
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??
Grunt Posts: 80 Karma: +7/-0 ***

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!
Ogre Mage Posts: 2385 Karma: +46/-2 retired, be in music section ********

easycompany

  • Ogre Mage
  • ********
  • Posts: 2385
  • 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!
(ง︡'-'︠)ง "Bitchin!" ®©℗™ Dragon Posts: 6061 Karma: +135/-70 "It's going to be Legen-(wait for it......)-DARY!" **********

EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • *
  • Posts: 6061
  • "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
Ogre Mage Posts: 2305 Karma: +94/-97 ********

Equinox

  • Ogre Mage
  • ********
  • *
  • Posts: 2305
    • 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??!!
Grunt Posts: 80 Karma: +7/-0 ***

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
(ง︡'-'︠)ง "Bitchin!" ®©℗™ Dragon Posts: 6061 Karma: +135/-70 "It's going to be Legen-(wait for it......)-DARY!" **********

EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • *
  • Posts: 6061
  • "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


Sent from my Motorola DynaTAC 8000X using Tapatalk
(ง︡'-'︠)ง "Bitchin!" ®©℗™ Dragon Posts: 6061 Karma: +135/-70 "It's going to be Legen-(wait for it......)-DARY!" **********

EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • *
  • Posts: 6061
  • "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
(ง︡'-'︠)ง "Bitchin!" ®©℗™ Dragon Posts: 6061 Karma: +135/-70 "It's going to be Legen-(wait for it......)-DARY!" **********

EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • *
  • Posts: 6061
  • "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
"The Architect" Global Moderator Death Knight Posts: 4335 Karma: +166/-110 *****

eyyy im walkin here

  • "The Architect"
  • Global Moderator
  • Death Knight
  • *****
  • *
  • Posts: 4335
    • 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 :(
(ง︡'-'︠)ง "Bitchin!" ®©℗™ Dragon Posts: 6061 Karma: +135/-70 "It's going to be Legen-(wait for it......)-DARY!" **********

EviL~Ryu

  • (ง︡'-'︠)ง "Bitchin!" ®©℗™
  • Dragon
  • **********
  • *
  • Posts: 6061
  • "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??!!




Sent from my Motorola DynaTAC 8000X using Tapatalk