NVidia OpenGL display driver lost connection error troubleshooting

In recent operating systems and more recent games you may have encountered the following message every now and then.

Sometimes the message won’t show at all depending on your windows settings and or game.

“The NVIDIA OpenGL driver lost connection with the display driver due to exceeding the Windows Time-Out limit and is unable to continue. The application must now close.
Error code: 7″

nvidia_opengl_lost_connection_error

This is actually a good thing which prevents freezes of your whole operating system. In some cases however we want to workaround it by increasing the time before timeout. You can read more about this on Microsoft Support.

We do this by editing a key in the windows registry. For example I have to change this to 8 seconds or so in order to take high resolution screenshots in SpaceEngine.

Warning! Before proceeding you should know that setting this to a bad value could mess up things on your computer. Create a system restore point and backup your data!

NOTE! This affects all graphics programs and games on your computer. I recommend restoring the value after you’re done testing.

Proceed on your own risk!

Option 1: Right and select save as on any of the registry patches. Double click on them in explorer to install

TdrDelay-8sec.reg – TdrDelay set to 8 seconds (this should be enough for SpaceEngine)
TdrDelay-32sec.reg – TdrDelay set to 32 seconds (try this if error still shows)
TdrDelay-uninstall.reg – This removes the registry value which will use windows default. (Windows default is 2 seconds)

Option 2: Manually edit the registry

Open regedit.exe and navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers

Create a new key DWORD32 and name it exactly TdrDelay
I tried 64 but it wouldn’t work for me even though I use a 64 bit OS.
Remember that this key name is cAsE sEnSiTiVe.

Double click on the key, choose decimal value and set it to the delay that you want.
I recommend trying 8 to 32. Delete the key when you’re done.

Here is a tiny gif animation. Please excuse the Swedish ๐Ÿ™‚

TdrDelay

If you have any additional information to add or if I got anything wrong, please don’t hesitate to leave a comment!
Cheers


Fallout 2 not responding in combat bug

fallout2notresponding

Description

Fallout 2 stops responding during combat and resumes at the end of the round. You may or may not have any unofficial patches installed and/or are running the game in windowed mode.

Background

If you’re attempting to play the classic Fallout 2 on Windows 7 or Windows 8 you will probably encounter the the bug above. This is not specifically a bug in Fallout 2 but rather a compatibility issue in recent Windows operating systems.

Before proceeding I highly recommend that you install one of either of killaps unofficial patches:

– Unofficial Fallout 2 patch by killap
– Fallout 2 Restoration Project by killap

It goes without saying but don’t install both! Choose one.

Save files might not work after installing the patch so make a backup of the whole Fallout folder before installing.

The unofficial patch fixes general bugs while the restoration project restores a lot (if not all) cut content and adds in a some extra mod content. I highly recommend the restoration project patch. It adds a lot of things to the game which enriches the experience, even for first time players.

Download killaps patches over at www.killap.net or the No Mutants Allowed forums.

Windows AppHangTimeout registry entry

Here is one way to fix this issue.

Please note that the following changes will affect all programs running on your operating system. This may cause issues for you but shouldn’t make much (if any) difference to the general user who knows how to use windows task manager to force terminate applications.

As always when editing the registry make a backup or create a system restore point in case you make any mistakes. (Mistakes can mess up your computer so do this at your own risk)

Option 1: Download and double click on any of the following registry patches

Right click the link and select save as. Make sure that the name (file extension) ends with .reg. Otherwise rename it.

a) 120 second delay before the “program not responding” pops up.
(this should be enough for most fights in Fallout 2)

b) 300 second delay if you intend to go rampage and battle entire cities, this 5 minute delay might be more for you

c) remove (uninstall) the registry entry to use windows default timeout

Option 2: Manually edit the registry

1. Open regedit.exe

2. Browse to HKEY_CURRENT_USER \ Control Panel \ Desktop

3. Check if there is an entry for HungAppTimeout

4. If there is a value then double click and edit this to the delay value you wish to have in milliseconds.

5. If there is no value right click and select New -> String value and name it exactly “HungAppTimeout” without the quotation marks.

6. Double click this and enter the delay value that you wish in milliseconds.

hungapptimeout2

ย Notes or alternate fixes

If you for some reason absolutely cannot change this registry entry there is an option in Fallout 2 High Resolution Patch (f2_res) you can try.

The high resolution patch is included in both of killaps patches so I really recommend you install one of them! It makes the install procedure much easier for you.

1. Open up f2_res.ini in your Fallout 2 install path

2. Scroll down a bit until you find EXTRA_WIN_MSG_CHECKS=0

3. Change the 0 (zero) to 1 (one) so that it looks like this:

f2_res.ini

Fake windowed fullscreen

I just wanted to add this section here as well. As this game runs really well with the fallout 2 high resolution patch you might consider running an AutoHotkey script to toggle fake fullscreen. Fake fullscreen is also built into my application XBoxMouse and works even if you don’t have any controller plugged in. You need to enable it by editing the line WindowedFullscreen=1 in the ini file however.

Optional pre compiled script

Download and run the compiled script here (mirror).
MD5 checksum: 99882c79d419503604a52c74cd785cc3

Please note!
You probably have set this program to run as an administrator in the compatibility tab!

Hold down CONTROL and ALT and press F12 to toggle fake fullscreen!

Run the script manually

1. Download and install AutoHotkey

2. Option: Download the script (mirror) and double click it (right click and select save as)

3. Copy and paste the following script into notepad your plain text editor of choice (notepad2 or notepad++)

4. Save the file as whatever you wish as long as it ends with the file extension .ahk

5. Double click the ahk file to have it run in the background. Hold down CONTROL and ALT and press F12 to toggle fake fullscreen on the window you currently have focused.

Script to copy and paste

;Toggle fake windowed fullscreen!
;https://nirklars.wordpress.com

#singleinstance force

!^F12::
	WinGet, WindowID, ID, A
	WinGet Style, Style, ahk_id %WindowID% ; retrieve window data

	if (Style & 0xC40000) ; check if object is available
	{
		WinSet Style, -0xC40000, ahk_id %WindowID% ; hide thickframe/sizebox
		WinSet Style, -0xC00000, ahk_id %WindowID% ; hide title bar
		WinSet Style, -0x800000, ahk_id %WindowID% ; hide thin-line border
		WinSet Style, -0x400000, ahk_id %WindowID% ; hide dialog frame
	}
	else
	{
		WinSet Style, +0xC40000, ahk_id %WindowID% ; show thickframe/sizebox
		WinSet Style, +0xC00000, ahk_id %WindowID% ; show title bar
		WinSet Style, +0x800000, ahk_id %WindowID% ; show thin-line border
		WinSet Style, +0x400000, ahk_id %WindowID% ; show dialog frame
	}

	WinMove, ahk_id %WindowID%, , 0, 0, A_ScreenWidth, A_ScreenHeight

return

Hope this helps ๐Ÿ™‚
Happy retro gaming!
Best Regards


Determine if files are identical with md5deep – using windows explorer right click

There are many ways to validate file integrity. A hash value (aka checksum) is a unique value that is generated when running data through a cryptographic function algorithm. The hash value is intended to always remain the same when running the exact same data through the algorithm again. Hence comparing the hash values of two different files on your computer allows you to determine if they contain the same data.

In this post I’m sharing one way to validate checksum using md5, sha1, sha2, tiger tree hash (tth) and whirlpool in windows explorer using some edits to the registry.

The followind registry edits are tested on Windows 7 and Windows 8.1.

Example situation – identical copies or not?

In this situation we want to compare two files test1.jpg and test2.jpg. These files have the exact same size and the exact same date. But, are they really identical copies?

EDIT: Please excuse the otherwise Swedish UI ๐Ÿ™‚

md5

After we have retrieved both of the MD5 hash values we can compare them.

md5_2

test1.jpg gives d7e2edbee8f914de8cbcc1844b8eda48
test2.jpg
gives 53737dda0882af18f4f3d2d9c88a7f61

As we see, the files are not identical. If they were identical we would see the exact same value for both files.

Install

1. Download md5deep-3.1.zip or (mirror 1) (mirror 2)
MD5: d757e0984c1e2f1e2fd841809cad1625

The more recent versions works as well so you can replace the files with them if you want.

2. Extract md5deep.exe, sha1deep.exe, sha256deep.exe, tigerdeep.exe and whirlpooldeep.exe into your windows system folder (usually C:\Windows). Placing files in the windows system folder requires administrative access. (You need to log in as an administrator and probably temporarily lower UAC)

Placing these command line tools in the windows system folder enables them to be run using the command line from any path.

3. Backup your registry in case you mess something up. Either use Microsofts guide here or here or create a Windows System Restore point.

4. Copy the code from below and paste it into your favorite text editor (not MS word). Save as md5-rightclick-install.reg. Or download directly from here (You may have to right click and select save as.)

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\_deepHash]
"SubCommands"="deepMD5Hash;deepTTHHash;deepSHA1Hash;deepSHA256Hash;deepWhirlp256Hash"
"MUIVerb"="Hash"
"Position"="-"
"Icon"="cmd.exe,0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\deepMD5Hash]
@="MD5"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\deepMD5Hash\command]
@="cmd.exe /k md5deep.exe \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\deepTTHHash]
@="Tiger Tree Hash"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\deepTTHHash\command]
@="cmd.exe /k tigerdeep.exe \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\deepSHA1Hash]
@="SHA1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\deepSHA1Hash\command]
@="cmd.exe /k sha1deep.exe \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\deepSHA256Hash]
@="SHA256"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\deepSHA256Hash\command]
@="cmd.exe /k sha256deep.exe \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\deepWhirlp256Hash]
@="Whirlpool"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\deepWhirlp256Hash\command]
@="cmd.exe /k whirlpooldeep.exe \"%1\""

5. Double click on md5-rightclick-install.reg and you will see a message asking you to confirm the registry changes.

6. Done! If performed correctly you should now see the “Hash” command when right clicking files.

Uninstall

1. Copy the code from below and paste it into your favorite text editor (not MS word). Save as md5-rightclick-uninstall.reg. Or download directly from here (You may have to right click and select save as.)

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\*\shell\_deepHash]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\deepMD5Hash]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\deepTTHHash]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\deepSHA1Hash]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\deepSHA256Hash]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\deepWhirlp256Hash]

2. Double click on md5-rightclick-uninstall.reg and you will see a message asking you to confirm the registry changes.

3. Manually delete md5deep.exe, sha1deep.exe, sha256deep.exe, tigerdeep.exe and whirlpooldeep.exe from your windows system folder