Program that sorts your levelrank from best to worst

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guest15937
    One-handed elite
    • May 2008
    • 1464

    #1

    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.)
    Last edited by Guest15937; 08-20-2014, 12:53 AM.
    The renegade has betrayed me.
  • AutotelicBrown
    Under the scarlet moon
    FFR Simfile Author
    • Jan 2014
    • 923

    #2
    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...

    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.
    Play my files

    Comment

    • justin_ator
      🥓<strong><span style="col
      • Mar 2007
      • 7648

      #3
      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.

      Comment

      • gabrieljd
        FFR Veteran
        • Sep 2006
        • 259

        #4
        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.

        Comment

        • Guest15937
          One-handed elite
          • May 2008
          • 1464

          #5
          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...
          The renegade has betrayed me.

          Comment

          • YoshL
            Celestial Harbor
            FFR Simfile Author
            FFR Music Producer
            • Aug 2008
            • 6156

            #6
            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
            Last edited by YoshL; 08-18-2014, 10:15 PM.


            Originally posted by Charu
            Only yours, for an easy price of $19.99! You too can experience the wonders of full motion rump sticking.

            Comment

            • Guest15937
              One-handed elite
              • May 2008
              • 1464

              #7
              Re: Program that sorts your levelrank from best to worst

              Originally posted by YoshL
              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.
              The renegade has betrayed me.

              Comment

              • rushyrulz
                Digital Dancing!
                FFR Simfile Author
                FFR Music Producer
                • Feb 2006
                • 12985

                #8
                Re: Program that sorts your levelrank from best to worst

                Originally posted by YoshL
                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.
                Last edited by rushyrulz; 08-19-2014, 08:07 AM.


                Comment

                • YoshL
                  Celestial Harbor
                  FFR Simfile Author
                  FFR Music Producer
                  • Aug 2008
                  • 6156

                  #9
                  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.


                  Originally posted by Charu
                  Only yours, for an easy price of $19.99! You too can experience the wonders of full motion rump sticking.

                  Comment

                  • rushyrulz
                    Digital Dancing!
                    FFR Simfile Author
                    FFR Music Producer
                    • Feb 2006
                    • 12985

                    #10
                    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.
                    Last edited by rushyrulz; 08-19-2014, 08:13 AM.


                    Comment

                    • TC_Halogen
                      Rhythm game specialist.
                      FFR Simfile Author
                      FFR Music Producer
                      • Feb 2008
                      • 19376

                      #11
                      Re: Program that sorts your levelrank from best to worst

                      Originally posted by gabrieljd
                      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.

                      Comment

                      • YoshL
                        Celestial Harbor
                        FFR Simfile Author
                        FFR Music Producer
                        • Aug 2008
                        • 6156

                        #12
                        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


                        Originally posted by Charu
                        Only yours, for an easy price of $19.99! You too can experience the wonders of full motion rump sticking.

                        Comment

                        • Untimely Friction
                          D6 Challeneged
                          • Aug 2012
                          • 1267

                          #13
                          Re: Program that sorts your levelrank from best to worst

                          Originally posted by rushyrulz
                          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
                          Last edited by Untimely Friction; 08-19-2014, 10:02 AM.

                          Comment

                          • Charu
                            Snivy! Dohoho!
                            FFR Simfile Author
                            • Mar 2006
                            • 6161

                            #14
                            Re: Program that sorts your levelrank from best to worst

                            Originally posted by Untimely Friction
                            dohohoho
                            You fiend!!!


                            Originally posted by JohnRedWolf87
                            Charu the red-nosed Snivy
                            Had a very shiny nose
                            And if you ever saw it
                            You could even say it glows

                            All of the other Snivies
                            Used to laugh and call him names
                            They never let poor Charu
                            Join in any Snivy games

                            (Click the arrow to see the rest)


                            Originally posted by Vendetta21
                            All in all I would say that Charu not only won this game, his play made me reconsider how I play it.

                            Comment

                            • drizzleRomanceGirl
                              It's okay to be yourself.
                              • Oct 2012
                              • 2963

                              #15
                              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?
                              hi

                              my discord username is drizzleRomanceGirl0706 in case anyone wants to message me

                              Division 5 2nd place

                              Originally posted by hosua
                              Oh, I thought it was just my internet this whole time.
                              Originally posted by rushyrulz
                              Also that triple post is almost as delicious as a hot, fresh, Domino's pizza.
                              Originally posted by aperson
                              can y'all take a break and kiss
                              (the first section of this chapter)

                              https://www.fanfiction.net/s/5125582...sokyo-no-Jinja

                              Comment

                              Working...