#installing on linux via wine
1 messages · Page 1 of 1 (latest)
by launcher do you mean classicuo launcher or razorenhanced launcher?
classicuo launcher
are you trying without RE enabled?
right now i want to be able to login or at least see the UO login screen
yeah I'm just asking if RE is enabled in the launcher or not, since the first step is to get CUO working
No RE is not yet installed
I think you need to make sure you at least have dxvk installed in the wineprefix
what error do you get in the terminal?
good question, i will check
you may also want to check the RE discord since even if I can help with CUO, RE may not work and needs info from people with that specific info
i will do that
bleh i am going to have to recreate a wine prefix for the launcher and CUO
do you know what i need installed in that prefix for CUO to work?
not really. But you could just try bottles since it's easy to try different runners (soda=proton based, vaniglia=wine) which already have a lot of stuff included and usually don't need anything extra
well i am using bottles but i dunno how to run apps from it via commandline
ooh cool. i will try that in a few mins. sorry for the delay
ok, i have a log
that looks just like the launcher log, but the launcher itself works right?
try and add another shortcut directly to classicuo.exe and use that one (just for testing)
within bottles, everything seems to freeze
or be very lagged
so far, the launcher opens, gets manifest, then seems to hang
00d0:err:xrandr:xrandr14_get_adapters Failed to get adapters
this looks like you have an issue with your graphics driver
i hope not. there may be dependencies missing
that's a linux error though, at that point a missing dependency in bottles shouldn't be an issue
the last two times I saw that issue: one user fixed by reinstalling the nvidia driver package, and another fixed it by reinstalling bottles
thing is, proton works. in Steam apps
sorry for massive delay. was busy
i did have graphics issues before, but i am pretty sure i fixed em
well i made progress
UO runs, can see login screen
so thats a plus
(and its responsive, has graphics)
but CUO crashes
i have a log here:
as i said earlier i'd love to use linux CUO but i think Razor is Windows only
try and add a shortcut directly to classicuo.exe and run that in terminal. See if we get a more useful log
ok. btw classicuo linux version runs perfectly
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -r" (126).
00c8:err:ole:CoGetContextToken apartment not initialised
02/11/2023 11:08:19 | Trace | language is not set. Trying to get the OS la
nguage.
02/11/2023 11:08:19 | Trace | language set: 'ENA'
02/11/2023 11:08:27 | Trace | Closing...```
it wants a valid UO dir
open your own ticket, don't take over someone else's
look, the subject is "installing on linux via wine"
I don't see anything about wine in your request, so it's just derailing the conversation
you're using lutris...?
im assuming you were talking to IMP?
i am using Bottles.
The reason I wanted to use CUO in wine (or similar) is that i want to run RazorEnhanced in wine, along side it. A workaround I just thought of would be to use RazorEnhanced on wine with linux CUO
but im not sure if thatd work
Yeah sorry another unrelated conversation got started in here.
Can you check the classicuo\Logs dir for a crash log?
Hi, have you had any luck with CUO under wine? I wanted to try this myself, but so far no luck. It seems surprisingly difficult to get it running under wine. :]
Btw, you can also run this version of razor natively in linux: https://github.com/markdwags/Razor
Although it sometimes freezes on me at logout, so you might want to use older version if that happens to you as well.
Freezing issue described here: https://github.com/markdwags/Razor/issues/196
can you just talk about wine and not other issues in this thread please
also nobody can help you with wine if you don't say what difficulty you had
Bumping thread. I’ve been writing an open-sourced cross-platform installer patcher and launcher that uses ClassicUO as the client for servers that utilize a Manifest patching method.
I get the client working on both Linux (Intel) and MacOS (M2) with only needing the dotnet48 package and passing the -force_driver 1 flag to the client (this is OpenGL)
Key note. The WINEARCH must be set to win64.
# getting the package with winetricks
WINEARCH=“win64” winetricks dotnet48
# Launch Client, navigate to the clients directory and execute:
WINEARCH=“win64” wine ClassicUO.exe -force_driver 1
The Razor Assistant works too under this.
Plug of the project if you want to see how else I get things working:
https://github.com/Ohkthx/xIPL
File of interest is xIPL_extras
Interesting.... forcing the OpenGL driver seems to solve the crashes. Razor works too, but I didn't have the same luck with RazorEnhanced.
That one throws this error:
23:02:15 | Error | Plugin threw an error during Initialization. Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at ClassicUO.Network.Plugin.Load() in /builds/andaria/ClassicUO/src/Network/Plugin.cs:line 237 The type initializer for 'RazorEnhanced.Settings' threw an exception. at RazorEnhanced.Settings.Load(String profileName, Boolean try_recover) at Assistant.Client.Init(Boolean isOSI) in D:\a\RazorEnhanced\RazorEnhanced\Razor\Client\Client.cs:line 108 at Assistant.Engine.Install2(PluginHeader* plugin) in D:\a\RazorEnhanced\RazorEnhanced\Razor\Client\ClassicUO.cs:line 62 at Assistant.Engine.Install(PluginHeader* plugin) in D:\a\RazorEnhanced\RazorEnhanced\Razor\Client\ClassicUO.cs:line 44
Btw, did you manage to get the Launcher working as well?
even when forcing the Launcher to use OpenGL and with vc redist installed, I didn't manage to get it to run for some reason... not that it's important, but still curious if someone else got it running
winetricks vcrun2019
wine ClassicUOLauncher.exe /gldevice:OpenGL
I got it working once, but don't remember the steps. I'll try to find the notes I took on it.
Not helpful
but there's an image of it running on MacOS (ARM) via Wine. So I am sure I can get it working on Linux.
@modest gale it may need gdiplus. But honestly that's a plugin crash, you need to ask razorenhanced channel / discord for helpn on that.
@modest gale I got my ClassicUOLauncher.exe working on Linux
My setup:
wine version: wine-8.0
WINEPREFIX=$HOME/.wine64_ultimaonline
WINEARCH=win64
winetricks version: 20210206
winetricks Packages: dotnet48
*Note, I had to force the dotnet48 install with because it was reporting a bug:
WINEPREFIX=$HOME/.wine64_ultimaonline WINEARCH=win64 winetricks --force dotnet48
ClassicUOLauncher directory:
CUO="$WINEPREFIX/drive_c/Program Files/Ultima Online"
Launching the launcher:
cd "$CUO"
WINEPREFIX=$HOME/.wine64_ultimaonline WINEARCH=win64 wine ClassicUOLauncher.exe -force_driver 1
This is on Linux Mint 21.
One thing I would make sure to do is that the WINEPREFIX and WINEARCH variables are set correctly every step of the way. Installing winetricks packages, launching wine, and editing winecfg.
If you export those variables in bashrc or zshrc, then you won't need to worry about it. But I personally like to keep my UO install isolated in its own prefix for debugging reasons.
My initial install of wine version wine-5.5 would let the ClassicUO.exe launch but not ClassicUOLauncher.exe, so maybe try upgrading if you can if the above fails still.
what is this...?
How I've managed to run CUO on wine with RazorEnhanced. Actually can paste it here.
RazorEnh discord, nvm deleting the link. Since it's here now.
Install wine staging branch, guide here-> https://wiki.winehq.org/Download
Follow this guide to create wineprefix:
I create a new 64-bit WINEPREFIX simply by running winetricks and specifying the new prefix, like this:
WINEPREFIX=/home/<your-username>/wine/cuo winetricks
This will create a new WINEPREFIX inside <your-user-home-folder>/wine/cuo.
You can just close winetricks once it opens.
Then run everything specifying that WINEPREFIX on every command as an env var, including RE setup and when running CUO
Like this:
WINEPREFIX=/home/<your-username>/wine/cuo wine ClassicUOLauncher.exe