1. Welcome to Smogon! Check out the Smogon Starters Hangout for everything you need to know about starting out in the community. Don't forget to introduce yourself in the Introduction and Hangout Thread, too!
  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,920
    Unfortunately, video export is not in my areas of expertise. :( Someone else is welcome to try, though. The rendering code is readable. The converted replays look like this:

    http://aesoft.org/pokemon/uploads/lampeskaerm-vs-Violatic--2011-04-26.txt

    Barring that, I would recommend screen-recording and uploading to YouTube.
  2. Darkaxis

    Darkaxis

    Joined:
    Jun 11, 2011
    Messages:
    710
    it´b SUPER handful for the ones who dont have a emulator I´d be like Blametruth or FlamingSpade

    EDIT:oh well you are doing SO much for us i was pushing it too far.Good Luck friend! :D
  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,920
    By the way, I have a question:

    Currently, I have animated front-sprites, but very few back-sprites are animated. Do you guys think I should switch the replay viewer to using animated front-sprites, and just leave the back-sprites still, or if I should let both of them be still until animated back-sprites are available?
  4. Chispy

    Chispy

    Joined:
    Jun 3, 2009
    Messages:
    199
    I'll put in a query at Veekun about it and see what comes from that.
  5. Mekkah

    Mekkah
    is a Super Moderatoris a Tutor Alumnusis a Site Staff Alumnusis a Smogon IRC SOp Alumnusis a CAP Contributor Alumnusis a Contributor Alumnusis a Smogon Media Contributor Alumnusis an Administrator Alumnus
    Super Moderator

    Joined:
    Feb 8, 2005
    Messages:
    14,081
    This is really well done :)
  6. Z-rex

    Z-rex

    Joined:
    Oct 11, 2010
    Messages:
    357
    This sick .. you'r a genius dude !

    excellent work !
  7. Grimm70

    Grimm70

    Joined:
    Aug 16, 2009
    Messages:
    264
    OMG... I want this guy to have a trophy =p

    Good job man !
  8. Eos

    Eos some people just want to see the world burn
    is a Battle Server Moderator

    Joined:
    Jan 17, 2011
    Messages:
    742
  9. Foster

    Foster

    Joined:
    Jun 6, 2009
    Messages:
    811
    Words fail to describe this.
  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,920
    I've made a lot of updates the past day, so I'm going to describe them (you may need to refresh the replay viewer to see the changes):

    - Stealth Rock damage accounts for type effectiveness now
    - Spikes, Toxic Spikes, Stealth Rock are now visualized
    - Reflect and Light Screen are now visualized
    - Moves that miss will have miss animations

    I've also been spending all my free time fixing bugs - suffice to say if your replay wasn't working before, it's probably working now.

    For those curious, this is what entry hazards look like now: http://aesoft.org/pokemon/replay-test-sandstorm-hail-spikes
  11. Pocket

    Pocket Apo, the astronaut's best friend >:3
    is a Site Staff Alumnusis a Team Rater Alumnusis a Forum Moderator Alumnusis a Community Contributor Alumnusis a Tiering Contributor Alumnusis a Contributor Alumnus

    Joined:
    Dec 22, 2004
    Messages:
    8,564
    Hmm Stealth Rock is still not being super effective on Gyarados and Thundurus... the SR visualization works, though!

    lost hard core

    Here's a shorter one where Conky took normal damage from SR

    won hard core
  12. 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,920
  13. Pocket

    Pocket Apo, the astronaut's best friend >:3
    is a Site Staff Alumnusis a Team Rater Alumnusis a Forum Moderator Alumnusis a Community Contributor Alumnusis a Tiering Contributor Alumnusis a Contributor Alumnus

    Joined:
    Dec 22, 2004
    Messages:
    8,564
    this replayer getting more awesome by the minute - thanks, aeo - it's so fun to re-watch my battles just for the sake of the sick animations, ahaha
  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,920
  15. Seven Deadly Sins

    Seven Deadly Sins ~hallelujah~
    is a Site Staff Alumnusis a Forum Moderator Alumnusis a Tiering Contributor Alumnusis a Contributor Alumnusis a Smogon Media Contributor Alumnusis a Battle Server Moderator Alumnus

    Joined:
    May 29, 2008
    Messages:
    4,267
    Small glitch I noticed. In that log, Skarmory lays down only 2 layers of spikes, but it shows mons switching in as losing 25% of their HP to Spikes.

    Also, instead of saying "2x atk" or "0.7x atk" can you have it just say +2 Atk or -1 Atk?
  16. 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,920
    Oh, I thought Spikes was 12.5% per layer. Bulbapedia tells me I'm wrong. How embarrassing. >_<

    Fixed.

    The reason it's currently "2x Atk" is because I think a newbie user won't know what "+2 Atk" means, while an experienced user can easily deduce that "2x Atk" is two stages.

    I'm open to changing it if there's a good reason, of course. Why do you think it should be changed?
  17. Seven Deadly Sins

    Seven Deadly Sins ~hallelujah~
    is a Site Staff Alumnusis a Forum Moderator Alumnusis a Tiering Contributor Alumnusis a Contributor Alumnusis a Smogon Media Contributor Alumnusis a Battle Server Moderator Alumnus

    Joined:
    May 29, 2008
    Messages:
    4,267
    A couple reasons.

    1: 0.7x Atk for -1 is inaccurate (since it's technically 2/3 or .66 repeating), and that annoys me.

    2: I find plenty of people know what a stage boost translates to, but I personally prefer the stage boost notation simply because that's what's used in the simulator, and while it's easy to translate +2 to 2x Attack (because that's what a player does commonly), the reverse translation is a bit more unwieldy- seeing 2x Attack doesn't instantly read +2 to me, and seeing 3x Attack definitely doesn't translate to +4 (as was the case with an earlier log that I saw on this).

    It's just an aesthetic thing, but it's one that I think works better with the actual stage boost than the multiplier.
  18. Delta 2777

    Delta 2777 Machampion
    is a Tiering Contributor Alumnusis a Contributor Alumnusis the Smogon Tour Season 10 Champion

    Joined:
    Jun 5, 2009
    Messages:
    1,241
    This is awesome!
  19. Chieliee

    Chieliee

    Joined:
    Sep 26, 2010
    Messages:
    1,811
    EDIT: Porygon2 shows up as Porygon.
  20. Tomahawk

    Tomahawk M-I-C-K-E-Y M-O-U-S-E
    is a Team Rater Alumnus

    Joined:
    Oct 2, 2010
    Messages:
    2,277
  21. Nails

    Nails EAST 2014
    is a Forum Moderator Alumnusis a Tiering Contributor Alumnusis a Battle Server Moderator Alumnusis a Past WCoP Winner

    Joined:
    May 14, 2010
    Messages:
    1,607
    This is incredible.
  22. iss

    iss happily ever after
    is a Forum Moderator Alumnusis a Contributor Alumnus

    Joined:
    Jun 5, 2009
    Messages:
    2,094
    Pretty amazing! It seems to say that Dry Skin heals 6%, when it should heal 12.5%.
  23. RedGalaxy

    RedGalaxy

    Joined:
    Jan 13, 2011
    Messages:
    47
    yeah, there are a few problems, like the dry skin thing, and the program isn't sure what a white herb is, but the fact that it has better graphics then PO, and allows you to actually watch the battle, i have to give this thing 2 thumbs up.
  24. 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,920
    Probably fixed. Could you link to a replay to confirm?

    Fixed.

    Could you link to a replay?

    Can you link to a replay with white herb?
  25. Tobes

    Tobes "The absolute strongest reindeer"
    is a Site Staff Alumnusis a Battle Server Admin Alumnusis a Super Moderator Alumnusis a Community Contributor Alumnusis a Tiering Contributor Alumnusis a Contributor Alumnusis a Smogon Media Contributor Alumnusis a Past WCoP Winner

    Joined:
    Jul 16, 2010
    Messages:
    2,579
Thread Status:
Not open for further replies.

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