ptitSeb / box86

Box86 - Linux Userspace x86 Emulator with a twist, targeted at ARM Linux devices
https://box86.org
MIT License
3.33k stars 229 forks source link

Wine + TMNationsForever #294

Closed Pythonic456 closed 2 years ago

Pythonic456 commented 3 years ago

When trying to run tmnationsforever with Wine with box86, this happens (this is in a chroot, could that be the problem?):

root@raspberrypi44g:/home/pi/wine/tmnationsforever# box86 /home/pi/wine/wine/bin/wine tmnationsforever_setup.exe 
Box86 with Dynarec v0.1.9 be7f7280 built on Dec 31 2020 17:13:15
Box86 with Dynarec v0.1.9 be7f7280 built on Dec 31 2020 17:13:15
wine: created the configuration directory '/root/.wine'
Box86 with Dynarec v0.1.9 be7f7280 built on Dec 31 2020 17:13:15
No protocol specified
No protocol specified
0048:err:explorer:initialize_display_settings Failed to query current display settings for L"\\\\.\\DISPLAY1".
0048:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0048:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
0048:err:ole:get_local_server_stream Failed: 80004002
002c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
002c:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0050:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0050:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0050:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
0050:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
0050:err:ole:apartment_createwindowifneeded CreateWindow failed with error 14007
0050:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x800736b7
0050:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 800736b7
0050:err:ole:get_local_server_stream Failed: 800736b7
0040:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0040:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0040:err:module:open_builtin_file failed to load .so lib "/home/pi/wine/wine/lib/wine/l3codeca.acm.so"
0040:err:module:open_builtin_file failed to load .so lib "/home/pi/wine/wine/lib/wine/mp3dmod.dll.so"
0058:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0058:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0060:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0060:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
Could not find Wine Gecko. HTML rendering will be disabled.
00a4:err:module:open_builtin_file failed to load .so lib "/home/pi/wine/wine/lib/wine/wineusb.sys.so"
00a4:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
002c:err:setupapi:SetupDiInstallDevice Failed to start service L"wineusb" for device L"ROOT\\WINE\\WINEUSB", error 1114.
wine: configuration in L"/root/.wine" has been updated.
0024:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0024:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
root@raspberrypi44g:/home/pi/wine/tmnationsforever# 

Should I try and run this not in a chroot?

Thanks for your help :)

ptitSeb commented 3 years ago

Wine is unable to open a display: so yes, that a chroot issue.

Pythonic456 commented 3 years ago

Okay thanks, I'll run it in my home directory then and let you know how that goes

Pythonic456 commented 3 years ago

Ok, this is a bit late, but I got it to work! The executable I used: https://nadeo-download.cdn.ubi.com/trackmaniaforever/tmnationsforever_setup.exe It runs at about ~4.5 FPS, this is with minimum graphics settings. I used @Botspot Pi-Apps Wine install-32 script, with one change, which was removing the part where it installs box86, since I already have the latest version installed.