[CLOSED] Error Code 256 and my THINNING PATIENCE FOR WINE

CLOSED, TL;DR
I used Bottles instead

Error Code 256! Error Code 256! Error Code 256! Error Code 0 or 13568 sometimes if I really fuck up the directory but that’s not the main issue. I’m going to see Error Code 256 in my NIGHTMARES.

My ultimate intention with Lutris is to load up and play with Plutonium (https://plutonium.pw/), an application that manages and hosts modded golden-era Call of Duty (2008-2011, just in case this era of games/software causes a specific issue). The .exe I am attempting to run is the installer, however, the game will launch, throw up some errors, and close with my beloved Error Code 256. For reference, I attempted to follow this forum post when it comes to installation and the steps were the following (includes reproduction steps);

  1. Add local-source game
  2. Add (either) wine-ge or lutris Wine runners
    3, Link Plutonium executable
  3. Link empty Wine directory
  4. Attempt launch (failed)
  5. Fuck with settings (failed)

(Nevermind, you don’t get a link reference because apparently new users can only put two links in a post. What??)

My steps to troubleshoot were the following;
Reconsult plutonium manual
Tried turning it off and on again at various points
Setting different versions of wine in lutris
Trying different settings
Resetting wine directories and configurations
Trying flatpak lutris
Reinstalling lutris
Reinstalling wine
Reinstalling winetricks
Installing a shit ton of libraries (including dotnet48)
Reinstalling a shit ton of libraries
Running it directly in terminal with wine
Running it directly in terminal with winetricks
Attempting to run it with sudo (failed)
Asked google
Scanned Lutris forums
Scanned AskUbuntu
Asked chatgpt
Asked the shampoo bottles in the shower

My uneducated consensus is that Wine simply does not want to cooperate with Lutris and/or the executable. When running with Wine in terminal, I kept receiving ‘missing wine-mono’ error despite having this library installed. Ultimately, however, I’m stumped. I’m tired and I need help, I don’t understand a damn thing what I’m doing. Any assistance would be appreciated. Below are my logs.
ADVISORY – I fucked up the directory first try, so the first part of the log with ‘Error Code 0’ is, by all means, expected.

https://paste.ubuntu.com/p/w3T4bjQCrQ/

Hi,

Unless someone here has Plutonium specific experience then most advice is going to be generic, so sorry about that in advance.

Starting around line 604 -
/home/username/AppImages/plutonium.exe doesn’t look like a WINE prefix to me - prefixes should contain a “drive_c” indicating where the Windows bit starts, plus a few “.reg” files.

  1. Your log shows an old version of Lutris - you should upgrade (to also get updated runners and tools) - search for Lutris github for a newer package download, or go for the Git bleeding edge version. For an easy life, stick with only one of: package; or flatpak; or Git

  2. Did you install Plutonium using the installer on the Lutris site, or some other way? The installer off the Lutris site works (I just tested - installs, runs, and I get the launcher login.) Alternatively, a quick search turns up this guide on the plutonium forum: Plutonium - Linux Install Guide | Plutonium that kinda makes sense. There’s another “updated” thread on that forum that references WINE 9, and might be more valid.

Other things

  1. Did you install wine-staging as recommended? In this era of Proton runners, it’s not always required, but it does give you a fallback option and fixes a lot of pre-requisites and what you need to build supported prefixes

  2. Other most common cause of error 256 is usually permissions, run a quick permissions check - your user should have read and write permissions to files (and directories) wherever your install is.

  3. Don’t worry too much about wine mono - it is an alternative for .NET framework. If you already installed it alongside your system WINE install, just leave it installed.

The install script on the Lutris site also installs a number of packages, so I’d try that first - but with an up-to-date Lutris!
Aim to get Plutonium’s updater/login box working reliably, then work on CoD after that.

Lastly, if you are at the pulling hair stage, you can try asking nicely in Lutris Discord for a bit more interactive support.

1 Like

You’ve taught me two things – one, nobody tells newcomers how wine works besides ‘it’s not an emulator’ so that’s appreciated. Two, thank you for guiding me to the Plutonium launcher. Silver lining to this issue.

I’ve went to Lutris.net, had it run the Lutris-provided Plutonium installer, and let it install. There was no issues during installation. I have manually updated my Wine to 9.0 as well as update Lutris from the github .deb file. However, this complicates things, as the issue persists with Error Code 256 while appearing to be the exact same conditions. I’ve scanned through it, I don’t get it. Exhausting.

https://paste.ubuntu.com/p/KVS3GX5Shy/

Hi,

Strange that you get a System.Windows.Markup.XamlParseException error in both. Scroll all the way to the end of the line and you see it could not load System.Windows.Controls.Ribbon, which sounds a lot like a .NET issue.

Just FYI - you can separately right click on the game tile and “show logs” for more launch info.

It could be mono causing a problem, so you can try forcing full fat .NET 4.8 into the prefix with winetricks (update winetricks first).

I tried this on my prefix and the launcher still runs. The last line installs .NET silently and will also run remove_mono
~/.local/share/lutris/runtime/winetricks/winetricks --self-update
export WINEPREFIX=/home/prophet/Games/plutonium-launcher
~/.local/share/lutris/runtime/winetricks/winetricks -q dotnet48

As a comparison, here’s the exe after it self-updated: -
$ ls -l /games/lutris/plutonium-launcher/drive_c/Plutonium/plutonium.exe
-rw-rw-r-- 1 myuser games 4863736 Nov 19 00:21 /games/lutris/plutonium-launcher/drive_c/Plutonium/plutonium.exe

Running mine manually with system wine (staging, 9-20) also works without an issue, so this is independent of Lutris: -
export WINEPREFIX=/games/lutris/plutonium-launcher
wine $WINEPREFIX/drive_c/Plutonium/plutonium.exe

Lastly, I hate to second guess - What WINE install instructions did you use, and what Linux are you running? Did you also install Mesa and Vulkan drivers etc? (never use AMD’s own driver!)

1 Like

I would like to mention that I am tracking both this thread and the Lutris discord, I want to say thank you to Asaftiifm and OJ for the help so far. I am running Mint Cinnamon 22, and my current wine version is wine-9.0 (Ubuntu 9.0~repack-4build3).

I have attempted to run the last two commands provided, but it appears to not have worked.

prophet@prophet:~$ export WINEPREFIX=/games/lutris/plutonium-launcher
prophet@prophet:~$ wine $WINEPREFIX/drive_c/Plutonium/plutonium.exe

wine: chdir to /games/lutris/plutonium-launcher : No such file or directory

I have done the following commands suggested by OJ in the discord, which sadly appears to not have done anything for my machine. For example below for future reference,

sudo dpkg --add-architecture i386 && sudo apt update && sudo apt install libvulkan1 libvulkan1:i386

sudo apt install -y wine64 wine32 libasound2-plugins:i386 libsdl2-2.0-0:i386 libdbus-1-3:i386 libsqlite3-0:i386

Error Code 256. I had it repeating Code 0 every once in a while, did a fresh reinstall, and I’m now back to 256. I love 256. The commands that Asa provided and subsequently worked have resulted in a new error output.

~/.local/share/lutris/runtime/winetricks/winetricks --self-update
export WINEPREFIX=/home/prophet/Games/plutonium-launcher
~/.local/share/lutris/runtime/winetricks/winetricks -q dotnet48

After inputting these commands and attempting to start up the launcher, an error window appears. rundll32.exe – “This application cannot be started, do you want to view information about this issue?” Upon clicking yes, extra output in the logs appear. Once again, I am too inexperienced to understand everything. It appears as if it is having issues with the ‘runners’, being lutris-7.2.2. and wine-ge-8-26. Freshly reinstalled, too. I could only get the error to prompt with wine-ge, since I did it with lutris-7.2.2. previously.

Vulkan is required for Steam games, right? No complaints with those.

The aid is appreciated, honestly. Hopefully this issue can be solved and there can be a record about it for someone else to fix with.

https://paste.ubuntu.com/p/fPyc2c35DR/

You’ll probably realised by now…
The commands that contain /games/lutris/plutonium-launcher I said were mine, for comparison - if you want to run them, you’ll need to supply the path to your own install, which was under your user’s home: ~/Games/plutonium-launcher

If rundll32.exe/.NET ever asks for “help with this error” click No - it is trying to start a debugger.

Personally, I’d start by removing the WINE installed by the Mint repository and its mono package.
Then, install WINE from WineHQ - use the Ubuntu install instructions to add the “noble” (codename for what Mint 22 runs on) from Debian/Ubuntu · Wiki · wine / wine · GitLab then install the wine-staging branch.
sudo apt install --install-recommends winehq-staging

Brief update on my steps to troubleshoot;
Reinstalled wine
Reinstalled graphics drivers
Reinstalled certain vulkan drivers
Reinstalled libraries
Installed vkd3d
Switched wine config to Win10

Last night I actually managed to get the launcher to run and game without issue on Bottles, funny enough. I don’t know. Maybe I’ll need to revert to Lutris if the game fails to be optimized or something. I appreciate the assistance but I think I have to wrap it up here with Lutris. I’ve done a million things and none of it seemed to work. Thank you, Asa.