HELP PLEASE, i dare want to play ToME on linux ^^

Everything about ToME 4.x.x. No spoilers, please

Moderator: Moderator

Post Reply
Message
Author
Ptikev
Posts: 4
Joined: Mon Mar 24, 2014 3:53 am

HELP PLEASE, i dare want to play ToME on linux ^^

#1 Post by Ptikev »

Hello, first sorry if that's not the right place to post this, i did see the "dumb questions" section but didn't find the "ubuntu noobs help" section ;-).

I changed my laptop's OS to Ubuntu 14.10, and for a first "linux gaming" experience, i wanted to try ToME on it. I downloaded the archive, unzipped it, clicked the "t-engine" executable, nothing happened. Now, before going further i tell it now : it's the first time i use linux, and i had to give it a try because i'm gonna use it in my formation. But even if EVERYONE told me "you have better control of what your PC does and things are more simple with Linux" so much times, for now i just feel like everything i want to do that i was able to do on W7 takes me more time to do (when i even find the trick).

So, i opened a terminal, had a "cd" to ToME's folder, then a "sudo ./t-engine". The terminal the laugh at me and returned :
"...
libgcc_s.so.1 must be installed for pthread_cancel to work"

EDIT: don't know if needed, but here is the complete log :

" ptikev@ptikev-ThinkPad-R61e:~$ ls -F
Desktop/ Pictures/ Videos/
Documents/ Public/ VirtualBox VMs/
Downloads/ sources.list VisualBoyAdvance.cfg
examples.desktop Templates/ vsftpd_3.0.2-1ubuntu2.deb
Firefox_wallpaper.png t-engine4-linux64-1.2.5/
Music/ Ubuntu One/
ptikev@ptikev-ThinkPad-R61e:~$ cd t-engine4-linux64-1.2.5/
ptikev@ptikev-ThinkPad-R61e:~/t-engine4-linux64-1.2.5$ sudo ./t-engine
[sudo] password for ptikev:
WebCore config: library(/home/ptikev/t-engine4-linux64-1.2.5/lib64/libte4-web.so) spawn(/home/ptikev/t-engine4-linux64-1.2.5/cef3spawn64)
Loading WebCore: Failed loading /home/ptikev/t-engine4-linux64-1.2.5/lib64/libte4-web.so: libudev.so.0: cannot open shared object file: No such file or directory
[CPU] Detected 2 CPUs
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:947:(find_matching_chmap) Found no matching channel map
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
libgcc_s.so.1 must be installed for pthread_cancel to work
ptikev@ptikev-ThinkPad-R61e:~/t-engine4-linux64-1.2.5$ "

So i typed it in google, and when i saw it was a known bug i first thought "Cool, i'm gonna play my game on this odd system in a few minutes". Pff... I didn't knew the power of the dark side ! :)

As a it's a solved common bug i followed the instructions given here :

http://ubuntuforums.org/showthread.php?t=2218804

But the fix seems not to work for me: when i do the last : "sudo service vsftpd restart" the terminal says me :

stop: Unknown instance:
start: Job failed to start

So i tried something else :

ptikev@ptikev-ThinkPad-R61e:~$ cd t-engine4-linux64-1.2.5/
ptikev@ptikev-ThinkPad-R61e:~/t-engine4-linux64-1.2.5$ sudo dpkg -i vsftpd_3.0.2-1ubuntu2.deb
(Lecture de la base de données... 212811 fichiers et répertoires déj? installés.)
Préparation du dépaquetage de vsftpd_3.0.2-1ubuntu2.deb ...
Dépaquetage de vsftpd (3.0.2-1ubuntu2) ...
dpkg : avertissement : vsftpd : le fichier de configuration « etc/systemd/system/vsftpd.service » n'est ni un vrai fichier ni un lien (= « /dev/null »)
dpkg: erreur de traitement de l'archive vsftpd_3.0.2-1ubuntu2.deb (--install) :
impossible d'ouvrir « /etc/systemd/system/vsftpd.service.dpkg-new »: Aucun fichier ou dossier de ce type
Traitement des actions différées (« triggers ») pour man-db (2.7.0.2-2) ...
Traitement des actions différées (« triggers ») pour ureadahead (0.100.0-16) ...
Des erreurs ont été rencontrées pendant l'exécution :
vsftpd_3.0.2-1ubuntu2.deb
ptikev@ptikev-ThinkPad-R61e:~/t-engine4-linux64-1.2.5$

And that's where i am now.

If anyone has a tip so i can take ToME with me to the formation for lunch time, that would be very nice i'm slowly desperating...

Thanks by advance for your help ^^

mikekchar
Halfling
Posts: 95
Joined: Fri Nov 21, 2014 3:55 am

Re: HELP PLEASE, i dare want to play ToME on linux ^^

#2 Post by mikekchar »

First, let me say that I understand your frustration in trying a new system. When things don't work right, you often think, "I should just go back to what I had". But I think it is definitely true that you have more control with a free software system. With a free software system, everything is possible and you have total control. The problem is that everything is possible, so there is a *lot* to learn! Even after using GNU/Linux since nearly the beginning (my first system was in 93), I still run into problems that I don't know how to solve. Luckily, there is always a solution -- it's just a matter of how much time you want to invest trying to find it! The Windows experience is quite different. Either it works or it doesn't and if it doesn't work, you're pretty much out of luck. But most things work out of the box because Windows is the primary platform that people test on and it is just more difficult to run a strange setup with it.

Getting back to your actual problem... I noticed that you are running t-engine with sudo. sudo is a program that lets you run with "root" (like administrator) privileges. You might think, "Oh, it's best to have as many privileges as possible", but for security reasons many things are designed *not* to work like that. I am running Linux, but a different distribution (Arch). Indeed, when I run with sudo, I have some display problems (although quite different from yours). Anyway, if you like, please try to run it again without sudo and attach a log here and I will try to find a way to duplicate the problem myself. I'm not a dev on this project (and I'm a relative noob to the game myself), but I've got a lot of Linux experience, so I might be able to track down the problem.

There is another thing you can try yourself. Although I am loathe to suggest a PPA (package repository) that I haven't tried myself, I noticed that GetDeb has a debian package for your system. It might be an idea to give it a try. Take a look at the instructions here: http://www.ubuntuupdates.org/ppa/getdeb ... ist=utopic

So if you go to that page you will see a little grey box with some commands. Copy and paste these into a terminal window. Then run your package manager and update the packages. You should be able to find a package called tales-of-majeyal. Install that and you should be able to run to from your window manager the same way that you run other apps (I forget how Unity works -- I guess you have to search for the application...) Hopefully that will make it all work.

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: HELP PLEASE, i dare want to play ToME on linux ^^

#3 Post by darkgod »

Don't run the game as sudo !! (dont run anything you dont NEED to as sudo)

Also try to remove lib64/libcef.so please see if it helps
(and delete the .t-engine folder in your home if there is any (it's hidden by default) as running sudo will likely have borked its rights)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Ptikev
Posts: 4
Joined: Mon Mar 24, 2014 3:53 am

Re: HELP PLEASE, i dare want to play ToME on linux ^^

#4 Post by Ptikev »

Thank you both for your help ! ^^ Sorry if i answer only now, i was logged but i was sleeping (seems like my brain freezed and had to reboot due to a memory overload of ubuntu basics). :)

- Mikekchar don't get me wrong about linux, it's just my first basic reaction, so as with all new "program" (and many games - e.g.ToME ;) ), i'm gonna continue explore it, try to learn to fully use it, including (not too) advanced functionalitys, and THEN make me a proper opinion about it.

I got your warning against running things sudo, the tutorial i followed to install ubuntu had a "linux basics" section explaining vital commands that said "if one of those commands don't work try do it with sudo" so i tried it on the executable to see if it was making any difference, but it isn't.

I tried run t-engine without the sudo and i got the exact same log, except the (new) last line was : Abandon(core dumped).

I followed your instructions, and looked dummy at my computer something like 10 minutes before i realized it loosed the wi-fi connection, so it obviously didn't download anything (that's my lesson for jump in weird PC things before having a coffee when i wake up, and i do often have such lessons ;) ).

So i had a coffee, had my dogs a trip out for natural purposes and bought cigarettes, then once back home i connected to wifi and refreshed the page and... WHAT THE... (dark)GOD TALKED TO ME !!! ^(yes, for real, don't be jealous) :) :) :) Oh my... i sure must be some kind of chosen one or something ^^ And, obviously, his words were truth and had force law, he told me something, i did it, it took me like 2 seconds, and oh... ./t-engine and the game runs, immediately and without any issue ! The next one i hear saying anything else that good things about Darkgod will be burned to ashes. (here i must ask, can you imagine how little and stupid i felt after having spent like 4 hours on it without finding the solution, which for mor shame was 2 clicks long :( ...)

So once back i saw darkgod's post, i tried what he suggested first (because it was the Word of Darkgod, and because it was shorter and i am a coward lizard ;) and proud of it since it keeps alive), and it worked. So yet i didn't try your solution BUT i did download the .bz2 again and i will erase the whole game's folder and try it...
But after a (gaming) break, since in the last two days i do often feel like Neo plugged on his seat in the first Matrix when Tank is uploading him data disks over and over (and he likes it ! :) ), but unfortunately i am not Neo and even if i like it too i need a break sometimes .

By the way (i use synaptic for packages), what is the command to update packages ? And then i just need a "apt-get install tales-of'majeyal", right ?

- Darkgod i will repeat myself but i really do love your game, it has taken its place in the games i could play over and over through years and finish dozens of other game without loosing any fun to play it, and in my heart are only four others of them : tetris, ocarina of time, age of empire II and FF XII.

I removed libcef.so from lib64, retried to run and it runned, thank you very much but as a young padawan i must ask you : would you mind explain me what i exactly did, and why it made it run ? Sorry for the noobism but it shocked me a bit that it worked regarding the consequences of deleting internal game files on Windows, and i am so that i feel unsatisfied when i do something without really understanding what i am doing. :)

I see the .t-engine in my home folder when i type ls but that puts my second question in : what is the command to delete a folder (that's a very noob question i know, and i guess it's something like delete or del or erase, but i tried the three and it didn't work ^^) and am i right guessing i will have to do it with sudo because it's hidden ?

EDIT: Oh and i forgot to say, i unzipped the tome archive directly in /home/ptikev obtaining a non-hidden t-engine4 folder, is this ok or is there a default/usual specific folder to store program files in ? (like a C:\ProgamFiles(x86) thing).

And finally i have a last question for both of you : i am gonna begin a coding formation in March ( https://www.centrale-marseille.fr/fr/simplonmars ), in the final hope of one day be able to dev half as good as Darkgod does (yes, i am very optimist), so i went to Linux and began to learn C as they suggested us at info meeting, so do you both allow me to bother you with my dumb questions by pm when needed ? and what is the fastest way to ask you something ? (does ToME have a TeamSpeak server ?)

EDIT 2: @Mikekchar i just applied your solution and it aslo worked, thanks, now i can remove the unzipped version. And i also have another question : when i riight-click ToME's icon there is no "Open containing folder" option, where is that app located in ? (in the folder where i should have unzipped the .bz2 ?) And is there a way to see the containing folder of any file/link ?

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: HELP PLEASE, i dare want to play ToME on linux ^^

#5 Post by darkgod »

Thanks for the compliments;)

As for removing it, it removes the ingame browser, so no ingame isntgalation of addons & such for you, but also removes the dependancy on libudev0
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

mikekchar
Halfling
Posts: 95
Joined: Fri Nov 21, 2014 3:55 am

Re: HELP PLEASE, i dare want to play ToME on linux ^^

#6 Post by mikekchar »

@Ptikev: When you install a package that was built especially for Ubuntu, usually it puts files in many different places. Unlike Windows, Unix-like systems (of which Ubuntu Linux is one) have many standard directories. Probably in your course they will go through all of that for you, so I won't bore you with the details now (it would take a long time anyway). Basically, executable files are usually places in /usr/bin and libraries are placed in /usr/lib. Other files often go in /usr/share/something, where "something" is the name of the package.

Having said that, since tome is meant to work all in one directory, the Arch Linux package puts everything in /opt/tome4 and has a small script in /usr/bin that runs the executable, /opt/tome4/t-engine. I do not know where the package you have installed has placed things. However, you can check from a command line with:

dpkg -L tales-of-majeyal

(I think it is -L... it might be -l... try both -- it's been a long time since I used an Ubuntu distribution).

Also, to answer your other question, you can update your package list from the command line with

dpkg --update

To get more information on dpkg (and most other tools), you can use the "man" page.

man <command>

Will often give you more than you ever wanted to know about the command. So for instance

man dpkg

Should give you some help on options.

I'm always happy to help out new programmers, so if you have questions I don't mind answering. PMing me is fine :-)

Stathol
Posts: 1
Joined: Fri Feb 13, 2015 12:13 am

Re: HELP PLEASE, i dare want to play ToME on linux ^^

#7 Post by Stathol »

It looks like you're missing some libraries that ToME needs at runtime. If you install software using apt (i.e. using apt-get, aptitude, or synaptic on Ubuntu), dependencies are sorted out and installed automatically for you. There is no package for ToME in the official Ubuntu repositories for 14.10, though, so installing in-repo isn't an option.

Option A: figure out and install the dependencies yourself.

This usually isn't too complicated. Run the binary (t-engine) from a terminal so that you catch any output to stdout or stderr. If it complains about not being able to find "libfoo.so.7", there's probably a package called libfoo7 that you can install to resolve the issue ("sudo apt-get install libfoo7"). Shampoo, rinse, repeat until it runs.

Option B: look for a 3rd party repo that provides a package

There happens to be one for ToME on Ubuntu 14.10:

http://www.playdeb.net/updates/Ubuntu/14.10

Go through their instructions for adding the PlayDeb games repo to your apt sources and then you can just install tome with "sudo apt-get install tales-of-majeyal". This has the advantage that whenever you run "apt-get update", it will also update ToME. However, it also means that you're trusting an unofficial 3rd party to install arbitrary code on your computer. In this case, that's probably okay, but it's something to be aware of.

Option C: Download ToME yourself and "steal" the dependency list from the 3rd party repo so that you don't have to figure it out

I've already checked out their dependency list, and this command *should* install everything that you need to make ToME run on Ubuntu 14.10:

Code: Select all

sudo apt-get install libc6 libgcc1 libgl1-mesa-glx libglu1-mesa libopenal1 libpng12-0 libsdl2-2.0-0 libsdl2-image-2.0-0 libsdl2-ttf-2.0-0 libvorbisfile3
Footnote

I noticed that it's also complaining about libudev.so.0. The libudev0 package has been discontinued in Ubuntu for several versions (superceded by libudev1). I'm not sure whether this is a critical issue. If it won't run properly without libudev0, you're kind of SoL as far as using the precompiled binaries from te4.org. In that case, I'd recommend just using the 3rd party repo. You could build it from source yourself, but then you'd have to figure out how to install the build environment and all of the build dependencies. To be honest, that's not really something I'd recommend for a new user. If you really insist on doing this, then at a bare minimum you'll need:

Code: Select all

sudo apt-get install gcc premake
You'll also need all of the dev packages for any external libraries that the source code uses. These packages provide the import library that the compiler needs to generate an executable that links against that library at run-time. For instance, since we know it links against libopenal, you'll likely need to install the "libopenal-dev" package.

Teber2
Halfling
Posts: 105
Joined: Fri Sep 17, 2010 11:49 pm
Location: somewhere in the Netherlands

Re: HELP PLEASE, i dare want to play ToME on linux ^^

#8 Post by Teber2 »

as to deleting something hidden. it can be done in gui after making hidden files visible by the key combination CTRL + h or the menu option. after which it can be done in the usual way.

as to terminal commands: the ubuntu community is quite excellent in providing online documentation. moreover the fora are just as excellent. i recommend using this excellent service, which has been of great use to me for years. where i depend on the docs in english. not sure how much there is in french, though.

have many happy hours with linux!
if everything's coming your way, you're in the wrong lane

Post Reply