Unity Games Working On Linux (User Ported)

From GamingOnLinux.com Linux Games Wiki
Jump to: navigation, search

The aim for this page is to be a community driven project that is work in progress and hopefully should show a list of games that will and will not work on Linux from porting it manually.

Warning: Some games may end up not working in future, so buy with care!

Since Unity 4, Linux is supported as a platform for Unity games. Since Unity is based on Mono, only appropriate Linux executables are needed, so it is possible to manually "port" a Windows Unity game that does not ship with Linux executables by locating and placing appropriate executable, as long as the game was build with OpenGL or Vulkan renderer enabled, doesn't use custom shaders that result displaying them in pink and doesn't use plugins that are not available for Linux.

Manually porting Windows game

Obtaining game files

First, you have to obtain the files of the game you are trying to port. Unless you are trying to fix a broken Linux game or check support for 32-bit or 64-bit executable (which should be possible for games only shipping with 32-bit and 64-bit executables on Linux), you have to download (and extract if they are archived) Windows version of the game.

  • For Steam, you can either download the game under Wine, download it through SteamCMD or use Steam console to download Windows depot (refer to SteamDB for depot numbers). It is also possible to download an old version of the game that way.
  • For GOG, you have to download the installer and either install it under Wine or extract files using innoextract --gog setup_whatever_game.exe. [1]
  • For other sources, you will most likely either have to install the game under Wine extract the files with tools such as innoextract, 7za or any other article. Refer to the manuals of the programs and be creative :).

In the end, you should locate the folder containing GameName.exe and GameName_Data. The GameName is the Unity project game name that will be used later.

Checking Unity version of the game

Secondly, you have to check the version of the Unity the game it using. This can be done at least two ways:

  • Navigate to the GameName_Data folder of the game you want to check the version. Inside this folder there should be multiple of files, most of which contain the string for the Unity version. Executing strings command on one of them can help getting the exact version. Majority of games include level0 file in them, so navigating to the folder and executing this command should print the actual Unity version on your terminal:
    strings level0 | head -1
    If nothing is returned, it's a very old Unity engine version, which has the version information towards the end of the file, but for which no Linux support exists anyway.
  • If you have any Linux Unity Player executable, you can try putting this executable in the same level as GameName.exe and GameName_Data and launch the game from terminal or with -logfile /location/to/file.txt command line parameter to force the game write a log to /location/to/file.txt and inspect the output. You should look for a line similar to this in log:
    Expected version: 5.6.3p3. Actual version: 5.6.4p1.
    Expected version is the version of your executable, in that case Unity Patch Release 5.6.3p3.
    Actual version is the version of the executable needed, in that case Unity Patch Release 5.6.4p1.

Also, PCGamingWiki keeps track of Unity engine build versions of Unity games, you can look for games which have the specific version there. Keep in mind that the data there is contributed by users, so it can be out of date and only some games have it filled properly! To list the games with their builds, you can use Property:Unity engine build page and you can also use Search by property for "Unity engine build" to search for a specific version. On the actual pages, the reference often list the date the version it was checked last.

Obtaining Unity files

Knowing the exact game version, you have to obtain Unity Linux Playback Engine files. These can either be taken from another Linux Unity game of the same version, or can be extracted from official Unity Linux Build Support exectuable that comes with Unity Editor.

The files that are essential to work are:

For 32-bit version:

  • GameName.x86 (.x86 part is sometimes omitted in new Unity versions, leaving only GameName in some games)
  • GameName_Data/Mono/x86/libmono.so
  • GameName_Data/Mono/x86/libMonoPosixHelper.so (since Unity 5.5)
  • GameName_Data/Plugins/x86/ScreenSelector.so (since Unity 4.3)

For 64-bit version:

  • GameName.x86_64 (.x86_64 part is sometimes omitted in new Unity versions, leaving only GameName in some games)
  • GameName_Data/Mono/x86_64/libmono.so
  • GameName_Data/Mono/x86_64/libMonoPosixHelper.so (since Unity 5.5)
  • GameName_Data/Plugins/x86_64/ScreenSelector.so (since Unity 4.3)

Sometimes you need additional .so files to be put in the respective Plugins directory. It's not needed in most cases, but if the game uses such file, it can be deducted from the loose .dll files that are placed in the main Plugins directory.

Some common .dll names include [2]:

File archives

Some players already extracted the appropriate files. You can either look for the pre-made versions posted on the game forums if someone already did the job (see the table below), but there are also some mirrors of the extracted Unity files, which saves you trouble downloading and extracting the Linux Playback Engine files or rummaging through your collection of Linux Unity games:

Manually extracting files

You can also manually extract the files. For that, you need to download the appropriate version of Unity. In theory, you only need the UnitySetup-Linux-Support-for-Editor-X.Y.Z.ab.exe, where X.Y.Zab is the Unity version you detected, but since it is not available to be downloaded separately, you need to download it from the appropriate Unity Editor Download Assistant for Windows and install it under Wine (or Windows). You can find the appropriate Unity Editor Download Assistant here:

*Only the current beta releases are available for download, so if you need an old beta executables you're pretty much out of luck, unless you find archived release somewhere else or find another game using it (see below).

After downloading the appropriate UnityDownloadAssistant-X.Y.Z.ab.exe, start installing it under Wine (or Windows). A connection to internet is needed during installation, as installer will download appropriate files from Unity servers. You can uncheck everything' and just check the "Linux Build Support" to avoid downloading unnecessary files – expect a little over 100MB of download for recent versions. Unless you point to existing Unity installation, you will get Failed to locate Unity.exe! error after downloading, but you can safely close it and cancel installation at that point, since the file needed will be already downloaded by then. During installation, you will be asked to specify location of files downloaded during installation – this will be the location you will find UnitySetup-Linux-Support-for-Editor-X.Y.Z.ab.exe later on – if unchecked, the file should be downloaded to Wine's/Windows %TEMP% folder (default /home/user/.wine/drive_c/users/user/Temp/nsXXX.tmp where user is your username and XXX is random string), but will be removed after canceling the installation.

After you locate UnitySetup-Linux-Support-for-Editor-X.Y.Zab.exe, you need to extract the files from it. The archive is an NSIS installed and can be extracted with p7zip under Linux or 7-zip under Wine/Windows. Under Linux, navigate to the folder and type the following command in terminal, where X.Y.Zab is your downloaded version:
7z x UnitySetup-Linux-Support-for-Editor-X.Y.Zab.exe
The files needed will be located in $INSTDIR$_XX_/Variations folder, where XX is a random number. The versions you are interested in are most likely inlinux64_withgfx_nondevelopment_mono or linux32_withgfx_nondevelopment_mono, but feel free to experiment.

You only need the files mentioned in Obtaining Unity files section, so feel free to remove the rest – replacing the files that ship with Windows game may result in game not starting otherwise!

You also need to rename LinuxPlayer to GameName and Data directory to GameName_Data where GameName is your game name (see Obtaining game files section.)

Finding files in your own game library

An alternative route is to search through your own installed game library, looking for the executables you need. When looking for a specific executable you can type this command in terminal, where . indicates the current directory and can be changed to a different one and X.Y.Zab is the executable you are looking for:
find . -name level0 -print0 | xargs --null grep --with-filename "X.Y.Zab"
This command will only scan the directory in which you invoke it (or pass instead of .) and all its sub-directories, so it's a good idea to run it where you've got all your games installed (e.g. ~/games).[3] [4]

Porting non-Windows games

It could also be possible to port non-Windows games, including the games from macOS/OS X but possibly also other platforms, such as Android, iOS, tvOS, Samsung Smart TV, Tizen, WebGL and Facebook Gameroom and historically Unity Web Player, maybe even consoles if one could get hands on the files, as long as the present renderer is supported. It may also be possible to port to non-Linux platform that way, however it mostly remains to be tested.

Porting from macOS/OS X can alleviate the problems with pink shaders, since instead of DirectX/Direct3D HLSL shaders common OpenGL GLSL shaders are used. For Steam, macOS/OS X depots can be downloaded through SteamCMD or Steam console as explained in Obtaining game files section.

The original guide in Russian did not succeed porting the Android games to a x86 system due to a different CPU architecture, so an ARM Linux distro (for example on Raspberry Pi), may be needed.

For more info on porting from macOS/OS X, refer to original guide (in Russian).

In case of macOS/OS X, it should also be possible to use Unity Editor Download Assistant for Mac if one want to use macOS/OS X instead of Wine or Windows for porting.

Aesthetics

TODO - Write about converting images, icons and making desktop shortcuts. [5], [6]

Games tested

Here are all the games tested for working on Linux. For now, the table only includes one entry per game, sorted alphabetically by game name – in case of new tests, update the existing entry with up to date info. Link the game name to the source you obtained the game from. Alternatively, if you feel the results are vastly different, feel free to add a new entry below the old test and discuss it in the talk page!

Feel free to add pre-Unity 4 games to the list as well and mark them appropriately – it will let other tester know why this Unity game does not work and in case of engine upgrade, could be easily retested.

Only use Yes in the Works column if the game is actually playable as if it were native. If you encounter any game-breaking issues such as game not starting or pink shader textures, mark it as a firm "No" and state the reason in Description column – try to be as descriptive as possible, in case that will help someone else to get the game working by finding the issue.

For tester name, type the last tester name. If you are the one doing tests, you can use your wiki name, e.g. User:Faalagorn.

For the last tested date use YYYY-MM-DD format.

Games with the shader problems would basically require to decompile Managed/Assembly-CSharp.dll and replace the shaders to use there, or to extract the .asset files and create them anew. Some of these games are playable as they are, but certain things will show up pink. [7]

Game name Unity version Works Description Tester name Last tested Guide/files used
1954 Alcatraz 4.0.1f2 Yes Seegras 2016-01-13 Blog post
Air Buccaneer 4.2.0f4 No Can't connect to network? Seegras 2016-01-13 Blog post
Albedo: Eyes from Outer Space 4.3.4f1 Yes Apparently perfect (only played for 10 minutes). muntdefems 2017-11-28 GOG.com forums, GOGmix
Astral Terra 5.1.2f1 No Shader problems. Seegras 2016-01-13 Blog post
Avenging Angel 5.1.0f3 No Shader problems. Seegras 2016-01-13 Blog post
Blackguards 3.5.6f4 No Unsupported (pre-Unity 4). Seegras 2016-01-13 Blog post
Blackguards 2  ? No Refuses to start a new game (probably a video plugin it uses; it was not looked for). darktjm 2017-09-17 GOG.com forums
Block Story™ 4.6.8f1 No "Not available on your current platform" Steam error. Seegras 2016-01-13 Blog post
Bridge Project 4.5.3f3 No x86 crashes, x86_64 does not accept input Seegras 2016-01-13 Blog post
Cognition: An Erica Reed Thriller 3.5.7f6 No Unsupported (pre-Unity 4). Seegras 2016-01-13 Blog post
Coldfire Keep 4.3.4f1 Yes Seegras 2016-01-13 Blog post
Commando Jack 3.5.7f6 No Unsupported (pre-Unity 4). Seegras 2016-01-13 Blog post
Contract Wars Client 4.1.5f1 No Game launches fine, but after logging in, the game fails to load with the "PROFILE LOAD FAILED Check your Internet connection (proxy, ports, antivirus/firewall) or reload page with the game" error. Could be due anticheat. User:Faalagorn 2017-11-25 4.1.5f1.rar
CreaVures 3.4.2f2 No Unsupported (pre-Unity 4). Seegras 2016-01-13 Blog post
Dead Bits 4.1.3f3 Yes Seegras 2016-01-13 Blog post
Dead Effect 4.6.0f3 Yes Seegras 2016-01-13 Blog post
Dead Island Epidemic (delisted) 4.6.1f1 No Libs missing, among them FMODUnity .NET Plugin. Seegras 2016-01-13 Blog post
Dementium II HD 3.5.7f6 No Unsupported (pre-Unity 4). Seegras 2016-01-13 Blog post
Depths of Fear :: Knossos 4.6.1f1 Yes Seegras 2016-01-13 Blog post
Deus Ex: The Fall 4.3.4f1 No Needs LD_LIBRARY_PATH for libsteam.api.so; Wwise sound engine wrong version, playable. Seegras 2016-01-13 Blog post
Dungeonland 3.5.6f4 No Unsupported (pre-Unity 4). Seegras 2016-01-13 Blog post
Dysan the Shapeshifter 3.4.2f2 No Unsupported (pre-Unity 4). Seegras 2016-01-13 Blog post
Empyrion – Galactic Survival 5.2.3f1 No Hanging? Seegras 2016-01-13 Blog post
Escape from Tarkov 5.6.4p1 No Version 0.2.45.214 worked, later versions removed Vulkan renderer, leaving only D3D11, making the game not launching. User:Faalagorn 2017-11-26 Official forums
Expeditions: Conquistador 4.? Yes Seems to work fine. darktjm 2017-09-17 GOG.com forums
Final Dusk 4.6.1f1 Yes Seegras 2016-01-13 Blog post
Gabriel Knight: Sins of the Fathers – 20th Anniversary Edition 5.3.4f1 No Shader problems, shows unusable menu. darktjm 2017-09-17 GOG.com forums
Godus Wars 5.2.2f1 No Shader problems. Seegras 2016-01-13 Blog post
Gravi 4.5.5f1 Yes Seegras 2016-01-13 Blog post
Guns n Zombies 5.2.2f1 No Shader problems, crashes. Seegras 2016-01-13 Blog post
Her Story 5.0.1f1 No Uses AVPro Windows Media Plugin for videos. User:Yepoleb 2017-09-17 GOG.com forums
Hired Ops 5.3.6p1 No Requires libsteam_api.so and ScreenSelector.so; pink screen when launching. User:Faalagorn 2017-11-26
Huntsman: The Orphanage (Halloween Edition) 4.2.2f1 Yes Needs LD_LIBRARY_PATH for libsteam.api.so. Seegras 2016-01-13 Blog post
Jalopy 4.5.3f3 Yes User:Interknet 2017-05-31 Steam forums, GitHub Gist
Joe Dever's Lone Wolf HD Remastered 4.5.4f1 No Self-written plugins. Seegras 2016-01-13 Blog post
Kyn 4.6.6f2 Yes Apparently perfect (only played for 10 minutes). May have to be restarted a couple of times for it to work in fullscreen. muntdefems 2017-09-12 GOG.com forums, GOGmix
Last Inua 4.2.2f1 Yes Seegras 2016-01-13 Blog post
Last Tinker™: City of Colors, The 4.3.4f1 Yes Apparently perfect (only played for 10 minutes). Linux version is available on Steam. muntdefems 2017-09-12 GOG.com forums, GOGmix
Magnetic: Cage Closed 4.3.4f1 No "Not available on your current platform" Steam error. Seegras 2016-01-13 Blog post
Melissa K. and the Heart of Gold Collector's Edition 4.5.3f3 No Hanging? Seegras 2016-01-13 Blog post
Might & Magic X - Legacy 4.2.2f1 No Hanging? Seegras 2016-01-13 Blog post
My Summer Car 5.0.0f4 Yes User:Interknet 2017-05-31 Steam forums
Once Bitten, Twice Dead! 4.6.1f1 Yes Seegras 2016-01-13 Blog post
Overcast - Walden and the Werewolf 4.1.3f3 Yes Seegras 2016-01-13 Blog post
Paper Sorcerer 4.1.5f1 Yes Seegras 2016-01-13 Blog post
Pid 3.5.3f3 No Unsupported (pre-Unity 4). muntdefems 2017-09-14 GOG.com forums
Randal's Monday 4.1.5f1 Yes Perfect. I've completed it without a crash or glitch. muntdefems 2017-09-12 GOG.com forums, GOGmix
realMyst: Masterpiece Edition 4.5.5p4 No Broken menu, needs uWebKit. Seegras 2016-01-13 Blog post
Red Lake 4.3.4f1 Yes Seegras 2016-01-13 Blog post
Reign Of Kings 5.1.1p2 No Shader problems, needs LD_LIBRARY_PATH for libsteam.api.so. Seegras 2016-01-13 Blog post
Republique 5.2.2p4? No Pink shaders. muntdefems 2017-09-14 GOG.com forums
Republique 5.2.2p4 No "Not available on your current platform" Steam error. Seegras 2016-01-13 Blog post
Seamulator 2009 2.1.0f5 No Unsupported (pre-Unity 4). Seegras 2016-01-13 Blog post
Shad'O 3.5.2f2 No Unsupported (pre-Unity 4). Seegras 2016-01-13 Blog post
Shelter 3.5.7f6 No Unsupported (pre-Unity 4). Seegras 2016-01-13 Blog post
Slender: The Arrival 4.5.1p3 No Texture problems, playable. Seegras 2016-01-13 Blog post
StarForge (delisted) 4.5.5f1 No Shader problems, needs LD_LIBRARY_PATH for libsteam.api.so. Seegras 2016-01-13 Blog post
Stick it to The Man! 4.3.2f1 Yes Seegras 2016-01-13 Blog post
Stranded Deep 5.2.2f1 No "Not available on your current platform" Steam error. Seegras 2016-01-13 Blog post
Subject 13 4.6.4f1 Yes Nearly perfect. I've completed it without a crash, but I did encounter a couple of minor texture glitches. muntdefems 2017-09-12 GOG.com forums, GOGMix
Subnautica 5.2.3f1 No "Not available on your current platform" Steam error. Seegras 2016-01-13 Blog post
Tharsis  ? No Pink shaders. muntdefems 2017-09-14 GOG.com forums
The Dead Linger (delisted) 4.6.0b20 Yes Old version – game switched to Unreal Engine later. Some black textures. Seegras 2016-01-13 Blog post
The Forest 5.1.5f1 No Doesn't let you launch into a new game. User:Interknet 2017-05-31
The Hat Man: Shadow Ward 4.3.4f1 Yes Seegras 2016-01-13 Blog post
The Sexy Brutale 5.3.6p5 No User:Hummer010 2017-10-01 GOG.com forums, Google Sheets
The Swindle 4.6.3f1 Yes Needs Steamworks libraries in the runtime for it to work. Apparently perfect (only played for 10 minutes). muntdefems 2017-12-15 GOG.com forums, GOGMix
The Tower 5.1.2f1 No Shader problems. Seegras 2016-01-13 Blog post
The Witcher: Enhanced Edition Director's Cut 3.5.2f2 No Unsupported (pre-Unity 4). Isn't it Aurora Engine game? Seegras 2016-01-13 Blog post
Theatre Of The Absurd 3.5.0f5 No Unsupported (pre-Unity 4). Seegras 2016-01-13 Blog post
Them - The Summoning 3.4.2f2 No Unsupported (pre-Unity 4). Seegras 2016-01-13 Blog post
Train Town 4.5.0f6 Yes Seegras 2016-01-13 Blog post
Toren 4.3.4f1 Yes Apparently perfect (only played for 10 minutes). muntdefems 2017-12-15 GOG.com forums, GOGmix
Toren Deluxe Edition 4.3.4f1 Yes Apparently perfect (only played for 10 minutes). muntdefems 2017-12-15 GOG.com forums, GOGmix
Treeker: The Lost Glasses 5.1.2f1 No Shader problems, playable. Seegras 2016-01-13 Blog post
Truffle Saga 3.5.7f6 No Unsupported (pre-Unity 4). Seegras 2016-01-13 Blog post
Unearthed: Trail of Ibn Battuta - Episode 1 - Gold Edition 3.5.7b1 No Unsupported (pre-Unity 4). Seegras 2016-01-13 Blog post
Urja 4.5.4f1 Yes Seegras 2016-01-13 Blog post
Year Walk 4.5.5f1 Yes Seegras 2016-01-13 Blog post

External links