• The moderator of this forum is jetou.
  • Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.

Other Grabbing battle history in format of replay log while battle is on-going

I wanted to see how would I grab the data of a *currently* active battle as a battle log format like the ones in replay.pokemonshowdown.com? For example, I want to see if there's a way I can access my current battle as log form while the battle is on-going. Thanks!
 
It's simple actually, the battle object has a function that return current battle log, I'll give you the actual path once I'm home but you should find it easily

you can trace it from the upload replay button
 
Last edited:
BattleLog.createReplayFileHref(app.rooms[id]) viewerisland where id is the battle id only works client side

you can also do that server side and it should be easier
 
Back
Top