Skip to content

Instantly share code, notes, and snippets.

@kkszysiu
Last active June 24, 2021 03:52
Show Gist options
  • Save kkszysiu/247c42dc9fd1d34a70a1 to your computer and use it in GitHub Desktop.
Save kkszysiu/247c42dc9fd1d34a70a1 to your computer and use it in GitHub Desktop.
Torchlight Linux
If you want to play on HumbleBundle edition of Torchlight you need old libSDL2 library.
Someone forgotten about that.
With latests libSDL2 it won't work. You will have issues with mouse pointer.
Cursor will have black outline. You won't be able to click on anything etc.
So I prepared modified libSDL2 lib which will able you to play this game with no issues.
https://drive.google.com/file/d/0B1WBC6JhUyLKZDRrTkxMVzA3S28/edit?usp=sharing
That's those libSDL libs. You need to copy it to lib64 dir where you've installed Torchlight, in my case it was /home/kkszysiu/.games/Torchlight/lib64/
Have fun!
@egroj97
Copy link

egroj97 commented Dec 21, 2018

Works perfectly on Ubuntu 18.04, thank you very much!

@samveen
Copy link

samveen commented Jun 18, 2019

The installer (Nixstaller) checks for dependancies before extracting libs, and if libSDL2 is already installed in your system, it will skip extracting it

Here is a workaround to get the proper version of libSDL2 packaged in the installer.

./Torchlight-2013-05-21.sh --noexec --keep --target ~/torchlight-tmp
tar --strip-components 2 -xJOf ~/torchlight-tmp/subarch deps/SDL2/SDL2_files_linux_x86_64 | tar --strip-components 1 -xJf -

Then, move libSDL2-2.0.so.0 into the /lib64 directory of your torchlight installation.

You can now delete /torchlight-tmp directory in your home folder.

All credits to Nel for share with me this fix.

The extraction from the package works perfectly for Ubuntu-18.04.2

@ainus64
Copy link

ainus64 commented Jul 3, 2020

Update: Tested on Ubuntu 20.04
Here is the libSDL2-2.0.so.0 to Fix Torchlight-2013-05-21.sh

Just Download Torchlight_fix_Missing_libSDL.tar.xz
Unpack and move libSDL2-2.0.so.0 into the /lib64 folder of your torchlight installation.

Here is the FIX > Torchlight_fix_Missing_libSDL.tar.xz

@dhollinger
Copy link

@ainumortis SDL2 file didn't work for me. I still had the original tarball from this post and I've uploaded it to my lutris installers repo: https://github.com/dhollinger/lutris_installers/releases/download/v1.0.0/libSDL2-2.0.so.0.tar.gz

@kalenpw
Copy link

kalenpw commented Jun 24, 2021

Update: Tested on Ubuntu 20.04
Here is the libSDL2-2.0.so.0 to Fix Torchlight-2013-05-21.sh

Just Download Torchlight_fix_Missing_libSDL.tar.xz
Unpack and move libSDL2-2.0.so.0 into the /lib64 folder of your torchlight installation.

Here is the FIX > Torchlight_fix_Missing_libSDL.tar.xz

I can confirm this worked for me as well on Ubuntu 20.04.

Can't believe I'm able to play Torchlight again, thanks everyone!

@kkszysiu
Copy link
Author

Can't believe I've created this gist almost 7 years ago and it's still helpful for people :)

Thanks everyone!

@dhollinger
Copy link

dhollinger commented Jun 24, 2021

Can't believe I've created this gist almost 7 years ago and it's still helpful for people :)

Thanks everyone!

I ended up taking the SDL file and saving it to my Lutris installers github repo releases page. If you install the humblebundle Torchlight version via Lutris, it will auto-pull down the file saving some time :)

Thanks for this work!

EDIT: Awesome, someone updated the installer and put those files in the Lutris DigitalOcean fileserver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment