BlockLeftTop, PRELOAD BlockLeftBottom, PRELOAD BlockLeftStretch, PRELOAD BlockTop, PRELOAD BlockBottom, PRELOAD BlockStretch, PRELOAD BlockRightTop, PRELOAD BlockRightBottom, PRELOAD BlockRightStretch, PRELOAD
DeltaEngine

Fixing old DirectX 2D Games in Windows 7 like StarCraft

by Benjamin Nitschke 25. June 2009 22:23
Update 2009-08-06: This was fixed in Windows 7 RTM and is not longer an issue :)

For some time I had problems with StarCraft in Windows 7, after playing for 20-30min Windows 7 completely freezes keyboard, mouse and video (background programs and even Skype still work, but a hard reset was always the only way to get out of it). Since I was not playing much (just a few games a week) and it did not happen to me that much, I did not worry at first. But after starting to play ICCUP a few weeks ago with some friends, it just got annoying when I was crashing every 2-3 games. At first I was thinking maybe I overclocked way too much with my 4 Ghz, so I tried playing with normal 2.6 Ghz, but that did not make any difference. I also removed one of my graphic cards and tried playing on my primary screen instead of my third one. Nothing did help. It seems when closing all programs and making sure StarCraft only ran on one core (using the processor affinity setting in the task manager) the crashes occured less often, but I could not really fix this issue.

In Windows 7 Beta I also had some crashes (but usually not blue screens or whole computer freezes) with some games and applications, e.g. some Half-Life2 games like Garry's Mod or Left 4 Dead crashed a few times for me, but with WIndows 7 RC this did not happen anymore. In fact other than testing my overclocking settings I never had any crash or bluescreen in Windows 7 RC except for playing StarCraft.

After reading a bit on some forums (TeamLiquid, Blizzard, random Boards on the Internet) I saw many other people having the exact same problem: Windows 7 RC x64 + StarCraft does not work well together. In fact any other 2D DirectX from that time (like Age Of Empires 2, Worms Armageddon, etc.) seems also to cause random crashes in Windows 7 RC, especially on a quad core system. Some people also had another issue with the 256 colors, the trick here was to keep the Screen Resolution dialog open in Windows and then start the game.

Well, the solution is kinda retarded, but it seems to work (many people reported it and I did not have any problems since yesterday when I started using this trick): Kill the Explorer.exe process before starting StarCraft.exe and restart it only after closing StarCraft.exe again.

Since I also wanted to use the ICCUP Launcher, I wrote a little cmd script for this job. I also had to disable some of my programs like WallRotate to prevent the 256 colors messing up in StarCraft every time my desktop changes. Here is the .cmd file I use for starting StarCraft via the ICCUP  Launcher.exe plus all the additional tricks like waiting 2 seconds for the update check of Launcher.exe, killing WallRotate.exe (I commented it out, replace it with any other program you might want to close too) and Explorer.exe and restarting everything after closing StarCraft again.

rem First start the ICCUP launcher (it won't work without Explorer.exe)
cmd.exe /C start C:\Games\Starcraft\Launcher.exe

rem Wait a bit for ICCUP Launchers update check! Use ping trick to wait 2 sec!
ping 127.0.0.1 -n 2

rem First kill Explorer.exe, which messes up our colors in StarCraft
taskkill /f /IM explorer.exe

rem Also kill our desktop changer, which messes up the colors in game
rem taskkill /f /IM WallRotate.exe

rem Change to the StarCraft directory to make sure we run normally!
cd C:\Games\Starcraft\

rem And launch StarCraft ourselfs since we can't see the ICCUP launcher without Explorer.exe
rem Please note that /affinity 1 makes sure we only use our first core
rem Using all cores for StarCraft.exe can lead to crashes in Windows 7 :(
cmd.exe /C start /affinity 1 C:\Games\Starcraft\StarCraft.exe

rem Some early tests:
rem C:\Games\Starcraft\StarCraft.exe
rem C:\Games\Starcraft\Launcher.exe

rem Wait for the game to quit, press Enter to continue
pause

rem Restart Explorer.exe and WallRotate, that's it!
start explorer.exe
rem start C:\code\WallRotate\bin\Release\WallRotate.exe
exit


Comments


11/18/2009 5:16:07 AM #

"Update 2009-08-06: This was fixed in Windows 7 RTM and is not longer an issue Smile"


NO IT WAS NOT!.

See here
www.sevenforums.com/.../...-minutes-playing-5.html

Danial | Reply



1/10/2010 2:45:22 PM #

Thank you for your help!

payday loans | Reply



4/1/2010 11:12:51 AM #

In business, when things aren't working it's time to mix it up.

alta white review | Reply



4/13/2010 6:53:10 PM #

Interesting post you got here. I think I will have to read more later.  Thanks for the info.  Bookmarked.

Naples Realtor | Reply



4/14/2010 1:49:24 PM #

Definitely a great post. Hats off to you! The information that you have provided is very helpful.

22 lcd monitor | Reply



4/18/2010 1:28:45 PM #

Thanks for sharing a nice info.

us | Reply



4/18/2010 4:25:28 PM #

Where did you learn this stuff?

us | Reply



4/18/2010 5:44:07 PM #

Awesome stuff you guys got here.  I really like the theme of the website and how well you organized the content.  It's a marvelous job I will come back and check you out sometime.

us | Reply



4/20/2010 6:57:17 AM #

I like it very much especially the information you have putted here is like training. Keep the blog up to date. Thanks a lot.

buy wholesale | Reply



4/21/2010 8:33:29 PM #

I was just going to relax and read this morning then in the meantime I got your blog to read. Really good one.

computers keyboard | Reply



4/22/2010 3:54:21 AM #

one day i went shopping outside,and in an ed hardy store,I found some kinds of ed hardy i love most they are Your website is really good Thank you for the information

ed hardy | Reply



4/22/2010 9:08:00 PM #

It seems that you are maintaining a steady blogging pace. Well done! Looking for more updates from your end. Thanks a lot!

disc player | Reply



4/23/2010 3:03:54 PM #

Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more information? It is extremely helpful for me.

Los Angeles Dodgers Tickets | Reply



4/27/2010 10:26:08 PM #

I\'m happy I found this blog, I couldnt discover any info on this subject matter prior to. I also run a site and if you want to ever serious in a little bit of guest writing for me if possible feel free to let me know, i\'m always look for people to check out my site. Please stop by and leave a comment sometime!

Rapidshare | Reply



4/28/2010 5:19:28 PM #

I hope this fix work and to Warcraft 2 Battle Net edition..thanks for the information Smile

Sergey | Reply



5/4/2010 5:05:41 PM #

Top Rapidshare Search engine

Rapidshare Search engine | Reply


Add comment




biuquote
  • Comment
  • Preview
Loading



Disclaimer: The opinions expressed in this blog are own personal opinions and do not represent the companies view.
© 2000-2011 exDream GmbH & MobileBits GmbH. All rights reserved. Legal/Impressum

Poll

Which platform should Soulcraft be released on next?











Show Results Poll Archive

Recent Games

Soulcraft

Fireburst

Jobs @ exDream

Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011