.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPMBT
Notices


 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #17  
Old January 2nd, 2013, 11:02 AM
Rosollia's Avatar

Rosollia Rosollia is offline
Sergeant
 
Join Date: Feb 2012
Posts: 215
Thanks: 12
Thanked 64 Times in 39 Posts
Rosollia is on a distinguished road
Default Re: winSPMBT in Windows8

Quote:
Originally Posted by Mobhack View Post
Once I have the real beast to hand then I can fix the launcher to detect it and avoid the script for full-screen running that Windows vista/seven required due to nasty Aero not playing nicely with the 256 colour palette in full screen (not just a problem with this game, but all old-style 256 colour mode games of the DOS era, it appears)
Does the launcher check the OS version number to determine if it should run the cmd fix?
If so the version number for Windows 8 appears to be "6.2".

e.g.
Registry value "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion"
"CurrentVersion" string:
Windows XP = 5.1
Windows Vista = 6.0
Windows 7 = 6.1
Windows 8 = 6.2

Also I found that you could do the version check using the command promt too with information posted at this web site:
http://www.grimadmin.com/article.php...ect-os-version

So one could edit the Win7SPMBT.cmd to look like this:
Code:
@echo off

FOR /F "delims=: tokens=2" %%i IN ('systeminfo 2^>NUL ^| find "OS Name"') DO set vers=%%i

echo %vers% | find "Windows 8" > nul
if %ERRORLEVEL% == 0 goto ver_8
if %ERRORLEVEL% == 1 goto ver_vista_7

:ver_8
:Run Windows 8 specific commands here.
WinSPMBT.exe
goto exit

:ver_vista_7
taskkill.exe /f /im explorer.exe
start /w WinSPMBT.exe
start %WINDIR%\explorer.exe

:exit
Provided I got it right that should do an additional check to see if the OS is Windows 8 and skip the fix in that case.
Reply With Quote
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 04:11 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.