Gothic 3 - problem with start menu

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Hartmut Figge

Gothic 3 - problem with start menu

Post by Hartmut Figge »

Greetings,

once there was a time when Gothic 3 ran poorly on wine but had no
difficulties with displaying the start menu. Now, with a fresh ~/.wine,
the trailers behave nicely but when it comes to the start menu, it is
not displayed.

A significant error line regarding this is:

fixme:d3dx:ID3DXFontImpl_DrawTextW (0x394fd18)->(0x39ce150, L"Neues
Spiel", -1, 0x32e078, 5, 0xff000000): stub

Looks as if copying a special d3dx-dll from WinXP could perhaps fix
this. Which one? ;)

This happens on wine-1.3.32 and was so for a couple of versions back.
Perhaps wine-1.3.33 would help, but i doubt it and this version is not
yet available on Gentoo.

I could provide a full log taken with 2>&1 | tee g3_log.txt if that
would be helpful. At the end of that file there is a loop in which
displaying the start menu is tried over and over again. Two times of
that loop should be enough and i have cut out the remainder.

Hartmut
--
Usenet-ABC-Wiki http://www.usenet-abc.de/wiki/
Von Usern fuer User :-)
Rico
Moderator
Moderator
Posts: 91
Joined: Sat Feb 23, 2008 12:10 pm

Re: Gothic 3 - problem with start menu

Post by Rico »

I think you used one of the native d3dx9_xx.dlls when it was running. The exact version you need depends on the version of Gothic 3 (e.g. Version 1.74 uses d3dx9_40.dll, see appdb). You may discover the exact version by running with WINEDEBUG=+loaddll. Native d3dx_36.dll should work for all Gothic 3 versions, because the function are forwarded to this one.
Hartmut Figge

Gothic 3 - problem with start menu

Post by Hartmut Figge »

Rico:
I think you used one of the native d3dx9_xx.dlls when it was running.
The exact version you need depends on the version of Gothic 3 (e.g.
Version 1.74 uses d3dx9_40.dll, see appdb). You may discover the
exact version by running with WINEDEBUG=+loaddll. Native d3dx_36.dll
should work for all Gothic 3 versions, because the function are
forwarded to this one.
hafi@i5_64 ~ $ grep d3dx9 g3_log_2.txt
trace:loaddll:load_builtin_dll Loaded
L"C:\\windows\\system32\\d3dx9_40.dll" at 0x7e080000: builtin
trace:loaddll:load_builtin_dll Loaded
L"C:\\windows\\system32\\d3dx9_36.dll" at 0x7e020000: builtin

I will wait some more time before experimenting. It is already late here
in Germany.

Hartmut
--
Usenet-ABC-Wiki http://www.usenet-abc.de/wiki/
Von Usern fuer User :-)
Hartmut Figge

Gothic 3 - problem with start menu

Post by Hartmut Figge »

Hartmut Figge:
I could provide a full log taken with 2>&1 | tee g3_log.txt if that
would be helpful. At the end of that file there is a loop in which
displaying the start menu is tried over and over again. Two times of
that loop should be enough and i have cut out the remainder.
I have received a PM asking for that, but this message has not appeared
at gmane yet. Hm. Well, then i will answer to my own message.

Gothic 3 was started so: cd in the directory where Gothic3.exe resides
and then issuing 'wine Gothic3.exe 2>&1 | tee ~/g3_log.txt. This file
and possibly later more of them can be found here:

http://www.triffids.de/pub/wine/gothic_3/

The game was terminated by issuing 'wineserver -k' in another xterm.

The following patch was applied to Gothic 3:
Gothic_3_Community_Patch_v174_Int_Full

Without this patch Gothic 3 crashes immediately on wine. AFAIR *g*

Hartmut
--
Usenet-ABC-Wiki http://www.usenet-abc.de/wiki/
Von Usern fuer User :-)
Hartmut Figge

Gothic 3 - problem with start menu

Post by Hartmut Figge »

Hartmut Figge:
The following patch was applied to Gothic 3:
Gothic_3_Community_Patch_v174_Int_Full
That is a path for Gothic 3 and not wine. It can be found here:
http://www.worldofgothic.de/dl/download_415.htm

Hartmut
--
Usenet-ABC-Wiki http://www.usenet-abc.de/wiki/
Von Usern fuer User :-)
Hartmut Figge

Gothic 3 - problem with start menu

Post by Hartmut Figge »

Hartmut Figge:
hafi@i5_64 ~ $ grep d3dx9 g3_log_2.txt
trace:loaddll:load_builtin_dll Loaded
L"C:\\windows\\system32\\d3dx9_40.dll" at 0x7e080000: builtin
trace:loaddll:load_builtin_dll Loaded
L"C:\\windows\\system32\\d3dx9_36.dll" at 0x7e020000: builtin
I have mounted my WinXP on my Gentoo and could find the d3dx9_36.dll in
/winxp/WINDOWS/system32. But i could not find the d3dx9_40.dll there.

After replacing the d3dx9_36.dll nothing seems to have changed. I have
uploaded g3_log_3.txt to http://www.triffids.de/pub/wine/gothic_3/ and
partly commented it. The comments can easily be found by searching for '# '.

Hartmut
--
Usenet-ABC-Wiki http://www.usenet-abc.de/wiki/
Von Usern fuer User :-)
Hartmut Figge

Gothic 3 - problem with start menu

Post by Hartmut Figge »

Hartmut Figge:
That is a path for Gothic 3...
^^^^
Should be 'patch'. ;)

Hartmut
--
Usenet-ABC-Wiki http://www.usenet-abc.de/wiki/
Von Usern fuer User :-)
Rico
Moderator
Moderator
Posts: 91
Joined: Sat Feb 23, 2008 12:10 pm

Re: Gothic 3 - problem with start menu

Post by Rico »

Hartmut Figge wrote:Hartmut Figge:
After replacing the d3dx9_36.dll nothing seems to have changed. I have
uploaded g3_log_3.txt to http://www.triffids.de/pub/wine/gothic_3/ and
partly commented it. The comments can easily be found by searching for '# '.
As your log shows, wine still uses the builtin d3dx9_36.dll. And your setup mostly won't work for dlls which wine ships. You forgot to set the dll to native in winecfg (Tab: Libraries) or on the command line (e.g. WINEDLLOVERRIDES=d3dx9_36=n , see http://www.winehq.org/docs/wineusr-guide/x258). If you don't know how, you might use winetricks to install d3dx9_36.dll, which does the steps needed for you.
Hartmut Figge

Gothic 3 - problem with start menu

Post by Hartmut Figge »

Rico:
As your log shows, wine still uses the builtin d3dx9_36.dll. And your
setup mostly won't work for dlls which wine ships. You forgot to set
the dll to native in winecfg (Tab: Libraries) or on the command line
(e.g. WINEDLLOVERRIDES=d3dx9_36=n
WINEDLLOVERRIDES=d3dx9_36=n wine Gothic3.exe crashes immediately
, see http://www.winehq.org/docs/wineusr-guide/x258). If you don't
know how, you might use winetricks to install d3dx9_36.dll, which
does the steps needed for you.
That's fine for me. winetricks has now a very nice interface. :) The
start menu is now there and Gothic 3 can be started.

Still the issues with the mouse and the sky, so it will be better to
boot into WinXP for playing Gothic 3 for now.

Thanks for helping.

Hartmut
--
Usenet-ABC-Wiki http://www.usenet-abc.de/wiki/
Von Usern fuer User :-)
Hartmut Figge

Gothic 3 - problem with start menu

Post by Hartmut Figge »

Rico:
Hartmut Figge wrote:
Hartmut Figge: After replacing the d3dx9_36.dll nothing seems to
have changed. [...]
As your log shows, wine still uses the builtin d3dx9_36.dll.
For those who are interested: i am on the way to migrate from i686 to
x86_64. 'inch by inch, step by step, mile by mile' (borrowed from
cabaret). Not arrived yet and there are some differences to consider.

Regarding wine, there are now additional directories 'Program Files
(x86)' and 'windows/syswow64'. I had put d3dx9_36.dll into
windows/system32 and wintetricks has decided to use 'windows/syswow64'
instead.
And your setup mostly won't work for dlls which wine ships.
I am a little bit curious what would have happened if i replaced the
.dll in syswow64 instead of system32.
You forgot to set the dll to native in winecfg (Tab: Libraries) or on
the command line (e.g. WINEDLLOVERRIDES=d3dx9_36=n , see
http://www.winehq.org/docs/wineusr-guide/x258).
Overriding was not necessary in the past. Copying DLLs just worked. If
necessary in this case, hm.
If you don't know how, you might use winetricks to install
d3dx9_36.dll, which does the steps needed for you.
That's surely the way to go for me in the future. :)

Hartmut
--
Usenet-ABC-Wiki http://www.usenet-abc.de/wiki/
Von Usern fuer User :-)
Rico
Moderator
Moderator
Posts: 91
Joined: Sat Feb 23, 2008 12:10 pm

Post by Rico »

Please test the registry setting "AlwaysOffscreen" = "enabled" (see http://wiki.winehq.org/UsefulRegistryKeys ). It fixes the sky issue for me completely.
Hartmut Figge

Gothic 3 - problem with start menu

Post by Hartmut Figge »

Rico:
Please test the registry setting "AlwaysOffscreen" = "enabled" (see
http://wiki.winehq.org/UsefulRegistryKeys ). It fixes the sky issue
for me completely.
:)

And also for me. The remaining issue with the mouse could be fixed by
checking 'Automatically capture the mouse in full-screen windows' in
winecfg. Well, i am using a virtual desktop, but it works nevertheless.

Now Gothic 3 seems to be usable under wine. But at the moment i am
playing Nehrim, a wonderful modification of Oblivion.

Hartmut
--
Usenet-ABC-Wiki http://www.usenet-abc.de/wiki/
Von Usern fuer User :-)
Locked