Programming Warstory generator development

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

  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,538
  2. 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,538

    The Resistance's team (open)
    [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG]

    Faladran's team (open)
    [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG]


    Battle between The Resistance and Faladran started!
    Tier: Standard UU
    Variation: +20, -12
    Rule: Rated
    Rule: Sleep Clause
    Rule: Species Clause
    Rule: Wifi Battle

    Faladran sent out Donphan!
    The Resistance sent out Rotom-H!
    [​IMG]



    Turn 1

    Faladran called Donphan back!
    Faladran sent out Snorlax!

    Rotom-H used Overheat!
    The foe's Snorlax lost 18% of its health!
    Rotom-H's Special Attack sharply fell!

    The foe's Snorlax restored a little HP using its Leftovers!
    [​IMG]



    Turn 2

    The Resistance called Rotom-H back!
    The Resistance sent out Hitmontop!

    Hitmontop intimidates the foe's Snorlax!
    The foe's Snorlax's Attack fell!

    The foe's Snorlax used Curse!
    The foe's Snorlax's Attack rose!
    The foe's Snorlax's Defense rose!
    The foe's Snorlax's Speed fell!

    The foe's Snorlax restored a little HP using its Leftovers!
    [​IMG]



    Turn 3

    Hitmontop used Close Combat!
    It's super-effective! The foe's Snorlax lost 52% of its health!
    Hitmontop's Defense fell!
    Hitmontop's Special Defense fell!

    The foe's Snorlax used Body Slam!
    Hitmontop lost 54% of its health!

    Hitmontop restored a little HP using its Leftovers!
    The foe's Snorlax restored a little HP using its Leftovers!
    [​IMG]



    Turn 4

    Faladran called Snorlax back!
    Faladran sent out Donphan!

    Hitmontop used Close Combat!
    The foe's Donphan lost 29% of its health!
    Hitmontop's Defense fell!
    Hitmontop's Special Defense fell!

    Hitmontop restored a little HP using its Leftovers!
    The foe's Donphan restored a little HP using its Leftovers!
    [​IMG]



    Turn 5

    The Resistance called Hitmontop back!
    The Resistance sent out Roserade!

    The foe's Donphan used Stealth Rock!
    Pointed stones float in the air around The Resistance's team!

    The foe's Donphan restored a little HP using its Leftovers!
    [​IMG]



    Turn 6

    Faladran called Donphan back!
    Faladran sent out Snorlax!

    Roserade used Spikes!
    Spikes were scattered all around the feet of Faladran's team!

    The foe's Snorlax restored a little HP using its Leftovers!
    [​IMG]



    Turn 7

    The Resistance called Roserade back!
    The Resistance sent out Hitmontop!
    Pointed stones dug into Hitmontop!

    Hitmontop intimidates the foe's Snorlax!
    The foe's Snorlax's Attack fell!

    The foe's Snorlax used Body Slam!
    Hitmontop lost 23% of its health!

    Hitmontop restored a little HP using its Leftovers!
    The foe's Snorlax restored a little HP using its Leftovers!
    [​IMG]



    Turn 8

    Faladran called Snorlax back!
    Faladran sent out Froslass!
    The foe's Froslass is hurt by spikes!

    Hitmontop used Toxic!
    The foe's Froslass was badly poisoned!

    The foe's Froslass restored a little HP using its Leftovers!
    The foe's Froslass is hurt by poison!
    Hitmontop restored a little HP using its Leftovers!
    [​IMG]



    Turn 9

    The Resistance called Hitmontop back!
    The Resistance sent out Rotom-H!
    Pointed stones dug into Rotom-H!

    The foe's Froslass used Spikes!
    Spikes were scattered all around the feet of The Resistance's team!

    The foe's Froslass restored a little HP using its Leftovers!
    The foe's Froslass is hurt by poison!
    [​IMG]



    Turn 10

    Faladran called Froslass back!
    Faladran sent out Snorlax!
    The foe's Snorlax is hurt by spikes!

    Rotom-H used Overheat!
    The attack of Rotom-H missed!

    The foe's Snorlax restored a little HP using its Leftovers!
    [​IMG]



    Turn 11

    The Resistance called Rotom-H back!
    The Resistance sent out Hitmontop!
    Pointed stones dug into Hitmontop!
    Hitmontop is hurt by spikes!

    Hitmontop intimidates the foe's Snorlax!
    The foe's Snorlax's Attack fell!

    The foe's Snorlax used Curse!
    The foe's Snorlax's Attack rose!
    The foe's Snorlax's Defense rose!
    The foe's Snorlax's Speed fell!

    Hitmontop restored a little HP using its Leftovers!
    The foe's Snorlax restored a little HP using its Leftovers!
    [​IMG]



    Turn 12

    Hitmontop used Close Combat!
    It's super-effective! The foe's Snorlax lost 51% of its health!
    Hitmontop's Defense fell!
    Hitmontop's Special Defense fell!

    The foe's Snorlax used Body Slam!
    Hitmontop lost 28% of its health!

    Hitmontop fainted!

    The foe's Snorlax restored a little HP using its Leftovers!
    The Resistance sent out Rhyperior!
    Pointed stones dug into Rhyperior!
    Rhyperior is hurt by spikes!
    [​IMG]



    Turn 13

    Faladran called Snorlax back!
    Faladran sent out Donphan!
    The foe's Donphan is hurt by spikes!

    Rhyperior used Earthquake!
    The foe's Donphan lost 45% of its health!

    The foe's Donphan restored a little HP using its Leftovers!
    Rhyperior restored a little HP using its Leftovers!
    [​IMG]



    Turn 14

    Rhyperior used Earthquake!
    The foe's Donphan lost 31% of its health!

    The foe's Donphan fainted!

    Rhyperior restored a little HP using its Leftovers!
    Faladran sent out Roserade!
    The foe's Roserade is hurt by spikes!
    [​IMG]



    Turn 15

    The Resistance called Rhyperior back!
    The Resistance sent out Roserade!
    Pointed stones dug into Roserade!
    Roserade is hurt by spikes!

    The foe's Roserade used Sleep Powder!
    Roserade fell asleep!

    The foe's Roserade restored a little HP using its Leftovers!
    Roserade restored a little HP using its Leftovers!
    [​IMG]



    Turn 16

    The foe's Roserade used Sludge Bomb!
    Roserade lost 39% of its health!

    Roserade is fast asleep!

    The foe's Roserade restored a little HP using its Leftovers!
    Roserade restored a little HP using its Leftovers!
    [​IMG]



    Turn 17

    The Resistance called Roserade back!
    The Resistance sent out Rhyperior!
    Pointed stones dug into Rhyperior!
    Rhyperior is hurt by spikes!

    The foe's Roserade used Sludge Bomb!
    It's not very effective... A critical hit! Rhyperior lost 30% of its health!

    The foe's Roserade restored a little HP using its Leftovers!
    Rhyperior restored a little HP using its Leftovers!
    [​IMG]



    Turn 18

    The foe's Roserade used Leaf Storm!
    It's super-effective! Rhyperior lost 50% of its health!

    Rhyperior fainted!
    The foe's Roserade's Special Attack sharply fell!

    The Resistance sent out Rotom-H!
    Pointed stones dug into Rotom-H!
    [​IMG]



    Turn 19

    Faladran called Roserade back!
    Faladran sent out Snorlax!
    The foe's Snorlax is hurt by spikes!

    Rotom-H used Overheat!
    The foe's Snorlax lost 2% of its health!

    The foe's Snorlax fainted!
    Rotom-H's Special Attack sharply fell!

    Faladran sent out Heracross!
    The foe's Heracross is hurt by spikes!
    [​IMG]



    Turn 20

    Rotom-H used Overheat!
    It's super-effective! The foe's Heracross lost 73% of its health!
    Rotom-H's Special Attack sharply fell!

    The foe's Heracross used Close Combat!
    A critical hit! Rotom-H lost 50% of its health!

    Rotom-H fainted!
    The foe's Heracross's Defense fell!
    The foe's Heracross's Special Defense fell!

    The Resistance sent out Mismagius!
    Pointed stones dug into Mismagius!
    [​IMG]



    Turn 21

    Faladran called Heracross back!
    Faladran sent out Escavalier!
    The foe's Escavalier is hurt by spikes!

    Mismagius used Nasty Plot!
    Mismagius's Special Attack sharply rose!

    Mismagius restored a little HP using its Leftovers!
    [​IMG]



    Turn 22

    Mismagius used Hidden Power!
    The foe's Escavalier lost 40% of its health!

    The foe's Escavalier used Pursuit!
    It's super-effective! Mismagius lost 93% of its health!

    Mismagius fainted!

    The Resistance sent out Samurott!
    Pointed stones dug into Samurott!
    Samurott is hurt by spikes!
    [​IMG]



    Turn 23

    Faladran called Escavalier back!
    Faladran sent out Roserade!
    The foe's Roserade is hurt by spikes!

    Samurott used Megahorn!
    The foe's Roserade lost 87% of its health!

    The foe's Roserade fainted!
    Samurott is hurt by its life orb!

    Faladran sent out Escavalier!
    The foe's Escavalier is hurt by spikes!
    [​IMG]



    Turn 24

    Samurott used Waterfall!
    The foe's Escavalier lost 34% of its health!

    The foe's Escavalier fainted!
    Samurott is hurt by its life orb!

    Faladran sent out Heracross!
    The foe's Heracross is hurt by spikes!
    [​IMG]



    Turn 25

    Samurott used Aqua Jet!
    A critical hit! The foe's Heracross lost 1% of its health!

    The foe's Heracross fainted!
    Samurott is hurt by its life orb!

    Faladran sent out Froslass!
    The foe's Froslass is hurt by spikes!
    [​IMG]



    Turn 26

    Samurott used Aqua Jet!
    The foe's Froslass lost 29% of its health!
    Samurott is hurt by its life orb!

    The foe's Froslass used Ice Beam!
    It's not very effective... A critical hit! Samurott lost 34% of its health!

    The foe's Froslass restored a little HP using its Leftovers!
    The foe's Froslass is hurt by poison!
    [​IMG]



    Turn 27

    Samurott used Aqua Jet!
    The foe's Froslass lost 39% of its health!

    The foe's Froslass fainted!
    Samurott is hurt by its life orb!

    Samurott fainted!

    The Resistance won the battle!
    [​IMG]



  3. ShinyAzelf

    ShinyAzelf
    is a Battle Server Moderatoris a Contributor Alumnus

    Joined:
    Jan 18, 2010
    Messages:
    1,389
    Why are you so awesome??

    Great work, and I'm looking forward to try this out!
  4. Fatecrashers

    Fatecrashers acta est fabula
    is a Site Staff Alumnusis an Artist Alumnusis a Super Moderator Alumnusis a Smogon Media Contributor Alumnusis a Contributor Alumnusis a Battle Server Moderator Alumnus

    Joined:
    Sep 24, 2007
    Messages:
    4,998
    I don't normally write warstories, but when I do, I prefer aesoft.
  5. Darkaxis

    Darkaxis

    Joined:
    Jun 11, 2011
    Messages:
    707
    I alwais liked Warstories this is making it SO much easier Aeo why do you have to epic,cool,badass,awesome,and so much of great guy? you make me feel inferior to you :(
  6. King N

    King N

    Joined:
    Mar 19, 2011
    Messages:
    322
    Oops, I was making this.
    And I already did 20%.:/
  7. supermarth64

    supermarth64 Here I stand in the light of day
    is a Contributor Alumnus

    Joined:
    Dec 26, 2008
    Messages:
    2,383
    My first response after seeing this: "Holy crap".

    I assume the pictures aren't automatically inputted because there'd be a problem with the 100 images per post on long warstories.
  8. Lady Salamence

    Lady Salamence is a three-dimensional retard.
    is a Forum Moderator Alumnusis a Smogon Media Contributor Alumnusis a Contributor Alumnus

    Joined:
    Aug 4, 2010
    Messages:
    3,471
    Double post, supermarth.
    It's usually allowed for warstories.
  9. Cherub Agent

    Cherub Agent
    is a Forum Moderatoris a Community Contributoris a Smogon Media Contributoris a Tiering Contributoris a Contributor Alumnus
    Moderator

    Joined:
    Jul 6, 2009
    Messages:
    2,869
    wow, this looks really great. good luck!
  10. DanLite

    DanLite

    Joined:
    Jul 25, 2007
    Messages:
    85
    I would love it if you put the code for this and the replay viewer up on GitHub. Might be interesting to see what would come out of some collaborative programming.
  11. Aerrow

    Aerrow hunter
    is a Site Staff Alumnusis a Team Rater Alumnusis a Forum Moderator Alumnusis a Smogon Media Contributor Alumnusis a Tiering Contributor Alumnusis a Contributor Alumnus

    Joined:
    Nov 24, 2009
    Messages:
    1,557
    This is pretty amazing.
  12. Tangelo

    Tangelo

    Joined:
    Jul 5, 2011
    Messages:
    141
    I love this, thanks for making it. If I find any glitches I'll edit them in this post.

    Glitches:
    1. If you don't use a Poke in the match it won't show up in the Team Preview section.
  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,538
    That's no glitch. If you don't use a pokemon (or if it was nicknamed and never sent out normally, only dragged out with Roar/Whirlwind/DragonTail), it won't appear in the replay. You'd have to add it manually.
  14. No. 1 Machop Fan

    No. 1 Machop Fan

    Joined:
    Aug 25, 2010
    Messages:
    217
    Why not add status and stat changes to the program?
  15. 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,538
    On the to-do list.

    Status is already passed: If you write a warstory using the generator, it'll be sent later.

    Stat changes are messier, but I'll get that done eventually.

    In-depth improvements to the generator like this aren't very high-up on the to-do list, though. My apologies. I'll put it up on Github once I get the chance.
  16. NixHex

    NixHex Right place at the wrong time.
    is a member of the Site Staffis a Forum Moderatoris a Pokemon Researcheris a Contributor to Smogonis a Battle Server Moderator
    Moderator

    Joined:
    Oct 6, 2009
    Messages:
    2,492
    Will you ever stop making cool programs? Hopefully not!
  17. doominic77

    doominic77

    Joined:
    Jul 3, 2010
    Messages:
    394
    This is amazing, can't wait to try (when I stop being lazy and upload a warstory).
  18. Chieliee

    Chieliee

    Joined:
    Sep 26, 2010
    Messages:
    1,795
    words can't describe this....


    AGAIN

    no, seriously, this is awesome.
  19. M Dragon

    M Dragon The north wind
    is a Tournament Directoris a Forum Moderatoris a Community Contributoris a Tiering Contributoris a Tutor Alumnusis a Battle Server Moderator Alumnus
    Moderator

    Joined:
    Jun 12, 2008
    Messages:
    1,383
    Incredible.
    Awesome job
  20. Fireburn

    Fireburn BARN ALL
    is a Forum Moderatoris a Contributor to Smogon
    Moderator

    Joined:
    Jan 18, 2009
    Messages:
    1,632
    Nice log you picked for the example. :P

    This is amazing and you are amazing.
  21. Tomahawk9

    Tomahawk9 NIDORINO
    is a Team Rater Alumnus
    Mentor

    Joined:
    Oct 2, 2010
    Messages:
    1,756
    Hm, when I use this, I always get:

    No warstory log or something :/
  22. 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,538
    What browser?
  23. Tomahawk9

    Tomahawk9 NIDORINO
    is a Team Rater Alumnus
    Mentor

    Joined:
    Oct 2, 2010
    Messages:
    1,756
    Google Chrome, the replay player works.
  24. Paradoxus

    Paradoxus

    Joined:
    Apr 3, 2011
    Messages:
    802
    Holy crap this is awesome, i swear if you wrote a few analyses you would be a mod in like a second. But the thing that isn't working for me is that i get the same glitch as Tomohawk, I tried Google Chrome and Internet Explorer.
  25. 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,538
    Oh, heh, I broke it yesterday, no wonder. Fixed again.

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