City of Heroes on Linux
See also City of Heroes on Mac
![](/w/images/8/8d/EdLetter.png)
Homecoming Developers do not support any client bugs on Linux. If an issue cannot be reproduced in a Windows client, Linux specific bugs will be given a form response and closed without resolution. Please use the Homecoming Forums for Linux client support from other users.
Overview
It is possible to run City of Heroes on Linux through a technology called WINE (WINE Is Not an Emulator). By porting the Windows API libraries that City of Heroes uses to Linux, WINE effectively "fools" City of Heroes into thinking that it is actually running on Windows.
Instructions (Homecoming Launcher)
For sake of brevity, we'll assume you have a working Linux installation that is fully patched. The distro does not matter. Also assuming a 64-bit system and you can replace "usernameGoesHere" below with your Linux username where needed.
- Install Wine Stable using this download page -- https://wiki.winehq.org/Download -- Once there, pick Binaries, and your distribution. Follow the instructions for the Stable branch.
- Once installed the default Wine Prefix (/home/usernameGoesHere/.wine) will be made. It will prompt to install Gecko and Mono. Note that NEITHER library is necessary to run Homecoming: City of Heroes (although Mono will be useful if you wish to use Mids Reborn or other .NET apps later.) Another note worthy of mention -- it is not prompted during setup but you do NOT need to install Visual C++ Runtime at all. Wine handles this requirement automatically.
- Do one of the following (optional):
- Any Graphic Cards new from 2016 onward: Install either Lutris (GUI Launcher, check your package manager) or DXVK (Vulkan Library - https://github.com/doitsujin/dxvk - follow the instructions in the GitHub page using a terminal.) Lutris prepacks the DXVK library and is easier for new users if you don't want to touch terminal too much. Installing DXVK yourself takes up less overhead.
- Ubuntu and NVidia: Open "Additional Drivers" and make sure "Nouveau" is NOT selected. The NVIDIA 440 driver and newer will run City of Heroes (The NVIDIA 340 driver will work if you're on an older card.) For most users this is automatically handled (Pop_OS, etc.) but if the game performs terribly, please check this area before you give up.
- Run the Homecoming Installer. Choose your location on Drive C same as you would in Windows (C:\Games\Homecoming).
As with any file or folder starting with a period, ".wine" is hidden from directory results. (See upper right photo and caption.) Once installation finishes you can run the game from /home/usernameGoesHere/.wine/drive_C/Games/Homecoming/bin/win64/launcher.exe using either Lutris or making a shortcut to the location. (For a Gnome-based distro, for example, it could be as easy as visiting ~/.local/share/applications, then copying an existing shortcut and naming it Homecoming.desktop, and finally edit the new shortcut in a text editor with correct values.)
It is also important to note this procedure is sufficient for a single-user Linux system alone. For a multiuser system, either you need to repeat the procedure for each user (and sufficient disk space is required: 6-12GB per user), or configure permissions to allow multiple users access to the same WinePrefix.
System Requirements
Linux has different system requirements than Windows. For binary video card driver releases City of Heroes will only run on a current video driver that compiles with a Linux Kernel. When NVidia, AMD, or Intel drop driver support for a video card and the kernel fails to compile with the legacy driver in-place, you can no longer play City of Heroes on that system.
There is no specific date when this support ends; it will not be announced publicly when a software upgrade fails. The day that the video driver fails to recompile kernel modules for your current OS is when you need to decide. Possible fixes include:
- Run COH on an older OS instead of on the bleeding edge (ex. choosing Ubuntu LTS over the twice-a-year update distro) so older drivers continue to compile normally,
- Upgrade your hardware (baselines provided below to help in replacement), or
- set up your system to dual-boot to Windows and move your game files to Windows to continue play.
Linux Driver Support
- AMD: Cards older than RX 300 no longer have active driver development. (Current baseline: AMD RX 400/500 and newer.)
- NVidia: Cards older than GTX 500 no longer have active driver development. (Current baseline: NVidia GTX 600/700 and newer.)
- Intel: IGPs with GMA3000 or older are no longer patched. (Current baseline: Intel HD Graphics and newer.)
The above does not mean your older card will not work today. It means if it stops working in the distant future, this may be why.
Must Meet Game System Requirements
System Requirements are the same for a Linux system as they would be for a Windows system: 1 GHz Dual Core processor, 2GB of RAM, a video card capable of OpenGL 2.0/3.0, and 6-12GB free hard drive space. As a generality, if a system would not be able to play City of Heroes using Windows because of the hardware in use there's a good chance Linux won't work either.
ARM Linux
Homecoming Launcher (and more importantly the City of Heroes client) is not compiled for ARM. Wine will not run HCLauncher on an ARM system without a Software Emulator for X86 apps. Single-Board Computers (Raspberry Pi and variants, all use Broadcom) as well as Chromebook ARM chips that either have Linux app support (NVidia Tegra, Rockchip, Mediatek, Qualcomm Kyro or Snapdragon) or have ChromeOS replaced with Linux will not run City of Heroes with Wine alone.
A possible basis to start with would be QEMU, Box64, or a premade setup such as TwisterOS, but the broad swath of ARM systems available will not have sufficient hardware capability to expect useable performance to begin with.
How It Works
Programs that run on Windows do not directly access the hardware in the machine. For example, if a program needs a file from the hard drive, it does not talk directly to the hard drive, but it calls a function in the kernel, which in turn talks directly to the hard drive.
The primary advantage of this type of abstraction is that programs do not have to worry about the hardware-specific details of every device that is installed. Before this level of abstraction was achieved, every program had to have special drivers for every device that might be used. Now, only one set of drivers must be installed on Windows, which can be shared through a common set of functions that Windows provides (called the Application Programming Interface, or API).
A special set of functions may be grouped into a programming library. Such libraries typically handle some specific functionality. For example, there are two primary graphics libraries in use today to program games: Microsoft's DirectX, and OpenGL, an industry-standard graphics library. Since DirectX is a proprietary software library, programs that use it will typically only run on Windows. Since OpenGL has Windows and Linux versions, however, programs that run using this library are much more easily converted between Windows and Linux.
The open source community developed an application called WINE that provides a layer of abstraction between Windows programs and the system they're running on by taking the place of the Windows kernel and API. Among other things, it implements much of the DirectX library (converting the 3D parts to OpenGL). When WINE is installed on Linux, programs that use DirectX may be able to run, because they believe they are calling DirectX functions, and those functions work similarly under Linux and Windows.
City of Heroes in particular already uses OpenGL for its 3D graphics (while using DirectX primarily for input), which gives it a performance advantage when running through WINE.
Primer
- WINE - Wine is Not an Emulator.
- The app compatibility layer that can be optionally installed on *nix systems (Linux, including Debian, Fedora, and FreeBSD variants, Android and MacOS under the Darwin project) to allow x32/x64 Windows apps to run at close-to-native execution. Wine includes libraries, system files, and enough of a Windows filesystem to fool most Windows apps into thinking they're running on Windows itself.
- OpenGL & Vulkan - Graphics Libraries.
- OpenGL was originally created by Silicon Graphics Inc. as an open source graphics library for game and 3D programming use. Later adopted by the Khronos Group, OpenGL is a legacy standard on most graphics cards, succeeded by the backwards-compatible Vulkan standard. City of Heroes uses OpenGL 2.0 and 3.0 features in the game engine.
- DirectX - Microsoft's Gaming Support Library.
- DirectX since the 2000's has been Microsoft's attempt to unify multimedia features of Windows with performance expectations for PC Gaming. While most games are shedding older versions of DirectX support, City of Heroes remains a DirectX 8 compatible title that is modified to work on newer versions. DirectX also includes Direct Input (an older gaming accessory signaling standard) and Direct3D (Microsoft's approach at OpenGL.)
- DXVK - Linux Direct X to Vulkan Translation Layer
- As graphics cards de-emphasize performance in legacy areas for more current standards Vulkan will receive more improvements over time over OpenGL. DXVK allows a modern graphics card to take current Vulkan support already in place to use on older OpenGL calls for a slight performance increase. (Lutris is a GUI Game Launcher that handles DXVK installation in the same package for you.)
- FUSE - Filesystem in USErspace
- FUSE is Linux's approach at a secure file system for users to save configuration files, run local applications specific to each user, and store data secure from other users on the same system. When you have a WinePrefix installed, it resides in userspace on your home folder. The apps you install and play are only available to you initially (without editing permissions or ownership), and other users will need to install their own WinePrefix as well. This separation prevents one user's Wine apps from affecting another, and adds modularity. (Multiple WinePrefixes can exist per user, such as a work one vs. a home one, separate ones per game, etc.)
- Mesa - Freedesktop open source graphic drivers that are vendor-neutral.
- Mesa graphic drivers are used as the core of most Linux distributions, as they come with the installation regardless of what card you use. Certain cards such as Intel only use Mesa in their core setup and require no other proprietary drivers to work. Others use Mesa as a fallback or safety option when the main driver fails.
- Nouveau - Freedesktop approach at a 100% open source NVidia video driver.
- Nouveau was started in the 2000s as a response to NVidia's open source ambitions at the time. The effort is trying to make a video driver for NVidia cards without reverse engineering their proprietary drivers so it is compatible with GPL and Free Software standards. The downside to the current approach for gaming is Nouveau is aiming for legacy compatibility over new features. While Nouveau may be useable for gaming purposes someday it is not advisable to play City of Heroes using Nouveau at this time.
- Kernel Modules - Linux's approach at hardware driver support.
- A kernel module is a compiled piece of software that "hooks" between the Linux kernel itself and the hardware system calls. Kernel Modules can be compiled when a system updates a hardware driver OR Linux Kernel, causing the Kernel Module to recompile to handle the new instructions on either side. The focus on Free Software and Open Source code means that when a problem is found with hardware, the community has the ability to handle it on their own; when proprietary drivers are used, issues with Linux are 100% up to the hardware manufacturer to solve, which has had middling to low results for Linux users.
Paid Support
Codeweavers
The main sponsor of the Wine Project, Codeweavers, maintains a paid license of Crossover as a Prosumer Wine distribution offering tech support for use. It is important to note two things:
- Paying for Crossover is not required to play Homecoming if you can install Wine on your own, however, it will work if you require paid Tech Support assistance instead of a Community-led forum.
- Crossover's main customer base is business-class users. They will support gaming, but a lot of what Cedega did to simplify gaming use is not built into the application.
External Links
- Linux Advice - Using Homecoming Launcher in Linux.
- City of Heroes/City of Villains entry in the WINE application database.
- WINE, the underlying technology that allows Windows programs to run on Linux
- Paragon Wiki Archive version of this same page