How To Tetris Battle Replays
Hey, I want to write an HTML5 replayer based on simonlc's 'tetr.js'. My first goal is to parse replays on Tetris Friends, particularly ones for Sprint and Ultra. The GameData (that's what they call it) format is the same as for all replays from Tetris Battle (with minor variations per game). For example, is a Battle2P replay from Tetris Friends, and is a Battle2P replay from Tetris Battle. I can successfully replay games using the GameData from either site (using the official Flash-based replayers). It's kind of cool, you can use Ultra replays for each player in Battle2P and pit them against each other (Chocobana's replay almost always wins ).
You can play with friends in Battle 2P, Battle 6P, and Sprint 4P as long as they are: 1. On your Facebook Friends list. Battle - The official multiplayer Tetris game you can play with your friends online! Play Tetris for free today! Join or Log Into Facebook Email or Phone. Tetris Battle replays~. Just a page to keep random replays so that they dont disappear on my wall. Intima Script Torrent on this page.
As you can see, the replay data is very compressed, not nearly as readable as. So, I've been trying to decypher the GameData format.
I know basic details about the structure of the replays. The whole thing is Base64-encoded. Inside that, there's a header that they refer to as the 'TPRHeader', from offset 00-6D. That includes details like the mino style (offset 3D) and the size of the replay portion (offset 04-07), which follows the TPRHeader. The replay portion itself is zlib-compressed, and goes from offset 6E to the end of the GameData. The replay portion is self-contained and includes enough information that it will work with any TPRHeader.
For example, offset 2A-2D of the replay portion is the seed for the bag randomizer. Anyway, I'm a little stuck figuring out the format of the replay portion, and I'm wondering if anyone else has any helpful information I can work with. Posts: 5 Joined: Mon Nov 18, 2013 9:39 am.