Skip to content

Instantly share code, notes, and snippets.

@kkszysiu
Last active June 24, 2021 03:52
Show Gist options
  • Star 17 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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!
@dhollinger
Copy link

It no longer works. I'm on Ubuntu 15.10 (optimus laptop running nvidia-prime) and when I place the SDL2 library files I get the following error:

Could not initialize SDL Video: No available video device

@mickeylyle
Copy link

@kkszysiu I am having the same issue as @dhollinger, any chance it's fixable? :/

@dhollinger
Copy link

@mickeylyle - I found this fixed the issue:

sudo apt install xorg-dev

@mickeylyle
Copy link

Seems that if these libs are giving you the "no available video device" doing sudo apt install xorg-dev fixes that. Would be good if we could figure out which dependency fixes it though, so we don't have to install all of them?

@dhollinger in case this helps you ^

@mickeylyle
Copy link

@dhollinger lol hello

@ainus64
Copy link

ainus64 commented Apr 23, 2016

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.

@inukaze
Copy link

inukaze commented Jun 16, 2016

Someone have a Spanish Translation MOD , working 100% with GNU/Linux native clients for 32/64 Bits ???
Thank you.

Or if not , someone can tell me some tool for make translation manually and work with this version of Torchlight ???

@effelle
Copy link

effelle commented Dec 2, 2016

Some one know how to resolve the bug of headless characters? I'm on V1.15 (2012-09-26).

@templalizer1284-zz
Copy link

Thanks! Works on Gentoo with dwm.

@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