Get Banished working on Linux

sanp-banished-1 Hey there folks, I’ve finally got some time to show how to get this amazing village-building, sand-box strategy game, called Banished, working on Linux through wine( windows binary layer).As a quick start bonus I’ll share a screen cap of the game working with my awesome KDE system as canvas.
And just so you know, the game itself works alright, I’ve had only a few crashes. The only remaining issue is that sound is usually garbled, more info on this below.
So lets get to it, I’ll try to write very comprehensive steps, if anything is unclear, do leave a comment below.

Step 1

Well You’ll need a Linux system with wine installed and the standalone version of Banished( DUH!). I’m doing this on Debian Jessie, which currently have wine 1.6.2.
There are some ways to get Banished I know of: Steam, the Humble store, and of course a pirated download. I recommend through the Humble Bundle store, you get a DRM free download and may activate it on Steam also.

Step 2

This step is to set up a custom wine prefix, something like a custom windows installation, only for this game, so it won’t conflict with any other windows apps. To do this open a terminal and set some environment variables that wine will use:

export WINEPREFIX /path/to/your/desired/location
export WINEARCH=win32

The arch variable is just to make sure wine 32-bit is used, as currently the 64-bit version has a few issues to work out. Next run:

wine winecfg

This will create your new wine prefix’s folder, it will be unique to this app, any configuration you do will only affect this prefix.
Here you can setup virtual drives, make sure there’s at least the drive_c and your home folder as a virtual drive( the drive_c is created automatically by wine).
Optionally you can also link the user folders appropriately( documents, music, etc), the documents folder is used to save the game.

Step 3

Now, this is also an optional step, kind of. Here you’ll install specific DLL libraries needed for the game to run properly however they may not be needed since you’ll install the actual Direct X bundle in the next step, this is yet to be tested. Oh, and you’ll need winetricks installed too.
Go to your terminal and issue the command:

winetricks d3dx9 xact

This is a neat little script that install and configure needed DLL and stuff automatically, well, kind of( again!). It may ask you to download some stuff manually when needed, in that case you download it and move to the indicated folder and run the command again.

Step 4

Now you will download and install the DirectX 2010 redist… something…something….
You can get it here. This has been referred by the developer, indicating that even windows user had some issue concerning direct audio. The game will run fine without it, but no audio at all.

wine start /path/to/directx_jun2010_redist.exe

Hopefully, it will just install it without issues.

Step 5

Noticed that until now you didn’t even touch your game files at all? This is to make sure you’ll install in the proper environment with everything it needs.
Now back to your terminal, you’ll install the game with the help of “wine start” combination, this is required if your installer version is a .msi file.

wine start /path/to/BanishedInstaller-1xxx.x32.msi

Remember to use the installer version you currently have, and use 32-bit unless you’ve managed to get wine 64-bit running without issues( this will also required the WINEARCH variable to be win64).The installation will probably go without issues. Now you’ll have a /path/to/wineprefix/drive_c/path/to/Banished folder with the installed game files inside.

Step 6

Now with the game installed, you’ll need to go to the game folder, find a file named VideoDX11-x32.dll, rename or remove it. The game will try to load Dx11 by default, and without this file it will use Dx9 instead.
Wine does not support Dx11 yet.

You can optionally download the update patch and copy the file to this directory, it may have some fixes. You can download it here, though you should check if there is a newer patch.
Replace only the existing files and don’t accidentally copy a new Dx11 into the folder that the game could use.

Done

snap-banished-2Now you should have a working Banished into your Linux machine ready for endless hours of nerdy playing.
When something is installed through wine, usually, it will create its own menu option for the app with already proper prefix variable and stuff.
If you don’t want to use the menu, you can use this command on a terminal the game( or trough a script, or custom menu item):

WINEPREFIX=/path/to/prefix wine /path/to/banished/executable.exe

I recommend trying it out with an ille*$# download( cough cough) before buying the game, just to see if it will work out on your setup.
I also recommend the Humble Bundle store, since they’re awesome and will give you an activation code to get it on Steam, and by the way this, is also the developer’s site buying method.
The dev has shown clear intent on porting the game to Linux and Mac, I think this may be difficult since it’s a DirectX game, but just the shown intent is good enough for me. I’ll gladly wait the Linux version while playing this way.
And a bonus picture of my current game’s village, its beautiful even on low graphics.

Issues

As mentioned before, there is the audio issue, it sounds very garbage-ish  at the moment, only UI sounds work for me( everything else is muted). There are reports of people with perfect sound, more recent wine version may already have this issue solved. Others say the overrides in winecfg aren’t needed.
My game didn’t start complaining of no compatible display( or something), I think it’s because Xorg doesn’t have any other available resolutions( nvidia driver and xorg issue). I solved this by enabling virtual desktop on winecfg, and choosing a regular 16:9 used resolution, Voilà, the game worked.
You may want to edit your .desktop file or menu to have a proper more direct command.

References

My current system is:
Debian Jessie( testing) Linux 3.12-1-amd64
KDE 4.11.5 with wine-1.6.2
iMac 2009 21,5 inch with
Intel Core 2 Duo 3,06 Ghz
Geforce 9400 256Mb with nvidia 318.82 driver

Final Notes

There you go, this took me a couple of hours, specially because I didn’t write in this format yet.Hope you liked and this was helpfull.
You can help me out by sharing this, hitting that like button and leaving out a relevant comment.
Cheers!

Advertisements

Published by

Gfurst

To be Written

4 thoughts on “Get Banished working on Linux”

  1. So, I was trying to get the Colonial Charter mod to run. And Colonial Charter doesn’t play nice with the Banished 32-bit version, it gives a nasty DX9 crash. Sadly.

    So…I tried and mucked around a bit with PlayOnLinux and to my surprise the 64-bit version of Banished runs fine in Wine 1.9.13 x64. Better yet, it runs in DX11 mode (haven’t deleted the DX11 dll’s from the game directory so I guess it uses those).

    And it gets even better, the Colonial Charter mod runs as well. Haven’t found any issues yet. Smooth as silk.

    1. Nice, good to kown wine-64 is working well. On other news, it seems the developer is keen working onporting it to Linux, getting opengl working and whatnot.

  2. Tested !
    I followed all the steps, one problem found : when the game starts, a black screen pops up and freezes the desktop
    killed it with-> Ctrl-alt-F1 -> killall Application-x32/x64.exe
    My solution:
    1 – Change name of both VideoDX9-x32.dll and VideoDX9-x64.dll files
    2 – Start the game (menu starts, tested with x32 and x64 launchers)
    3 – Make it crash by clicking “Play” (message : A Fatal error … VideoDevice: Failed to find…)
    4 – Close error message
    5 – Rename VideoDX9 dll’s by their original name (VideoDX9-x32.dll and VideoDX9-x64.dll)
    6 – Runs as expected
    Hope it helps
    Thanks for this post !
    Ubuntu 14.04 – DE : XFCE4 – WM: Compiz

  3. How can I get this game, Gfurst? I’ve already seen its video and I liked too much. It’s kind a medieval “SimCity”, isn’t it?

Leave a reply (^_^)b

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s