Jump to content
ColdZero

How to get City of Heroes running on Linux

Recommended Posts

Hey there! ColdZero from Homecoming/Excelsior here. This is a guide on how to play City of Heroes on Linux. We will be running the 64-Bit version of City of Heroes, if you are curious.

 

(Quick edit! A thousand page views! I'm really happy / glad that so many of you are curious as to how this works, or want to get the game up and running on your systems! If you have any questions for me about the guide, please, ask away! 3/26/2020 21:45)

 

Tips are BLUE

Warnings are RED

My thoughts are GREEN

Your presumed thoughts are YELLOW

 

This will use both Lutris, and Wine, to run City of Heroes. While this isn't NATIVE performance as Hardware Virtualization would provide (which this guide isn't about), this still performs really well on my machine, which is an i7-4700 + Nvidia GTX 970 (non-ti) with 16GB of RAM. (I have since slightly-upgraded my CPU to an i7-4770 for GPU Passthrough, but that doesn't matter for this guide)

 

  My system specs:

    *Ubuntu 19.10

    *i7-4770 with Kernel version 5.3.0-42-generic

    *Nvidia GTX 970 (using driver 435.21)

    *16GB DDR3 RAM

 

To be able to do this, you'll need the files for i24 / Homecoming. You can click this link here to download the files, as Wine runs out of memory half-way while downloading all of the files for CoH (by doing it this way if you don't download the files I've provided).

 

If a download link isn't allowed, then I will remove it and post some other links on where to find i24 and Tequila. Please note that FireFox can't download files past a certain size with that link, so you will need to use Chrome / Chromium to download the game with my link.

 

This guide presumes that you already have both Tequila (Island Rum should work as well, never tried it) downloaded and placed INSIDE of your CoH folder, and that you also have CoH downloaded as well (if you didn't download my files).

 

I am currently on version 5.0 of Wine as of writing this guide, and version 0.5.4 of Lutris. (This information is just as an example. Wine 4.0 should work just as well.).

 

Prerequisites:
    *Linux
    *A dedicated graphics card (although integrated graphics should run as well, although I haven't tested)
    *A dual-core CPU (Tested on an i3-4130, i7-4770, and an AMD FX 4300 CPU) or better.
    *At least 4GB of RAM

 


 

The start of the guide

 

 

As of 3/21/2020, I've completely overhauled this guide. Before, I would have you copy a bunch of commands into the terminal and (hopefully) they'd work without issue. Turns out, what I've done is rather complicated, and can be completely automated. So, as a result, I spent roughly 3-4 hours working on an installation script that installs both Wine and Lutris for you; The only thing you need to do is follow along now.

 

The script is quite safe, and the code will be visible for you to read it yourself if you're curious as to how it works. I've properly commented everything to teach / show you how it all works, if you're curious.

This script was tested on, and works on, Manjaro, Ubuntu 16.04, 18.04, 19.10, 20.04 LTS, and Pop!_OS. It also works on Linux Mint 18.x, 19.x., and Fedora 30 / 31 (thanks to a suggestion by DoctorDitko to provide support).

 


 

What's this I hear about a script?

 

All it does is detect your current distribution and install Wine + Lutris for you, thus dramatically simplifying the process for you, the end user.

 

If you already have Wine and Lutris installed and set up, please skip this step.

 

Is it safe?

 

Yes, it's quite safe! In fact, you can even open it and read exactly what it does! I've commented and explained everything that I should / could. It's my first ACTUAL script / program, and so I've heavily tested it for errors. If you have any, please let me know! Post the error as a reply, and I'll do my best to reproduce it and fix it.

 

As a friendly reminder, please don't just blindly run scripts on your computer if you don't know what they do. If you want to, you can happily check through the code.

 

We're going to use Git to download the script, so it's always up to date.

Git allows me to constantly keep the script up to date, therefore I don't have to constantly come back here and manually update the script as I constantly make changes to it every few days.

 

Okay, so how do I use Git?

Firstly, make sure you have Git installed by typing this into the Terminal if you're on a Debian based distribution: sudo apt install git -y

 

I've installed Git, what's next?

It's time to clone into the repository, but first we need to create a folder so that we can easily find the script.

Here's what it will look like inside the Terminal. We're changing directories to our Documents folder, creating a folder called Git, and then cloning the script into the folder. We're then going inside said scripts folder. If you just copy-paste the Git command into the Terminal, the folder "scripts" will be located in your Home / root folder, aka /. That way if you clone into the repository first, you will need to CD to a different directory, and then do everything else. Just follow along inside the screenshot to do it the way I did.

 

git clone https://github.com/daggenthal/scripts.git/

 

Git.png.860258fdb623e595dbf927a883cb1ca6.png

 

 

 

Please note that if you have an iGPU (integrated Graphics Processing Unit), and it's enabled, the game will crash to desktop on Ubuntu 20.04 + any flavors of it (i.e. Pop_!OS 20.04). I fixed this by disabling my iGPU inside of my BOIS, and that allowed the game to use my GPU directly, and my FPS improved drastically. If you are experiencing these issues, turn it off, and see if it works.

 

Okay, I've downloaded the script. What now?

 

Now the guide actually begins! Ah, but first we must give the script permission to run (execute).

 

Okay, how do I give it permission to execute?

This can either be done in the terminal, or through your Desktop Environment. What's a Desktop Environment? It's what you "see", what makes it "look pretty".

I will show you both ways, so don't worry, although I prefer doing everything through the terminal. Do note that we will need to open the terminal anyways in order to execute it.

A fun tip to use, is that when you're typing something out in the terminal, you can just press Tab to auto complete something.

For example, instead of typing ./Wine_and_Lutris_script.sh by hand, you can just type ./W and press Tab, or you'll have to be more specific if you already have a file starting with a W.

This applies for everything.

 

First, here's the Desktop Environment way of doing it:           Permissions.png.4560ef3f3d2434606841c86d4b4c6c4e.png

 

Now, here's how to do it through the terminal:                        Installation.png.0bf01e6a7acdda837037b505c0fdd21a.png

 

I don't understand what that does. Can you please explain it to me?

 

Sure! First we change directories (cd) into our Documents folder where the script is located (I've moved it there. For you, it will be cd ~/Downloads/).

Then, we give it permissions. sudo chmod +x ./Wine_and_Lutris_script.sh (What does this mean? Sudo makes it run as root w/o being root, think of it as entering the Administrator password. chmod changes the permission of an object that we pass through, and +x gives it execute permission. ./ executes something. Think of it as double-clicking on something to run it, but instead you're doing it in the terminal.

 

Now that permissions are set, it's time to actually install / set everything up. If you are on Windows and want to play on Linux, I strongly advise you to copy your CoH folder (with Tequila in it), and follow along. If you have pre-existing files, then all you have to do is point Lutris to the folder, and then you'll be good. Otherwise, you will lose all your currently saved settings + costumes by using my backup. So, use a backup if you have one.

 

 

 

Okay, it has permissions now. What's next?

 

When launching Lutris for the first time, you will see this message. Just click "Do not display this message again" and ignore it (unless you want to support them).

 

 1.png.74c0c3e6d6dbf3d502534cd9baaf63e5.png

 

 

 

Step 1: We'll need to add the game (CoH) to Lutris. Don't worry, I will be providing screenshots to guide you.

 

s2.png.393fb487b71fa00b90336ca4a5ab7b5c.png

 

Step 2: Now we'll need to set the title of our program (City of Heroes: Homecoming), and the Runner type (Wine), which should automatically be set.

 

s3.png.8e7b8ea72d510ea21a1727fb1dd3741b.png

 

Step 3: Now that we've set the name and the runner, we need to set the executeable and directory. Browse to Tequila.exe, and select it. Next, browse for the working directory and just click "Ok" in the CoH directory (where your game files are located is where this needs to be set to).

 

s4.png.8099be98313bfe05549ab9e7312243bc.png

 

Step 4: Now we're going to make sure that Wine is set. Click on "Runner options" and select the current version if it hasn't already been done, and enable DXVK. This is Direct X Vulkan. We can select D9VK, as well, and it runs, but I don't use it.

 

s5.png.a1acd11e3f62ce61a9ba6ea15ba108e1.png

 

Step 5: Now we just need to do the same thing as we did for the working directory, but for the installation folder. Browse to the CoH folder, make sure you are in it (where you can see all of the files), and click "Ok" in the bottom right.

 

s6.png.68969330e624d68eeca2433ef196d121.png

 

 

Step 6: Now that everything is set, we need to click "Save" in the bottom right to, well, save our settings. Now that that's done, click on "City of Heroes: Homecoming" and click play. We will get a pop-up that tells us that Wine is missing some essential files to run the program, and that it needs to download them. This happens 3 times in a row (counting the first appearance). Click "Install" for all of the pop-ups.

 

7.png.52318dbb2007ec932782bd1a9dec562f.png

 

 

Step 7: Once those three things are installed, Tequila will pop up and ask where we'll want to install it. This works exactly the same as it does on Windows, but on Linux we need to find our /home/ directory. Click on the "/" directory to open it, and then double click on "home" to go inside of it.

 

s8.png.23a9fd288b0ec2074edd19ca57d7ca84.png

 

Step 7.1: Once we're inside the home folder, we need to go to our CoH folder. Wherever you have CoH downloaded to and extracted to, go there. This is where all the files are to launch the game.

 

s9.png.607d4b7076fdbeb88ffbc5601f53c380.png

 

Step 8: If everything was done properly, Tequila should pop up and say that it's already there (that it already exists). This means we've done everything correctly!

 

10.png.a14d8609cc55d3a59d824cc5d567d080.png

 

Step 9: Now, all we have to do is click "Ok" and Tequila will launch. Tequila should automatically start verifying (validating) the files. While this happens, the program is storing things into its memory, and occassionally it will say that it has "ran out of memory". Just click the "X" on Tequila itself to close it, and then click "Ok". Repeat this processs a few times, and then it will start to download the necessarry files. It may say that it has "ran out of memory" again, but you know what to do: Click the "X" on Tequila, and "Ok", then just re-launch Tequila. Once this is done, we're done!

 

Congratulations! You've successfully setup Tequila to run City of Heroes on Linux!

Whenever an update needs to happen, it will automatically download the needed files.

 


 

I hope this guide was able to help you to properly setup Wine, Lutris, Tequila, and City of Heroes on Linux! If the script doesn't work for some reason, please let me know and I will try my best to fix it / guide you on how to fix it!

 

Have a lovely day / night!

 

Edited by ColdZero
Removed downloadable file
  • Like 8

Share this post


Link to post
Share on other sites

Works like a charm, thanks ! Loading maps is somewhat slower than Windows but somehow the character selection loads way faster which makes switching toons much faster under Linux.

Edited by Flitze

Share this post


Link to post
Share on other sites
21 hours ago, Flitze said:

Works like a charm, thanks ! Loading maps is somewhat slower than Windows but somehow the character selection loads way faster which makes switching toons much faster under Linux.

I'm glad to hear that! Yeah, I was having the same issue, but then I moved it to my SSD and all was well. Let me know if you have any issues!

Share this post


Link to post
Share on other sites
8 hours ago, skabooty said:

Let me know if you have any issues!

Indeed, I have. Not a big one, though. How do I get Tequila to be able to access encrypted websites ? (Though I guess it's more something missing in Wine...)

The beta client manifest is here: https://manifest.cohhc.gg/testing.xml

Tequila error message:

Manifest download error for https://manifest.cohhc.gg/testing.xml
Error: SecureChannelFailure (The authentication or decryption has failed.)

 

Share this post


Link to post
Share on other sites
15 hours ago, Flitze said:

Indeed, I have. Not a big one, though. How do I get Tequila to be able to access encrypted websites ? (Though I guess it's more something missing in Wine...)

The beta client manifest is here: https://manifest.cohhc.gg/testing.xml

Tequila error message:

Manifest download error for https://manifest.cohhc.gg/testing.xml
Error: SecureChannelFailure (The authentication or decryption has failed.)

 

You're trying to access the Pineapple server, right? If so, it should just work automatically. I haven't tested it myself, but I just presumed so.

 

That does seem like an issue with Wine, though. I'll have to try it out sometime myself and see if I can figure it out. Good luck! Sorry for the late responses, as I've been quite busy lately haha

 

I'm not THE best when it comes to WINE or Lutris, but I know enough to set things up. I'm curious, though. De-tick D9VK and use DXVK, and see if that improves your loadtimes + fps for you. You can check the fps by typing /showfps 1 in the chat box.

Share this post


Link to post
Share on other sites

I have two OS' on the same PC, Win 7 and Linux.

So I can compare the performance of both. And the problem with the beta manifest I have only with Wine. But maybe I shall try Proton...

Btw. FPS are not the problem at all but in MAG iTrial I didn't see some of the storm patches created by Tyrant. This didn't happen in Windows so far.

Share this post


Link to post
Share on other sites
4 hours ago, Flitze said:

I have two OS' on the same PC, Win 7 and Linux.

So I can compare the performance of both. And the problem with the beta manifest I have only with Wine. But maybe I shall try Proton...

Btw. FPS are not the problem at all but in MAG iTrial I didn't see some of the storm patches created by Tyrant. This didn't happen in Windows so far.

That's quite strange that those patches didn't appear, maybe it was a graphical setting? Do note that Proton is also Wine, just Valves version of it, so let me know how it goes for you!

Share this post


Link to post
Share on other sites

No change concerning https, regardless which Wine/Proton version I'm using. I think it's a problem of a quirky Wine installation. When I have time I may try to deinstall everything Wine-related and reinstall it. Other players had issues with those non-shown patches, too. Maybe graphics settings.

Thanks for your help ! 🙂

Edited by Flitze
submitted too early

Share this post


Link to post
Share on other sites
On 2/12/2020 at 4:06 PM, Flitze said:

No change concerning https, regardless which Wine/Proton version I'm using. I think it's a problem of a quirky Wine installation. When I have time I may try to deinstall everything Wine-related and reinstall it. Other players had issues with those non-shown patches, too. Maybe graphics settings.

Thanks for your help ! 🙂

Apologies for not responding fast enough! I'm so busy lately, that I don't have a chance to relax and check this. Aaaah I'm curious if Windows users also have those issues, and you're welcome! I hope it all works out in the end :D

Share this post


Link to post
Share on other sites

Thanks for your post it helped a lot. I read your post and the info at WineHQ and Lutris but followed the steps in another post because it was more directed at Linux Mint 19.3 (which I use) and there seemed to be another step involved.

https://computingforgeeks.com/how-to-install-wine-on-ubuntu-linux-mint-desktop/

i only had a few minor issues:

-I had never used Lutris before so it took a bit to find the right setting in the left panel- something about how it sees Wine. Once i had that figured out Tequila began working.

-Since I had all the Paragonchat files I planned to use the same folder but Tequila didn't like that so did a clean install.

-As Tequila finished up it complained that Paragonchat.exe was missing. i just copied the file from my other folder and Tequila finished the install. (I have passed this point on in another forum post).

So I am running an Intel i5-64, Nvidia Geforce 750ti, 8g ram, Linux Mint 19.3. i used Wine 5 stable and the latest Lutris.

I load from Lutris and it starts a bit slow then Tequila tells me it is patched. Once the launcher is up the game loads fast and is as smooth and fun as when I played on Windows 7 a few weeks ago.

It's good to be home!

  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)
18 hours ago, gromartwo said:

Thanks for your post it helped a lot. I read your post and the info at WineHQ and Lutris but followed the steps in another post because it was more directed at Linux Mint 19.3 (which I use) and there seemed to be another step involved.

https://computingforgeeks.com/how-to-install-wine-on-ubuntu-linux-mint-desktop/

i only had a few minor issues:

-I had never used Lutris before so it took a bit to find the right setting in the left panel- something about how it sees Wine. Once i had that figured out Tequila began working.

-Since I had all the Paragonchat files I planned to use the same folder but Tequila didn't like that so did a clean install.

-As Tequila finished up it complained that Paragonchat.exe was missing. i just copied the file from my other folder and Tequila finished the install. (I have passed this point on in another forum post).

So I am running an Intel i5-64, Nvidia Geforce 750ti, 8g ram, Linux Mint 19.3. i used Wine 5 stable and the latest Lutris.

I load from Lutris and it starts a bit slow then Tequila tells me it is patched. Once the launcher is up the game loads fast and is as smooth and fun as when I played on Windows 7 a few weeks ago.

It's good to be home!

That's very strange, as our versions are built on the same build (Ubuntu derivative, which is also a fork off of Debian), so you can just follow along in this guide and it will work just as well! I'm sorry you had so many issues, but I am glad they're resolved! Let me know if you have any more issues!

I was thinking about creating a video where I go through this process again, but let me know what you think! This works on (nearly) all flavors of Linux. The steps I've provided will work on Debian (Debian, Ubuntu, Linux Mint, Kubuntu, Lubuntu), while Arch, Fedora, Gentoo, and the others may need some extra work.

Edited by skabooty

Share this post


Link to post
Share on other sites

Since I've been fooling around with one lately and know absolutely nothing about linux other than a few lines i copy and pasted from various websites, what do you think is the likelihood of getting CoH running on the Raspberry Pi. The model I have is the Pi 4B 4Gb version. I run a 32Gb MicroSD and an external drive via USB on it. It is a quad core and currently clocked at 1.8Ghz

 

Share this post


Link to post
Share on other sites
Posted (edited)
22 hours ago, skabooty said:

That's very strange, as our versions are built on the same build (Ubuntu derivative, which is also a fork off of Debian), so you can just follow along in this guide and it will work just as well! I'm sorry you had so many issues, but I am glad they're resolved! Let me know if you have any more issues!

I was thinking about creating a video where I go through this process again, but let me know what you think! This works on (nearly) all flavors of Linux. The steps I've provided will work on Debian (Debian, Ubuntu, Linux Mint, Kubuntu, Lubuntu), while Arch, Fedora, Gentoo, and the others may need some extra work.

I think the first two issues were just me being overly cautious and unfamiliar with Wine and Lutris. The Paragonchat one is odd and could stump a new user of COH but in a fix they could just click on the appropriate COH install.

 

Your tutorial is great. The only reason I used another is you are using a later build and other sites offered easy copy options for the kernel I'm using. I think a video would be a great idea and you could link to the WineHQ and Lutris sites (they have info for other distributions too) and possibly the site I used.

 

I didn't use an installer from Lutris  (https://lutris.net/games/city-of-heroes/) but noticed the Paragonchat issue mentioned:

 

Quote

When run for the first time it will ask for an install directory. You can use what is selected by default.

The Tequila client may have issues downloading some of the other software it can run like paragon chat. This will prevent the play button from appearing. You can by pass that by just double clicking on Homecoming in the navbar to load the game.

After loading the game you might need to hit "Alt-Enter" to change to windowed mode as the resolution may not be supported.

There was a patch today and Tequila installed it properly.

 

I haven't tried going to the beta server but remember some issues with "manifest.cohhc.gg/testing.xml" back when using Windows. I stuck to the old beta manifest then.

 

I did try "Alt-Enter" to change resolution and then resized my window but changed back to full screen and had to reposition all of my game windows. lol. One benefit of Windowed mode was I could check things in the wiki if needed.

Edited by gromartwo

Share this post


Link to post
Share on other sites
Posted (edited)
On 3/17/2020 at 10:04 PM, gromartwo said:

Your tutorial is great. The only reason I used another is you are using a later build and other sites offered easy copy options for the kernel I'm using. I think a video would be a great idea and you could link to the WineHQ and Lutris sites (they have info for other distributions too) and possibly the site I used.

Ah, apologies if you didn't notice them, but I had already linked to both Lutris and Wines' download pages for specific distributions haha.

 

Also, for your mention of being unfamiliar with Wine + Lutris; Lutris is a simplified program launcher, and Wine is the collection of tools that are required to run games.

 

There really shouldn't be any issue with the Kernel, as you can copy + paste the commands I had listed, and it will download the latest versions for whatever build you're using, but that's okay! In the end, I am happy you got it working 😄

 

Yeah, I downloaded my patches as well with no issues, and honestly never had any problems with them!

 

I'm sorry for the late responses, the website doesn't notify me quickly when I get one.

Edited by skabooty

Share this post


Link to post
Share on other sites
On 3/17/2020 at 2:57 PM, kanga2 said:

Since I've been fooling around with one lately and know absolutely nothing about linux other than a few lines i copy and pasted from various websites, what do you think is the likelihood of getting CoH running on the Raspberry Pi. The model I have is the Pi 4B 4Gb version. I run a 32Gb MicroSD and an external drive via USB on it. It is a quad core and currently clocked at 1.8Ghz

 

 

I've checked out the specs of the model you currently have, and compared it to the (old) requirements that I could find for CoH/V. The RPi 4B 4GB SHOULD be able to run it. The CPU is good enough, but I'm unsure about the on-board GPU of the RPi 4B. NOOBS (the version of Debian that they use), is, well, Debian. That alone should enable you to be able to install Wine and Lutris. 

 

I'd love to get my own RPi as I've wanted one for years now, and this would be a good (and fun) experiment to try!

 

Let me know how it works / runs for you!

Share this post


Link to post
Share on other sites
1 hour ago, TrishaTwilight said:

This was great, everything worked and it launched. However, now that I have closed it, how do I get it back?

Lutris or CoH? You just need to re-launch Lutris, then click on CoH and launch it; You can exit out of the Lutris launcher, and also exit out of Tequila once the game is loading 😄 If you are on Gnome, you can just press the Windows (Super) key to search, and just type Lutris and press enter.

 

I'm glad that it helped you out!

Share this post


Link to post
Share on other sites
Posted (edited)

Let us know if you have any luck getting CoH running on the Raspberry Pi. You might have to use qemm to emulate an x86 CPU, since rpi uses an ARM SOC.

AFAIK, qemm is the most efficient way to emulate an x86 on ARM.

 

Someone more capable than I might be able to take the source code and recompile the client for ARM. That would almost certainly let the Pi run CoH, it has done well with other games, at least on the 4GB Pi 4.

 

Personally, I use PlayOnLinux to run CoH on Fedora 31, and it works quite well. But that's on an AMD Ryzen 5 3600, so YMMV.

Edited by DoctorDitko

Share this post


Link to post
Share on other sites
1 minute ago, DoctorDitko said:

Let us know if you have any luck getting CoH running on the Raspberry Pi. You might have to use qemm to emulate an x86 CPU, since rpi uses an ARM SOC.

AFAIK, qemm is the most efficient way to emulate an x86 on ARM.

 

Someone more capable than I might be able to take the source code and recompile the client for ARM. That would almost certainly let the Pi run CoH, it has done well with other games, at least on the 4GB Pi 4.

 

Personally, I use PlayOnLinux to run CoH on Fedora 31, and it works quite well.

That's wonderful to know! I'll have to look into that personally, as I know it HAS the specs to run it, while the only issue may be the onboard GPU.

 

I'm currently finalizing a script I've worked on for a few hours that just checks which version people are using (for Ubuntu / Mint / Pop!_OS") and sets them up with Wine and Lutris.

Share this post


Link to post
Share on other sites

Cool!

I'll try to translate for RPM-based distros like Fedora once you're done.

(I'm stuck working from home for a while, and one of my jobs is to practice shell scripting. I think this qualifies!)

 

Share this post


Link to post
Share on other sites
3 minutes ago, DoctorDitko said:

Cool!

I'll try to translate for RPM-based distros like Fedora once you're done.

(I'm stuck working from home for a while, and one of my jobs is to practice shell scripting. I think this qualifies!)

 

I can add in Fedora 30/31 support real fast if you'd like! It'd just take a little longer to thoroughly test, because I spin up VM's and re-run the script every time to make sure nothing went wrong. I could honestly add support for openSUSE and Arch as well, but for I keep debating on it. What do you think?

Share this post


Link to post
Share on other sites
52 minutes ago, DoctorDitko said:

I'll try to translate for RPM-based distros like Fedora once you're done.

I've got it done now for Fedora 30 / 31 😄 

Share this post


Link to post
Share on other sites
Just now, kanga2 said:

Not sure this is going to work on ARM but i'll give it a shot

 

As long as you can install Wine and Lutris, you can play CoH. If the script doesn't work, look up how to do it (install Wine and Lutris) for your version 😄

Share this post


Link to post
Share on other sites
1 minute ago, skabooty said:

As long as you can install Wine and Lutris, you can play CoH. If the script doesn't work, look up how to do it (install Wine and Lutris) for your version 😄

Well I know Wine isn't an issue. we'll see 🙂

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...