Toribash
Original Post
Linux version server fix
Since none of the linux users have been able to access any rooms, I've edited the executable to use the new server, since that was the only problem with it not working.

hampa shut down the old server that the 3.5 version still used and rendered it unusable.


i386 (32-bit): http://jalis.muistivuoto.net/files/t...86_fix.tar.bz2
amd64 (64-bit): http://jalis.muistivuoto.net/files/t...64_fix.tar.bz2


I sadly can't test if the 64-bit version works as I do not have a 64-bit computer. The 32-bit I tested and it worked perfectly.

To apply it, just extract the correct tarball into the toribash directory that contains the toribash executable. With this you should be able to use the new servers with the 3.5 version.

EDIT: Uh, the 64-bit link was accidentally pointing at the 32-bit version. Thanks to Neoblink for pointing that out, it's fixed now.
Last edited by Jalis; Nov 14, 2009 at 10:28 AM.
i get the following output now. didnt work for me:

Lua script error in file startup.lua: cannot open data/script/startup.lua: No such file or directory
Unable to create OpenGL FSAA screen: Couldn't find matching GLX visual
Trying without FSAA instead
Unable to retrieve login information
Mix_LoadWAV: data/sounds/pain1.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/pain2.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/pain3.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/pain4.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/pain5.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/pain6.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/pain7.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/pain8.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_hit_head1.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_hit_head2.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_hit_head3.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_hit1.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_hit2.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_hit3.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_hit4.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_hit5.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_impact_hard1.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_impact_hard2.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_impact_soft1.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_impact_soft2.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_impact_mini1.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_impact_mini2.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_break_hard1.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_swoosh_hand.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_swoosh_feet.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/body_swoosh.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/footstep.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/menu_click.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/select_player.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/joint_hold.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/button_click.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/fight_alert.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/gameover.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/foul.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/splash0.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/splash1.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/splash2.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/splash3.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/splash4.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/splash5.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/splash6.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/splash7.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/splash8.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/slowdown.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/weapon-hit.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/weapon-clash.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/grading.wav Mix_LoadWAV_RW with NULL src
Mix_LoadWAV: data/sounds/neck_fracture.wav Mix_LoadWAV_RW with NULL src
failed to load texture data/textures//award_igf
failed to load texture data/textures//award_pcformat
failed to load texture data/textures//award_pcgamer
failed to load texture data/textures//award_sga
failed to load texture data/textures//award_slamdance
failed to load texture data/textures//splatt1
failed to load texture data/textures//logo
failed to load texture data/textures//splatt1
failed to load texture data/textures//splatt1
failed to load texture data/textures//splatt1
failed to load texture data/textures/cursor/c1
failed to load texture data/textures/cursor/c2
failed to load texture data/textures/cursor/c3
failed to load texture data/textures/cursor/cf
failed to load texture data/textures/cursor/cb
failed to load texture data/textures/cursor/ch
failed to load texture data/textures/buttons/play
failed to load texture data/textures/buttons/pause
failed to load texture data/textures/buttons/next
failed to load texture data/textures/buttons/prev
failed to load texture data/textures/buttons/rewind
failed to load texture data/textures/buttons/step
failed to load texture data/textures/buttons/step10
failed to load texture data/textures/buttons/ghost
failed to load texture data/textures/buttons/ghost_both
failed to load texture data/textures/buttons/ghost_none
failed to load texture data/textures/buttons/ready
failed to load texture data/textures/buttons/help
failed to load texture data/textures/buttons/talk
failed to load texture data/textures/buttons/up
failed to load texture data/textures/buttons/down
failed to load texture data/textures//indicator
failed to load texture data/textures//av_shadow
init_font_ttf: Error with loading font 0
Failed to load fonts
Last edited by Vox; Jun 9, 2011 at 05:19 AM.
The amd64 Link points to a 386 bin.... i can't test
Please, please fiz that i really wanna play again!!!
Yep, thanks SlipAnc... "read the damn post"
One can only wonder if your previous 4000 posts were as helpful as your last.

If anyone would like to help...

We reinstalled the original application from the installation package and it runs but does not connect. As expected, this is where we started.

Following the original posted instruction, the 386 tarball was downloaded and extracted into /usr/games (where we believe that we found the original executable).
The application now does not work. It tries to create a window but it closes before completing the display. Is there an error log anywhere perhaps?

We are using ubuntu 9.10 desktop.
The file permissions seem ok
-rwxr-xr-x 1 root root 1724545 2009-11-20 20:35 /usr/games/toribash
-rwxr-xr-x 1 root root 1719456 2008-10-02 19:03 /usr/games/toribashorig
The executable files appear to be of the correct type
/usr/games/toribash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped
/usr/games/toribashorig: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped
does the terminal display anything in patricular?
usually it dumps it to the console or to stderr.txt
...
Do:

file /usr/games/toribash;file /usr/games/toribashorig

In the terminal, and post me the result output.
No, unfortunately we are not fixed yet.

yura@yura-laptop:/usr/games$ file toribash
toribash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped
yura@yura-laptop:/usr/games$ file toribashorig
toribashorig: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped

Also did the strings command on both files and a diff on the output and found...
the server IP changes...
> /usr/share/games/toribash
10187c10185
< 66.230.224.102:22001
---
> 66.230.225.250:22001

and that toribash (from update) has
HOME
TORIBASH_DATA
/.toribash
%s%s/

but toribashorig (from installer package) has...
TORIBASH_DATA
/usr/share/games/toribash
/.toribash
%s%s/

Perhaps that is helpful?
Some success!!

I have managed to get the original executable (from the package installer) to connect to the new server by using a hex editor to change the server IP address in the original binary file to the new value which is 66.230.224.102:22001

For anyone who wishes to try this, the program used was GHex and the approximate offset of the IP address in the file is 0017232C. I worked on a copy of the original toribash executable in my home folder and afterwards, moved it to /usr/games. I also had to change the edited file to be executable and it's ownership to match the original as shown below.
yura@yura-laptop:~$ sudo mv toribashorig /usr/games/toribash
yura@yura-laptop:~$ ls -la /usr/games/toribash
-rw-r--r-- 1 yura yura 1719456 2009-11-21 10:53 /usr/games/toribash
yura@yura-laptop:~$ sudo chmod ugo+x /usr/games/toribash
yura@yura-laptop:~$ ls -la /usr/games/toribash*
-rwxr-xr-x 1 yura yura 1719456 2009-11-21 10:53 /usr/games/toribash
-rwxr-xr-x 1 root root 1724545 2009-11-20 20:35 /usr/games/toribashnew
-rwxr-xr-x 1 root root 1719456 2008-10-02 19:03 /usr/games/toribashorig
yura@yura-laptop:~$ sudo chown root /usr/games/toribash

I am still intrigued as to why the supplied patch did not work for me.
Just found this
Heh, I was using the un-patched version. Just used /co <ip><port> to connect to the "rooms". Just downloaded this will try it.

*EDIT* Tried it and it likes to drop randomly. Switched back to the other one, more stable. No problem for me to type in the transfer / connection.
Last edited by Gulain; Jan 9, 2010 at 06:34 AM.
Another thing to add in:
Was having troubles with downloading of textures it seems, whipped up a command line hack to compensate. I started a different thread in reference to it. Probably should of posted here?
./toribash 2>&1 | sed -n 's/.*http/http/p' | awk '{ system("wget " $1 " -O " $2) }'
It takes the stderr output redirects to stdout pipes into sed which then strips the junk at the start of the line and prints only the lines with the http info. Then pipes into awk which takes the first and second parts of the line (the http address and the location/name of the texture) and uses wget to download it.

I will try to find a better way to do this, but that is a first run that works.