Programming Warstory generator development

Pocket

be the upgraded version of me
is a Site Staff Alumnusis a Team Rater Alumnusis a Forum Moderator Alumnusis a Community Contributor Alumnusis a Tiering Contributor Alumnusis a Contributor Alumnus
#27
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!
 
#29
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
 

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
#38
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.
 
#40
Aesoft, has Nintendo offered you a job yet?
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:

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?