Medieval 2 Britannia

Questions about Wine on Linux
Locked
Haydn
Level 2
Level 2
Posts: 24
Joined: Sun Nov 27, 2016 2:20 pm

Medieval 2 Britannia

Post by Haydn »

I launch Medieval 2 Britannia in wine version 4.11 (32 bit prefix) and the result is:

Code: Select all

WINEPREFIX=$HOME/.mtw2 wineconsole kingdoms_britannia.bat 
002e:fixme:exec:SHELL_execute flags ignored: 0x00000100
0030:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0032FBEC 1 C) semi-stub
0030:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0032F9E4 1 C) semi-stub
0030:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0032FDDC 1 C) semi-stub
0030:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0032EF9C 1 C) semi-stub
0030:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0032EEB0 1 C) semi-stub
0030:fixme:wbemprox:wbem_services_CreateInstanceEnum unsupported flags 0x00000030
0030:fixme:wbemprox:enum_class_object_Next timeout not supported
0030:fixme:ddraw:ddraw7_Initialize Ignoring guid {aeb2cdd4-6e41-43ea-941c-8361cc760781}.
0030:err:winediag:MIDIMAP_drvOpen No software synthesizer midi port found, Midi sound output probably won't work.
0030:fixme:d3d:wined3d_swapchain_resize_buffers Cannot change the back buffer count yet.
0030:err:d3dcompiler:wpp_write_mem Error allocating memory
0030:err:d3dcompiler:wpp_write_mem Error allocating memory
0031:err:ntdll:RtlpWaitForCriticalSection section 0x110060 "heap.c: main process heap section" wait timed out in thread 0031, blocked by 0030, retrying (60 sec)
0031:err:ntdll:RtlpWaitForCriticalSection section 0x110060 "heap.c: main process heap section" wait timed out in thread 0031, blocked by 0030, retrying (60 sec)
001a:err:ntdll:RtlLeaveCriticalSection section 0x111fc0 is not acquired
Can I fix it ?
Thanks
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Medieval 2 Britannia

Post by Bob Wya »

Haydn wrote:I launch Medieval 2 Britannia in wine version 4.11 (32 bit prefix) and the result is:

....

Can I fix it ?
Thanks
Probably...
  • Can you re-run your test with:

    Code: Select all

    export WINEDEBUG=+loaddll,+module,+wgl
    export WINEPREFIX="${HOME}/.mtw2"
    wineconsole kingdoms_britannia.bat
  • What are the contents of the Windows batch file: kingdoms_britannia.bat?
  • What's the output from:

    Code: Select all

    glxinfo -B
  • Are you using an DLL overrides on that WINEPREFIX?
Thanks
Bob
Haydn
Level 2
Level 2
Posts: 24
Joined: Sun Nov 27, 2016 2:20 pm

Re: Medieval 2 Britannia

Post by Haydn »

Bob Wya wrote:
  • Can you re-run your test with:

    Code: Select all

    export WINEDEBUG=+loaddll,+module,+wgl
    export WINEPREFIX="${HOME}/.mtw2"
    wineconsole kingdoms_britannia.bat
The output is too verbose, I create the file Test and attached
Bob Wya wrote:
  • What are the contents of the Windows batch file: kingdoms_britannia.bat?

    /list]
kingdoms_britannia.bat

Code: Select all


start kingdoms.exe --features.mod=mods/british_isles

Bob Wya wrote:
  • What's the output from:

    Code: Select all

    glxinfo -B

Code: Select all

owain@Aristotele:~/.mtw2/drive_c/Medieval 2 Total War Gold$ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: nouveau (0x10de)
    Device: NV98 (0x6e4)
    Version: 18.2.8
    Accelerated: yes
    Video memory: 501MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 3.3
    Max compat profile version: 3.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0
OpenGL vendor string: nouveau
OpenGL renderer string: NV98
OpenGL core profile version string: 3.3 (Core Profile) Mesa 18.2.8
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.1 Mesa 18.2.8
OpenGL shading language version string: 1.40
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.0 Mesa 18.2.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
Bob Wya wrote:
  • Are you using an DLL overrides on that WINEPREFIX?
[/list]
I use none Dll overrides, because the tests available on AppDb are outdated.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Medieval 2 Britannia

Post by Bob Wya »

Haydn wrote:...
The output is too verbose, I create the file Test and attached
Please maximally compress the log file, with something like:

Code: Select all

xz -9 -e wine_4.11_medival_loaddll_module_wgl_log.txt
You'll then want to host the compressed log on Google Drive, Mega, etc.
The WineHQ forum has a ≤ 200 Kbyte attachment limit.
Haydn wrote:

Code: Select all

owain@Aristotele:~/.mtw2/drive_c/Medieval 2 Total War Gold$ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: nouveau (0x10de)
    Device: NV98 (0x6e4)
    ...
Using the Noveau driver, with Wine, can be problematic.
I presume your graphics card is something like a: Nvidia GeForce 8400 GS ??
Do any Windows games work on that card (with the Noveau graphics driver), when using Wine?

You might get better results with the legacy Nvidia proprietary driver: 340.107.
That will still work, with a LTS kernel version (< 4.18).

Bob
Haydn
Level 2
Level 2
Posts: 24
Joined: Sun Nov 27, 2016 2:20 pm

Re: Medieval 2 Britannia

Post by Haydn »

https://www.dropbox.com/s/lqli6696lrcg538/Test?dl=0
Link to file Test
Bob Wya wrote:
Using the Noveau driver, with Wine, can be problematic.
I presume your graphics card is something like a: Nvidia GeForce 8400 GS ??
Do any Windows games work on that card (with the Noveau graphics driver), when using Wine?

You might get better results with the legacy Nvidia proprietary driver: 340.107.
That will still work, with a LTS kernel version (< 4.18).

Bob
My graphic card is GeForce8400 GS, now I change to nvidia driver and mtw2 display the unspecified error and crash.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Medieval 2 Britannia

Post by Bob Wya »

@Haydn

From your log file...
Some potential overrides to try are:

Code: Select all

winetricks vcrun2003
and/or

Code: Select all

winetricks d3dcompiler_47 d3dx9
based on what libraries - the game is trying to load...

How did you install the Nvidia driver?
Downloading and using the Nvidia installer directly tends to break things, badly!
Using a Linux Distribution packaged version of the nvidia driver, is highly recommended!!

I don't even know what Linux Distribution you are running...
So I can't really offer any further advice, on the graphics driver issue.
Obviously you'd want to check the output from:

Code: Select all

glxinfo -B
is something sensible.

Bob
Haydn
Level 2
Level 2
Posts: 24
Joined: Sun Nov 27, 2016 2:20 pm

Re: Medieval 2 Britannia

Post by Haydn »

Bob Wya wrote:@Haydn

From your log file...
Some potential overrides to try are:

Code: Select all

winetricks vcrun2003
and/or

Code: Select all

winetricks d3dcompiler_47 d3dx9
based on what libraries - the game is trying to load...
dll install
Bob Wya wrote:@Haydn
How did you install the Nvidia driver?
Downloading and using the Nvidia installer directly tends to break things, badly!
Using a Linux Distribution packaged version of the nvidia driver, is highly recommended!!

I don't even know what Linux Distribution you are running...
So I can't really offer any further advice, on the graphics driver issue.
Obviously you'd want to check the output from:

Code: Select all

glxinfo -B
is something sensible.

Bob
I run Linux Mint 19.1

Code: Select all

$ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 512 MB
    Total available memory: 512 MB
    Currently available dedicated video memory: 341 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 8400 GS/PCIe/SSE2
OpenGL core profile version string: 3.3.0 NVIDIA 340.107
OpenGL core profile shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.3.0 NVIDIA 340.107
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 2.0 NVIDIA 340.107 340.107
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.00
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Medieval 2 Britannia

Post by Bob Wya »

Haydn wrote:
dll install
Que? I don't what you mean by this! :?

What's the terminal output, from the game, with the Nvidia proprietary driver installed?
With the same WINEDEBUG variable set (as before):

Code: Select all

export WINEDEBUG=+loaddll,+module,+wgl
Thanks
Bob
Haydn
Level 2
Level 2
Posts: 24
Joined: Sun Nov 27, 2016 2:20 pm

Re: Medieval 2 Britannia

Post by Haydn »

Bob Wya wrote: Que? I don't what you mean by this! :?
Ok, I recreate a fresh 32 bit bottle with same name.
Bob Wya wrote: What's the terminal output, from the game, with the Nvidia proprietary driver installed?
With the same WINEDEBUG variable set (as before):

Code: Select all

export WINEDEBUG=+loaddll,+module,+wgl
file ready
https://www.dropbox.com/s/i6l9ozg87w767 ... gl.xz?dl=0

Thanks
Locked