[SOLVED] Install XNA 3.0 for XNALara / XPS

Questions about Wine on Linux
Post Reply
Vorlent
Newbie
Newbie
Posts: 1
Joined: Sun Apr 21, 2024 2:56 pm

[SOLVED] Install XNA 3.0 for XNALara / XPS

Post by Vorlent »

This is in response to the locked thread: viewtopic.php?t=29722
It says that it can't load Xna3.0., don't quite know why though.
If you get the following error:

Code: Select all

[user@pc XNALara_XPS]$ wine XNALara\ XPS.exe
005c:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\cbfs20": c0000142
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"cbfs20" failed to start: 1114
0050:fixme:ver:GetCurrentPackageId (00007FFFFE2FFEB0 0000000000000000): stub
002c:fixme:ver:GetCurrentPackageId (00007FFFFE2FFEB0 0000000000000000): stub
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0024:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 7AFE3241, 28) stub
0024:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 79FC09AD, 28) stub
0024:fixme:heap:GetNumaHighestNodeNumber semi-stub: 0061FC94
0024:fixme:seh:WerRegisterRuntimeExceptionModule (L"C:\\windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscordacwks.dll", 79FB0000) stub
0130:err:ole:CoGetContextToken apartment not initialised
0024:fixme:nls:get_dummy_preferred_ui_language (0x8 0x409 0061D490 00000000 0061D494) returning a dummy value (current locale)
0024:fixme:nls:get_dummy_preferred_ui_language (0x8 0x409 0061D490 00D11340 0061D494) returning a dummy value (current locale)
0024:fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
0024:fixme:advapi:ReportEventW (CAFE4242,0x0001,0x0000,0x00000402,00000000,0x0001,0x00000000,0061C980,00000000): stub
0024:err:eventlog:ReportEventW L"Application: XNALara XPS.exe\n"
0024:err:eventlog:ReportEventW L"Framework Version: v4.0.30319\n"
0024:err:eventlog:ReportEventW L"Description: The process was terminated due to an unhandled exception.\n"
0024:err:eventlog:ReportEventW L"Exception Info: System.IO.FileNotFoundException\n"
0024:err:eventlog:ReportEventW L"   at XNALara.Program.Main(System.String[])\n"
0024:err:eventlog:ReportEventW L"\n"
0024:fixme:advapi:DeregisterEventSource (CAFE4242) stub

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Xna.Framework.Game, Version=3.0.0.0, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d' or one of its dependencies. File not found.
   at XNALara.Program.Main(String[] args)
wine: Unhandled exception 0xe0434352 in thread 24 at address 7B6425F7 (thread 0024), starting debugger...
0034:fixme:ver:GetCurrentPackageId (00007FFFFE2FFEB0 0000000000000000): stub
^C^C^C^C^C^C^C^C^C^C^C^C0138:fixme:dbghelp:elf_search_auxv can't find symbol in module
0138:fixme:dbghelp:elf_search_auxv can't find symbol in module
0148:fixme:console:default_ctrl_handler Terminating process 20 on event 0
Then it means XNALara needs xna30. Winetricks does not provide xna30, only xna31. XNALara doesn't care if you have xna31 installed. You need the exact version. You will have to download it from https://www.microsoft.com/en-us/downloa ... x?id=22588 and install it via

Code: Select all

wine msiexec /i xnafx30_redist.msi
Also, general advice: You must put your XPS files in the data folder:
Screenshot from 2024-04-21 22-06-47.png
With the folder contents looking like this:
Screenshot from 2024-04-21 22-07-23.png
Here is proof that it works:
Screenshot from 2024-04-21 22-09-09.png
My troubleshooting approach was simply running strace -o log <wine command> and then looking for the DLLs that are being loaded by the application. It clearly pointed to xna 3.0 DLLs.
Post Reply