Running the game on Linux/pt-br: Difference between revisions
(Created page with "Em seguida, execute <code>winecfg</code> e, na aba Bibliotecas, adicione manualmente substituições de DLL nativas para <code>d3d8</code>, <code>d3d9</code>, <code>d3d10core</code>, <code>d3d11</code> e <code>dxgi</code>.") |
(Created page with "Primeiro, baixe a versão mais recente da [https://github.com/doitsujin/dxvk/releases página oficial de lançamentos do Github] e extraia-a para uma pasta. Se estiver usando o prefixo padrão do Wine, conforme descrito nos passos acima, navegue até a pasta extraída no terminal e execute o seguinte:") |
||
| Line 104: | Line 104: | ||
</div> | </div> | ||
Primeiro, baixe a versão mais recente da [https://github.com/doitsujin/dxvk/releases página oficial de lançamentos do Github] e extraia-a para uma pasta. Se estiver usando o prefixo padrão do Wine, conforme descrito nos passos acima, navegue até a pasta extraída no terminal e execute o seguinte: | |||
<pre> | <pre> | ||
Revision as of 13:35, 6 October 2025
Linux support is currently experimental, but it's still possible to successfully run the game on Linux and achieve good performance. Linux support is not native, but achieved with a translation layer (Wine).
Important to note that each Linux distro is different, the setup in your particular case may differ and it's up to you to do the research. This article only covers general steps and some examples for specific versions Ubuntu and Linux Mint.
In summary, the game requires the latest stable version of WineHQ (10.0 or higher), DirectX 9, core Microsoft fonts, and .NET Framework 4.5.2. It is also highly recommended to use DXVK and Vulkan drivers for your GPU.
For more information on how to achieve this setup, see below.
Installing WineHQ
Wine is available for most Linux distros and the setup is documented very well. Just navigate to the Download page and pick your distro.
We're going to cover the case of installing it on Ubuntu 24.04 LTS or Linux Mint 22 on a 64-bit system below.
DO NOT try to use the commands below on other systems, refer to the WineHQ article instead.
sudo dpkg --add-architecture i386 sudo mkdir -pm755 /etc/apt/keyrings wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key - sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sources sudo apt update sudo apt install --install-recommends winehq-stable
Installing Winetricks
Winetricks script allows you to download and install additional Wine components required for this setup. On Ubuntu or Linux Mint you can install it directly via apt. For other distros refer to the official Winetricks article.
sudo apt install winetricks
Configure Wineprefix
For the game to run correctly, you'll need a win32 wineprefix with corefonts, d3dx9, and dotnet452 components. If you already have one, make sure it's compatible.
In this example we're going to assume that you're starting from scratch and we're going to create a default wineprefix compatible with the game. In this case, make sure you delete the ~/.wine folder (if you have it) before proceeding.
WINEARCH=win32 wine wineboot winetricks corefonts d3dx9 dotnet452 winecfg -v win10 winetricks videomemorysize=2048
During the installation, various Microsoft installers will pop up. Just install each of them normally.
Installing Vulkan Drivers
Você pode ajudar adicionando a ela.
It's highly recommended to use Vulkan drivers for your GPU to achieve acceptable performance.
The way you install them depends on your distro and your GPU. It's important to install the 32-bit version of the drivers as that is what the game is going to use. Below is the simplest example of installing open-source drivers on Ubuntu or Linux Mint, but please do your research and install appropriate drivers for your distro and your hardware.
sudo apt install mesa-vulkan-drivers:i386 libvulkan1:i386
Installing DXVK
DXVK allows the game to use Vulkan drivers while running inside Wine. Without it, you'll still be running the game using the default Wine DirectX implementation even if you have the Vulkan drivers installed. It needs to be installed into the Wineprefix that you're going to be using to run the game.
Primeiro, baixe a versão mais recente da página oficial de lançamentos do Github e extraia-a para uma pasta. Se estiver usando o prefixo padrão do Wine, conforme descrito nos passos acima, navegue até a pasta extraída no terminal e execute o seguinte:
export WINEPREFIX="$HOME/.wine" cp x32/*.dll $WINEPREFIX/drive_c/windows/system32
Em seguida, execute winecfg e, na aba Bibliotecas, adicione manualmente substituições de DLL nativas para d3d8, d3d9, d3d10core, d3d11 e dxgi.
Executando o jogo
Neste ponto, você deve ter a versão mais recente do Wine instalada junto com todos os componentes e drivers necessários.
Agora você pode baixar o YmirheimLauncher original e, se estiver usando um prefixo padrão do wineprefix, executá-lo como um programa normal do Windows. Para a maioria das distros modernas, isso também criará um atalho no menu de programas e/ou na área de trabalho.
Consulte o artigo Executando o jogo para obter mais informações.