Project Reality 1.5(Battlefield 2 mod) help much appreciated

Questions about Wine on Linux
Locked
whatbug
Level 3
Level 3
Posts: 67
Joined: Sun Mar 14, 2010 4:49 am

Project Reality 1.5(Battlefield 2 mod) help much appreciated

Post by whatbug »

Hi,
I'm trying to run Project Reality on Wine 4.5 (also tested in Lutris on proton 4.2 separate install - no Lutris as of now) . Currently it's:
- set on a 32bit prefix (tried 64bit as well)
- got vcrun2015 and dotnet40 installed (tried both by setup files and winetricks)
- installed DXVK 1.0.3 (tried also with no DXVK)

The thing is the Launcher works fine - the game boots up - and when i just see the menu and hear the music it crashes with this:

Code: Select all

0072:err:winediag:MIDIMAP_drvOpen No software synthesizer midi port found, Midi sound output probably won't work.
0072:err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found: width=800 height=600 bpp=32 freq=85 (desktop)
0072:fixme:d3d9:Direct3DShaderValidatorCreate9 stub
0072:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x32eb18 1 C) semi-stub
007d:fixme:d3d:state_linepattern_w Setting line patterns is not supported in OpenGL core contexts.
0072:fixme:d3d:debug_d3dformat Unrecognized 0x434f5441 (as fourcc: ATOC) WINED3DFORMAT!
0072:fixme:d3d:wined3d_get_format Can't find format unrecognized (0x434f5441) in the format lookup table.
0072:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0072:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0057:fixme:thread:NtQueryInformationThread ThreadIsIoPending info class not supported yet
0056:fixme:thread:NtQueryInformationThread ThreadIsIoPending info class not supported yet
0048:fixme:thread:NtQueryInformationThread ThreadIsIoPending info class not supported yet
0066:fixme:thread:NtQueryInformationThread ThreadIsIoPending info class not supported yet
0051:fixme:thread:NtQueryInformationThread ThreadIsIoPending info class not supported yet
0037:fixme:thread:NtQueryInformationThread ThreadIsIoPending info class not supported yet
0056:fixme:thread:NtQueryInformationThread ThreadIsIoPending info class not supported yet
0053:fixme:reg:RegQueryInfoKeyA security argument not supported.
0072:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_CACHE_INFORMATION
0072:fixme:ntdll:NtSetSystemInformation (0x00000015,0x32ecc8,0x00000024) stub
0072:err:d3d:wined3d_device_decref Device released with resources still bound.
0072:err:d3d:wined3d_device_decref Leftover resource 0x6060468 with type WINED3D_RTYPE_BUFFER (0x1).
0072:err:d3d:wined3d_device_decref Leftover resource 0x60602a0 with type WINED3D_RTYPE_BUFFER (0x1).
0072:err:d3d:wined3d_device_decref Leftover resource 0x60600d8 with type WINED3D_RTYPE_BUFFER (0x1).
0072:err:d3d:wined3d_device_decref Leftover resource 0x605fe30 with type WINED3D_RTYPE_TEXTURE_2D (0x3).
0072:fixme:msvcrt:__clean_type_info_names_internal (0x1e29685c) stub
0072:fixme:msvcrt:__clean_type_info_names_internal (0x3b533c) stub
0009:fixme:wtsapi:WTSRegisterSessionNotification Stub 0x3010c 0x00000000
0009:fixme:wtsapi:WTSRegisterSessionNotification Stub 0x200fc 0x00000000
0039:fixme:d3d:wined3d_check_device_format_conversion wined3d 0x1af688, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B8G8R8X8_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
0039:fixme:d3d:wined3d_check_device_format_conversion wined3d 0x1af688, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B8G8R8X8_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
0031:fixme:ntdll:EtwUnregisterTraceGuids deadbeef: stub
0031:fixme:ntdll:EtwUnregisterTraceGuids deadbeef: stub
0031:fixme:ntdll:EtwUnregisterTraceGuids deadbeef: stub
0031:fixme:ntdll:EtwUnregisterTraceGuids deadbeef: stub
0031:fixme:ole:Context_CC_ContextCallback (0x1e58e0/0x1e58e4)->(0x791c8272, 0x2f5cc38, {d7174f82-36b8-4aa8-800a-e963ab2dfab9}, 2, (nil))
0031:fixme:ole:Context_CC_ContextCallback (0x1e58e0/0x1e58e4)->(0x791c8272, 0x2f5cbc4, {d7174f82-36b8-4aa8-800a-e963ab2dfab9}, 2, (nil))
003f:fixme:rpc:RpcServerUnregisterIfEx (IfSpec == (RPC_IF_HANDLE)^0x401c18, MgrTypeUuid == (null), RundownContextHandles == 1): stub
003f:fixme:ntdll:EtwUnregisterTraceGuids deadbeef: stub
[/size]

and when I run the main game file PRBF2.exe - the game loads just fine menu stays on screen, but all I can do is exit because it requires to be started via the launcher....

Can You give me some insight on how to approach this?
whatbug
Level 3
Level 3
Posts: 67
Joined: Sun Mar 14, 2010 4:49 am

Re: Project Reality 1.5(Battlefield 2 mod) help much appreci

Post by whatbug »

One more thing - when I start the game from the main exe this is the output when I'm in the menu:

Code: Select all

0012:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0012:fixme:process:SetProcessDEPPolicy (1): stub
0012:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0019:fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub.
0009:fixme:system:SystemParametersInfoW Unimplemented action: 59 (SPI_SETSTICKYKEYS)
0009:fixme:system:SystemParametersInfoW Unimplemented action: 53 (SPI_SETTOGGLEKEYS)
0009:fixme:system:SystemParametersInfoW Unimplemented action: 51 (SPI_SETFILTERKEYS)
0009:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x32f8b8 1 C) semi-stub
0009:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x32f748 1 C) semi-stub
0009:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x32efc8 1 C) semi-stub
0009:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x32eff8 1 C) semi-stub
0009:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0009:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0009:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0009:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0009:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0009:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0009:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0009:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0009:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0009:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0009:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0009:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0009:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0009:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0009:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0009:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x32e3f8 1 C) semi-stub
0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32edd4,0x00000000), stub!
0009:fixme:wbemprox:wbem_services_CreateInstanceEnum unsupported flags 0x00000030
0009:fixme:wbemprox:enum_class_object_Next timeout not supported
0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32d544,0x00000000), stub!
0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32d374,0x00000000), stub!
0009:fixme:ddraw:ddraw7_Initialize Ignoring guid {aeb2cdd4-6e41-43ea-941c-8361cc760781}.
0009:err:winediag:MIDIMAP_drvOpen No software synthesizer midi port found, Midi sound output probably won't work.
0009:err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found: width=800 height=600 bpp=32 freq=85 (desktop)
0009:fixme:d3d9:Direct3DShaderValidatorCreate9 stub
0009:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x32eb18 1 C) semi-stub
0037:fixme:d3d:state_linepattern_w Setting line patterns is not supported in OpenGL core contexts.
0009:fixme:d3d:debug_d3dformat Unrecognized 0x434f5441 (as fourcc: ATOC) WINED3DFORMAT!
0009:fixme:d3d:wined3d_get_format Can't find format unrecognized (0x434f5441) in the format lookup table.
0009:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0009:fixme:msvcrt:msvcrt_get_flags ignoring cache optimization flag: S
0009:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_CACHE_INFORMATION
0009:fixme:ntdll:NtSetSystemInformation (0x00000015,0x32ecc8,0x00000024) stub
[/size]

and then when I hit exit:

Code: Select all

0009:err:d3d:wined3d_device_decref Device released with resources still bound.
0009:err:d3d:wined3d_device_decref Leftover resource 0x60604f8 with type WINED3D_RTYPE_BUFFER (0x1).
0009:err:d3d:wined3d_device_decref Leftover resource 0x6060330 with type WINED3D_RTYPE_BUFFER (0x1).
0009:err:d3d:wined3d_device_decref Leftover resource 0x6060168 with type WINED3D_RTYPE_BUFFER (0x1).
0009:err:d3d:wined3d_device_decref Leftover resource 0x605fec0 with type WINED3D_RTYPE_TEXTURE_2D (0x3).
0009:fixme:msvcrt:__clean_type_info_names_internal (0x1e29685c) stub
0009:fixme:msvcrt:__clean_type_info_names_internal (0x3b533c) stub
[/size]
whatbug
Level 3
Level 3
Posts: 67
Joined: Sun Mar 14, 2010 4:49 am

Re: Project Reality 1.5(Battlefield 2 mod) help much appreci

Post by whatbug »

( *sigh* - why can I edit my posts only for a short period of time ?)

I got a bit forward, now this is the main issue:

Code: Select all

0148:err:crypt:unserialize reading info0 failed!
0148:fixme:crypt:CryptUnprotectData CryptUnprotectData received a DATA_BLOB that seems to have NOT been generated by Wine.  Please enable tracing ('export WINEDEBUG=crypt') to see details.
wine client error:a4: read: wrong address
0120:fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
0120:fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x000003ff,(nil),0x0001,0x00000000,0x6fbe5a4,(nil)): stub
0120:err:eventlog:ReportEventW L"Application: PRLauncher.exe\nFramework Version: v4.0.30319\nDescription: The process was terminated due to an internal error in the .NET Runtime at IP 7919FCA1 (79140000) with exit code 80131506.\n"
0120:fixme:advapi:DeregisterEventSource (0xcafe4242) stub
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
0124:fixme:dbghelp:elf_search_auxv can't find symbol in module
003f:fixme:rpc:RpcServerUnregisterIfEx (IfSpec == (RPC_IF_HANDLE)^0x401c18, MgrTypeUuid == (null), RundownContextHandles == 1): stub
003f:fixme:ntdll:EtwUnregisterTraceGuids deadbeef: stub
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Project Reality 1.5(Battlefield 2 mod) help much appreci

Post by Bob Wya »

[quote="whatbug"]( *sigh* - why can I edit my posts only for a short period of time ?)

@whatbug

This due to forum SPAM (bots). There's really only one active WineHQ forum moderator...

I'm glad to see (cough) that you've actually done some basic research (i.e. Google) since your first post! :shock: :lol:

If the game doesn't run with vanilla Wine Staging 4.6, then please file a WineHQ bug report.
Once you've done this, please cross-link this bug report here (in this forum thread).
Please attach a terminal log to bug report.

Obviously you will need to follow these instructions, which easily readable, in your Wine terminal log:

Code: Select all

0148:fixme:crypt:CryptUnprotectData CryptUnprotectData received a DATA_BLOB that seems to have NOT been generated by Wine.  Please enable tracing ('export WINEDEBUG=crypt') to see details.
wine client error:a4: read: wrong address
DXVK is irrelevant at this point. This appears to be an underlying Wine problem.
Does PR even have a DirectX 10 (or 11) render path? I didn't know that!

Note: that anything based on dotnet35(+) is often Microsoft's unholy kiss of death for Wine compatibility (even in an 32-bit WINEPREFIX). :cry:
I've the same problem Battlefield 2142 which has a dumb community dotnet40 wrapper executable (since the demise of the Gamespy servers).
This currently doesn't work for me, so I can't play the game online, under Wine... :cry:

Bob
whatbug
Level 3
Level 3
Posts: 67
Joined: Sun Mar 14, 2010 4:49 am

Re: Project Reality 1.5(Battlefield 2 mod) help much appreci

Post by whatbug »

Thanks for the info (glad I'm making some progress :) ).

After a lot of testing and checking I came to a conclusion that the issue is with how sound is handled in PR and by the Launcher - You can break this game very easily in that area.



How can I force app to be handled differently for sound? (force OSS , Alsa) Maybe override some sound buffer settings ? This seems mostly connected as the game launches the menu is visible but only for short period of time. Maybe the buffer is getting some overflow ?
I want to test all possibilities, please give me any info that might help :)
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Project Reality 1.5(Battlefield 2 mod) help much appreci

Post by Bob Wya »

@whatbug

To disable Pulseaudio and revert to using ALSA, for a single application...
See: Debian Wiki: PulseAudio - specifically the section: Temporarily suspend and run an application without PulseAudio.

OSS is dead on Linux these days and only officially supported on FreeBSD (to my knowledge anyway).

You might want to file a WineHQ Bug with a much clearer description of what is going wrong with the game / mod.
It's not entirely clear, to me, that you are "making progress"! :lol:

Bob
Locked