http://bugs.winehq.org/show_bug.cgi?id=13994
Summary: Dungeon Keeper 2 Demo does not start Product: Wine Version: 1.0.0 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: nowic@wenner.ch
Created an attachment (id=14185) --> (http://bugs.winehq.org/attachment.cgi?id=14185) warn+all log
The Dungeon Keeper 2 Demo does not start. Tested in Win 95, 98 and XP mode.
Link: http://files.filefront.com/dungeonkeeper2demo/;928719;/fileinfo.html
http://bugs.winehq.org/show_bug.cgi?id=13994
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://files.filefront.com/d | |ungeonkeeper2demo/;928719;/f | |ileinfo.html Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=13994
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #14186|0 |1 is obsolete| |
--- Comment #2 from Lei Zhang thestig@google.com 2008-06-25 00:34:07 --- Created an attachment (id=14336) --> (http://bugs.winehq.org/attachment.cgi?id=14336) +seh,+tid,+relay log
http://bugs.winehq.org/show_bug.cgi?id=13994
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #3 from Lei Zhang thestig@google.com 2008-06-25 00:34:21 --- confirming
http://bugs.winehq.org/show_bug.cgi?id=13994
--- Comment #4 from Austin English austinenglish@gmail.com 2008-12-25 17:05:55 --- http://cdn.gamezone.com/pub/gamezone/11/7/42/DungeonKeeper2Demo.exe
Still present in git.
http://bugs.winehq.org/show_bug.cgi?id=13994
Xavier Vachon xvachon@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xvachon@gmail.com
--- Comment #5 from Xavier Vachon xvachon@gmail.com 2009-06-04 21:06:44 --- With latest git (1.1.22) and a clean, non-hacked wineprefix, I am able to load the game properly. I use the 1.7 retail version.
http://bugs.winehq.org/show_bug.cgi?id=13994
--- Comment #6 from Austin English austinenglish@gmail.com 2009-06-04 22:49:53 --- (In reply to comment #5)
With latest git (1.1.22) and a clean, non-hacked wineprefix, I am able to load the game properly. I use the 1.7 retail version.
The bug was for the demo...It crashes X for me on Nvidia, so I can't test.
http://bugs.winehq.org/show_bug.cgi?id=13994
--- Comment #7 from Xavier Vachon xvachon@gmail.com 2009-06-04 22:54:43 --- Created an attachment (id=21558) --> (http://bugs.winehq.org/attachment.cgi?id=21558) Terminal output demo
The demo crashes with the following output in a clean wineprefix.
http://bugs.winehq.org/show_bug.cgi?id=13994
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://files.filefront.com/ |http://browse.files.filefro |dungeonkeeper2demo/;928719; |nt.com/Dungeon+Keeper+2+Off |/fileinfo.html |icial+Demos/;138200;/browse | |files.html
--- Comment #8 from Ken Sharp kennybobs@o2.co.uk 2009-06-05 20:53:36 --- Confirming the bug still exists. The app doesn't crash, it exits silently.
http://bugs.winehq.org/show_bug.cgi?id=13994
Xavier Vachon xvachon@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #21558|0 |1 is obsolete| |
--- Comment #9 from Xavier Vachon xvachon@gmail.com 2010-10-27 15:13:42 CDT --- Created an attachment (id=31557) --> (http://bugs.winehq.org/attachment.cgi?id=31557) output
Still a bug in git (1.3.5). Updating terminal output.
http://bugs.winehq.org/show_bug.cgi?id=13994
--- Comment #10 from Henri Verbeet hverbeet@gmail.com 2011-04-08 06:40:26 CDT --- Created an attachment (id=33988) --> (http://bugs.winehq.org/attachment.cgi?id=33988) hack
Here's an awful hack that makes it start for me. Does the demo actually work on current Windows versions?
http://bugs.winehq.org/show_bug.cgi?id=13994
--- Comment #11 from Xavier Vachon xvachon@gmail.com 2011-04-08 09:28:25 CDT --- (In reply to comment #10)
Created an attachment (id=33988)
--> (http://bugs.winehq.org/attachment.cgi?id=33988) [details]
hack
Here's an awful hack that makes it start for me. Does the demo actually work on current Windows versions?
With Windows 7, I have to run the game in XP SP3 compatibility mode for it to run. Testing your hack in a moment..
http://bugs.winehq.org/show_bug.cgi?id=13994
--- Comment #12 from Xavier Vachon xvachon@gmail.com 2011-04-08 09:54:40 CDT --- Your hack allows the game to start for me as well.
http://bugs.winehq.org/show_bug.cgi?id=13994
--- Comment #13 from Austin English austinenglish@gmail.com 2013-06-29 19:10:11 CDT --- http://www.fileplanet.com/29730/20000/fileinfo/Dungeon-Keeper-2-Demo
still crashes in 1.6-rc4.
http://bugs.winehq.org/show_bug.cgi?id=13994
Jarkko K jarkko_korpi@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jarkko_korpi@hotmail.com
--- Comment #14 from Jarkko K jarkko_korpi@hotmail.com --- I got the game running setting windows version 95 (xp didnt work).
Wine 1.7.15
Demo seems to be multiplayer only, cant find servers, but does anyone even play this anymore??
Can someone confirm?
http://bugs.winehq.org/show_bug.cgi?id=13994
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Summary|Dungeon Keeper 2 Demo does |Dungeon Keeper 2 Demo does |not start |not start with WinVer set | |to 'Windows XP' or higher | |(broken game, requires | |VirtualRegistry appcompat | |shim)
--- Comment #15 from Anastasius Focht focht@gmx.net --- Hello folks,
confirming XP+ behaviour.
Like other Bullfrog games, DKII is broken for XP+ systems and therefore needs compat mode with multiple app shims/tweaks applied. Search for "Dungeon Keeper 2: How to run under XP/Vista/Win7" and you get some howtos (run in compat mode, tweak some settings).
The game uses different code paths for Win9X and NT systems in several places so the point of failure was not obvious.
The reason why Henri's hack works is most likely this trace log snippet.
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/Bullfrog/Dungeon Keeper 2 Demo
$ WINEDEBUG=+tid,+seh,+relay,+reg,+server wine ./DK2Demo.exe >>log.txt 2>&1 ... 0009:Call advapi32.RegOpenKeyExA(80000002,006bd72f "Software\Microsoft\DirectX",00000000,00000000,0033cc88) ret=005b2e19 0009:trace:reg:NtOpenKey (0x1c,L"Software\Microsoft\DirectX",0,0x33cc88) 0009: open_key( parent=001c, access=00000000, attributes=00000000, name=L"Software\Microsoft\DirectX" ) 0009: open_key() = 0 { hkey=022c } 0009:trace:reg:NtOpenKey <- 0x22c 0009:Ret advapi32.RegOpenKeyExA() retval=00000000 ret=005b2e19
0009:Call advapi32.RegQueryValueExA(0000022c,006bd714 "Version",00000000,0033cc8c,00000000,00000000) ret=005b337e 0009:trace:reg:RegQueryValueExA (0x22c,"Version",(nil),0x33cc8c,(nil),(nil)=0) 0009:trace:reg:NtQueryValueKey (0x22c,L"Version",2,0x33cab8,256) 0009: get_key_value( hkey=022c, name=L"Version" ) 0009: get_key_value() = ACCESS_DENIED { type=0, total=0, data={} } 0009:Ret advapi32.RegQueryValueExA() retval=00000005 ret=005b337e
0009:Call advapi32.RegOpenKeyA(0000022c,006bd714 "Version",0033cc84) ret=005b339b 0009:trace:reg:NtOpenKey (0x22c,L"Version",2000000,0x33cc84) 0009: open_key( parent=022c, access=02000000, attributes=00000000, name=L"Version" ) 0009: open_key() = OBJECT_NAME_NOT_FOUND { hkey=0000 } 0009:trace:reg:NtOpenKey <- (nil) 0009:Ret advapi32.RegOpenKeyA() retval=00000002 ret=005b339b
0009:Call advapi32.RegOpenKeyExA(80000002,006bd6c3 "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DirectXDrivers",00000000,00000000,0033cc88) ret=005b2e19 0009:trace:reg:NtOpenKey (0x1c,L"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DirectXDrivers",0,0x33cc88) 0009: open_key( parent=001c, access=00000000, attributes=00000000, name=L"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DirectXDrivers" ) 0009: open_key() = OBJECT_NAME_NOT_FOUND { hkey=0000 } 0009:trace:reg:NtOpenKey <- (nil) 0009:Ret advapi32.RegOpenKeyExA() retval=00000002 ret=005b2e19 0009:Call advapi32.RegCloseKey(0000022c) ret=005b2dc0 0009: close_handle( handle=022c ) 0009: close_handle() = 0 0009:Ret advapi32.RegCloseKey() retval=00000000 ret=005b2dc0 ... --- snip ---
RegQueryValueExA() requires KEY_QUERY_VALUE rights. Some 'genius' passed zero 'samDesired' to RegOpenKeyExA() which obviously can't work. The follow-up RegOpenKeyA() and RegOpenKeyExA() calls are meaningless, there is no way to produce a 'success' result after the first failure.
The compat mode probably enables a specific VirtualRegistry fix/shim which just works around this broken code, getting it onto the right code path again. Unfortunately you won't get this demo run in Windows XP/7 with compat mode because the shims filter for production executables signatures to apply shims to (and not demos).
$ sha1sum DungeonKeeper2Demo.exe a3a2af7d8419499780d835e661b864d477fd3ece DungeonKeeper2Demo.exe
$ du -sh DungeonKeeper2Demo.exe 46M DungeonKeeper2Demo.exe
$ wine --version wine-1.7.15-112-g2aad5d7
Regards
http://bugs.winehq.org/show_bug.cgi?id=13994
--- Comment #16 from Henri Verbeet hverbeet@gmail.com --- (In reply to Anastasius Focht from comment #15)
The reason why Henri's hack works is most likely this trace log snippet.
Yeah, that was the issue, IIRC.
https://bugs.winehq.org/show_bug.cgi?id=13994
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #17 from joaopa jeremielapuree@yahoo.fr --- So, what is the status of this bug? Closing as INVALID?
https://bugs.winehq.org/show_bug.cgi?id=13994
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Dungeon Keeper 2 Demo does |Dungeon Keeper 2 Demo does |not start with WinVer set |not start with WinVer set |to 'Windows XP' or higher |to 'Windows XP' or higher |(broken game, requires |(broken Win9x game, |VirtualRegistry appcompat |requires VirtualRegistry |shim) |appcompat shim) URL|http://browse.files.filefro |https://archive.org/downloa |nt.com/Dungeon+Keeper+2+Off |d/DungeonKeeper2Demo/Dungeo |icial+Demos/;138200;/browse |nKeeper2Demo.exe |files.html |
--- Comment #18 from Anastasius Focht focht@gmx.net --- Hello Jeremie,
--- quote --- Closing as INVALID? --- quote ---
well, currently there are very few bugs related to appcompat shims topic. Few pre-XP legacy apps/games that are end-of-life. I think it's fine to keep them open for the time being. It would have been different if these apps/games ceased working on Windows XP+ as well.
$ wine --version wine-5.0-rc2
Regards
https://bugs.winehq.org/show_bug.cgi?id=13994
jacobbrett+winehqbugs@jacobbrett.id.au changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacobbrett+winehqbugs@jacob | |brett.id.au