44 coaches online • Server time: 08:36
Forum Chat
Log in
Recent Forum Topics goto Post BB2020 - Kick team m...goto Post What happened?goto Post Secret League Americ...
SearchSearch 
Post new topic   Reply to topic
View previous topic Log in to check your private messages View next topic
ultwe



Joined: Dec 25, 2004

Post   Posted: May 30, 2012 - 12:33 Reply with quote Back to top

Hi

I am working on a tool to create stat pages for a group (I know some exists already, but where is the fun in reusing somebody else's code, instead of creating my own...).

Question is: Do we have an existing mapping of the positionID of a player, as found in the team roster, to the name of the position, and the name of the fumbbl icon for it? I could create a map with positionID:positionName with the info available, but can't find a list of the icons on the API help page...

Thanks

Ult.

_________________
Yeah, Nuffle sucks... That's because I play crap Smile

π is aproximately 3.142 times better than any other food
Woodstock



Joined: Dec 11, 2004

Post   Posted: May 30, 2012 - 13:28 Reply with quote Back to top

If it is not listed on the API help page, it isn't there. For now...
Christer



Joined: Aug 02, 2003

Post   Posted: May 30, 2012 - 13:57
FUMBBL Staff
Reply with quote Back to top

You could check out the roster API:

https://fumbbl.com/xml:roster?id=51

This will show you information, including portraits and icons for each positional.

Alternatively, and more complete in some cases, you check the team-specific roster:

https://fumbbl.com/xml:roster?team=55051

This one will include off-roster players, such as major tournament prizes. Incidentally, the FFB server uses this latter form to load teams.
ultwe



Joined: Dec 25, 2004

Post   Posted: May 30, 2012 - 14:07 Reply with quote Back to top

Thx Christer.

I was thrown by the fact that the API page lists the roster for khemri as ID=16, but that is the old roster for lrb4 (I guess), which does not contain the icons links. Should have gone deeper Smile

Ult.

_________________
Yeah, Nuffle sucks... That's because I play crap Smile

π is aproximately 3.142 times better than any other food
Shraaaag



Joined: Feb 15, 2004

Post   Posted: May 30, 2012 - 16:32 Reply with quote Back to top

Christer wrote:
Alternatively, and more complete in some cases, you check the team-specific roster:

https://fumbbl.com/xml:roster?team=55051

This one will include off-roster players, such as major tournament prizes. Incidentally, the FFB server uses this latter form to load teams.


Oooh, this might make things easier Smile

_________________
Image
ultwe



Joined: Dec 25, 2004

Post   Posted: May 30, 2012 - 16:32 Reply with quote Back to top

Thanks

_________________
Yeah, Nuffle sucks... That's because I play crap Smile

π is aproximately 3.142 times better than any other food
Display posts from previous:     
 Jump to:   
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Log in to check your private messages View next topic