Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7 - StarCraft fix holy cow!

 
04-27-2011   #241


windows 7 ultimate
 
 


goddamn genius. hahahaha.. lol.

My System SpecsSystem Spec
08-18-2011   #242


Windows 7 Ultimate x64
 
 


Sorry for reviving an old thread, but I made a VERY nice batch file that will save you a LOT of pain and possible headaches.

I dummied this down so that ANYONE can follow this tutorial.

1) Make a file in the StarCraft directory called "StarCraft.bat"

2) Open StarCraft.bat with Notepad.exe

3) Copy and paste the below code into Starcraft.bat and be sure to save it.

4) Close StarCraft.bat

5) Execute/run/double-click StarCraft.bat

For playing StarCraft again in the future, simply complete the 5th (fifth) listed instruction above.



Code:
@echo off
title StarCraft Launcher v2.2
color 0E
echo StarCraft Launcher v2.2 by Alex Ross (c) 2011
taskkill /f /im explorer.exe
set key="HKCU\Control Panel\Desktop"
FOR /F "tokens=3 delims=     " %%A IN ('REG QUERY %key% /v ScreenSaverIsSecure') DO SET secure=%%A
FOR /F "tokens=3 delims=     " %%A IN ('REG QUERY %key% /v ScreenSaveTimeOut') DO SET timeout=%%A
reg add %key% /v ScreenSaverIsSecure /t REG_SZ /f /d 0
reg add %key% /v ScreenSaveTimeOut /t REG_SZ /f /d 0
rundll32.exe user32.dll, UpdatePerUserSystemParameters
echo Launching StarCraft...
start /w StarCraft.exe
echo Terminating...
reg add %key% /v ScreenSaverIsSecure /t REG_SZ /f /d %secure%
reg add %key% /v ScreenSaveTimeOut /t REG_SZ /f /d %timeout%
rundll32.exe user32.dll, UpdatePerUserSystemParameters
start explorer.exe
exit
Enjoy!






For those who would like to play StarCraft and/or the BroodWar expansion without requiring a disc/image loaded into a physical/virtual disc ROM, below is a solution that I made:

Once again, create this as a .bat file inside the StarCraft folder for it to work correctly.

Code:
@echo off
title StarCraft No-Disc Solution v1.0
color 0E
echo StarCraft No-Disc Solution v1.0 by Alex Ross (c) 2011
echo.
echo Please follow the step-by-step instructions.
echo.
echo Failure to do so may result in this script not working as intended.
echo.
pause
cls
echo Please insert the StarCraft disc into your optical disc drive.
echo.
pause
cls
echo Please type the drive path for the optical disc drive.
echo Example: D:\
echo.
set /p oddp="Path: "
cls
echo Creating StarCraft.mpq...
echo.
if not exist ".\StarCraft.mpq" (copy "%oddp%INSTALL.EXE" ".\StarCraft.mpq")
cls
set /p bwi="Do you have the BroodWar expansion installed? (y/n): "
if /i %bwi%==n (goto end)
cls
echo Please insert the StarCraft: BroodWar disc into your optical disc drive.
echo.
pause
cls
if not exist ".\BroodWar.mpq" (copy "%oddp%INSTALL.EXE" ".\BroodWar.mpq")
:end
cls
echo Operation(s) complete!
echo.
pause
exit





FEEDBACK:
I do appreciate the feedback e-mails that I am receiving. It is nice to know that my work on this is being used and appreciated and that it is being acknowledged. once again, thank you for these e-mails. They really do brighten my day.

Last edited by Aleoss; 11-15-2011 at 03:54 AM.. Reason: Added credit to myself and added the no-disc solution
My System SpecsSystem Spec
09-04-2011   #243


Windows 7 Professional x64
 
 


Thank You for the fix. It seems to work well for me.

One question though:

When I return from the game and explorer restarts, the desktop icons change to a default setting. Is there anyway to have it stay the same as before the batch file was started?

This is a minor inconvience and easy enough to live with, but if it is an easy fix, we could have both the "cake and east it too"

Thanks again for a simple solution!

PCOMT
My System SpecsSystem Spec
.


09-05-2011   #244


Windows 7 Ultimate x64
 
 


The desktop icons should remain the same. The only thing is that if you have any folders open, they will close as they are a part of explorer.exe

Can you please do a before and after screenshot so that I can see exactly what you're dealing with?

E-mail it to me at aross (dot) nathan <@> gmail (dot) com

I'll see if I can devise a fix for this inconvenience.



PS:

Anyone wanting to leave comments like "thanks" and bug reports. Please e-mail it to me as well. Don't clutter this thread so it is easier for people to find the code that I posted. I'd like the code to stay on the last page of this thread.

Last edited by Aleoss; 09-05-2011 at 04:40 PM.. Reason: Added "PS" section.
My System SpecsSystem Spec
2 Weeks Ago   #245


Windows 7 Home Premium 32bit
 
 


Batch Fix

1. Stops Explorer.exe before Starcraft.exe is started
2. It checks if Starcraft.exe is running
3. When Starcraft.exe stops running, (you exit starcraft), Explorer.exe starts again

This works good in xp, as well as windows 7 to stop the techno color problem or slowdown because of the 1.16.1 patch, this is something you can easily adapt for use with anyother pc game, with a similar problem.

Copy and Paste this into a notepad (.txt) file, and the change the extension to a batch file (.bat), and double click it to work:

::::::::::::::::::::::::::::::::::::::::::

Quote:
ECHO

pskill explorer.exe
"C:\Program Files\Starcraft\InsectLoader.exe"

:1
pv starcraft.exe
if ERRORLEVEL 1 GOTO 2

GOTO 1

:2
start explorer.exe
::::::::::::::::::::::::::::::::::::::::::

"pskill" is from this package, see link,PSTools its freeware
"pv" is from this package, PrcView_5_2_15 its freeware

you put "pskill.exe" in your system32 folder, and "pv.exe" in your system32 folder, (depending on your version of windows this may be different), dump the contexts of "Resolution Expander" into your Starcraft install folder, and make sure its path is in the batch file, if it looks different from the one above.

(When you start the batch file, "explorer.exe" is stopped, and "RESexpander" (insectloader.exe) starts (it starts starcraft). Then, "pv" checks if "starcraft.exe" is running or not, if it is running then the next line "GOTO 1", tells it to check if it is running again, when "starcraft.exe" is stopped by you, from exiting the game, then, it will go to number 2, and this will begin explorer.exe again)

https://rapidshare.com/files/1943225...indows_Fix.rar
Resolution_Expander_Windows_Fix.rar - download now for free. File sharing. Software file sharing. Free file hosting. File upload. FileFactory.com

http://i1112.photobucket.com/albums/...sStarcraft.jpg

(There's also freeware screen capture software for starcraft included)

NOTES

Just make a .bin or .iso image of your CD and mount it using daemon tools, you don't have to play starcraft from cd or do anything special.

The other .bat file example are needlessly complicated, problem solved with freeware!
My System SpecsSystem Spec
Reply

 StarCraft fix holy cow! problems?



Thread Tools



Similar Threads for: StarCraft fix holy cow!
Thread Forum
Holy Blessing Batman! Sound & Audio


All times are GMT -5. The time now is 10:42 PM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30