Run RM Games on Linux with Wine

[If you're wanting to run the actual RPG Maker engine (Steam version) on Linux, refer to this guide. The page you're on now tells you how to run the .exe of the game itself.

This is a general guide for running Windows apps on Linux. Thus, if you have the non-Steam version of the RPG Maker engine, this guide should allow you to run it.]


If you're wanting to run a game made with RPG Maker on Linux, this is the guide for you. MV and onward have a native Linux export version, but the previous makers do not.

Step 1: Install Wine​

Go to https://wiki.winehq.org/Download and, under WineHQ binary packages, select your operating system. I'll attach the instructions here.
Spoiler: Ubuntu(-based)
Popular Ubuntu-based distros: Linux Mint, Pop!_OS, Lubuntu, KDE Neon, Zorin OS, Elementary OS, Ubuntu Budgie, Feren OS, Nitrux
  1. Open the terminal and run command
    Code:
    sudo dpkg --add-architecture i386
    • This command enables 32-bit architecture, if it is not already enabled. It's necessary for Wine. If it is already enabled, this command will do nothing.
  2. Run command
    Code:
    wget -nc https://dl.winehq.org/wine-builds/winehq.key
    • This command downloads the Wine repository key.
  3. Run command
    Code:
    sudo apt-key add winehq.key
    • This command adds the Wine repository key.
  4. Run one of these commands (which add the repository itself):
    • For Ubuntu 20.10:
      Code:
      sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main'
    • For Ubuntu 20.04 and Mint 20.x:
      Code:
      sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
    • For Ubuntu 18.04 and Mint 19.x:
      Code:
      sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
  5. Run command
    Code:
    sudo apt update
    • Updates all applications; recommended to do after adding repositories.
  6. Run command
    Code:
    sudo apt install --install-recommends winehq-stable
    • This command installs the stable version of the Wine application.
Spoiler: Debian(-based)
Popular Debian-based (non-Ubuntu) distros: Q40S, Devuan, Kali Linux, MX Linux, Deepin
  1. Open the terminal and run command
    Code:
    sudo dpkg --add-architecture i386
    • This command enables 32-bit architecture, if it is not already enabled. It's necessary for Wine. If it is already enabled, this command will do nothing.
  2. Run command
    Code:
    wget -nc https://dl.winehq.org/wine-builds/winehq.key
    • This command downloads the Wine repository key.
  3. Run command
    Code:
    sudo apt-key add winehq.key
    • This command adds the Wine repository key.
  4. Run one of these commands (which add the repository itself):
    • For Debian 10 (Buster):
      Code:
      sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ buster main'
    • For Debian 11 (Bullseye):
      Code:
      sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ bullseye main'
    • For Debian Testing (Bookworm):
      Code:
      sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ bookworm main'
  5. Run command
    Code:
    sudo apt update
    • Updates all applications; recommended to do after adding repositories.
  6. Run command
    Code:
    sudo apt install --install-recommends winehq-stable
    • This command installs the stable version of the Wine application.
Spoiler: Fedora
  1. Open a terminal and run one of the following commands (which add the repository):
    • For Fedora 33:
      Code:
      dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/33/winehq.repo
    • For Fedora 32:
      Code:
      dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/32/winehq.repo
  2. Then run
    Code:
    dnf install winehq-stable
    • This command installs the stable version of the Wine application.
Spoiler: openSUSE & Arch
Popular Arch-based distro: Manjaro

Follow one of these links for instructions.

During the installation you may get a complaint about missing dependencies. If so, install them.

Step 2: Run RM Game​

Navigate to the folder in which you downloaded the RPG Maker game and right-click anywhere on the file explorer main window, then select "Open in Terminal." Type
Code:
wine game.exe
assuming that the .exe is entitled "Game", as it should be.

Alternatively, if you want to specify the full filepath name, you can open the terminal and type
Code:
cd '.wine/drive_c/Games/Project1'
or wherever the file is stored, then type the wine game.exe command. Or, you could use wine start to specify the full path, like so:
Code:
wine start '.wine/drive_c/Games/Project1/game.exe'
and type /unix directly after wine start if using a Unix style pathname.

Or graphically, you should be able to right-click on the .exe for your RPG Maker game and select the option to run the game with Wine. If you don't see it, click "Open with other application..." and select Wine.

You might see a prompt asking you to download Gecko and Mono; choose "Yes" for both, and the game should work fine.

As this is a compatibility layer, you will most likely encounter issues, but that should be understandable. I've noticed from personal experience that the older the engine in which the game was made, the better it typically runs. Rm2k(3) runs excellently on Wine, while XP and onward not nearly so well.
This worked for games made in RM2k(3) but not for games made in MV. There is probably something going on and will try other type of games and see if it has something to do with JS apps and not Wine per se.
This worked for games made in RM2k(3) but not for games made in MV. There is probably something going on and will try other type of games and see if it has something to do with JS apps and not Wine per se.
I've only tested it for everything before MV (i.e., VX Ace and before). MV has a native linux export so I did not look into running MV games with Wine.
The problem with that is that very few developers actually upload a linux export for their game. Most only bother with the windows export.
However it is not true that MV games generally don't work with wine. Some do, but many don't. I even found some games that seemed to work, but then crashed later down the line with bugs I assume are not present on actual windows.
The problem with that is that very few developers actually upload a linux export for their game. Most only bother with the windows export.
However it is not true that MV games generally don't work with wine. Some do, but many don't. I even found some games that seemed to work, but then crashed later down the line with bugs I assume are not present on actual windows.
Yes absolutely. If we see a game that looks interesting but has no Linux version, we could send the developer a message asking if they could upload one. It's very easy to do.
Updated installation instructions to include Debian and links for OpenSUSE and Arch; all placed in spoilers
Added an explanation of what each command does, to make it less arcane and so that users actually know what they're doing to their computer. Also added lists of Debian and Ubuntu -based distributions so that users can find proper instructions for their OS if unsure.

Original thread: https://forums.rpgmakerweb.com/threads/run-rm-games-on-linux-with-wine.133975/