Flash Flash Revolution

Flash Flash Revolution (http://www.flashflashrevolution.com/vbz/index.php)
-   FFR General Talk (http://www.flashflashrevolution.com/vbz/forumdisplay.php?f=14)
-   -   Program that sorts your levelrank from best to worst (http://www.flashflashrevolution.com/vbz/showthread.php?t=138622)

Guest15937 08-18-2014 08:49 PM

Program that sorts your levelrank from best to worst
 
This is a product of some boredom + about 2 hrs of spare time

This takes your levelrank line-by-line, gives each score a rating (called the "AAA-equivalent", or the difficulty of song the score is equivalent to an AAA of), then sorts them from best to worst and spits out a file containing the results.

The formula it uses is actually really simple:

([Raw score]/[Raw score for an AAA of the song])^10 * [Song's difficulty]

How to run this:

1. Download the Java file from here and put it in a folder: The Java File
2. Download the list of songs and the number of notes in each one that I have compiled for this program's use, and put it in the same folder: The Master List of FFR Songs and their # of Notes
3. Copy-paste your levelranks into a text file, save it in the same folder as "Levelrank.txt" (note: if you ctrl-a your levelranks, you MUST delete all the extra stuff or it won't work)
4. Run the program. It will generate a file in the same folder called "AnalyzedLevelranks.txt". This will contain your AAA-eq's.

This is a sample of the output (only showing the top 20, because no one wants to see a wall of numbers):

Starlight (57) 57.0 [709-0-0-0-0]
Fei Longer (57) 56.3851192037817 [737-1-0-0-3]
Survive (60) 55.93710204585523 [1767-19-3-0-3]
World Tour 2004 (74) 55.75158787688937 [3759-156-15-10-65]
Camel (65) 52.50507406528722 [1037-25-3-5-14]
Scavenger (54) 52.20316194545844 [737-2-0-1-3]
Rondo Alla Turca (54) 52.14793111162251 [1540-10-0-0-4]
Case Closed (54) 50.98246841575738 [1019-8-2-0-1]
End Night (61) 50.85328655014235 [1090-33-1-2-5]
Haruka Kanata (55) 50.404946146959745 [930-12-2-0-4]
Streets (58) 49.85350325644671 [914-12-1-5-11]
Musicmaker RX (52) 49.19105272940202 [930-8-0-1-0]
Witches Hat (59) 49.16914021207423 [1249-39-2-0-20]
Szamar Madar (58) 49.0878316766038 [1066-22-2-4-5]
Infernoplex (53) 48.9568896857658 [1434-20-0-1-3]
Yukitsuki-yashou (49) 48.7306959189042 [1088-1-0-0-1]
Robotix (49) 48.6435082921343 [821-1-0-0-1]
Enchanting Venus (50) 48.45307358121127 [729-4-0-0-3]
Aishiteru Yo Ne (57) 48.027877324064825 [1593-48-1-1-18]
BB Evolution (69) 47.95625734897515 [2488-111-7-25-22]

Note that the program skips over unplayed files (they won't show up in the results file.)

Also, only public songs are included (obviously, because that's all that is in the levelranks.)

Update: Here is a link to Oni-Paranoia's Python version of this program. It uses a different formula that seems to rate higher-difficulty FC's more strongly than my program, but requires neither the JDK nor the master list file. To run his, just download it, copy your levelranks into a file called "rank.txt" and save it to the desktop, then run the executable. (Note: the file is much larger than mine, in the 3 mb range. Also, his only displays your top 10 scores, rather than your entire levelranks, and does not display the PA or difficulty of the songs.)

AutotelicBrown 08-18-2014 10:05 PM

Re: Program that sorts your levelrank from best to worst
 
I expected a worse result from that metric, but it actually gives reasonable results.

My top20:
STRAWBERRY SWEETZ 77.0133906997945
Pants 76.85826614866383
Little God Ch@nnel 76.6247477682971
Tenimuhou 76.5393118227496
Twister 75.49434454481735
Across Rooftops 75.39675672913457
Crow's Ghost 75.27806220290785
Integraation 75.17466083446327
11ELEVEN 74.98705877271205
Frictional Nevada 74.82207800472752
Sleepmix Strikes Back 74.26719874489399
October 73.90432914945343
Lightning Strikes Again - Metal Squad 73.67385543297242
Beautiful Arrhythmia 73.5811304797727
All i wanna do is touch your powerpoints 73.54975768241856
Sleep 73.50670379979496
Fuse Gymnast 73.48484790547342
Tageri 73.46445729554029
Purple Drank 73.42398237856911
RAN 73.42042163150286

You placed quite a burden on the user to run the program though, uploading separate small text files on Mega, having to use Java, parsing the levelrank page for the program...

Quote:

analyzeSong(Double.parseDouble(thing.get(1)),thing.get(2),Double.parseDouble(thing.get(4)),Double.parseDouble(thing.get(5)),Double.parseDouble(thing.get(6)),Double.parseDouble(thing.get(7)),Double.parseDouble(thing.get(8)));
And god, this statement.

justin_ator 08-18-2014 10:10 PM

Re: Program that sorts your levelrank from best to worst
 
Constructive criticism will help him learn d:

Neat overall, though I think some way to see the "compared" scores would be quite useful. For example that 73 compared to the 75, what were the PA scores on the songs? Is my 50 comparable to your 50? I think it'd be neat to see what kinds of scores are actually comparable on different songs.

gabrieljd 08-18-2014 10:13 PM

Re: Program that sorts your levelrank from best to worst
 
Would be nice having something that can be run by someone who isn't a computer science graduate.

Guest15937 08-18-2014 11:09 PM

Re: Program that sorts your levelrank from best to worst
 
Update: The difficulty and PA of the song is included.

Link to new version: here (will also be updated in the OP)

New output sample:

Starlight (57) 57.0 [709-0-0-0-0]
Fei Longer (57) 56.3851192037817 [737-1-0-0-3]
Survive (60) 55.93710204585523 [1767-19-3-0-3]
World Tour 2004 (74) 55.75158787688937 [3759-156-15-10-65]
Camel (65) 52.50507406528722 [1037-25-3-5-14]

And I know it's a bit cumbersome to run...but it's really not that big a deal, it's just a matter of a couple of files. I guess I could put the two files together in a rar...

YoshL 08-18-2014 11:11 PM

Re: Program that sorts your levelrank from best to worst
 
you're assuming that people have the jdk downloaded; if they don't, they won't be able to run the program.

also, the formula feels quite arbitrary, and probably would result in a bunch of "ratings" that wouldn't make sense given the expanse of levelranks that everyone has

Guest15937 08-18-2014 11:39 PM

Re: Program that sorts your levelrank from best to worst
 
Quote:

Originally Posted by YoshL (Post 4185960)
you're assuming that people have the jdk downloaded; if they don't, they won't be able to run the program.

also, the formula feels quite arbitrary, and probably would result in a bunch of "ratings" that wouldn't make sense given the expanse of levelranks that everyone has

Well there's never going to be one catch-all, end-all formula for rating one score over another that will satisfy everyone. People may always disagree on whether a 2g on a 60 is better or worse than a 12-0-1-2 on a 64. I can agree that the 10th power was picked rather arbitrarily, but it produced results that match, or nearly match, which scores I think are my best ones.

As for the JDK thing...crap. I never even thought of that.

rushyrulz 08-19-2014 08:58 AM

Re: Program that sorts your levelrank from best to worst
 
Quote:

Originally Posted by YoshL (Post 4185960)
you're assuming that people have the jdk downloaded; if they don't, they won't be able to run the program.

Main reason I pretty much halted java development.

Also, %.2f PLEASE.

I thought about implementing something like this into my levelrank analysis program, but never got around to it. I also wanted to make it give a rough division placement calculator, but figured that would cause a bit of controversy. I don't know how I feel about the equation you chose, though.

YoshL 08-19-2014 09:07 AM

Re: Program that sorts your levelrank from best to worst
 
i do like the concept of the formula though.

by taking the % of the max raw score and multiplying some factor of it by the difficulty is a nice idea, just would probably need some fine tuning, and maybe/probably incorporation of other aspects of the song, like perhaps max NPS, average NPS, etc.

rushyrulz 08-19-2014 09:12 AM

Re: Program that sorts your levelrank from best to worst
 
I tried doing an average NPS calc by pulling note data from each file, but the program ran longer than my connection to my school's UNIX server would last. I might have been going about it wrong, though. All you would really need is like a text file containing NPS data tho to do calculations based on it.

TC_Halogen 08-19-2014 10:23 AM

Re: Program that sorts your levelrank from best to worst
 
Quote:

Originally Posted by gabrieljd (Post 4185933)
Would be nice having something that can be run by someone who isn't a computer science graduate.

You hardly need to know anything about computer science to make this work. The inherent issue with this program is precisely what YoshL mentioned: you need the Java Development Kit (JDK) installed on your computer for the program to execute.

Once you have that, download the files accordingly and follow instructions. If it doesn't execute anything (no errors, nothing), you likely need to create an association between the .java file and javac.exe found in the JDK (that's the simple way; you could just execute through command prompt). At least, that's what I think you need to do...

...it's been quite a while.

YoshL 08-19-2014 10:41 AM

Re: Program that sorts your levelrank from best to worst
 
even if you execute through command prompt, you still need to set up the proper path so that you can actually use the javac command

Untimely Friction 08-19-2014 11:01 AM

Re: Program that sorts your levelrank from best to worst
 
Quote:

Originally Posted by rushyrulz (Post 4186113)
Main reason I pretty much halted java development.

Also, %.2f PLEASE.

I thought about implementing something like this into my levelrank analysis program, but never got around to it. I also wanted to make it give a rough division placement calculator, but figured that would cause a bit of controversy. I don't know how I feel about the equation you chose, though.

Cooooould you 2 maybe collab on this with the same concept? I could run rushys without concern I remember but i know this laptop doesnt have JDK and Im the lazy... so this is a terrible inconvenience for me that I really wanna do.

Edit: Or 20K to the first person to run it on my levelranks and PM me the results dohohoho

Charu 08-19-2014 11:07 AM

Re: Program that sorts your levelrank from best to worst
 
Quote:

Originally Posted by Untimely Friction (Post 4186146)
dohohoho

You fiend!!!

drizzleRomanceGirl 08-19-2014 12:59 PM

Re: Program that sorts your levelrank from best to worst
 
I followed the directions and used javac to run LevelrankAnalyzer, and it opened a file called 'AnalyzedLevelranks.class'. I've tried to open it with notepad, but it shows up as a bunch of unrecognizable symbols and characters. I have also tried to open the .class file with jd-gui because this website told me that the program can read .class files.

However, when I used that program to open AnalyzedLevelranks.class, it only showed me the original java code instead of the results. Does anyone know what I'm doing incorrectly?

Guest15937 08-19-2014 01:02 PM

Re: Program that sorts your levelrank from best to worst
 
Did the program produce a file called "AnalyzedLevelranks.txt"? That's where your results would be.

rushyrulz 08-19-2014 01:07 PM

Re: Program that sorts your levelrank from best to worst
 
lol if I got the source code for this, I could convert it to executable.

YoshL 08-19-2014 01:13 PM

Re: Program that sorts your levelrank from best to worst
 
the .java file, just open with notepad++ or something lol

Guest15937 08-19-2014 01:16 PM

Re: Program that sorts your levelrank from best to worst
 
Yeah the source code is just the .java file. :P

YoshL 08-19-2014 01:26 PM

Re: Program that sorts your levelrank from best to worst
 
how do you convert to executable for java files anyways?


All times are GMT -5. The time now is 04:18 AM.

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