Ranking
Original Post
[DISC] Replay player
i'd like to start by saying toribash is an awesome game. i got linked to it a day or two ago and been having fun with it since. a problem i had was replays, it's just not convenient enough. i thought it'd be very beneficial to be able to play replays in the browser instead of having users download and open replays.

i did some digging (more like skimming) to see if anyone's attempted to create their own replay players, but no luck. so i began writing my own. the thread on 'replay hacking' (http://forum.toribash.com/showthread.php?t=19742) saved me a lot of time on dissecting the replay format, but unfortunately i don't think i'll be able to make a proper player since there's a lot of physics involved between frames. though i'm still gonna try, and see how accurately it can be done so one day we'll be playing replays in a browser.

what i ask is for anyone to provide info on the replay format, and i'll start the discussion with what i've figured out (besides the info from the thread):

NEWGAME data:
o = unknown
f = flags (2=DQ when fall out of arena, 3=DQ when fall)

NEWGAME o; frames, frame steps, o, o, o, f, engage distance, o, o, game mod, o, arena size, dismember threshold, fracture threshold, engage height, o, o, o, o, engage rotation angle, o, o

also here's a screenshot of the replay player, it simply draws the positions of the joints in a single frame: http://img246.imageshack.us/img246/9220/replay.png


thanks and happy toribashing
right now my program is written in python using sdl and opengl, but the plan is to make it in flash or similar. here's a replay i found in the replays folder, i had my program render it and spit out images of each frame, and you can play it somewhat smoothly (since the player made an action at least once a frame in low frame step intervals): http://crashedco.com/~crashed/webplayer/webplayer.html


again, i dont think this is going to be plausible to do accurately, but i could churn out a tool that'll help you mimic other people's moves from replays
god we have so many smart people on toribash

very interesting.
i will be watching this in the future
Helge Sverre - System Developer
https://helgesverre.com
Originally Posted by gamerbad View Post
god we have so many smart people on toribash

very interesting.

you are so right ;-)
i ever thought of something like this but i never expected thatsomeone will try it, mainly because, as Crashed said, the replays aren't videos. They are texts which says how the tori have to move and the physic forms in game.

but very nice Crashed. I hope you will be able to end this project. Maybe here are other people who are as genius as you and they may can help you.
Have a Nice Day
http://s12.sfgame.de/index.php?rec=48495 <- funny,german browser game