PDA

View Full Version : Tutorial: Unable to Initialise the Graphics in Windowed Mode (Fix)



M.C.F.C
05-05-20, 03:39 PM
Problem

https://i.imgur.com/W14AwGW.png

"Unable to initialise the graphics in windowed mode - please ensure that DirectX has been installed correctly and that your desktop is in at least 800 x 600 pixel resolution and is in 16 bit colour"

Solution

1) Right-click cm0102.exe > Properties

2) Compatibility > Change High DPI Settings

https://i.imgur.com/yQppVHS.png

3) Change settings as below

https://i.imgur.com/G942285.png

bine ye
13-05-20, 11:41 PM
I had this problem about 6 months ago and while most reported success with the above steps, this did not work for me. What I had to do was open the cm0102_GDI.exe, this should load fine. Then when on the initial settings, set to "Windowed" and save. Then you can quit and load the normal (or patched) cm0102.exe without any issues.

MaxiShagilko
14-05-20, 06:11 AM
I had this problem too and went into display settings, changed from 125% (recommended) to 100% and it worked a treat, just a pain changing it over every time!

M.C.F.C
14-05-20, 11:57 AM
I had this problem about 6 months ago and while most reported success with the above steps, this did not work for me. What I had to do was open the cm0102_GDI.exe, this should load fine. Then when on the initial settings, set to "Windowed" and save. Then you can quit and load the normal (or patched) cm0102.exe without any issues.

If it works... :ok:


I had this problem too and went into display settings, changed from 125% (recommended) to 100% and it worked a treat, just a pain changing it over every time!

I was doing this as well until I found out about this option.

I even had a batch script so that I clicked it once and it would do it for me automatically.

Below code I ran to go from 150% zoom to 100% zoom.


@ECHO OFF

explorer ms-settings:display
ping -n 2 127.0.0.1 > nul

:VBSDynamicBuild
SET TempVBSFile=%tmp%\~tmpSendKeysTemp.vbs
IF EXIST "%TempVBSFile%" DEL /F /Q "%TempVBSFile%"
ECHO Set WshShell = WScript.CreateObject("WScript.Shell") >>"%TempVBSFile%"
ECHO Wscript.Sleep 100 >>"%TempVBSFile%"
ECHO WshShell.SendKeys "{TAB 6}" >>"%TempVBSFile%"
ECHO WshShell.SendKeys "{UP 2}" >>"%TempVBSFile%"
ECHO Wscript.Sleep 100 >>"%TempVBSFile%"
ECHO WshShell.SendKeys "%%{F4}" >>"%TempVBSFile%"

CSCRIPT //nologo "%TempVBSFile%"

EXIT

Below code I ran to return from 100% zoom to 150% zoom.


@ECHO OFF

explorer ms-settings:display
ping -n 2 127.0.0.1 > nul

:VBSDynamicBuild
SET TempVBSFile=%tmp%\~tmpSendKeysTemp.vbs
IF EXIST "%TempVBSFile%" DEL /F /Q "%TempVBSFile%"
ECHO Set WshShell = WScript.CreateObject("WScript.Shell") >>"%TempVBSFile%"
ECHO Wscript.Sleep 100 >>"%TempVBSFile%"
ECHO WshShell.SendKeys "{TAB 6}" >>"%TempVBSFile%"
ECHO WshShell.SendKeys "{DOWN 2}" >>"%TempVBSFile%"
ECHO Wscript.Sleep 100 >>"%TempVBSFile%"
ECHO WshShell.SendKeys "%%{F4}" >>"%TempVBSFile%"

CSCRIPT //nologo "%TempVBSFile%"
EXIT

Edit the line in bold depending on your zoom. For example for starting at 125% zoom you'll change the UP 2/DOWN 2 to UP 1/DOWN 1

MaxiShagilko
21-05-20, 01:01 AM
Thanks M.C.F.C, great solution :rockon:

Jakala
05-09-20, 07:33 PM
Thank you very much, just what I was looking for.

DannyPhilips
14-09-20, 12:09 PM
I had this problem too and went into display settings, changed from 125% (recommended) to 100% and it worked a treat, just a pain changing it over every time!

Thank you very nice and at the same time simple advice.

Helenawe
05-10-20, 04:41 PM
I had this problem too and went into display settings, changed from 125% (recommended) to 100% and it worked a treat, just a pain changing it over every time!

Advice thank you

kennystone
05-11-20, 11:46 AM
I had this problem too and went into display settings, changed from 125% (recommended) to 100% and it worked a treat, just a pain changing it over every time!
How easy it is to solve this problem!

harveyymmetcalfe
16-11-20, 07:45 PM
Can you write what you have done to solve the problem.

Redknapp69
16-11-20, 09:53 PM
Can you write what you have done to solve the problem.

read the first post in this thread?

harveyymmetcalfe
19-11-20, 06:12 AM
I've already had such a problem. Have solved it in the same way.