https://bugs.winehq.org/show_bug.cgi?id=56119
Bug ID: 56119 Summary: Emperor - Rise of the Middle Kingdom: invisible menu buttons Product: Wine Version: 8.18 Hardware: x86-64 URL: https://www.gamepressure.com/download.asp?ID=1725 OS: Linux Status: NEW Keywords: download, regression Severity: normal Priority: P2 Component: d3d Assignee: wine-bugs@winehq.org Reporter: gyebro69@gmail.com CC: z.figura12@gmail.com Regression SHA1: ee7d047dd55a4b2338eb2d64f85b7d984b39812f Distribution: ---
Only the background is drawn in the menus, the menu buttons are invisible in the game Emperor:Rise of the Middle Kingdom (GOG). Can be reproduced in the demo version too.
Pharaoh is another city-building game using the same engine: here the screen remains black when the game gets to the main menu. Pharaoh demo: https://archive.org/download/PharaohDemo/PharaohDemo.zip
Reverting commit ee7d047dd55a4b2338eb2d64f85b7d984b39812f on top of Wine-9.0-rc3 fixes the problem in both games for me.
Plain terminal output doesn't show anything related.
PharaohDemo.zip (74 M) md5:474872cf372acbd4312ca0a6caf75434
si_emperor_demo.exe (128 M) md5:45052f088f699afb7a0d5e2ecfcb1804
https://bugs.winehq.org/show_bug.cgi?id=56119
--- Comment #1 from Zeb Figura z.figura12@gmail.com --- Created attachment 75789 --> https://bugs.winehq.org/attachment.cgi?id=75789 proof...
I believe the application is writing to the texture's sysmem outside of Lock() and expecting it to be blitted to the screen. It's been sort of vague knowledge that DDraw Applications Do This Kind Of Thing, but no specific one was mentioned and no tests ever validated it.
The offending texture (I was able to narrow it down to exactly one which causes the invisible buttons when a separate draw texture is used) is locked, then the entire texture is cleared, then blitted from and to.
Proof of this hypothesis is that if we replace the texture's sysmem during the clear, with the attached patch, the menu is invisible even with the offending commit reverted.
https://bugs.winehq.org/show_bug.cgi?id=56119
--- Comment #2 from Béla Gyebrószki gyebro69@gmail.com --- I came across another game where commit ee7d047 causes issues. In the adventure game 'The Egyptian Prophecy: The Fate of Ramses' text (dialogues, in-game encyclopedia) is hardly readable because it is displayed on a bright cyan background without transparency. No demo version exists, but the game is available on Steam: https://store.steampowered.com/app/302160/The_Egyptian_Prophecy_The_Fate_of_...
https://bugs.winehq.org/show_bug.cgi?id=56119
--- Comment #3 from Zeb Figura z.figura12@gmail.com --- I sent https://gitlab.winehq.org/wine/wine/-/merge_requests/4781 for this.
https://bugs.winehq.org/show_bug.cgi?id=56119
--- Comment #4 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Zeb Figura from comment #3)
I sent https://gitlab.winehq.org/wine/wine/-/merge_requests/4781 for this.
Indeed it fixes the problem in Emperor and in the Pharaoh games. However, it doesn't help the Egyptian Prophecy game. That looks like a different issue. Do you want me to open a new bug report for that, once your MR4781 merged in ?
https://bugs.winehq.org/show_bug.cgi?id=56119
--- Comment #5 from Zeb Figura z.figura12@gmail.com --- (In reply to Béla Gyebrószki from comment #4)
(In reply to Zeb Figura from comment #3)
I sent https://gitlab.winehq.org/wine/wine/-/merge_requests/4781 for this.
Indeed it fixes the problem in Emperor and in the Pharaoh games. However, it doesn't help the Egyptian Prophecy game. That looks like a different issue. Do you want me to open a new bug report for that, once your MR4781 merged in ?
You can go ahead and create a bug report for it now. Thanks for testing!
https://bugs.winehq.org/show_bug.cgi?id=56119
--- Comment #6 from Zeb Figura z.figura12@gmail.com --- I installed the game, but it crashes inside gameoverlayrenderer on startup. Did you use any workarounds?
https://bugs.winehq.org/show_bug.cgi?id=56119
--- Comment #7 from Béla Gyebrószki gyebro69@gmail.com --- Created attachment 75834 --> https://bugs.winehq.org/attachment.cgi?id=75834 Text without transparency in Egypt 3
(In reply to Zeb Figura from comment #6)
I installed the game, but it crashes inside gameoverlayrenderer on startup. Did you use any workarounds?
The game can be launched directly with the Egypt3.exe executable (without Steam running). Once in the main menu select <Documentary Database>.
https://bugs.winehq.org/show_bug.cgi?id=56119
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |b712d6c8464681ca82f11cf4905 | |1401b874814c6 Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #8 from Béla Gyebrószki gyebro69@gmail.com --- Regarding the games Emperor and Pharaoh this bug is fixed by commit b712d6c8464681ca82f11cf49051401b874814c6.
wine-9.0-54-g1932c3a2516
https://bugs.winehq.org/show_bug.cgi?id=56119
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.1.