mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Getting old Windows games working.

mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby Good Ol' TarviS » 2010-8-01 @ 23:08

I didn't make this, but I felt like passing it along.


There are registry entries that force DDraw to run into a sort of 'compatibility mode' where the correct palette is used in games. This program automatically adds them.

This means that old games like StarCraft, Diablo 2, Command and Conquer, any 256-color game that have bad colors in Win7 can be fixed.

It works for both 64-bit and 32-bit OSes, and Vista as well, it seems.

From Mudlord himself, a description of exactly what the program does:
1) App gets HWND/process IDs of application being run.
2) App runs the application.
3) It kills its threads as soon as a HWND and thread ID is gathered.
4) From there, the most recent DirectDraw application ID is gathered. Since it was the app to be patched, it copies it to a variable.
5) This variable, along with the needed flags makes a compatibility profile in the Registry for Windows Vista/7 to use with that application, only. It won't affect other parts of your registry. The key name used comes from the application's window class name/IDs.


Original Post:
http://www.sevenforums.com/gaming/2981- ... post866878


With this, you don't have to open the Screen Resolution window or kill explorer.exe before playing.


If this works for you, pass this along to other older game communities! It's about time a proper solution to this problem was made.
Attachments
w7ddpatcher-withsource.zip
Source code now included.
(24.02 KiB) Downloaded 19346 times
Last edited by Good Ol' TarviS on 2010-9-03 @ 02:23, edited 6 times in total.
User avatar
Good Ol' TarviS
Newbie
 
Posts: 63
Joined: 2009-7-24 @ 14:28

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby Davros » 2010-8-02 @ 18:29

If it just adds reg entries cant he release a reg file so the fixes are applied to all o/s's
Guardian of the Sacred Two Terabyte's of Gaming Goodness
User avatar
Davros
Oldbie
 
Posts: 1876
Joined: 2004-3-01 @ 03:08

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby keropi » 2010-8-02 @ 19:07

I see this asks for an application .exe to patch ...
Image
Image Dead Roland SC-55 MK2 wanted , click me for AmiBay ad!
Image Free bios/firmware/program chip burning service for active VOGONS members. PM me.
User avatar
keropi
l33t
 
Posts: 3188
Joined: 2003-9-08 @ 06:45
Location: Greece

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby Good Ol' TarviS » 2010-8-03 @ 01:33

Davros wrote:If it just adds reg entries cant he release a reg file so the fixes are applied to all o/s's

The problem is the reg entries must be made specifically for each game, so there is no one entry that magically fixes it for every game.
What other o/s's besides 7 and Vista need this fix anyhow?

keropi wrote:I see this asks for an application .exe to patch ...

Yes, it intercepts ID numbers from it and creates the correct reg entries forcing GDI Enumeration Fix for these games. It doesn't actually modify the .exe itself. Once you run it for the .exe once, you won't have to do it again.
User avatar
Good Ol' TarviS
Newbie
 
Posts: 63
Joined: 2009-7-24 @ 14:28

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby Dr. Riptide » 2010-8-03 @ 04:23

The download link is dead. Until it can be fixed or a mirror made, instructions for doing the same thing manually can be found here, at the top of the original thread.
Intel Q6600 (2.4 GHz) | 4GB RAM | GeForce 8800 GT | Windows 7 64-bit
User avatar
Dr. Riptide
Newbie
 
Posts: 69
Joined: 2004-7-09 @ 04:44
Location: The Second Floor

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby Good Ol' TarviS » 2010-8-07 @ 01:56

I attached it to the OP.
User avatar
Good Ol' TarviS
Newbie
 
Posts: 63
Joined: 2009-7-24 @ 14:28

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby Miki Maus » 2010-8-15 @ 11:49

Attaching archive with source included.
Attachments
w7ddpatcher.zip
(24.02 KiB) Downloaded 1715 times
User avatar
Miki Maus
Member
 
Posts: 197
Joined: 2004-10-18 @ 22:19
Location: Cave

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby TraxxAmigaEP » 2010-8-21 @ 18:18

i know the problem with the Psychedleic/garbled colors under windows 7 in Direct Draw with old games. i use the Ultimate x64. My solution is really simple. just kill the "explorer.exe" and start the old game. All colors right. I tested this with Wing Commander 3 and UFO game and sanatarium.

Edit: for Kill type in CMD or Start-execute: "taskkill /f /im explorer.exe" for Reload: "explorer.exe"
First Pic with "Explorer(exe) disabled". Second with aktiv Explorer(exe)"
Attachments
WingCommander3_01Normal.jpg
WingCommander3_01Normal.jpg (250.05 KiB) Viewed 18577 times
WingCommander3_01Psycho.jpg
WingCommander3_01Psycho.jpg (349.59 KiB) Viewed 18577 times
User avatar
TraxxAmigaEP
Newbie
 
Posts: 12
Joined: 2008-7-13 @ 05:28

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby Good Ol' TarviS » 2010-9-03 @ 02:18

TraxxAmigaEP wrote:i know the problem with the Psychedleic/garbled colors under windows 7 in Direct Draw with old games. i use the Ultimate x64. My solution is really simple. just kill the "explorer.exe" and start the old game. All colors right. I tested this with Wing Commander 3 and UFO game and sanatarium.

Edit: for Kill type in CMD or Start-execute: "taskkill /f /im explorer.exe" for Reload: "explorer.exe"
First Pic with "Explorer(exe) disabled". Second with aktiv Explorer(exe)"

This patch allows you to fix it without having to make a batch file or closing explorer.exe beforehand. Like previously said, it does not actually modify the game .exe, but it uses data from it to generate registry entries that make DirectDraw behave properly.

Miki Maus wrote:Attaching archive with source included.

I put that in the first now. Thanks.
User avatar
Good Ol' TarviS
Newbie
 
Posts: 63
Joined: 2009-7-24 @ 14:28

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby SKARDAVNELNATE » 2011-4-18 @ 13:38

Planescape: Torment has a had a display problem with spell effects for the past decade. Any idea if this works on Windows XP?
User avatar
SKARDAVNELNATE
Oldbie
 
Posts: 1120
Joined: 2006-10-28 @ 15:51

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby aqrit » 2011-4-18 @ 17:13

the program creates a registry entry used by
Microsoft's Application Compatibility Toolkit (ACT) which requires Windows XP with Service Pack 2 (SP2) or later.

But is the PS:Torment spell effect problem related to the palette?

Some interesting articles on the subject of windows palette corruption problem:
http://go.hopx.net/2010/05/256-color-is ... w-and.html
http://blog.macuyiko.com/2009/07/solvin ... urple.html
aqrit
Member
 
Posts: 144
Joined: 2009-6-22 @ 19:53

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby SKARDAVNELNATE » 2011-4-18 @ 18:41

aqrit wrote:But is the PS:Torment spell effect problem related to the palette?

I don't know what the true cause is. When it first became problem one solution was to use an older video driver. So it seemed like something had been left out as video technology progressed.

Another option is to scale down Hardware Acceleration. Which disables DirectDraw and Direct3D accelerations. However it also leaves a cursor trail from the mouse. So maybe this DDraw 'compatibility mode' could help.
User avatar
SKARDAVNELNATE
Oldbie
 
Posts: 1120
Joined: 2006-10-28 @ 15:51

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby Miki Maus » 2011-4-18 @ 18:45

Try using D3DWindower.
User avatar
Miki Maus
Member
 
Posts: 197
Joined: 2004-10-18 @ 22:19
Location: Cave

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby Sol_HSA » 2011-4-18 @ 20:23

http://iki.fi/sol - my schtuphh
User avatar
Sol_HSA
Member
 
Posts: 132
Joined: 2004-3-03 @ 14:04
Location: Finland

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby SKARDAVNELNATE » 2011-4-19 @ 22:42

Thanks for the suggestions. But this is very strange. I appear to have 2 miraculous hardware configurations. I've not had PS:T installed for some time until I wanted to look into the display problem again.

I installed it on 2 computers running Windows XP, no display problem.
One of those also has Virtual PC 2007 running Windows 98, still good.
Then I have an actual Windows 98 system, now I see problems.
User avatar
SKARDAVNELNATE
Oldbie
 
Posts: 1120
Joined: 2006-10-28 @ 15:51

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby Destroy » 2011-4-20 @ 00:41

I don't understand how this program works.

I start w7ddpatcher.exe, browse to the game .exe in question, select it, the game starts, looking like rainbows as usual, quit the game, get back to desktop.

w7ddpatcher.exe window says found blabla.exe for the game in question but seems to do nothing with it????

What am I doing wrong?
Destroy
Newbie
 
Posts: 34
Joined: 2011-4-17 @ 14:51

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby aqrit » 2011-4-20 @ 06:00

the "Microsoft\DirectDraw\MostRecentApplication" registry key is not updated consistently... this causes a silent fail?

keep trying until the Name under the MostRecentApplication key matches the name of your target application (see the manual instructions in the link I've previously provided)
aqrit
Member
 
Posts: 144
Joined: 2009-6-22 @ 19:53

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby SKARDAVNELNATE » 2011-4-20 @ 23:20

Miki Maus wrote:Try using D3DWindower.

Using one last XP system that still has the display problem I had to copy D3dHook.dll the Torment folder. Then I tried different options and found that DDraw Emulate corrected it.

Since it's now displayed in a window, using the mouse to scroll off the edges doesn't work. If it could be set to go full screen it would be a much better solution.

I think the height and width labels are reversed in the one I downloaded since a window 950 high by 1250 wide turned out to be really tall and narrow.
User avatar
SKARDAVNELNATE
Oldbie
 
Posts: 1120
Joined: 2006-10-28 @ 15:51

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby aqrit » 2011-4-23 @ 00:08

off topic now

I whipped up a "fix" for Torment's cursor trail problem

http://www.shsforums.net/topic/48732-cursor-trail-fix/
enjoy
aqrit
Member
 
Posts: 144
Joined: 2009-6-22 @ 19:53

Re: mudlord's Windows 7 DDraw Compatability Fix (Fixes Garbled Colors)

Postby Jorpho » 2011-4-24 @ 18:20

Can I ask how you made that, exactly? Did you use a debugger?
User avatar
Jorpho
l33t
 
Posts: 4187
Joined: 2003-2-14 @ 19:50
Location: Canada

Next

Return to Windows

Who is online

Users browsing this forum: No registered users and 0 guests