Old 02-7-2015, 01:35 PM   #21
llyair
Wiki Staff
Retired StaffFFR Veteran
 
llyair's Avatar
 
Join Date: Jun 2014
Posts: 307
Default Re: [API] FFR API Beta

Quote:
Originally Posted by Velocity View Post
I added support for retrieving a players last 10 played songs.

I'm quite unsure of what is causing this to be honest, I'll have to investigate more, but I'm unsure currently.
Getting the last 10 songs is really cool! I just noticed that it gives me the actual score obtained, not the PB (if they're different)! I couldn't find a way to get that info before Though practically I'm not sure what to do now that I have it... haha.

And hmm I see, yeah it does seem strange that one field is just gone. Thank you for the update, though
llyair is offline   Reply With Quote
Old 05-3-2015, 02:48 AM   #22
llyair
Wiki Staff
Retired StaffFFR Veteran
 
llyair's Avatar
 
Join Date: Jun 2014
Posts: 307
Default Re: [API] FFR API Beta

So I'm not sure where to ask, but just wondering if it would be possible to change ranks (action=ranks) to return raw score instead of, or in addition to, combo score?

The thing is that ranks (action=ranks) isn't really usable (at least for getting PA), since about 1/3 of the scores are missing the "good" property and also have a "combo" of 0. Previously, when some songs were only missing "good", it could be solved by using the combo scoring formula (found this after some digging around the site):
score = combo*1000 + perfects*550 + goods*275 + averages*55 - misses*310 - boos*20. But now that two variables are missing, I don't know how to determine PA at all.

For an API solution, not sure if it'd be simpler to include/replace the "score" property as raw instead of combo (since then the raw scoring formula could be used), or if it would be worth it to investigate why "good" is sometimes missing. Or maybe there are other ways to figure this out, or at least solve for PA. Just some random thoughts from someone outside, in case it helps XD

But getting the PA through the API can be useful, for example in score recovery, when checking level ranks against the scores that noname manually gathered from the forums. (Unless the checking isn't actually useful, but that's what I was using trying to use the API for anyway).

So yeah xD I just wanted to leave these thoughts/ideas in here!
llyair is offline   Reply With Quote
Old 10-7-2015, 12:43 AM   #23
Zageron
Zageron E. Tazaterra
RRR Developer & DevOps Support
AdministratorDeveloperFFR Veteran
 
Zageron's Avatar
 
Join Date: Apr 2007
Location: BC
Age: 32
Posts: 6,586
Default Re: [API] FFR API Beta

Please let me know if the API has ceased to work for anyone.
Zageron is offline   Reply With Quote
Old 10-7-2015, 12:49 AM   #24
Untimely Friction
D6 Challeneged
Retired StaffFFR Veteran
 
Untimely Friction's Avatar
 
Join Date: Aug 2012
Age: 31
Posts: 1,267
Default Re: [API] FFR API Beta

Quote:
Originally Posted by Zageron View Post
Please let me know if the API has ceased to work for anyone.
Well the link doesn't work, I was like "Oh neat we have api?"
Untimely Friction is offline   Reply With Quote
Old 10-7-2015, 01:03 AM   #25
Zageron
Zageron E. Tazaterra
RRR Developer & DevOps Support
AdministratorDeveloperFFR Veteran
 
Zageron's Avatar
 
Join Date: Apr 2007
Location: BC
Age: 32
Posts: 6,586
Default Re: [API] FFR API Beta

Fixed, nevermind.
Zageron is offline   Reply With Quote
Old 10-7-2015, 12:06 PM   #26
rushyrulz
Digital Dancing!
Retired StaffFFR Simfile AuthorFFR Music ProducerD7 Elite KeysmasherFFR Veteran
 
rushyrulz's Avatar
 
Join Date: Feb 2006
Location: 80 billion club, NE
Age: 31
Posts: 12,979
Default Re: [API] FFR API Beta

Quote:
Originally Posted by Zageron View Post
Please let me know if the API has ceased to work for anyone.
lol the TCG would literally break.
__________________


rushyrulz is offline   Reply With Quote
Old 06-20-2016, 12:12 PM   #27
TC_Halogen
Rhythm game specialist.
Retired StaffFFR Simfile AuthorFFR Music ProducerD8 Godly KeysmasherFFR Veteran
 
TC_Halogen's Avatar
 
Join Date: Feb 2008
Location: Bel Air, Maryland
Age: 32
Posts: 19,376
Send a message via AIM to TC_Halogen Send a message via Skype™ to TC_Halogen
Default Re: [API] FFR API Beta

Bump:

Is it possible to extend the API to have song level information?
TC_Halogen is offline   Reply With Quote
Old 07-10-2016, 12:33 AM   #28
Dinglesberry
longing
FFR Veteran
 
Dinglesberry's Avatar
 
Join Date: Dec 2007
Location: Ontario, Canada
Posts: 2,680
Default Re: [API] FFR API Beta

Can the api provide advanced stats on a player? E.g. Number of sdgs, AAA, fcs etc. Essentially, the stats here: http://www.flashflashrevolution.com/...e=Dinglesberry

I suppose you could just take a players levelstats and calculate it yourself, but it'd be nice if you could just grab it directly. Some of the things can't be retrieved other ways though, like arrows hit and time played and such, so this would be nice.

Also, did they fix the issue of goods not showing up?

Last edited by Dinglesberry; 07-10-2016 at 02:12 AM..
Dinglesberry is offline   Reply With Quote
Old 07-27-2016, 11:51 AM   #29
Dinglesberry
longing
FFR Veteran
 
Dinglesberry's Avatar
 
Join Date: Dec 2007
Location: Ontario, Canada
Posts: 2,680
Default Re: [API] FFR API Beta

Bumperino, still hoping for api call for http://www.flashflashrevolution.com/...rname=username to get that table.
Dinglesberry is offline   Reply With Quote
Old 08-14-2016, 08:44 AM   #30
Dinglesberry
longing
FFR Veteran
 
Dinglesberry's Avatar
 
Join Date: Dec 2007
Location: Ontario, Canada
Posts: 2,680
Default Re: [API] FFR API Beta

Quote:
Originally Posted by TC_Halogen View Post
Bump:

Is it possible to extend the API to have song level information?
Since theres no updates to the API, I've been working on extending it a bit myself.. heres my WIPs so far, probably going to make features for everything I want, most likely going to do advanced stats next:

So far, the only one I am somewhat done is:

getSongStats.php?levelid='levelidhere' //Returns details stats about a song

Code:
Example: getSongStats.php?levelid=1337

Output: Musician: - SUN3 - Listen: - - Step Artist: - bmah - Level Number: - 1337 - Song Genre: - Dance 2 - Song Style: - Dance Speed - Difficulty: - 78 - Note Count: - 1148 - Release Date: - 11-29-09 - Song Length: - 1:49 - Number of AAAs: - 45 - Number of FCs: - 391 - Number of Players: - 3,168 - # of Times Played: - 24,328 -

Example: getSongStats.php?levelid=1853

Output: Musician: - YouriX - Listen: - - Step Artist: - Elite Ninja - Level Number: - 1853 - Song Genre: - Funk - Song Style: - Drum'n Bass Jazz - Difficulty: - 48 - Note Count: - 965 - Release Date: - 11-24-12 - Song Length: - 1:50 - Number of AAAs: - 173 - Number of FCs: - 432 - Number of Players: - 2,128 - # of Times Played: - 5,292 -
She's coming along.. Just need to compile it to JSON rather than some plaintext mess. Once I have more stuff done I'll throw it up on a webserver or something.


EDIT: leaving this here for notes/if anyone else wants to work on stuff:

Code:
		public static const SITE_DATA_URL:String = "http://www.flashflashrevolution.com/game/r3/r3-siteData.php"; //Contains front page posts and content displayed on main page.
		public static const USER_INFO_URL:String = "http://www.flashflashrevolution.com/game/r3/r3-userInfo.php"; //Contains user specific settings for currently logged in, such as scroll dir, noteskin etc.
		public static const USER_FRIENDS_URL:String = "http://www.flashflashrevolution.com/game/r3/r3-userFriends.php"; //Lists current logged in users friends.

Last edited by Dinglesberry; 08-14-2016 at 09:03 AM..
Dinglesberry is offline   Reply With Quote
Old 08-17-2016, 07:28 PM   #31
Dinglesberry
longing
FFR Veteran
 
Dinglesberry's Avatar
 
Join Date: Dec 2007
Location: Ontario, Canada
Posts: 2,680
Default Re: [API] FFR API Beta

Made some API stuff:

http://dinglesffr.byethost5.com/

Free webhost lol so its probably gonna be slow, either way theres a simple html form on the index page to search, so far theres:

Code:
http://dinglesffr.byethost5.comg/getSongStats.php?levelid=#
Returns a json object of a songs stats
Example: http://dinglesffr.byethost5.com/getS...p?levelid=2482
http://dinglesffr.byethost5.com/getS...p?levelid=1337
Result:
Code:
{
    "song_name": "Undici",
    "musician": "Terminal 11",
    "step_artist": "DossarLX ODI & TC_Halogen",
    "level_number": "2482",
    "song_genre": "Misc",
    "song_style": "Glitchcore Extreme",
    "difficulty": "0",
    "note_count": "3339",
    "release_date": "08_12_16",
    "song_length": "3:18",
    "number_of_aaas": "0",
    "number_of_fcs": "0",
    "number_of_players": "89",
    "number_of_times_played": "274"
}

{
    "song_name": "Time to Eye",
    "musician": "SUN3",
    "step_artist": "bmah",
    "level_number": "1337",
    "song_genre": "Dance 2",
    "song_style": "Dance Speed",
    "difficulty": "78",
    "note_count": "1148",
    "release_date": "11_29_09",
    "song_length": "1:49",
    "number_of_aaas": "45",
    "number_of_fcs": "391",
    "number_of_players": "3170",
    "number_of_times_played": "24337"
}
Code:
http://dinglesffr.byethost5.comg/getAdvancedPlayerStats.php?username=""
Returns a json object of a players advanced stats
Note: Stats only include games after April 17, 2016. 
Some stats, like FCs and AAA, are not song specific (e.g. multiple FCs on the same song increase your count)
Example: http://dinglesffr.byethost5.com/getA...e=Dinglesberry
Result:
Code:
{
    "skill_rating": {
        "value": "62",
        "global_rank": "1186",
        "country_rank": "181",
        "skill_bracket": "Expert (Division 4)"
    },
    "average_rank": {
        "value": "8385.47",
        "global_rank": "3503",
        "country_rank": "548"
    },
    "grandtotal": {
        "value": "4055894755",
        "global_rank": "1887",
        "country_rank": "293"
    },
    "tier_points": {
        "value": "104",
        "global_rank": "1071",
        "country_rank": "184",
        "skill_bracket": "Tier 0"
    },
    "AAAs": {
        "value": "17",
        "global_rank": "141",
        "country_rank": "28"
    },
    "full_combos": {
        "value": "523",
        "global_rank": "23",
        "country_rank": "7"
    },
    "single_digit_goods": {
        "value": "170",
        "global_rank": "62",
        "country_rank": "14"
    },
    "passes": {
        "value": "523",
        "global_rank": "23",
        "country_rank": "7"
    },
    "notes_hit": {
        "value": "2374124",
        "global_rank": "14",
        "country_rank": "5"
    },
    "keys_hit": {
        "value": "2392596",
        "global_rank": "16",
        "country_rank": "5"
    },
    "play_time": {
        "value": "73.67 Hours",
        "global_rank": "16",
        "country_rank": "4"
    },
    "max_combos": {
        "value": "1679214",
        "global_rank": "12",
        "country_rank": "5"
    },
    "ranked_plays": {
        "value": "2785",
        "global_rank": "20",
        "country_rank": "5"
    },
    "unranked_plays": {
        "value": "46",
        "global_rank": "107",
        "country_rank": "16"
    },
    "player_info": {
        "username": "Dinglesberry",
        "skill_rating": "62",
        "progress_to_level": "6.99"
    }
}
Code:
http://dinglesffr.byethost5.com/getTopScores.php?username=""
Returns a json object of a players top scores, as well as their level + progress to next level
Example: http://dinglesffr.byethost5.com/getT...e=Dinglesberry
Result:
Code:
{
    "player_info": {
        "username": "Dinglesberry",
        "skill_rating": "62",
        "progress_to_level": "6.99"
    },
    "rank_1": {
        "song_difficulty": "69",
        "song_name": "Midnight Dragon",
        "aaa_equiv": "62.67",
        "perfects": "24.04%",
        "goods": "1386",
        "averages": "9",
        "misses": "0",
        "boos": "1",
        "time_obtained": "5 hours ago"
    },
    "rank_2": {
        "song_difficulty": "66",
        "song_name": "Crimson Flood",
        "aaa_equiv": "62.58",
        "perfects": "18.60%",
        "goods": "1048",
        "averages": "4",
        "misses": "1",
        "boos": "0",
        "time_obtained": "4 days ago"
    },
    "rank_3": {
        "song_difficulty": "68",
        "song_name": "Lawn Wake I",
        "aaa_equiv": "62.36",
        "perfects": "14.35%",
        "goods": "1407",
        "averages": "10",
        "misses": "0",
        "boos": "0",
        "time_obtained": "2 days ago"
    },
	.^.
	.|.
	.v.
    "rank_98": {
        "song_difficulty": "63",
        "song_name": "reveal yourself",
        "aaa_equiv": "52.49",
        "perfects": "0%",
        "goods": "1061",
        "averages": "19",
        "misses": "0",
        "boos": "0",
        "time_obtained": "2 months ago"
    },
    "rank_99": {
        "song_difficulty": "63",
        "song_name": "We Wish You A Merry XMas (Jazz...",
        "aaa_equiv": "52.39",
        "perfects": "0%",
        "goods": "1444",
        "averages": "17",
        "misses": "1",
        "boos": "0",
        "time_obtained": "1 month ago"
    },
    "rank_100": {
        "song_difficulty": "56",
        "song_name": "Entry",
        "aaa_equiv": "52.29",
        "perfects": "0%",
        "goods": "841",
        "averages": "6",
        "misses": "0",
        "boos": "0",
        "time_obtained": "2 months ago"
    }
}
TODO:
-Please suggesterino any stats.. perhaps daily stats is next.

Last edited by Dinglesberry; 08-18-2016 at 09:24 PM..
Dinglesberry is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 01:36 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution