You can sign up to get a daily email of our articles, see the Mailing List page.
We do often include affiliate links to earn us some pennies. See more here.

The sad case of Unreal Engine 1 on Mesa and Linux in 2020

By - | Views: 81,289

One of the great game industry battles of the turn of century was the standoff between Quake III Arena and Unreal Tournament. With both multiplayer focused first person shooters released just weeks apart from one another, that the two games would wind up going head to head was inevitable. If pressed I am always going to have to say I favour the former, but the remarkable thing for us Linux users is that, for a time, both games lived harmoniously under the same publisher.

More than any other developer, Loki Software can be credited with founding the Linux games industry, and with them still riding high at the time, they went on to publish both titles on our platform. More than just popular games, Quake III Arena and Unreal Tournament were also flagships for the engine technology within. Unreal Engine 1 and id Tech 3 would go on to be used in dozens of other titles, some of which would also be ported by Loki Software before their closure in 2002.

While Quake III Arena was granted its place in eternity when its source code was released in 2005, community support for Unreal Tournament was able to breathe some new life into the game, even with the limitations of the closed binary. By 2018 however the game was no longer launching for Mesa users. Due to certain core files being statically linked to an archaic libstdc++ library, the game can only be ran outside of Software mode on the free graphics stack with the use of a hacked Mesa patch.

After spinning my own Mesa packages by use of the Arch Build System, I reinstalled Unreal Tournament using the data from GOG.com and the ut-install-436-goty.run Linux installer. I could now start the game without producing a segmentation fault, and other than some sound quality problems everything seemed to be normal. After installing a third party OpenGL rendererOpenAL audio device, and S3TC textures the game was looking and sounding better than ever before.

 

With my love of a straight bot DeathMatch, it took me a while to discover that changing to any other kind of game mode from the menu would cause the game to crash with a "Signal: SIGIOT [iot trap]" error. This, along with the need to apply Mesa patches in the first place, severely hampers the game for use at my next LAN party. With the Linux versions of Unreal Gold, such as those provided by icculus.org or Unreal 227, also relying on this game to work, that takes them out of contention as well.

As I mentioned before, Unreal Tournament was not the only Unreal Engine 1 game Loki Software worked on. Rune has to be the most fitting port they ever produced, with the company's namesake Norse trickster god even appearing as the archvillain. It was also one of the last ports that Loki Software released before closing down, and as such is just modern enough to make me wince at the fact I am no longer capable of getting it to work.

With a patched Mesa the game launches and renders fine, but you can no longer load your saved games while using OpenGL, meaning you are once again stuck with Software mode. The crackling stuttering audio I encountered with Unreal Tournament is also present here, but is now unavoidable due the game shipping only with its default OpenAL audio device. I tried using some of the alternatives available for Unreal Tournament, but Rune refused to load them.

I remember playing through the whole game close to ten years back when I was still on Fedora and having a good time with it. Rune has a very solid if lengthy campaign with tight controls that plays more like its first person shooter contemporaries than many other third person games did. The developer Human Head Studios would go on to work on the original Prey, which also supports Linux and I have written about previously.

 

If there is one silver lining in all of this, it is that all of these games can be made to work reasonably well with WINE or Proton without the need to fiddle around with Mesa to get them to launch. Performance does suffer if you do not supply an OpenGL renderer such as those by Chris Dohnal, but once properly configured the games can be made to run almost as if they were native applications. I even got a higher frame rate in Unreal Tournament.

Launching them still requires some patience, as they all seem prone to false starts, but once you do get to the main menus all seems to be well. This also allows you to reunite the games with their brethren Deus Ex, which if not for the closure of Loki Software would have become a native Linux title. I can confirm that Rune Gold, Unreal Gold, Unreal Tournament GOTY Edition, and Deus Ex GOTY Edition from GOG.com all can be made to WINE well with a few tweaks.

For an engine with such a pedigree on Linux this outcome is still disappointing. It may just be my pride getting in the way, but there is something special about being able to get the old native binaries to work, especially in the case of Rune where I have it on disc with the full retail packaging. It also makes me wonder how well my modern library of native titles is going to run in twenty years time, and if I will be forced to use a compatibility layer to run some of them too.

According to Ryan Gordon's recent Patreon post, the former Loki Software employee once came close to reviving Rune on Linux in some form but it "slipped through [his] fingers". The source code release of Quake III Arena has allowed it to transcend all the boundaries imposed by time, while its erstwhile adversary begins to languish. For those who value games as more than just ephemera, I can only hope such releases start to become the norm.

UPDATE 1: Since publishing this article a new modified build of Unreal Tournament has come to light. This version has been made to work around the symbol collision with recent versions of libstdc++ which in turn produced the segmentation faults with modern versions of Mesa. I have also been made aware of a Lutris script that allows their package of Unreal Gold to run with Mesa.

Also thanks to adamhm for providing a method that allows all of the Unreal Engine 1 games to start reliably with WINE.

UPDATE 2: The OldUnreal project has released an updated build of Unreal Tournament with the blessing of Epic Games that no longer suffers from the issues mentioned here. More information can be found in this article by Liam Dawe.

Article taken from GamingOnLinux.com.
35 Likes
About the author -
author picture
Hamish Paul Wilson is a free software developer, game critic, amateur writer, cattle rancher, shepherd, and beekeeper living in rural Alberta, Canada. He is an advocate of both DRM free native Linux gaming and the free software movement alongside his other causes, and further information can be found at his icculus.org homepage where he lists everything he is currently involved in: http://icculus.org/~hamish
See more from me
The comments on this article are closed.
52 comments
Page: «3/6»
  Go to:

Ardje Feb 5, 2020
Quoting: Purple Library GuyOK, I don't know anything so this may be bogus, and anyway it's kind of shooting a mouse with an elephant gun, but . . . if worst came to worst, couldn't you run a VM and stick a whole old Linux in it and run the game in that?
This is what Valve is trying to do with the containers. With the added benefit of security.
Ardje Feb 5, 2020
Quoting: lgpmichaelI'm not completely sure that UT was anything to do with Loki. My memory is a bit old and fuzzy from back then, but I do distinctly remember that Tux Games had to sell Windows UT boxes with an installer CD. It was 20 years ago though, so, you'll have to forgive my brain if I'm wrong {;-)
There was only one box, that contained the penguin logo, but only the windows version.
You had to download the real engine and installer from the Loki site.
What tuxgames did was a service to it's customers.
The port was indeed done by Loki, but the distribution was different.
I remember trying to get a deal with a local software supplier to send me 1 linux game every month of their choosing. Online purchases were still a big hassle, as there was no easy way to pay (upon delivery or wiring), so having mandated them to take money of my bank account was the easiest way to go.
Ardje Feb 5, 2020
As a side note: personally I promote making bug free windows games, that perform perfectly on proton.
The linux platform ABI changes a lot, and I consider the windows API is just middle ware.
If we can change that somehow to a platform agnostic middleware, that should be better.
Most old windows games are hard to run on modern windows. You have to know what you are doing (do this, click that, install this, turn off that), while these games are usually running problem free on proton.
So yeah lets keep the API legacy on the windows side for now. There is no proton for windows, so only those that know how to fiddle with windows can run old games.
It does not mean I do not appreciate the work of feral games. They are really dedicated, so I don't expect them to stop supporting old builds.
Liam Dawe Feb 5, 2020
Quoting: ArdjeAs a side note: personally I promote making bug free windows games, that perform perfectly on proton.
The linux platform ABI changes a lot, and I consider the windows API is just middle ware.
If we can change that somehow to a platform agnostic middleware, that should be better.
Most old windows games are hard to run on modern windows. You have to know what you are doing (do this, click that, install this, turn off that), while these games are usually running problem free on proton.
So yeah lets keep the API legacy on the windows side for now. There is no proton for windows, so only those that know how to fiddle with windows can run old games.
It does not mean I do not appreciate the work of feral games. They are really dedicated, so I don't expect them to stop supporting old builds.
It's not a case of Linux APIs changing, it's all about how the games are built. I have plenty of games from 10 years ago on Linux that work without a single issue.
appetrosyan Feb 5, 2020
Quoting: Liam Dawe
Quoting: ArdjeAs a side note: personally I promote making bug free windows games, that perform perfectly on proton.
The linux platform ABI changes a lot, and I consider the windows API is just middle ware.
If we can change that somehow to a platform agnostic middleware, that should be better.
Most old windows games are hard to run on modern windows. You have to know what you are doing (do this, click that, install this, turn off that), while these games are usually running problem free on proton.
So yeah lets keep the API legacy on the windows side for now. There is no proton for windows, so only those that know how to fiddle with windows can run old games.
It does not mean I do not appreciate the work of feral games. They are really dedicated, so I don't expect them to stop supporting old builds.
It's not a case of Linux APIs changing, it's all about how the games are built. I have plenty of games from 10 years ago on Linux that work without a single issue.

Sadly, not many of those games are OpenSource, and it’s only a matter of time when this issue crops up, if the community can’t patch the executable to work with newer libraries. Proton has one big advantage, being a non-ideal solution, it can work with very archaic code and make it work on a modern system.

That said, if possible, let’s have more FOSS games. I really enjoy Quake Darkplaces, and I don’t think that would’ve been possible if I’d tech 1 remained proprietary.
Liam Dawe Feb 5, 2020
Quoting: appetrosyanSadly, not many of those games are OpenSource, and it’s only a matter of time when this issue crops up
Which is as true on Windows as it is on Linux though remember. All games eventually succumb to time, we're just in an interesting position thanks to Wine/Proton that can at times run games Windows 10 now cannot heh.
rea987 Feb 5, 2020
1)
QuoteAfter installing a third party OpenGL renderer, OpenAL audio device, and S3TC textures the game was looking and sounding better than ever before.

What you have linked as OpenGL renderer is same OpenAL. That's a mistake I guess. Is the third party OpenGL renderer the same Stéphan's Kochen OpenGLDrv based on Chris Donhal's enhanced OpenGL renderer?

https://www.pcgamingwiki.com/wiki/Unreal_Tournament#The_game_runs_too_fast

In that case both native and WINE version of UT99 is better run with a FPS cap since it is heavyly affected by CPU speed. I suggest limiting it to 120 via .ini setting pointed at the guide.

2) For native Rune on Linux, I suggest using following scripts and libraries for sound and speeding issues.

https://www.icculus.org/lgfaq/#runeutfast
https://icculus.org/~ravage/

3) For sound on Loki games, I usually switch to OSS to translate to PulseAudio via osspd which returns much more stable results than ALSA nowadays.
docofkult Feb 5, 2020
I have been contemplating doing a retro build for some time specifically for playing the Loki games. However, besides some dabbeling with Red Hat around the turn of the century, most of my Linux knowledge have been gained after Ubuntu came around. My initial idea is to do a close to contempary build with a contemporary OS as to not have to fight issues like described in the article. Hardware will likely be Pentium III and a 3dfx graphics card. Not too sure about which sound cards actually had good support at the time. I would appreciate any suggestions as to which OS to go with and any sound card recommendations.
Purple Library Guy Feb 5, 2020
Quoting: docofkultI have been contemplating doing a retro build for some time specifically for playing the Loki games. However, besides some dabbeling with Red Hat around the turn of the century, most of my Linux knowledge have been gained after Ubuntu came around. My initial idea is to do a close to contempary build with a contemporary OS as to not have to fight issues like described in the article. Hardware will likely be Pentium III and a 3dfx graphics card. Not too sure about which sound cards actually had good support at the time. I would appreciate any suggestions as to which OS to go with and any sound card recommendations.
My personal opinion, if you're going to do an old school Linux, go with Mandrake/Mandriva. They were the king of user friendly before Ubuntu came along. They were I believe the first to do for Red Hat's rpms what apt does for debs. And for someone whose early experience was Red Hat, well, Mandrake was based on Red Hat in somewhat the way Ubuntu is based on Debian.
beko Feb 5, 2020
Quoting: docofkultI have been contemplating doing a retro build for some time specifically for playing the Loki games. However, besides some dabbeling with Red Hat around the turn of the century, most of my Linux knowledge have been gained after Ubuntu came around. My initial idea is to do a close to contempary build with a contemporary OS as to not have to fight issues like described in the article. Hardware will likely be Pentium III and a 3dfx graphics card. Not too sure about which sound cards actually had good support at the time. I would appreciate any suggestions as to which OS to go with and any sound card recommendations.
SB Live 5.1 with emu10k1 chipset worked miracles back then. So much pain saved thanks to beeing able to open it "exclusively" multiple times. Do not confuse with the emu10k tho. That was garbage :D
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
The comments on this article are closed.