Linux Guide

From Totem Arts Wiki
Revision as of 17:00, 11 December 2018 by Testman (talk | contribs) (Initial posting of installation guide for Linux and other relevant information)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

While Renegade X provides only release for Microsoft Windows, it is possible to get it running on GNU+Linux systems. This guide aims to be as simple as possible, but in it's current form still relies on you knowing some basics about command line interface.

Required Software

To get Renegade running on Linux, some software must be installed in order to provide the dependencies that it needs to run.

Renegade X

In the current state guide assumes that you have full release downloaded and extracted.

WINE

WINE is a compatibility layer that allows software written for Windows to run on Linux. It should be available in your distribution's repository, meaning that you should be able to easily install it on your system through your distribution's software center / package manager. There exists a community maintained tracker of what software runs in WINE and how well, named AppDB, where Renegade X is already one of existing entries[1].

winetricks

Winetricks is a helper script that provides the means to very easily install various programs or Windows components, many of which are required for Renegade X to work. Follow instructions here to get it working on your system. This guide assumes that winetricks is in your PATH (meaning that you did not just download the script file but that you actually installed it, making "winetricks" one of valid commands in terminal)

DirectX 9 jun2010

Release of DirectX that will be required in one of the steps of installation process. It can be downloaded here.

Installation process

Install script

Open new text file, name it renx_setup_script.sh or something, make that file executable by right clicking on it in file browser, opening properties and under "Permissions" check the "allow executing" or something like that. Alternatively, while in terminal use chmod +x /path/to/renx_setup_script.sh to achieve same effect (use actual path to the file of course). After that is done, copy the following into the file:

#!/bin/bash
# used just to get initial wine configuration in case that .wine directory does not exist yet
[[ -d ~/.wine ]] || winecfg 
# assume latest winetricks already installed
# the -q parameter supresses all the GUI warning dialogs, which there are *A LOT* during this process
winetricks -q corefonts
winetricks -q vcrun2008
winetricks -q vcrun2010
winetricks -q xact
winetricks -q d3dx9_43
winetricks -q d3dx9
# d3dx9 set WINE to identify as Windows 2003, so switch back to to Windows 7 so that dotnet452 installation works
winetricks -q win7
winetricks -q dotnet452
winetricks -q win7

Now save file and run it, preferably in the terminal by being in the directory that contains the file and running ./renx_setup_script.sh This will take some time, and there will be a lot of text displayed in the terminal. Script is finished executing when you see that command line prompt is back (meaning that new text has stopped and you see the blinking cursor again).

Configuring components

After install script is finished you should be able to start Renegade X, but most likely it will freeze every few minutes because of some issue with WINE's implementation of xaudio2. You'll resolve that issue by opening WINE configuration (command is winecfg) and under Libraries tab finding xaudio2_7 on the list (should be at the bottom of the list), click on it, then click "Edit..." button and set it so that it uses ONLY native (Windows) implementation instead of the WINE built-in one.

After that you might notice that game does not crash any more, but has absolutely no sound. That is because the native Windows DLL files that should be used to produce audio do actually not exist. You resolve this issue by finding the extracted files of DirectX jun2010 and using WINE to run the installer (DXSETUP.EXE) and follow the installer instructions.

Running the game

If everything is set up correctly, you should be able to start the game directly by being in the Renegade-X-Open-Beta-5.xxx/Binaries/Win32 directory and running the command wine UDK.exe As Renegade X provides also 64 bit game executable, you can also run it by being in Win64 directory instead of Wind32 and running wine64 UDK.exe Additional parameters are also accepted, so it is possible to use, for example, -nomovies to skip intro by using wine64 UDK.exe -nomovies command. See full list here

Troubleshooting and bug reporting

Please don't bother Renegade X developers with questions about the installation process or bug reports for issues that are present only when running Renegade X in Linux. For now it is probably best to keep the discussion in this forum thread.

Server

While server does not have any graphical interface, it still requires X.org to start, meaning that it can not be ran on server that does not have graphical interface but only command line. To be specific, it can not run on bare metal in such setup, but it is possible to set up virtual machine that has graphical interface and run the server in there.

Potential improvements

Proton

Proton is the compatibility layer that Valve helped develop and maintain. It is used in Steam to provide option of running games that do not have native Linux client. Proton uses WINE, DXVK and many other improvements to achieve better game performance than just WINE by itself. It should be possible to get Renegade X run with Proton, but so far there are no reports of anyone doing it successfully. Best option to get this done is probably Lutris, as it can use Proton as one of the "runners".

Lutris

Lutris is open gaming platform for Linux that servers as a sort of aggregator. It aims to provide easy way to install and manage games on Linux. It has potential to make process of getting Renegade X to run on Linux much more easy. This would be achieved by writing an "installer" that would automate the installation process that is described in this article.


Tested distributions

Renegade X has been so far successfully ran in Fedora 28 and Fedora 29, and on WineHQ's AppDB there are various other reports of Renegade X running in different distributions.