Check out our Monthly Survey Page to see what our users are running.
We do often include affiliate links to earn us some pennies. See more here.

This is pretty fun! Game porter Ryan "Icculus" Gordon has announced that they've picked back up an older project called sdl12-compat, which provides SDL2 compatibility for older software stuck on SDL1.2.

Recently I started back up on an ancient project I never got too far with before, called sdl12-compat. The idea is to provide a binary that looks like SDL 1.2 to the legacy app, but behind the scenes, it loads a real build of SDL2 and lets that do all the hard work, just translating between what the app and SDL2 need.

There's plenty more to the post but that above seemed like a good intro…

An interesting project, one that could take some pain away from old games and applications that are no longer supported or updated. As Gordon notes, it would enable things like Wayland support without an X11 fallback, support other platforms due to the zlib license and so on. One bit that does sound quite exciting, is that it would get older games and applications that were software-rendered over onto the GPU and getting better performance, as well as better fullscreen support and more.

YouTube Thumbnail
YouTube videos require cookies, you must accept their cookies to view. View cookie preferences.
Accept Cookies & Show   Direct Link

Love the Half-Life 3 folder there, blink and you will miss it.

While the use of it will obviously be quite limited, since most things are made with SDL2 now and you would be mad to use SDL1.2 it's still great to have projects like this so nothing is left behind.

See the full post on Patreon.

Article taken from GamingOnLinux.com.
Tags: Game Dev, Misc
29 Likes
About the author -
author picture
I am the owner of GamingOnLinux. After discovering Linux back in the days of Mandrake in 2003, I constantly checked on the progress of Linux until Ubuntu appeared on the scene and it helped me to really love it. You can reach me easily by emailing GamingOnLinux directly. You can also follow my personal adventures on Bluesky.
See more from me
The comments on this article are closed.
All posts need to follow our rules. For users logged in: please hit the Report Flag icon on any post that breaks the rules or contains illegal / harmful content. Guest readers can email us for any issues.
17 comments

Liam Dawe Mar 12, 2019
I'm a bit confused most likely because I'm very uneducated if it comes to SDL ^^"
Why is there any need for a compat tool? If I look up my package manager (YaST - Software Management) I can still install SLD 1.2 for older applications.
SDL1.2 hasn't been actively maintained for a long time, eventually with the switch over to Wayland and so on software using SDL1.2 might not even work.

Everything moves on, SDL2 for example has vastly better multi-monitor support, which is incredibly painful on SDL1.2 (and yes, some games do still use it - One Hour One Life for example).
dubigrasu Mar 12, 2019
A "Half Life 3" folder on his desktop :)
Purple Library Guy Mar 12, 2019
Cool. I wonder if that's relevant to my old Loki games.
Dunc Mar 12, 2019
A "Half Life 3" folder on his desktop :)
That's what happened to it! Valve sent it to Ryan to port to Linux, and he forgot to give it back.
Shmerl Mar 12, 2019
Oh this is great, it might make some AGS games playable.

Isn't AGS using Allegro still? So I don't think it's going to help.
Shmerl Mar 12, 2019
That's a great project, which will help quite a number of not very recent games that aren't updated anymore.
sub Mar 12, 2019
A "Half Life 3" folder on his desktop :)
That little 2-second reveal was just a little bit too convenient if you ask me.

1) middle of video
2) "Oopsie!" (as if R.G. would mess that up before recording...)
2.1) obvious misdirection with icons
2.2) folder matches background color

:P

I can't think of anyone considering this being more than a nice joke. :D
Liam Dawe Mar 12, 2019
A "Half Life 3" folder on his desktop :)
That little 2-second reveal was just a little bit too convenient if you ask me.
Well, yeah :P
Purple Library Guy Mar 12, 2019
I wonder also if there's anything out there to do similar compatibility tricks with old Linux sound stuff, you know like OSS and Alsa and whatever.
rea987 Mar 12, 2019
Well, there's already SDLCL that's exactly do it.

https://github.com/MrAlert/sdlcl

I'm using it daily to force ETQW, Prey (2006) and UT2k4 to use SDL2.
rea987 Mar 12, 2019
I wonder also if there's anything out there to do similar compatibility tricks with old Linux sound stuff, you know like OSS and Alsa and whatever.

osspd, padsp, alsa-oss (aoss)?
Liam Dawe Mar 12, 2019
Well, there's already SDLCL that's exactly do it.

https://github.com/MrAlert/sdlcl

I'm using it daily to force ETQW, Prey (2006) and UT2k4 to use SDL2.
I've no doubt Mr Gordon is aware of this, there will likely be enough differences to warrant a new project. After all, Mr Gordon is one of the main SDL people...
rea987 Mar 12, 2019
I've no doubt Mr Gordon is aware of this, there will likely be enough differences to warrant a new project. After all, Mr Gordon is one of the main SDL people...

Yeah, surely. Besides, SDLCL isn't perfect; it tends to crash on much older games like UT99, Rune; and has unsolved bugs which are recognized by dev but it has been a looong time since the last update. Having a more widely recognized and more actively supported library would be much much better.

I wouldn't doubt that he'll be browsing through sdlcl as well though, because open source is awesome that way.

Indeed it is. :-D
M@GOid Mar 13, 2019
Unreal Tournament 2004 and Enemy Territory: Quake Wars were among the very few titles that I had to play on Linux before Valve came. Too bad there is no Linux support on the available version on GOG or Steam. And ETQW is completely MIA.
rea987 Mar 13, 2019
Thank you very much this clarify the thing.
Now I'm also hyped by this project :D
I do remember the old days where Alt+Tab not working in games :D (Open Arena for example) Very annoying indeed.
Or applications moving my desktop containers/widgets when changing resolution. Never knew this was caused by SLD

There exists a SDL2 branch of OpenArena that you need to compile yourself. It works like a charm.

https://www.reddit.com/r/linux_gaming/comments/2xklb4/psa_you_can_build_openarena_with_sdl2_new_libs/
Shmerl Mar 13, 2019
Isn't AGS using Allegro still? So I don't think it's going to help.
Oh, you’re right, my mistake. I was a while ago that I tried to make AGS games work correctly. Now I just avoid them like the plague.

They really should have switched to SDL 2 a long time ago, and they even planned, but nothing came out of it so far.
Julius Mar 14, 2019
Does anyone know what Ryan is doing with FTE? It's a very cool Quake engine that recently added Half-life 1 support.
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.