Anno 1404

Anno 1404

Not enough ratings
How to run Anno 1404 on Linux
By Sersch
A quick guide explaining how to edit a config file and install DirectX9 to run Anno 1404 on Linux.
   
Award
Favorite
Favorited
Unfavorite
How to run Anno 1404 on Linux
These steps allowed me to play Anno 1404 on Linux Mint 21 Cinnamon. I assume they work on other Debian or Ubuntu based distros. If anything doesn't work for you, let me know in the comments.
1. Enable Steam Play
Steam Play allows you to run Windows games on Linux.

To enable Steam Play, go to the upper left corner of your Steam window, then click on Steam -> Settings -> Steam Play. Check Enable Steam Play for supported titles and Enable Steam Play for all other titles.

You can probably leave the Proton version at the default value of Proton Experimental. If Proton Experimental should no longer work in the future, try Proton 7.
2. Download and start the game once
Now that Steam Play is enabled, you should be able to download the game in Steam.
After downloading, start the game. You need to start it once so it will generate some files.

However, the screen will be black and you will only be able to see your mouse cursor and hear the intro cinematics and main menu music.

Press Alt + F4 (repeatedly if necessary) to quit the game.
3. Install winetricks
The game's screen is black because we need to install DirectX 9. We do this with a tool called winetricks. In this step, we'll just install winetricks; DirectX will be installed in step 5.

Open a Terminal. If you've never opened the Terminal before, search for it in your distribution's menu. Most likely you'll also be able to open it by pressing Ctrl+Alt+T.

If you are using a Debian/Ubuntu based distro, paste the code into the Terminal by pressing Ctrl+Shift+V or by using the right click context menu.

sudo apt install winetricks

If you aren't using a Debian/Ubuntu based distro, change the installation command (apt install) to the correct one for your distro's package manager.

Confirm with Enter. Confirm any questions that might pop up by pressing Enter again. Wait for the setup to finish. Keep the Terminal open and read on.
4. Enable DirectX 9 in the game's config file
We need to make a modification in one of the game's config files to force the game to use DirectX 9, which we will install in step 5.

First, we need to find a folder called compatdata. Go to your user folder (/home/YourUserName). You should see a folder called .steam somewhere. If you don't, you need to show hidden folders first. Most file managers allow showing hidden files and folders by pressing Ctrl+H.

Open the .steam folder once you've found it. Inside it, you should now see a folder called root. Open the "root" folder and then the following subfolders:

For the main game:

steamapps/compatdata/33250/pfx/drive_c/users/steamuser/Application Data/Ubisoft/Anno1404/Config/

For the Venice addon:

steamapps/compatdata/33250/pfx/drive_c/users/steamuser/Application Data/Ubisoft/Anno1404Addon/Config/

If you want to play the main game and the addon, you have to perform the changes in both the Anno1404 and the Anno1404Addon folders.

You'll find a file called Engine.ini. If there is no such file, create one instead.

Open the file with a text editor. If the file already existed, search for the following line:

<DirectXVersion>0</DirectXVersion>

Replace the 0 with a 9, like so:

<DirectXVersion>9</DirectXVersion>

If you did need to create the file yourself, simply add the following line:

<DirectXVersion>9</DirectXVersion>

Save and close the file, but keep the folder open.
5. Install DirectX 9
Assuming you still have the folder with the Engine.ini file open, go a couple of folders back up until you are back in the pfx folder. Copy the full path of the pfx's folder from your file manager's navigation bar. It should look something like this:

/home/YourUserName/.steam/root/steamapps/compatdata/33250/pfx

Go back to the Terminal and write the following code if you want to install DirectX 9 for the main game:

WINEPREFIX=/home/YourUserName/.steam/root/steamapps/compatdata/33250/pfx winetricks d3dx9

Or for the Venice addon (only the number is different; 33350 instead of 33250)

WINEPREFIX=/home/YourUserName/.steam/root/steamapps/compatdata/33350/pfx winetricks d3dx9

Make sure to adjust YourUserName according to the paths on your own system! Then press Enter to confirm. Close the Terminal when the process has finished.
Play the game
You should now be able to run the game from Steam. If not, let me know and we'll figure it out.
19 Comments
TLK 22 Feb @ 9:48am 
Amazing thanks for the guide.

Just a little note.
If you use snap to install steam there will be no .steam folder (atleast on ubuntu) instead you need to look in the snap folder.
Fuzewawa 30 Aug, 2023 @ 8:03am 
Commenting on my experience. I used to make the add-on work on the version "Anno 1404 : Venice" in the past, but not this time. So I uninstalled everything and made it simpler.

I just installed Anno 1404 without the add-on.

In the settings got Proton 4.2-9 for the game.

Edited the Engine.ini in the folder :

<InitFile>
<UbiSurveyTime>-1</UbiSurveyTime>
<UbiSurveyTimeStatus>2</UbiSurveyTimeStatus>
<DirectXVersion>9</DirectXVersion>
</InitFile>

Like that.

And it worked !
Fleur 15 Jan, 2023 @ 11:39pm 
@Sersch: I think i got my copy straight off of the steam store. my game is listed as "Dawn of Discovery - Venice" I also have a game called "dawn of discovery" but whenever I launch either game it asks me if i want to launch dawn of discovery or dawn of discovery venice.

Was able to complete steps 3 and 5 but it led to no discernable change.

Thanks so much for the reply!
Sersch  [author] 14 Jan, 2023 @ 2:00pm 
@Fleur: Do you have the History Edition with Uplay or the regular old Steam version? The steamdb website has entries for 33340 and 33350. 33340 is "Dawn of Discovery - Venice" and 33350 is "Anno 1404 - Venice". I'm not sure if 33340 is the UPlay version or something else entirely.

Just to make sure I installed Anno 1404 - Venice without the main game. My folder is indeed called 33350.

Were you able to perform step 3 and 5?
Fleur 13 Jan, 2023 @ 8:01pm 
Doesn't seem to work for me but a couple things are different than in your guide. The number for Venice is 33340 not 33350. Also my anno1404 and anno 1404addon files are both in the Ubisoft folder under 33350 but only anno1404addon has a config file, anno1404 has a file called "profiles" in it and nothing else. After doing the changes that I could to the folders I had no change from the first time i opened the game which was the same as you said. Not really sure what to do because kinda bad at this stuff but if you know how to fix it would make me happy.
arch-vile con traje 9 Jan, 2023 @ 11:00am 
no, it doesn't
i don't have a product key
Sersch  [author] 9 Jan, 2023 @ 10:46am 
@orestescm76: Here's an article [www.ubisoft.com] that describes how to view the key of a game in Uplay, does that help?
arch-vile con traje 9 Jan, 2023 @ 10:30am 
i tried installing manually the ubisoft connect into the wineprefix of steam but it doesn't work
seems like this version is impossible to play on linux
thanks ubisoft
arch-vile con traje 9 Jan, 2023 @ 10:12am 
i just installed lutris and it asks me for a product key, which i don't have
Sersch  [author] 9 Jan, 2023 @ 5:39am 
@niktech: I've added a note about a missing Engine.ini file to section 4, based on this [github.com] comment from the Github page you linked. I haven't verified myself that this really does work, but it sounds plausible.

@Wacala / @orestescm76: I own the regular Anno 1404 version without UPlay, so unfortunately I don't know how to fix the Uplay issues. Maybe you can run the game via Lutris [lutris.net]. There is an install script [lutris.net] for the Anno 1404 History Edition. If one of you tries it out and it works, I can add the Lutris recommendation to the guide.