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

Programming Warstory generator development

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

  1. Blue_Star

    Blue_Star
    is a Battle Server Moderator Alumnus

    Joined:
    Oct 6, 2010
    Messages:
    758
    this is so damn awesome.
  2. Pocket

    Pocket GOJIRA
    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-Leader

    Joined:
    Dec 22, 2004
    Messages:
    8,533
    Amazing tool, aeosoft! This is very convenient. It's already in great shape as it is. The only recommendation I can make is show the end-of-turn % health for both Pokemon (I understand that the log doesn't explicitly record this, though). Also it would be nifty if you can build in a score-tracker that keeps tab of the scores after a turn that a Pokemon fainted.

    Awesome Job!
  3. Paradoxus

    Paradoxus

    Joined:
    Apr 3, 2011
    Messages:
    802
    Do you think you can let us toggle the size of the text maybe?
  4. NijaSkills

    NijaSkills

    Joined:
    Sep 27, 2010
    Messages:
    207
    This looks awesome, but it isn't working for me. When I click on the link, I get this:
    Parse error: syntax error, unexpected T_DEC in /home/aesoft/public_html/pokemon/replays.inc.php on line 47845
  5. locoghoul

    locoghoul Banned deucer.

    Joined:
    Apr 29, 2008
    Messages:
    807
    I only get turn 1 and turn 2. What's wrong?
    My file is locoghoul test vs -Stone- 11-11-11
    Can you help me please?
  6. Pwnemon

    Pwnemon judges silently
    is a Forum Moderatoris a Community Contributoris a Smogon Media Contributoris a Tiering Contributoris a Contributor to Smogon
    Doubles Co-Leader

    Joined:
    Aug 26, 2010
    Messages:
    3,309
    This is so cool!

    are you planning on adding hazards, stat changes, and status effects somewhere along the line?
  7. Bobtheball4

    Bobtheball4 CAP Playtesting Expert

    Joined:
    May 17, 2008
    Messages:
    511
    nice work aesoft. you have this, pokemon showdown, and the reply viewer. great work on your programming.
  8. Xaqwais

    Xaqwais

    Joined:
    Dec 25, 2008
    Messages:
    1,713
    Everything about PS is just sexiness.
  9. locoghoul

    locoghoul Banned deucer.

    Joined:
    Apr 29, 2008
    Messages:
    807
    There has been several warstories that, when generated only give me the first 3-4 turns and then it stops. Why is that? Can you fix it please?
  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,666
    Could you link to the replays in question?
  11. Metal Bagon

    Metal Bagon

    Joined:
    May 27, 2011
    Messages:
    1,659
    Aesoft, has Nintendo offered you a job yet?
  12. locoghoul

    locoghoul Banned deucer.

    Joined:
    Apr 29, 2008
    Messages:
    807
  13. 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,666
    Oh, I see. The syntax for phazing moves changed, and I never updated the warstory generator to match. I'll fix it at some point.
  14. locoghoul

    locoghoul Banned deucer.

    Joined:
    Apr 29, 2008
    Messages:
    807
    thanks for your help
  15. Bruno Magno

    Bruno Magno

    Joined:
    May 15, 2011
    Messages:
    744
    Nintendo should!

    I'm having troubles with the warstory maker: i did the steps several times, and nothing was wrong, but this is the second time i get this error:

    Log (open)
    Battle between Billy Pones and klug started!

    Tier: Wifi OU
    Rule: Unrated
    Rule: Sleep Clause
    Rule: Species Clause
    Rule: Wifi Battle

    klug sent out Breloom!
    Billy Pones sent out Darmanitan!

    Start of turn 1
    klug called Breloom back!
    klug sent out Cresselia!

    Darmanitan used U-turn!
    It's super effective!
    The foe's Cresselia lost 39% of its health!
    Billy Pones called Darmanitan back!
    Billy Pones sent out Lucario!

    The foe's Cresselia restored a little HP using its Leftovers!

    Start of turn 2
    Lucario used Nasty Plot!
    Lucario's Sp. Att. sharply rose!

    The foe's Cresselia used Psychic!
    Lucario lost 109 HP! (38% of its health)

    The foe's Cresselia restored a little HP using its Leftovers!

    Start of turn 3
    Lucario used Dark Pulse!
    It's super effective!
    The foe's Cresselia lost 72% of its health!
    The foe's Cresselia fainted!
    Lucario is hurt by its Life Orb!

    klug sent out Skarmory!

    Start of turn 4
    Lucario used Aura Sphere!
    The foe's Skarmory held on thanks to Sturdy!
    The foe's Skarmory lost 99% of its health!
    Lucario is hurt by its Life Orb!

    The foe's Skarmory used Whirlwind!
    Billy Pones called Lucario back!
    Shaymin was dragged out!

    The foe's Skarmory restored a little HP using its Leftovers!

    Start of turn 5
    Shaymin used Hidden Power!
    The foe's Skarmory lost 6% of its health!
    The foe's Skarmory fainted!
    Shaymin is hurt by its Life Orb!

    klug sent out Umbreon!

    Start of turn 6
    Shaymin used Energy Ball!
    The foe's Umbreon lost 32% of its health!
    Shaymin is hurt by its Life Orb!

    The foe's Umbreon used Toxic!
    Shaymin was badly poisoned!

    The foe's Umbreon restored a little HP using its Leftovers!
    Shaymin is hurt by poison!

    Start of turn 7
    Billy Pones called Shaymin back!
    Billy Pones sent out Latios!

    The foe's Umbreon used Wish!

    The foe's Umbreon restored a little HP using its Leftovers!

    Start of turn 8
    Billy Pones called Latios back!
    Billy Pones sent out Forretress!

    The foe's Umbreon used Toxic!
    But it failed!

    Umbreon's wish came true!

    Start of turn 9
    klug called Umbreon back!
    klug sent out Breloom!

    Forretress used Spikes!
    Spikes were scattered all around the feet of klug's team!

    The foe's Breloom's Toxic Orb activated!
    The foe's Breloom was badly poisoned!

    Start of turn 10
    The foe's Breloom used Spore!
    Forretress fell asleep!

    Forretress is fast asleep!

    The foe's Breloom restored HP using its Poison Heal!

    Start of turn 11
    Billy Pones called Forretress back!
    Billy Pones sent out Latios!

    The foe's Breloom used Drain Punch!
    It's not very effective...
    Latios lost 75 HP! (24% of its health)
    Latios had its energy drained!

    The foe's Breloom restored HP using its Poison Heal!

    Start of turn 12
    klug called Breloom back!
    klug sent out Umbreon!
    The foe's Umbreon is hurt by spikes!

    Latios used Trick!
    Latios switched items with the foe's Umbreon!
    Latios obtained one Leftovers!
    The foe's Umbreon obtained one Choice Specs!

    Latios restored a little HP using its Leftovers!

    Start of turn 13
    Billy Pones called Latios back!
    Billy Pones sent out Shaymin!

    The foe's Umbreon used Toxic!
    Shaymin was badly poisoned!

    Shaymin is hurt by poison!

    Start of turn 14
    Billy Pones called Shaymin back!
    Billy Pones sent out Crobat!

    The foe's Umbreon used Toxic!
    But it failed!

    Start of turn 15
    Crobat used Taunt!
    The foe's Umbreon fell for the taunt!

    The foe's Umbreon can't use Toxic after the taunt!

    Start of turn 16
    Crobat used Acrobatics!
    Crobat's Flight Gem raised Acrobatics's power!
    The foe's Umbreon lost 46% of its health!

    The foe's Umbreon used Struggle!
    Crobat lost 33 HP! (9% of its health)
    The foe's Umbreon is hit with recoil!

    Start of turn 17
    Crobat used Acrobatics!
    The foe's Umbreon lost 16% of its health!
    The foe's Umbreon fainted!

    klug sent out Metagross!
    The foe's Metagross is hurt by spikes!

    Start of turn 18
    Crobat used U-turn!
    The foe's Metagross lost 16% of its health!
    Billy Pones called Crobat back!
    Billy Pones sent out Darmanitan!

    The foe's Metagross used Zen Headbutt!
    Darmanitan lost 250 HP! (71% of its health)

    The foe's Metagross restored a little HP using its Leftovers!

    Start of turn 19
    klug called Metagross back!
    klug sent out Breloom!
    The foe's Breloom is hurt by spikes!

    Darmanitan used U-turn!
    The foe's Breloom lost 45% of its health!
    Billy Pones called Darmanitan back!
    Billy Pones sent out Latios!

    Latios restored a little HP using its Leftovers!
    The foe's Breloom restored HP using its Poison Heal!

    Start of turn 20
    Latios used Hidden Power!
    It's super effective!
    A critical hit!
    The foe's Breloom lost 54% of its health!
    The foe's Breloom fainted!

    Latios restored a little HP using its Leftovers!
    klug sent out Vaporeon!
    The foe's Vaporeon is hurt by spikes!

    Start of turn 21
    Latios used Draco Meteor!
    The foe's Vaporeon lost 46% of its health!
    Latios's Sp. Att. sharply fell!

    The foe's Vaporeon used Toxic!
    The attack of the foe's Vaporeon missed!

    Latios restored a little HP using its Leftovers!
    The foe's Vaporeon restored a little HP using its Leftovers!

    Start of turn 22
    Latios used Draco Meteor!
    The foe's Vaporeon lost 24% of its health!
    Latios's Sp. Att. sharply fell!

    The foe's Vaporeon used Wish!

    Latios restored a little HP using its Leftovers!
    The foe's Vaporeon restored a little HP using its Leftovers!

    Start of turn 23
    Billy Pones called Latios back!
    Billy Pones sent out Shaymin!

    The foe's Vaporeon used Protect!
    But it failed!

    Vaporeon's wish came true!
    The foe's Vaporeon restored a little HP using its Leftovers!

    Start of turn 24
    Shaymin used Energy Ball!
    It's super effective!
    The foe's Vaporeon lost 59% of its health!
    The foe's Vaporeon's Sp. Def. fell!
    Shaymin is hurt by its Life Orb!

    The foe's Vaporeon used Toxic!
    Shaymin was badly poisoned!

    The foe's Vaporeon restored a little HP using its Leftovers!
    Shaymin is hurt by poison!

    Start of turn 25
    The foe's Vaporeon used Protect!
    The foe's Vaporeon protected itself!

    Shaymin used Tailwind!
    A tailwind started blowing behind Billy Pones's team!

    The foe's Vaporeon restored a little HP using its Leftovers!
    Shaymin is hurt by poison!

    Start of turn 26
    Shaymin used Energy Ball!
    It's super effective!
    The foe's Vaporeon lost 38% of its health!
    The foe's Vaporeon fainted!
    Shaymin is hurt by its Life Orb!

    Shaymin is hurt by poison!
    klug sent out Metagross!
    The foe's Metagross is hurt by spikes!

    Start of turn 27
    The foe's Metagross used Bullet Punch!
    Shaymin lost 36 HP! (10% of its health)
    Shaymin fainted!

    The foe's Metagross restored a little HP using its Leftovers!
    Billy Pones sent out Darmanitan!

    Start of turn 28
    The foe's Metagross used Bullet Punch!
    It's not very effective...
    Darmanitan lost 63 HP! (17% of its health)

    Darmanitan used Flare Blitz!
    It's super effective!
    The foe's Metagross lost 70% of its health!
    The foe's Metagross fainted!
    Darmanitan is hit with recoil!
    Darmanitan fainted!

    Link: http://pokemon.aesoft.org/replay-klug-vs-Billy-Pones--21-gennaio-2012-at-14h41
    Warstory: http://pokemon.aesoft.org/warstory.php?name=klug-vs-Billy-Pones--21-gennaio-2012-at-14h41

    I don't know why, but sometimes the story stops at the beginning of Turn 4. Is this in any way connected to any problem of my pc, or my PO version?
  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,666
    k, fixed.
  17. Bruno Magno

    Bruno Magno

    Joined:
    May 15, 2011
    Messages:
    744
    Thanks a lot :)
  18. Pombo

    Pombo

    Joined:
    Feb 29, 2008
    Messages:
    691
    I cant even open it =/
    Is it broken again?
    Sorry for necroing.

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