Closed Unaccounted4 closed 4 years ago
Yup, i were able to reproduce that, and i am working on a fix. however, linux was never supposed to be supported, but... i will make it work. Testing using wine 5.0 and wine-mono.
Possible cause: Mouse cursor is being loaded, which is not really supported on linux
To be honest, the only reason I submitted it was because I saw the mentions of WINE in the template.
Thank you!
Yup, it was supposed to get an update that would support linux, but we always had one issue making Downloader working due to EA code issues.
okay managed to make launcher work under Deepin distro using wine 5.0 and wine-mono
Oh, nice! Thank you!
forgot to add that screen few hours later, already ingame. TODO: fix chat that freezes whole game.
Oh, it's the chat that's doing it! I was wondering...
Let me know if you figure it out. I already tried installing corefonts in case it was a missing font but it didn't make a difference.
Yea, the chat can be open for approx. 10 seconds, then something freezes whole game except audio.
I see you have a Paypal pool going. I'll kick you a few ££ if you can figure it out and fix it.
LinuxLauncher.zip Alright, this is latest built launcher, that "seems" to launch without issues, game wasnt yet tested.
Latest update has game working now too, except first error that can be ignored.
Alright, I've downloaded the new 2.0.11.1 and on the first run it stays stuck at checking the list of files to download. Closing and reopening allows the Launcher to download the game files.
Once download finishes and I hit Play I get this error:
See the end of this message for details on invoking \njust-in-time (JIT) debugging instead of this dialog box.\n\n************** Exception Text **************\nSystem.ComponentModel.Win32Exception (0x80004005): ApplicationName='/bin/wine', CommandLine='Z:\home\unaccounted4\.wine\drive_c\Release\GameFiles/nfsw.exe WUGG http://127.0.0.1:7945/nfsw/Engine.svc 03715b3e-0d0e-4f54-98ce-453031502f77 23134', CurrentDirectory='Z:\home\unaccounted4\.wine\drive_c\Release\GameFiles', Native error= File not found.
at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0029f] in <f508ff7dc2d3475abfc25b6b60600edf>:0
at System.Diagnostics.Process.Start () [0x0003a] in <f508ff7dc2d3475abfc25b6b60600edf>:0
at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x0001b] in <f508ff7dc2d3475abfc25b6b60600edf>:0
at GameLauncher.MainScreen.LaunchGame (System.String userId, System.String loginToken, System.String serverIp, System.Windows.Forms.Form x) [0x000ff] in <499e26b1fc41485d8829430319cfe25f>:0
at GameLauncher.MainScreen+<>c__DisplayClass111_0.<StartGame>b__0 () [0x0002c] in <499e26b1fc41485d8829430319cfe25f>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <a1336bab325642fd867e87ca7626bada>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <a1336bab325642fd867e87ca7626bada>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <a1336bab325642fd867e87ca7626bada>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <a1336bab325642fd867e87ca7626bada>:0
at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <a1336bab325642fd867e87ca7626bada>:0
\n************** Loaded Assemblies **************\nmscorlib\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/4.5/mscorlib.dll\n----------------------------------------\nGameLauncher\n Assembly Version: 2.0.11.1\n Win32 Version: 2.0.11.1\n CodeBase: file:///Z:/home/unaccounted4/.wine/drive_c/Release/GameLauncher.exe\n----------------------------------------\nSystem\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll\n----------------------------------------\nSystem.Windows.Forms\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Windows.Forms/4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll\n----------------------------------------\nINIFileParser\n Assembly Version: 2.5.2.0\n Win32 Version: 2.5.2\n CodeBase: file:///Z:/home/unaccounted4/.wine/drive_c/Release/INIFileParser.dll\n----------------------------------------\nNancy.Hosting.Self\n Assembly Version: 2.0.0.0\n Win32 Version: 2.0.0.0\n CodeBase: file:///Z:/home/unaccounted4/.wine/drive_c/Release/Nancy.Hosting.Self.dll\n----------------------------------------\nSystem.Drawing\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll\n----------------------------------------\nAccessibility\n Assembly Version: 4.0.0.0\n Win32 Version: \n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/Accessibility/4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll\n----------------------------------------\nDiscordRPC\n Assembly Version: 1.0.150.0\n Win32 Version: 1.0.150.0\n CodeBase: file:///Z:/home/unaccounted4/.wine/drive_c/Release/DiscordRPC.dll\n----------------------------------------\nSystem.Configuration\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll\n----------------------------------------\nSystem.Xml\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll\n----------------------------------------\nMono.Security\n Assembly Version: 4.0.0.0\n Win32 Version: 4.0.0.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll\n----------------------------------------\nI18N\n Assembly Version: 4.0.0.0\n Win32 Version: 4.0.0.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/I18N/4.0.0.0__0738eb9f132ed756/I18N.dll\n----------------------------------------\nI18N.West\n Assembly Version: 4.0.0.0\n Win32 Version: 4.0.0.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/I18N.West/4.0.0.0__0738eb9f132ed756/I18N.West.dll\n----------------------------------------\nNancy\n Assembly Version: 2.0.0.0\n Win32 Version: 2.0.0.0\n CodeBase: file:///Z:/home/unaccounted4/.wine/drive_c/Release/Nancy.dll\n----------------------------------------\nSystem.Core\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll\n----------------------------------------\nSystem.Management\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Management/4.0.0.0__b03f5f7f11d50a3a/System.Management.dll\n----------------------------------------\nSystem.Net.Http\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Net.Http/4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll\n----------------------------------------\nFlurl\n Assembly Version: 2.8.2.0\n Win32 Version: 2.8.2.0\n CodeBase: file:///Z:/home/unaccounted4/.wine/drive_c/Release/Flurl.dll\n----------------------------------------\nFlurl.Http\n Assembly Version: 2.4.2.0\n Win32 Version: 2.4.2.0\n CodeBase: file:///Z:/home/unaccounted4/.wine/drive_c/Release/Flurl.Http.dll\n----------------------------------------\nMicrosoft.WindowsAPICodePack\n Assembly Version: 1.1.0.0\n Win32 Version: 1.1.0.0\n CodeBase: file:///Z:/home/unaccounted4/.wine/drive_c/Release/Microsoft.WindowsAPICodePack.dll\n----------------------------------------\nAnonymously Hosted DynamicMethods Assembly\n Assembly Version: 0.0.0.0\n Win32 Version: n/a\n CodeBase: \n----------------------------------------\nMicrosoft.CSharp\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/Microsoft.CSharp/4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll\n----------------------------------------\nMicrosoft.WindowsAPICodePack.Shell\n Assembly Version: 1.1.0.0\n Win32 Version: 1.1.0.0\n CodeBase: file:///Z:/home/unaccounted4/.wine/drive_c/Release/Microsoft.WindowsAPICodePack.Shell.dll\n----------------------------------------\nPresentationFramework\n Assembly Version: 3.0.0.0\n Win32 Version: 3.0.6920.5738 built by: QFE\n CodeBase: file:///Z:/home/unaccounted4/.wine/drive_c/Release/PresentationFramework.dll\n----------------------------------------\nPresentationCore\n Assembly Version: 4.0.0.0\n Win32 Version: 4.8.4121.0 built by: NET48REL1LAST_C\n CodeBase: file:///Z:/home/unaccounted4/.wine/drive_c/Release/PresentationCore.dll\n----------------------------------------\nWindowsBase\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/WindowsBase/4.0.0.0__31bf3856ad364e35/WindowsBase.dll\n----------------------------------------\nNewtonsoft.Json\n Assembly Version: 12.0.0.0\n Win32 Version: 12.0.3.23909\n CodeBase: file:///Z:/home/unaccounted4/.wine/drive_c/Release/Newtonsoft.Json.dll\n----------------------------------------\nSystem.Numerics\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Numerics/4.0.0.0__b77a5c561934e089/System.Numerics.dll\n----------------------------------------\nSystem.Runtime.Serialization\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Runtime.Serialization/4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll\n----------------------------------------\nSystem.Data\n Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase: file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Data/4.0.0.0__b77a5c561934e089/System.Data.dll\n----------------------------------------\n\n************** JIT Debugging **************\n
Yea, thats the error i am talking about, this has not yet been fixed, but the game launches. The fix is in progress
Oh wait, that's "wine" error, can you check if u have /bin/wine
file there?
Oh! I'm using Wine staging, it's located in /opt/wine-staging/bin
Alright, i will create some sort of detecting wine location, seems to have like... a lot of them, since wine
itself fails
Alright, latest executable seems to load launcher and game without issues (except chat, which i have also patched, but need downloader)
With the latest version, I still have to quit out the first time for it to download but afterwards I can launch the game and drive around without opening the chat.
I also collected all the daily gems and it worked as expected. Super looking forward to the chat fix!
Nice to see that, i am already working on wine-nfsw.deb
that will work for both launcher and game. This is already tested with older wine (1.7), but would be nicer to use 5.0 instead :D
I sould test it on proton, maybe has fixes patched.
Proton does have a bunch of patches applied. Did you have to patch WINE to stop the chat from freezing the game?
Also, it may be related to me keeping chat disabled or something to do with races having their own chat channel, but I couldn't join multiplayer races. The game locked up in the loading screen.
That's also an issue, since modloader doesnt properly works with game. separate fix is also comming for that
Well. an update. Everything works as expected: https://imgur.com/a/qVpetcU
New wine files: https://cdn.discordapp.com/attachments/684929550366670853/685595356028731416/compiled.7z (wine-nfsw.deb is comming with that)
Lutris users can extract it under ~/.local/share/lutris/runners/wine
to select new wine directly from there
For multiplayer fixes and its modloader, we need to set up new overrides, by using regedit (launcher will do that in next update):
[HKEY_CURRENT_USER\Software\Wine\DllOverrides]
"dinput8"="native,builtin"
"lightfx"="native,builtin"
First one is for new system (ModLoader), second one is for crc bypass used in ModManager instead.
More info will come as soon i will make new packages for that.
EDIT: An info from one of the testers:
dll overrides can be set inside lutris game config->Runner options->DLL overrides
Nice!
So, what patches did you do to WINE?
EDIT: Looks like you hard-linked some libraries, can't redistribute it like that.
winecfg
wine: failed to initialize: /home/metonator/compiled/lib/wine/ntdll.dll.so: cannot open shared object file: No such file or directory
Oh, will fix it
EDIT:
Thinking to use /opt/wine-nfsw
instead.
Try updating launcher. i think i have fixed that issue lastly
However: there's new wine http://cdn.mtntr.pl/wine/wine-nfsw.zip
Extract to /opt
folder (sudo mv ~/Downloads/wine-nfsw.zip /opt && cd /opt && sudo unzip wine-nfsw.zip
or smth like that)
Forcing people to extract an application to a system folder is not good practice.
Forcing people to extract an application to a system folder is not good practice.
The /opt
directory can be used for this context.
Obviously the user must take into consideration the reliability of the developer. However, extracting it to /home
can also be dangerous.
Try updating launcher. i think i have fixed that issue lastly However: there's new wine http://cdn.mtntr.pl/wine/wine-nfsw.zip Extract to
/opt
folder (sudo mv ~/Downloads/wine-nfsw.zip /opt && sudo unzip wine-nfsw.zip
or smth like that)
With this version I can see the other players and use the chat. I will create an installer for lutris to automate the process.
Try updating launcher. i think i have fixed that issue lastly However: there's new wine http://cdn.mtntr.pl/wine/wine-nfsw.zip Extract to
/opt
folder (sudo mv ~/Downloads/wine-nfsw.zip /opt && sudo unzip wine-nfsw.zip
or smth like that)With this version I can see the other players and use the chat. I will create an installer for lutris to automate the process.
There's already one in creation by discord user named Guldoman#1845, can be found on both SBRW and WUGG discord
Best option now would be to create .deb
(Debian, Ubuntu, Deepin, ...), .rpm
(Fedora, Mandriva, SUSE, ...), and .pkg.tar.gz
(Arch Linux) files for non-Lutris packages.
Currenly working on .deb
one.
Oh good
Lutris users can use this installer: http://cdn.mtntr.pl/nfsw_installer.yml
Download it, open a terminal in the same folder and run lutris -i $PWD/nfsw_installer.yml
.
Because of a lutris bug (lutris/lutris#2644), automatically setting the wine version to custom
doesn't work, so when the installer finishes right click on the game->Configure->Runner options->Wine version->Custom; then click Save and run the game.
Should I publish the installer on the Lutris website, even if this bug persists?
I would say is ok, the bug should be fixed on next release (i think)
That Lutris installer has the same issue with it looking for the libraries in /home/metonator. The wine-nsfw build is still hardlinked.
Running ~/Jogos/nfsw-sbrw/wine-nfsw/bin/wine ~/Jogos/nfsw-sbrw/GameLauncher.exe
wine: failed to initialize: /home/metonator/compiled/lib/wine/ntdll.dll.so: cannot open shared object file: No such file or directory
Waiting on children
Exit with returncode 1
2020-03-08 20:39:08,550: Game still running (state: running)
2020-03-08 20:39:08,551: Stopping Soapbox Race World (wine)
That Lutris installer has the same issue with it looking for the libraries in /home/metonator. The wine-nsfw build is still hardlinked.
Running ~/Jogos/nfsw-sbrw/wine-nfsw/bin/wine ~/Jogos/nfsw-sbrw/GameLauncher.exe wine: failed to initialize: /home/metonator/compiled/lib/wine/ntdll.dll.so: cannot open shared object file: No such file or directory Waiting on children Exit with returncode 1 2020-03-08 20:39:08,550: Game still running (state: running) 2020-03-08 20:39:08,551: Stopping Soapbox Race World (wine)
Trying to figure out this. I am installing 3 extra distros to verify that (Arch, Ubuntu, Fedora).
Ok, new wine is here: https://cdn.discordapp.com/attachments/684929550366670853/686338022932873244/wine-nfsw.tar.xz
hardlinked libs should be gone (as always, /opt
directory)
Yup, new build is checking for /opt
Running ~/Jogos/nfsw-sbrw/wine-nfsw/bin/wine ~/Jogos/nfsw-sbrw/GameLauncher.exe
wine: failed to initialize: /opt/wine-nfsw/lib/wine/ntdll.dll.so: cannot open shared object file: No such file or directory
Waiting on children
Exit with returncode 1
2020-03-08 22:31:08,898: Game still running (state: running)
2020-03-08 22:31:08,898: Stopping Soapbox Race World (wine)
Still hardlinking... lemme read carefully now wine building to avoid that.
That would be perfect! And @Guldoman, you absolutely should submit that script to Lutris, once the issue with this custom wine build is sorted.
@Unaccounted4, do you have standard wine installed? Could you try running the game via lutris --debug
and attaching the log here?
I do have standard WINE Staging 5.3 installed. Changing Lutris to use system WINE allows the launcher to start.
Changing to the custom WINE here's the log: https://gist.github.com/Unaccounted4/c98290a7e0f030b579792e7534872a59
Ok, i've contacted moderation team for custom wine patch inside lutris runtime api, hoping they will reply asap
I found another issue
Since you built WINE with GLibC 2.28 it doesn't work on 18.04, as it still only has 2.27. I set a chroot so the launcher would see the wine-nsfw folder as if it were in /opt
Running /opt/wine-nfsw/bin/wine /home/unaccounted4/Jogos/nfsw-sbrw/GameLauncher.exe
wine: failed to initialize: /lib/i386-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /opt/wine-nfsw/lib/wine/ntdll.dll.so)
Waiting on children
Exit with returncode 1
echo "deb http://ftp.de.debian.org/debian sid main" >> sudo tee /etc/apt/sources.list.d/debian.list
sudo apt update
sudo apt install glibc
This should fix the problem, since i used debian 10 to compile all the stuff.
https://lutris.net/games/soapbox-race-world-need-for-speed-world/ now on lutris. with all fixes.
@Unaccounted4 Thank you so much for the Unix version. You don't get enough appreciation for this :)
I'm just the one who figured he might as well raise the issue and test whenever there's a need for it. The big kudos are for @Zacam, @DavidCarbon, and Metonator. They did all the heavy lifting.
I might need some help from them in that case, see: https://youtu.be/gpjJ36Lj4BY
I'm using Wine v8.0.2 and installed dinput8, which seem actually load the mod but crashes the game (and installed DXVK, with or without doesn't matter in this case). I tried Windows XP 32-bit and Windows 7 32-bit bottles.
SBRCrashDump_CL0_2023.10.08_17.33.12.txt
Launcher itself seems to work fine, I can download the game and login.
You can use this installer with Lutris: https://lutris.net/games/need-for-speed-world/
It should set everything up correctly and the game should work just fine.
After I've run it the first time and quit, attempting to reopen the launcher causes it to throw up an error about "object reference not set to an instance of an object". Here's the full log:
There's also an issue with the game freezing after a minute or so of being in game proper, but I'm not sure if this issue tracker is for that.