BuzzerBeater Forums

BBAPI Support > Potential

Potential

Set priority
Show messages by
This Post:
00
141462.1
Date: 4/21/2010 6:38:17 AM
Overall Posts Rated:
9999
Which is the value of potential element in case of All-time greatest potential in roster xml? It is possible to not an int, but a string ('10+' e.g.)?

This Post:
00
141462.2 in reply to 141462.1
Date: 4/21/2010 6:56:36 AM
Overall Posts Rated:
3737
Which is the value of potential element in case of All-time greatest potential in roster xml? It is possible to not an int, but a string ('10+' e.g.)?


According to the schema, no, it's an integer.

(http://old.buzzerbeater.com/BBAPI/docs/bbapi.rnc)


PublicSkills =
element skills {
element gameShape { xsd:integer },
element potential { xsd:integer }
}


Have you seen otherwise?

This Post:
00
141462.3 in reply to 141462.2
Date: 4/21/2010 7:02:37 AM
Overall Posts Rated:
9999
I have this code:

if ($player->age == '20' && $player->salary > '12000' && $player->skills->potential > '6'){
return true;
}

and this player: (12158828), and get false...With the players with lower potencial works perfect, but with him not (and I guess with the other All-time greatest potential too, but his owner was the first, who alert me about it).


This Post:
00
141462.4 in reply to 141462.1
Date: 4/21/2010 7:04:08 AM
Overall Posts Rated:
3737
I just looked at BC Törööö's roster with the BBAPI, and all-time great potential Roland Fritzer (8050573) shows up as:


<player id='8050573'>
<firstName>Roland</firstName>
<lastName>Fritzer</lastName>
<nationality id='8'>Deutschland</nationality>
<age>22</age>
<height>77</height>
<dmi>132100</dmi>

<jersey>98</jersey>
<salary>21393</salary>
<bestPosition>SG</bestPosition>
<skills>
<gameShape>8</gameShape>
<potential>10</potential>

</skills>
</player>


I.e. just "10", not "10+".

This Post:
00
141462.5 in reply to 141462.3
Date: 4/21/2010 7:06:41 AM
Overall Posts Rated:
3737
You should find a way to debug so you can look at the xml yourself. But here's that player's from the roster:


<player id='12158828'>
<firstName>Alex</firstName>
<lastName>Pápay</lastName>
<nationality id='48'>Magyarország</nationality>
<age>20</age>
<height>78</height>
<dmi>148700</dmi>


<salary>12867</salary>
<bestPosition>SG</bestPosition>
<skills>
<gameShape>9</gameShape>
<potential>10</potential>

</skills>
</player>


So it's something you're doing.

Last edited by Mod-oeuftete at 4/21/2010 7:07:56 AM

This Post:
00
141462.6 in reply to 141462.4
Date: 4/21/2010 7:07:42 AM
Overall Posts Rated:
9999
Hmm, but hall of famer potential is 10 too....

This Post:
00
141462.7 in reply to 141462.6
Date: 4/21/2010 7:08:53 AM
Overall Posts Rated:
3737
Hmm, but hall of famer potential is 10 too....


Right. That's a different question.

This Post:
00
141462.8 in reply to 141462.3
Date: 4/21/2010 7:14:42 AM
Overall Posts Rated:
3737
Here's a long shot, but maybe the potential for ATGs shows up differently when it's one's own roster, and not someone else's? I can't test that with my own.

This Post:
00
141462.9 in reply to 141462.8
Date: 4/21/2010 7:21:06 AM
Overall Posts Rated:
9999
I guess the same, there must be a difference between all-time great and hall of famer. I have no player like one of these, so I can see only others. But in every case, the owners try to update the players datas so they must get the longest xml with skills and etc. They got false for the criteria which I wrote above....I got true, when tried to get these player's xml as outsider.

From: Kukoc

This Post:
00
141462.11 in reply to 141462.10
Date: 4/21/2010 11:37:39 AM
Overall Posts Rated:
13361336
Not so long ago XML also showed max game shape at 8, although it was actually 9. Same with season start xml showed 6, although it was 7. Perhaps it's the same with potential. Max is actually 11, but xml shows it at the top end of 10?