nehtik / epgp

Automatically exported from code.google.com/p/epgp
0 stars 0 forks source link

Addon should not allow EP or GP of floating point values #479

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Any time we copy the snapshot to the website, we get invalid data.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? What locale is your client (en,
ru, kr, ch, es, tw)? What other addons do you have installed and what
versions? 5.5

Paste the text surrounded by -EPGP- in Guild Information here: n/a

If this is about http://www.epgpweb.com integration, what is the realm
and region of your guild?

Please provide any additional information below.
We can provide a copy of the snapshot, although not putting it here as it 
is confidential.

Original issue reported on code.google.com by ourconun...@live.ca on 4 Aug 2009 at 3:27

GoogleCodeExporter commented 8 years ago
How is it confidential if it is going to be on a public website after you 
upload it?

Original comment by evlogimenos on 4 Aug 2009 at 5:45

GoogleCodeExporter commented 8 years ago
You have a point.  Here is the latest snapshot he has taken which is again 
deemed 
invalid :(

{"guild":"Conundrum","region":"us","min_ep":35000,"base_gp":100,"roster":
[["Vallerae",75750,265],["Lelldantor",81250,299],["Nativesun",7250,100],
["Gutchunks",14750,100],["Boondoggle",24500,100],["\u00D0racul",10000,100],
["Dombeyi",10000,100],["Ellyanna",70000,100],["Groovey",43500,100],
["Whisperria",45000,100],["Chaosnight",42500,182],["Novamoon",59750,275],
["Tierboryn",12500,199],["Buriz",46000,100],["Flippen",29250,224],
["Hydrobudz",55750,100],["Balistek",74500,513],["Seij\u00FCro",53250,182],
["Glant",60250,199],["Lovelyarya",44250,100],["Karde",85750,347],
["Radiestesia",71500,249],["Funks",86500,199],["Tiffanne",74750,348],
["Jainisola",62250,199],["Yu\u00E8",81750,224],["Jges",65500,588],
["Aarina",55000,100],["Titis",4250,100],["Vadi",71750,266],["Shadowsname",4250,1
00],
["Aaronthegrea",79000,430],["Taloric",51500,1008],["Michedruid",78250,451],
["Restokitty",20750,389],["Azi",61000,100],["Stonegate",4250,100],
["Diabolicai",10000,100],["Lesette",68000,600],["Pstar",30000,100],
["Let\u00FCm\u00E1ddo",54000,100],["Lechevalier",75750,299],["Killerxqx",63000,3
41],
["Badboyz",62000,224],["Jibrelle",71500,451],["Naeva",17000,100],["Bodin",75500,
249],
["Kringlethor",60500,698],["Puredarkness",15000,100]],"decay_p":10,"loot":
[[1248574620,"Lelldantor",45874,82],[1248574680,"Funks",45651,165],
[1248580500,"Vadi",45934,331],[1248580500,"Funks",45645,124],
[1248581700,"Killerxqx",46344,124],[1248585060,"Yu\u00E8",45895,124],
[1248585120,"Lechevalier",45661,124],[1248587700,"Lechevalier",45310,124],
[1248587760,"Tiffanne",45314,82],[1248837540,"Novamoon",45086,58.5],
[1248837660,"Radiestesia",45119,149],[1248838860,"Taloric",45250,99],
[1248838920,"Glant",45254,99],[1248839100,"Kringlethor",45256,234],
[1248840300,"Novamoon",45137,117],[1248840540,"Michedruid",45147,351],
[1248841080,"Lesette",45547,149],[1248844680,"Kringlethor",45164,199],
[1248844800,"Taloric",45166,149],[1248844920,"Killerxqx",45170,117],
[1248922440,"Thunderbros",45676,165],[1248924660,"Killerxqx",45866,124],
[1248926280,"Jges",45873,41],[1248926340,"Aaronthegrea",45652,165],
[1248929820,"Kringlethor",45941,165],[1248929880,"Jges",45645,124],
[1249010760,"Jibrelle",45261,351],[1249010820,"Lesette",45266,351],
[1249010940,"Jainisola",45275,99],[1249017120,"Rhaan",45435,199],
[1249017180,"Funks",45438,99],[1249017360,"Bodin",45320,149],
[1249097280,"Vallerae",45659,124],[1249163400,"Guild Bank",45974,0],
[1249163460,"Aaronthegrea",45649,165],[1249164720,"Vallerae",46347,41],
[1249172100,"Badboyz",46028,-1],[1249193160,"Guild Bank",45329,0],
[1249193280,"Yu\u00E8",45333,124],[1249269240,"Chessa",45872,82],
[1249269300,"Balistek",45650,165],[1249276980,"Chessa",45893,165],
[1249277040,"Badboyz",45660,124],[1249357260,"Tierboryn",45454,99],
[1249357380,"Lechevalier",45634,199],
[1249357380,"Lelldantor",45632,199]],"timestamp":1249382760,"extras_p":100,"real
m":"Z
uluhed"}

Original comment by ourconun...@live.ca on 4 Aug 2009 at 9:31

GoogleCodeExporter commented 8 years ago
It's because of this:

[1248837540,"Novamoon",45086,58.5]

You can't have floating point GP values.

Original comment by evlogimenos on 4 Aug 2009 at 10:11

GoogleCodeExporter commented 8 years ago

Original comment by evlogimenos on 4 Aug 2009 at 10:12

GoogleCodeExporter commented 8 years ago
Corrected that and everything is fine... ty very much

Original comment by ourconun...@live.ca on 5 Aug 2009 at 3:10

GoogleCodeExporter commented 8 years ago
This is fixed in r1300.

Original comment by evlogimenos on 5 Aug 2009 at 10:55

GoogleCodeExporter commented 8 years ago

Original comment by evlogimenos on 5 Aug 2009 at 10:55

GoogleCodeExporter commented 8 years ago

Original comment by evlogimenos on 5 Aug 2009 at 11:00