It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Unfortunately, GOG support has ignored multiple attempts to fix their installer for King's Quest Mask of Eternity when provided with the exact instructions, so I'll post them here instead. This will correct the game breaking issues with Mask.exe and allow the game to load on systems without CD/DVD drives.

Open Windows Powershell or Terminal (Windows 11), and copy/paste the commands below. This patch is for the copy of Mask.exe with the file modification date April 27, 2014.

$mask = Get-ItemPropertyValue -Path 'HKLM:\SOFTWARE\WOW6432Node\GOG.com\Games\1207661053' -Name EXE
Copy-Item -Path $mask -Destination ($mask -replace ".exe",".orig")
$bytes = [System.IO.File]::ReadAllBytes($mask)
$bytes[362640] = 0xEB
$bytes[362641] = 0x25
$bytes[362642] = 0x90
$bytes[362643] = 0x90
$bytes[362644] = 0x90
$bytes[442789] = 0x8B
$bytes[442790] = 0x55
$bytes[442791] = 0x08
$bytes[442792] = 0x8B
$bytes[442793] = 0x42
$bytes[442794] = 0x22
$bytes[442795] = 0x33
$bytes[442796] = 0x42
$bytes[442797] = 0x1C
$bytes[442798] = 0x40
$bytes[442799] = 0xC3
$bytes[443423] = 0x90
$bytes[443424] = 0xE3
$bytes[443425] = 0x09
$bytes[443426] = 0xE8
$bytes[443427] = 0x7E
$bytes[443428] = 0xFD
$bytes[443429] = 0xFF
$bytes[443430] = 0xFF
$bytes[443431] = 0x39
$bytes[443432] = 0xC8
$bytes[444058] = 0x90
$bytes[444059] = 0xE8
$bytes[444060] = 0x05
$bytes[444061] = 0xFB
$bytes[444062] = 0xFF
$bytes[444063] = 0xFF
$bytes[444064] = 0x89
$bytes[444065] = 0x83
$bytes[464759] = 0x00
$bytes[612628] = 0x74
$bytes[612737] = 0x74
$bytes[612787] = 0x74
$bytes[612915] = 0x75
$bytes[612948] = 0x75
$bytes[612985] = 0x74
$bytes[613020] = 0x73
$bytes[890965] = 0x89
$bytes[890966] = 0xF1
$bytes[1600260] = 0x49
$bytes[1600261] = 0x92
$bytes[1600262] = 0x8F
[System.IO.File]::WriteAllBytes($mask, $bytes)
Get-FileHash $mask | Format-List

The resulting hash should be "2F28824D730C7B86D23B6C658AB3FC601670E066BA0F3B36D316EEFC39311F75".

https://kqmoe.nicode.net/ from NicoDE is still the recommended solution, this is only being provided as an easy solution to make it run "well enough".
I got a different hash, but then again, I manually installed KQ8 into "Games" instead of GoGGames, if that makes any difference.

That said, I've done the "easy" solution and seem to have gotten the game to run, but I'm afraid that I won't be able to beat it because I can't get the video files to play. Clicking "replay intro" or attempting to change to 3DFX graphics settings causes the game to crash, so I assume that when I get to a point where an in-game movie plays, it'll crash, then, too. Apparently downloading and installing an old codec might do the trick, but even with codec tweaker, I can't seem to get videos to play. Do you have any idea for what to do about this?

Whatever the case, thank you very much for your post, and for any information.
avatar
LotusPrince: I got a different hash, but then again, I manually installed KQ8 into "Games" instead of GoGGames, if that makes any difference.

That said, I've done the "easy" solution and seem to have gotten the game to run, but I'm afraid that I won't be able to beat it because I can't get the video files to play. Clicking "replay intro" or attempting to change to 3DFX graphics settings causes the game to crash, so I assume that when I get to a point where an in-game movie plays, it'll crash, then, too. Apparently downloading and installing an old codec might do the trick, but even with codec tweaker, I can't seem to get videos to play. Do you have any idea for what to do about this?

Whatever the case, thank you very much for your post, and for any information.
Path won't matter, it pulls the installation folder from the registry. What's the file modification date for "Mask.orig", had you installed any other patches before running this?

For the videos, the Indeo 5 video codec is vulnerable to malicious code so they've intentionally disabled it in later versions of Windows. It's possible to re-encode them to something more modern but it'd be a much larger file. https://www.mediafire.com/file/hytzu42tnd4yob8/MOE_xvid.7z/file this worked several years ago, but you may need to install the xvid codec. Otherwise the 2 videos that play during gameplay can be patched out by modifying the level files.


Edit:
For the 3DFX question, open Options.cs in notepad and change "D3D-display" to "Glide" under the assignGModeName line. I do recommend grabbing the nGlide 2.10 installer from https://www.zeus-software.com/downloads/nglide and using nglide_config.exe to change the rendering mode to Vulkan so Dynamic Lighting will work at a reasonable speed. Only the 3DfxSpl2.dll, glide2x.dll, and nglide_config.exe files are needed for this game.
Post edited April 07, 2023 by Aroenai
avatar
Aroenai: Unfortunately, GOG support has ignored multiple attempts to fix their installer for King's Quest Mask of Eternity when provided with the exact instructions, so I'll post them here instead. This will correct the game breaking issues with Mask.exe and allow the game to load on systems without CD/DVD drives.

Open Windows Powershell or Terminal (Windows 11), and copy/paste the commands below. This patch is for the copy of Mask.exe with the file modification date April 27, 2014.

$mask = Get-ItemPropertyValue -Path 'HKLM:\SOFTWARE\WOW6432Node\GOG.com\Games\1207661053' -Name EXE
Copy-Item -Path $mask -Destination ($mask -replace ".exe",".orig")
$bytes = [System.IO.File]::ReadAllBytes($mask)
$bytes[362640] = 0xEB
$bytes[362641] = 0x25
$bytes[362642] = 0x90
$bytes[362643] = 0x90
$bytes[362644] = 0x90
$bytes[442789] = 0x8B
$bytes[442790] = 0x55
$bytes[442791] = 0x08
$bytes[442792] = 0x8B
$bytes[442793] = 0x42
$bytes[442794] = 0x22
$bytes[442795] = 0x33
$bytes[442796] = 0x42
$bytes[442797] = 0x1C
$bytes[442798] = 0x40
$bytes[442799] = 0xC3
$bytes[443423] = 0x90
$bytes[443424] = 0xE3
$bytes[443425] = 0x09
$bytes[443426] = 0xE8
$bytes[443427] = 0x7E
$bytes[443428] = 0xFD
$bytes[443429] = 0xFF
$bytes[443430] = 0xFF
$bytes[443431] = 0x39
$bytes[443432] = 0xC8
$bytes[444058] = 0x90
$bytes[444059] = 0xE8
$bytes[444060] = 0x05
$bytes[444061] = 0xFB
$bytes[444062] = 0xFF
$bytes[444063] = 0xFF
$bytes[444064] = 0x89
$bytes[444065] = 0x83
$bytes[464759] = 0x00
$bytes[612628] = 0x74
$bytes[612737] = 0x74
$bytes[612787] = 0x74
$bytes[612915] = 0x75
$bytes[612948] = 0x75
$bytes[612985] = 0x74
$bytes[613020] = 0x73
$bytes[890965] = 0x89
$bytes[890966] = 0xF1
$bytes[1600260] = 0x49
$bytes[1600261] = 0x92
$bytes[1600262] = 0x8F
[System.IO.File]::WriteAllBytes($mask, $bytes)
Get-FileHash $mask | Format-List
avatar
Aroenai: The resulting hash should be "2F28824D730C7B86D23B6C658AB3FC601670E066BA0F3B36D316EEFC39311F75".

https://kqmoe.nicode.net/ from NicoDE is still the recommended solution, this is only being provided as an easy solution to make it run "well enough".
Thank you so much for your help with this! Do you have a suggestion for how to do this with Windows 10?
right click desktop icon and choose run in compatibility mode Win XP Svc Pak 2
I tried this patch and it got further along in the launch but I ended up with a little blank window in the top left of the screen and got no further. I'm running Windows 11 instead of 10. Could that be making the difference?
Yea I see no way to get this game running on Windows 11.
I downloaded the patch and did was was written, enabled it, closed it, and ran the game.
I hear the music for a split second and then it crashes.


Log says:
Unhandled exception: code 0xc0000005, addr 0x00481f5f, info[0x00000000 0x00000000 0x00000000 0x00000000 0x00000000]
Post edited June 15, 2024 by nex01
avatar
Aroenai: Unfortunately, GOG support has ignored multiple attempts to fix their installer for King's Quest Mask of Eternity when provided with the exact instructions, so I'll post them here instead. This will correct the game breaking issues with Mask.exe and allow the game to load on systems without CD/DVD drives.

Open Windows Powershell or Terminal (Windows 11), and copy/paste the commands below. This patch is for the copy of Mask.exe with the file modification date April 27, 2014.

$mask = Get-ItemPropertyValue -Path 'HKLM:\SOFTWARE\WOW6432Node\GOG.com\Games\1207661053' -Name EXE
Copy-Item -Path $mask -Destination ($mask -replace ".exe",".orig")
$bytes = [System.IO.File]::ReadAllBytes($mask)
$bytes[362640] = 0xEB
$bytes[362641] = 0x25
$bytes[362642] = 0x90
$bytes[362643] = 0x90
$bytes[362644] = 0x90
$bytes[442789] = 0x8B
$bytes[442790] = 0x55
$bytes[442791] = 0x08
$bytes[442792] = 0x8B
$bytes[442793] = 0x42
$bytes[442794] = 0x22
$bytes[442795] = 0x33
$bytes[442796] = 0x42
$bytes[442797] = 0x1C
$bytes[442798] = 0x40
$bytes[442799] = 0xC3
$bytes[443423] = 0x90
$bytes[443424] = 0xE3
$bytes[443425] = 0x09
$bytes[443426] = 0xE8
$bytes[443427] = 0x7E
$bytes[443428] = 0xFD
$bytes[443429] = 0xFF
$bytes[443430] = 0xFF
$bytes[443431] = 0x39
$bytes[443432] = 0xC8
$bytes[444058] = 0x90
$bytes[444059] = 0xE8
$bytes[444060] = 0x05
$bytes[444061] = 0xFB
$bytes[444062] = 0xFF
$bytes[444063] = 0xFF
$bytes[444064] = 0x89
$bytes[444065] = 0x83
$bytes[464759] = 0x00
$bytes[612628] = 0x74
$bytes[612737] = 0x74
$bytes[612787] = 0x74
$bytes[612915] = 0x75
$bytes[612948] = 0x75
$bytes[612985] = 0x74
$bytes[613020] = 0x73
$bytes[890965] = 0x89
$bytes[890966] = 0xF1
$bytes[1600260] = 0x49
$bytes[1600261] = 0x92
$bytes[1600262] = 0x8F
[System.IO.File]::WriteAllBytes($mask, $bytes)
Get-FileHash $mask | Format-List
avatar
Aroenai: The resulting hash should be "2F28824D730C7B86D23B6C658AB3FC601670E066BA0F3B36D316EEFC39311F75".

https://kqmoe.nicode.net/ from NicoDE is still the recommended solution, this is only being provided as an easy solution to make it run "well enough".
This worked on my Windows 10!!

I tried the NicoDE fix multiple ways and that didn't work, so I did a fresh install and tried the above. And it's working!!

It wasn't an immediate fix, the game only loaded to the main menu but crashed when loading the maps. So I also downloaded [kqmoeavi-en] and the [kqmoevol] from NicoDE https://kqmoe.nicode.net/ website and extracted them into the game folder. I'm using the GOG file path, it didn't seem to make a difference. I also switched the graphics from DirectDraw to 3DFX in the main menu options. Miraculously, it works!

I'm only in the first chapter in Daventry, but it appears to be working - wish me luck that it doesn't crash midway through.

Thank you for posting this!!
Post edited June 28, 2024 by jhvh
avatar
LotusPrince: I got a different hash, but then again, I manually installed KQ8 into "Games" instead of GoGGames, if that makes any difference.

That said, I've done the "easy" solution and seem to have gotten the game to run, but I'm afraid that I won't be able to beat it because I can't get the video files to play. Clicking "replay intro" or attempting to change to 3DFX graphics settings causes the game to crash, so I assume that when I get to a point where an in-game movie plays, it'll crash, then, too. Apparently downloading and installing an old codec might do the trick, but even with codec tweaker, I can't seem to get videos to play. Do you have any idea for what to do about this?

Whatever the case, thank you very much for your post, and for any information.
avatar
Aroenai: Path won't matter, it pulls the installation folder from the registry. What's the file modification date for "Mask.orig", had you installed any other patches before running this?

For the videos, the Indeo 5 video codec is vulnerable to malicious code so they've intentionally disabled it in later versions of Windows. It's possible to re-encode them to something more modern but it'd be a much larger file. https://www.mediafire.com/file/hytzu42tnd4yob8/MOE_xvid.7z/file this worked several years ago, but you may need to install the xvid codec. Otherwise the 2 videos that play during gameplay can be patched out by modifying the level files.

Edit:
For the 3DFX question, open Options.cs in notepad and change "D3D-display" to "Glide" under the assignGModeName line. I do recommend grabbing the nGlide 2.10 installer from https://www.zeus-software.com/downloads/nglide and using nglide_config.exe to change the rendering mode to Vulkan so Dynamic Lighting will work at a reasonable speed. Only the 3DfxSpl2.dll, glide2x.dll, and nglide_config.exe files are needed for this game.
How do you modify the level files? I am having no luck getting the videos to play in game.
avatar
nex01: Yea I see no way to get this game running on Windows 11.
I downloaded the patch and did was was written, enabled it, closed it, and ran the game.
I hear the music for a split second and then it crashes.

Log says:
Unhandled exception: code 0xc0000005, addr 0x00481f5f, info[0x00000000 0x00000000 0x00000000 0x00000000 0x00000000]
I was having the same problem. I think this happens because of the introduction video. Edit main.kq and set aviPlayed=1. This will let you play but may crash when you make it to the videos later in the game.

As a side note, the console.cs file has the line KQGame::FPSLimit. You can change this to speed up the camera though Conner will still move like molasses.
Post edited September 14, 2024 by dontspamrob