Open General on Linux with Wine
Posted: 2020-01-23 15:58, Thursday
***UPDATED Oct. 22, 2024***
Open General working with all the bells and whistles including weather effects, audio and video playback, on a multi-monitor setup.
Linux Distro: Debian 13 trixie
Desktop: KDE Plasma wayland
Application Launcher: Lutris
Wine Version: 8.26
Architecture: 32 bit
Hardware Wrinkles: multiple monitors
The first problem was that I have a multiple monitor setup and the app wasn't opening on the correct monitor. My two monitors have different resolutions, both monitors are identical but the second one sits a bit further away from me so I have it on a lower resolution to make it easier to work with and read--old eyes. The app was opening as if it was in full screen mode on the primary monitor, but it was opening on the secondary monitor, which meant it was opening in a resolution that rendered much of the game window off the screen. When I tried to move the game window it would deform.
The simple solution to this is alt-f3. That is the default kwin shortcut for the "Window Operations Menu". When you bring that up you can set the window settings for Open General, or any app, to anything you want. I found that the "Screen" option, "0", was what I was looking for. That opened the game on my main screen without messing around with any of the other game windows. You can find those settings under "More Actions", "Configure Special Application Settings".
Getting video playback working:
This was a significant problem in previous versions of wine/Debian/wayland, and involved installing third party codecs, which sometimes worked and sometimes didn't. With Debian 32 bit codecs are once again needed to get the in game video fully operational.
First off, Open General is a 32 bit application, so you should already have multiarch enabled in your distro, if you don't, see the following Debian FAQ.
https://wiki.debian.org/Multiarch/HOWTO
You will probably want to install a 3rd party kernel. Those are necessary for certain options, such as fsync, to work in Lutris. At a minimum you will need to install the kernel from backports. I use the xanmod kernel.
https://xanmod.org/
You will need in install the following Debian packages or their equivalent, depending on your distro. You can run the following command on Debian:
sudo apt install ffmpeg:i386 gstreamer1.0-plugins-bad:i386 gstreamer1.0-plugins-ugly:i386
You will want to install lutris and winetricks if you haven't already:
Then you will want to install several packages from backports. You will find the instructions to set up backports here:
https://backports.debian.org/Instructions/
Once you have done that and run "sudo apt update", you can use the following command:
You will also need to install the drivers for your specific hardware. The following is a possible list of packages. Note that with Linux the list of drivers you need to install can be counter-intuitive and you may need to install drivers for hardware that you may feel doesn't match the list of the hardware in your system:
You should run Open General using the default system wine available from Debian. You will need to set your wine prefix to run in Windows 7 mode or later.
You may also need to install a number of dlls/apps using winetricks. The following is a list of winetrick "verbs" that I have installed in the prefix I use to run Open General:
Note that I am currently unsure as to which of those verbs specifically are necessary for Open General to run successfully with full video support.
ADDENDUM: I have found that there are a couple of packages that improve the function of just about any application running under wine, you can install them on Debian using the following command:
Lastly you will want to install 32 bit codecs. You can find those here. What you will want to do is setup Open General in Lutris with your wine prefix and the Debian system version of wine, then click on the Open General shortcut you created in Lutris, go to the bottom of the Lutris window and find the up arrow next to the wine symbol, click on that, choose "Run EXE inside Wine prefix".
Click on that and run the codec installer that way. That will ensure that your codecs are properly installed into your wine prefix.
Open General working with all the bells and whistles including weather effects, audio and video playback, on a multi-monitor setup.
Linux Distro: Debian 13 trixie
Desktop: KDE Plasma wayland
Application Launcher: Lutris
Wine Version: 8.26
Architecture: 32 bit
Hardware Wrinkles: multiple monitors
The first problem was that I have a multiple monitor setup and the app wasn't opening on the correct monitor. My two monitors have different resolutions, both monitors are identical but the second one sits a bit further away from me so I have it on a lower resolution to make it easier to work with and read--old eyes. The app was opening as if it was in full screen mode on the primary monitor, but it was opening on the secondary monitor, which meant it was opening in a resolution that rendered much of the game window off the screen. When I tried to move the game window it would deform.
The simple solution to this is alt-f3. That is the default kwin shortcut for the "Window Operations Menu". When you bring that up you can set the window settings for Open General, or any app, to anything you want. I found that the "Screen" option, "0", was what I was looking for. That opened the game on my main screen without messing around with any of the other game windows. You can find those settings under "More Actions", "Configure Special Application Settings".
Getting video playback working:
This was a significant problem in previous versions of wine/Debian/wayland, and involved installing third party codecs, which sometimes worked and sometimes didn't. With Debian 32 bit codecs are once again needed to get the in game video fully operational.
First off, Open General is a 32 bit application, so you should already have multiarch enabled in your distro, if you don't, see the following Debian FAQ.
https://wiki.debian.org/Multiarch/HOWTO
You will probably want to install a 3rd party kernel. Those are necessary for certain options, such as fsync, to work in Lutris. At a minimum you will need to install the kernel from backports. I use the xanmod kernel.
https://xanmod.org/
You will need in install the following Debian packages or their equivalent, depending on your distro. You can run the following command on Debian:
sudo apt install ffmpeg:i386 gstreamer1.0-plugins-bad:i386 gstreamer1.0-plugins-ugly:i386
You will want to install lutris and winetricks if you haven't already:
Code: Select all
sudo apt install lutris winetrickshttps://backports.debian.org/Instructions/
Once you have done that and run "sudo apt update", you can use the following command:
Code: Select all
apt install -t bookworm-backports firmware-linux firmware-linux-nonfree firmware-misc-nonfree linux-image-amd64 linux-headers-amd64 linux-libc-devCode: Select all
firmware-amd-graphics firmware-nvidia-graphics firmware-intel-graphics firmware-intel-misc firmware-iwlwifi firmware-mediatek firmware-realtekYou may also need to install a number of dlls/apps using winetricks. The following is a list of winetrick "verbs" that I have installed in the prefix I use to run Open General:
Code: Select all
d3dx9 msxml3 msxml4 msxml6 vcrun2005 vcrun2010 vcrun2012 vcrun2013ADDENDUM: I have found that there are a couple of packages that improve the function of just about any application running under wine, you can install them on Debian using the following command:
Code: Select all
sudo apt install wine32-preloader wine64-preloaderClick on that and run the codec installer that way. That will ensure that your codecs are properly installed into your wine prefix.