Toribash
Original Post
[DISC] Deciphering Protocol
TORIBASH 30
ID 66483
NEWGAME 1;1000 70 15 0 0 3 80 1 1 classic 0 0 100 0 0 0 1 0 2 0 0 0
DESC 0;Beginner::Judo
CLIENTS 0;Corrupt	DanceDanceRevolution	arth	betula	LyokoJames	PatrickL	
SAY 0;Go to the forum and then torishop to customize your character and spend your toricredits.
INFO 6;10 1
SAY 66451;Corrupt: that was my leg? :)
SAY 66483;PlayerID66483: Thanks, guys.

SAY 66418;DanceDanceRevolution: yeah
SAY 66418;DanceDanceRevolution: no probs
DISCONNECT 66478;PatrickL disconnected. quit game
BOUT 0; 66418 1527 548 1 5 1 DanceDanceRevolution 0
BOUT 1; 66471 3 0 0 0 1 betula 0
BOUT 2; 66432 1126 4852 0 2 1 arth 0
BOUT 3; 66461 132 918 0 1 1 LyokoJames 0
BOUT 4; 66451 1097 559 0 2 1 Corrupt 0
BOUT 5; -1 0 0 0 0 END 0
SPECS 0;
SAY 66483;PlayerID66483: You guys are doing a great job helping me figure out the protocol for Toribash.

SAY 66418;DanceDanceRevolution: is that... sarcasm?
BODCOL 0;0 0 1 34 2 34 3 0 4 0 5 34 6 0 7 0 8 34 9 0 10 0 11 0 12 0 13 0 14 0 15 0 16 0 17 0 18 0 19 0 20 0 
GRADCOL1 0; 0 0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 0 10 0 11 0 12 0 13 0 14 0 15 0 16 0 17 0 18 0 19 0 20 0
GRADCOL2 0; 0 0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 0 10 0 11 0 12 0 13 0 14 0 15 0 16 0 17 0 18 0 19 0 20 0
ITEM 0;34 0 43 0 36 36 0 41
BODCOL 1;0 0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 0 10 0 11 0 12 0 13 0 14 0 15 0 16 0 17 0 18 0 19 0 20 0 
GRADCOL1 1; 0 0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 0 10 0 11 0 12 0 13 0 14 0 15 0 16 0 17 0 18 0 19 0 20 0
GRADCOL2 1; 0 0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 0 10 0 11 0 12 0 13 0 14 0 15 0 16 0 17 0 18 0 19 0 20 0
ITEM 1;0 0 0 0 0 0 0 0
NEWGAME 1;1000 70 15 0 0 3 80 1 1 classic 0 0 100 0 0 0 1 0 2 0 0 0
BOUT 0; 66418 1527 548 1 5 1 DanceDanceRevolution 0
BOUT 1; 66471 3 0 0 0 1 betula 0
BOUT 2; 66432 1126 4852 0 2 1 arth 0
BOUT 3; 66461 132 918 0 1 1 LyokoJames 0
BOUT 4; 66451 1097 559 0 2 1 Corrupt 0
BOUT 5; -1 0 0 0 0 END 0
SPECS 0;
SAY 66483;PlayerID66483: Thus effectively making it possible for me to-

SAY 66483;PlayerID66483: No.

SAY 66418;DanceDanceRevolution: k cool
GRIP 0;1 1
GRIP 1;0 0
JOINT 0; 0 1 1 2 2 1 3 1 4 2 5 3 6 2 7 2 8 3 9 3 10 1 11 3 12 2 13 4 14 1 15 1 16 1 17 1 18 2 19 4
JOINT 1;
BREAK 0;14 10
P_ENV 0;P_POS 0;þÿõ·ûÿ€
SAY 66418;DanceDanceRevolution: i just like didnt know we were doing anything
SAY 66483;PlayerID66483: Making it possible for me to make a proxy to give the Toribash client more features.

BOUT 0; 66418 1527 548 1 5 1 DanceDanceRevolution 0
BOUT 1; 66471 3 0 0 0 1 betula 0
BOUT 2; 66432 1126 4852 0 2 1 arth 0
BOUT 3; 66461 132 918 0 1 1 LyokoJames 0
BOUT 4; 66451 1097 559 0 2 1 Corrupt 0
BOUT 5; -1 0 0 0 0 END 0
SPECS 0;
SAY 66418;DanceDanceRevolution: cool, like?
BOUT 0; 66418 1527 548 1 5 1 DanceDanceRevolution 0
BOUT 1; 66471 3 0 0 0 1 betula 0
BOUT 2; 66432 1126 4852 0 2 1 arth 0
BOUT 3; 66461 132 918 0 1 1 LyokoJames 0
BOUT 4; 66451 1097 559 0 2 1 Corrupt 0
BOUT 5; -1 0 0 0 0 END 0
SPECS 0;
GRIP 0;0 0
GRIP 1;0 0
JOINT 0; 0 3 1 2 2 3 3 3 4 3 5 3 6 3 7 2 8 2 9 3 10 3 11 3 12 3 13 3 14 1 15 3 16 3 17 3 18 3 19 3
JOINT 1; 14 2 16 2
WORLD 99;1 1
LOST 99; 1 1 1.059997 0.328473 -0.028867
WIN2 99;2 0 -1 -1 1 10600 29273 22381 3707 0.991811 -1.647330 -0.008533 1.059997 0.328473 -0.028867 0
BOUT 0; 66418 1528 548 2 5 1 DanceDanceRevolution 0
BOUT 1; 66432 1126 4852 0 2 1 arth 0
BOUT 2; 66461 132 918 0 1 1 LyokoJames 0
BOUT 3; 66451 1097 559 0 2 1 Corrupt 0
BOUT 4; 66471 4 0 0 1 1 betula 0
BOUT 5; -1 0 0 0 0 END 0
SPECS 0;
BOUT 0; 66418 1528 548 2 5 1 DanceDanceRevolution 0
BOUT 1; 66432 1126 4852 0 2 1 arth 0
BOUT 2; 66461 132 918 0 1 1 LyokoJames 0
BOUT 3; 66451 1097 559 0 2 1 Corrupt 0
BOUT 4; 66471 4 0 0 1 1 betula 0
BOUT 5; -1 0 0 0 0 END 0
SPECS 0;PlayerID66487
Okay, let's get to work! >>
Last edited by Jok; Dec 12, 2007 at 09:50 PM. Reason: fixed code tag
you wrapped your code tags with quote tags

Anyway, Seems pretty easy to decipher tbh.
At the top it states your TB version (i think).
Then your ID.
then the Server Settings.
then the server name.
then the clients connected.
I think the next line is the welcome message.
The line after that is... erm getting info on something.
Then there is in game chat.
Then a disconnect.
Then where the players are in the list.
Then states the spectators?
More Speech.
Then some body colours.
Then it states that there is a new game
It updates the bout list
More speech.
Grab properties.
Joint states.
Breaking of joints

and so on
Last edited by Blam; Dec 12, 2007 at 08:42 PM.
:D
Is this what gets sent to the client?
I'd love to help decipher this, but I don't know how much I can do :P

How did you get the output anyways, just connect via telnet or something?
<+veb> dude___________________._____________________<hampa> the hosting center decided to raise the price
<+veb> I am to durnk to pu6t in the wriute commmand lol ___<hampa> and we only run irc on this machine which is a bit of a waste
<+veb> and u suxc u cant od it gfro me ______|______._____<Lapsus> How much power is behind the IRC server?
<+veb> ;oml?________________________________________<hampa> it is like delivering pizza using an airplane
Easy smeezy.

I've used telnet to speak on TB before anyways.

TB version.
Your client ID.
The game definition line.
People connected right now.
Say (userid); text. (0 is server)
Info: Not sure.

I'd do more, but I don't feel like it right now.
Squad Squad Squad lead?
The standardization of Toribash Squad roles may have gone too far!
Okay, so is the userid static or does it change with each server? Or does it change each time you launch Toribash.

I'm also having trouble keeping the proxy program I made connected to the client. Basically, I added 127.0.0.1:6666 to the servers.txt. My program opens a socket on port 6666, and listens. I launch Toribash and connect to my program through the multiplayer window. It then launches opens a new socket that connects to one of the toribash servers.. In this case, judo. The program then sends the data back and forth between the two sockets.
The ID is the number of clients before you to connect to that server plus one.

It changes any time you touch a server, basically.
Squad Squad Squad lead?
The standardization of Toribash Squad roles may have gone too far!
It's easy, until they quit from the server.
Squad Squad Squad lead?
The standardization of Toribash Squad roles may have gone too far!
I get close to 20 errors.
凸[◣_◢]凸 PRAISE LID 凸[◣_◢]凸 FUCK THA HATERS 凸[◣_◢]凸 PUT THIS IN YO SIG IF U DOWN 凸[◣_◢]凸
You can telnet the toribash servers? Hmm... I may have to do some messing with version 2...
"She stole my virginity!"---"Well you weren't using it..."
Ich bin muede. Ich brauche einen Feieren...