1. New to the forums? Check out our Mentorship Program!
    Our mentors will answer your questions and help you become a part of the community!
  2. Welcome to Smogon Forums! Please take a minute to read the rules.

Programming Pokemon Online replay player

Discussion in 'Technical Projects' started by Zarel, Aug 16, 2011.

Thread Status:
Not open for further replies.
  1. Zarel

    Zarel Not a Yuyuko fan
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Pokemon Researcheris an Administrator
    Creator of PS

    Joined:
    Aug 16, 2011
    Messages:
    1,757
  2. boezou

    boezou

    Joined:
    Oct 6, 2011
    Messages:
    4
    Life Orb support?

    Hi, I don't know if this has been address already, but it wasn't in the OP and doing a quick scan of the replies, I didn't find anything.

    I was wondering if there was any way for Life Orb recoil to be displayed? I realize that since the logs don't record Life Orb, there may be nothing the converter can do about it.

    as an example:
    http://pokemon.aesoft.org/replay-BAOYU-vs-dzou--2011-09-28

    My Infernape is LifeOrbbed and starting turn 17, my opponents starts to switch around to lifeorb stale me, but my infernape's health bar remains at 100%. Then later, during turn 25, my infernape's life bar still says 100% and then my opponent's Gengar use Shadowball, doing 50%, but my infernape ends up losing all of his life.

    If this has already been addressed, please just say so and i will look more thoroughly through the thread. It'd be cool if there was a list of known problems that can't be fixed yet.
  3. Zarel

    Zarel Not a Yuyuko fan
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Pokemon Researcheris an Administrator
    Creator of PS

    Joined:
    Aug 16, 2011
    Messages:
    1,757
    There's an FAQ near the bottom.

    I've updated it just now, to answer your question:

    Q: Pain Split, recoil, Wish, Life Orb, Stealth Rock, or Leech Seed damage/healing is being calculated incorrectly, and/or, Regenerator and Natural Cure healing aren't working!

    A: You're using a replay from an old version of Pokemon Online, which doesn't contain this information. The replayer tries to guess the best it can, but it can sometimes be off by a bit. Please update to the latest version of Pokemon Online.

    In particular, if Life Orb isn't showing up or Stealth Rock is being calculated incorrectly, you're using a very, very old version of Pokemon Online and should really upgrade.

    There aren't any known problems right now (or, to be exact, all known problems have been fixed), other than the things the FAQ talks about here.
  4. Charizard92

    Charizard92

    Joined:
    Jan 6, 2011
    Messages:
    229
    Just an idea, maybe play the victory/lost theme depending on which you're viewing? If you're submitting it as a spectator, it would play the theme based on what side you're viewing the backsprite of.

    Also, when you watch to the end of a battle, then hit "go to turn x", it still shows all the pokemon as fainted. Probs the same from any point in the battle.

    another idea for spectator battles is to have the camera angle switch so the attacking pokemon is the backsprite. i.e. gengar attacks celibi, gengar becomes the backsprite for the first half the turn. The second half of the turn, celibi attacks gengar, and thusly celibi becomes the backsprite. This is only really useful for spectator battles. It's more of a "when you have time/it would be cool" thing though XD

    great job!
  5. Chispy

    Chispy

    Joined:
    Jun 3, 2009
    Messages:
    199
    Smogon is still on 1.0.23
  6. boezou

    boezou

    Joined:
    Oct 6, 2011
    Messages:
    4
    Okay, that explains it. Thanks for the reply both of you.
  7. Zarel

    Zarel Not a Yuyuko fan
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Pokemon Researcheris an Administrator
    Creator of PS

    Joined:
    Aug 16, 2011
    Messages:
    1,757
    The replay you uploaded was generated by a PO client version 1.0.29 or earlier, so I don't think the Smogon server is, if relevant, the only thing causing your problem.
  8. Pocket

    Pocket Apo, the astronaut's best friend >:3
    is a member of the Site Staffis a Forum Moderatoris a Tiering Contributoris a Contributor to Smogonis a Team Rater Alumnusis a Community Contributor Alumnus
    Doubles Co-Lead

    Joined:
    Dec 22, 2004
    Messages:
    8,580
  9. whitefag

    whitefag

    Joined:
    Jul 1, 2010
    Messages:
    46
  10. Zarel

    Zarel Not a Yuyuko fan
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Pokemon Researcheris an Administrator
    Creator of PS

    Joined:
    Aug 16, 2011
    Messages:
    1,757
    Original replay files aren't filtered at all.

    This could be used to extract cookies, though, which would be bad if I ever moved it onto the Showdown domain. I guess the solution would be to either prevent replay files from being viewable, or start filtering them.

    I'll do one of those when I ever move domains. :/

    Yeah, I wanted to have a feature that let you edit replays, but there wasn't any good way to confirm you were the person who uploaded the original replay.

    Oh, well, it's disabled now.
  11. Alchemist Fullmetal

    Alchemist Fullmetal

    Joined:
    Aug 8, 2011
    Messages:
    32
    Is the site down for anyone else? When I go on it, it shows a blank page with the text double arrow etcetetc error 19000 :/ also, I have PO version 1.0.30 but smogon is still on 1.0.23 Would that affect my replay?
  12. Hawkstar

    Hawkstar Unplug me from this fantasy
    is a Contributor to Smogonis a SPL Winner

    Joined:
    May 23, 2010
    Messages:
    780
    It's down for me too. This specific error shows up:

    Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/aesoft/public_html/pokemon/replays.inc.php on line 19300
  13. AfroThunderRule

    AfroThunderRule *yawn* ez
    is a Tiering Contributor Alumnus

    Joined:
    May 25, 2009
    Messages:
    1,076
    Got the same:

    Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/aesoft/public_html/pokemon/replays.inc.php on line 19300

    How interesting
  14. Zarel

    Zarel Not a Yuyuko fan
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Pokemon Researcheris an Administrator
    Creator of PS

    Joined:
    Aug 16, 2011
    Messages:
    1,757
    Site's back up.

    ...and I do believe I've identified a brony.
  15. Bleeding Heart

    Bleeding Heart

    Joined:
    Sep 19, 2011
    Messages:
    14
    All right, here's a feature request that should be pretty easy to implement. Can the total number of turns in a given replay be displayed next to the current turn (ie Turn 28/35)? It would be nice to know, since there isn't a description in the big list, if what I'm watching is a 6-0 sweep or a stall fest.
  16. MaestroXXVI

    MaestroXXVI

    Joined:
    Jun 20, 2011
    Messages:
    202
    Small glitch: if you watch partway through a replay and reset, the pokeballs of the pokemon who had fainted stay faded.

    Afaik it occurs on any replay.
  17. Bleeding Heart

    Bleeding Heart

    Joined:
    Sep 19, 2011
    Messages:
    14
    Another bug: this replay has someone trolling with Assist, setting up three layers of Spikes and Stealth Rock, then Assisting Whirlwind and Roar. Problem is, if a monster is KO'd by entry hazard damage when it's dragged out, its sprite will stay on the field. By the end of the replay Jirachi, Politoed and Reuniclus are standing on top of each other. It looks like this is just a graphical glitch though.
  18. Bruno Magno

    Bruno Magno

    Joined:
    May 15, 2011
    Messages:
    744
    That's a really useful program, if a log has 20+ turns, for me, is too long, but see a video is sooo cool

    I have only three suggests, on graphic side
    1. Better pictures for Stealth Rock, it looks like crap :E
    2. Writing, under Turn x, Sand Stream / Drought / Drizzle / Snow Warning activated, in my opinion is better than only Sandstorm / other
    3. The pokeball of a poke with a status should be colored with red / purple / yellow / other

    Again, that's a really useful way to see battles, congratulations to who created it :)
  19. Zarel

    Zarel Not a Yuyuko fan
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Pokemon Researcheris an Administrator
    Creator of PS

    Joined:
    Aug 16, 2011
    Messages:
    1,757
    I fixed that in Showdown, but apparently forgot to fix it in the replay player. FIXED.

    This is a PO bug, incidentally - it puts the messages in the wrong order:

    Cara fainted!
    Cara was dragged out!

    I think the replay player did quite well in assuming a different Cara was dragged out than the one that fainted.

    I implemented a workaround, anyway, so this should be FIXED. :P

    Apparently "skip to next turn" causes weird graphics glitches if you click it too many times. TODO: fix that.

    I know. Find me a better picture and I'll use it.

    This makes no sense.

    This has been TODO for a while.
  20. BonPaladin

    BonPaladin

    Joined:
    Jun 28, 2009
    Messages:
    3
    I know you already answered the question, but I did not copy and paste the log, I did correctly save the log like I did with all the others but I still get the, "Error: Replay file must an original Pokemon Online replay file. Copying and pasting replay text into another file will not work." What's wrong?
  21. Zarel

    Zarel Not a Yuyuko fan
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris a Pokemon Researcheris an Administrator
    Creator of PS

    Joined:
    Aug 16, 2011
    Messages:
    1,757
    Could you upload your replay file somewhere, such as MediaFire? I'd like to take a look at it.
  22. Bakerdys

    Bakerdys

    Joined:
    Jul 22, 2007
    Messages:
    2
    I am also getting this problem and it just started today. Any help?
  23. Myzou

    Myzou

    Joined:
    Jan 26, 2009
    Messages:
    43
  24. Lynx_7

    Lynx_7

    Joined:
    Oct 3, 2010
    Messages:
    1
    I am also having the same problem as BonPaladin, Bakerdys and Myzou.
    I get the following messages: "Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpINlqM5' to 'uploads/JohN-vs--Schatten---18-june-2011-at-14h54-1.html' in /home/aesoft/public_html/pokemon/index.php on line 52"

    "
    Error: Replay file must an original Pokemon Online replay file. Copying and pasting replay text into another file will not work."

    However, I am using an original Pokemon Online replay file, and I'm also using the latest version available(1.0.30)
  25. Bakerdys

    Bakerdys

    Joined:
    Jul 22, 2007
    Messages:
    2
Thread Status:
Not open for further replies.

Users Viewing Thread (Users: 0, Guests: 0)