Score charts - Listing and how-to's

For discussion of high scores and high score charts
This topic is 6 years and 6 days old. Instead of replying, please begin a new topic, or search for another related topic that may be more suitable.
Hancoque
Member
Posts: 2
Joined: January 4th, 2009
Reputation: 0

Re: Score charts - Listing and how-to's

Postby Hancoque » Sun Jan 11, 2009 10:41 pm

I'm not sure how to interpret some of the extended score values (score_ext). This is an example of a single decoded entry:

Code: Select all

[0] => e024c4b712e84568118effe7b7ee8654e849a3de // score hash
[1] => 6 // stars
[2] => 261 // notes hit
[3] => 274 // notes overall
[4] => 112 // longest note streak
[5] => RF-mod-4.15 // mod used?
[6] => 000143000 // what's this? maybe some settings used?
[7] => // is this always just blank?

I commented the array values. The last three entries puzzle me, especially the the last two. I'm also wondering why the first two values are there, because they are already present in the standard score entries. Can someone shed some light on this?
User avatar
Azzco
Member
Posts: 1307
Joined: August 15th, 2007
Location: Trelleborg, Scania, Sweden
Reputation: 0
Contact:

Re: Score charts - Listing and how-to's

Postby Azzco » Wed Jan 21, 2009 11:51 am

Hmm shouldn't % be in there?
Maybe you got it on [6] in the wrong format or something.
Image
(k)Ubuntu 8.10 skyscraper 2.6.27-11-generic i686 GNU/Linux KDE 4.2.0
It's not like I dislike sleeping, I really do like it to be honest. It's the whole wake up/go to sleep business I don't like.
Divra
Member
Posts: 486
Joined: September 22nd, 2006
Location: Uppsala, Sweden
Reputation: 0
Contact:

Re: Score charts - Listing and how-to's

Postby Divra » Wed Jan 21, 2009 1:32 pm

I would have posted earlier, but I didn't have the sources until now.
From GameResultsScene.py:

Code: Select all

modOptions1 = self.engine.config.getModOptions1(player.twoChord, 0)
modOptions2 = self.engine.config.getModOptions2()
scoreExt = (player.notes_Hit, notesTotal, player.longestStreak, Version.branchVersion(), modOptions1, modOptions2)


I don't know where the hash and stars come from, maybe it has been changed somewhere, I'm not sure what version I'm looking at.

Edit: Had to add a _ in notes_Hit to avoid wordfilter

Found more about the order of modOptions1 in Config.py:


Two note chords only, 0 not used / 1 used
VBPM disabled, 0 not used / 1 used
HOPOs, I guess it's just on or off, but the comment is confusing:

Code: Select all

#Value 0 on / 1 on
    if self.get("game", "tapping") == False:
      hopoDisableUsed = 0
    else:
      hopoDisableUsed = 1

Another HOPO setting (HOPOmarks), 0 FoF / 1 RFmod
HOPO style, 0 FoF / 1 RFmod / 2 RFmod2 (this was 4 in your string, probably updated for GH2 strict/sloppy)
Point of View, 0 FoF / 1 GH / 2 Custom
Capo (Hit windows depending on BPM), 0 FoF / 1 Capo
8th note HOPOs ('more' in MFH?), 0 no / 1 yes
Boardspeed, 0 bpm / 1 difficulty
Charts (Down as of November 25th)
User avatar
qba767
Member
Posts: 51
Joined: May 23rd, 2007
Reputation: 0

Re: Score charts - Listing and how-to's

Postby qba767 » Tue Apr 28, 2009 1:52 pm

How many song scores do you have to upload to Divra's charts before you can be on the list? I was playing some a few days ago and I'm not there :( I know I have good ini config. In one song I was in top 3 according to the bottom bar after playing a song :)
I'm using the newest beta, but I have tried 3.100 and still the same :(
Ziggy
Member
Posts: 53
Joined: July 7th, 2007
Location: Sweden
Reputation: 0

Re: Score charts - Listing and how-to's

Postby Ziggy » Fri May 01, 2009 3:15 am

You have to wait to the next update...
Daan Sprenkels
User avatar
Slek
Member
Posts: 36
Joined: September 20th, 2008
Location: The Netherlands
Reputation: 0
Contact:

Re: Score charts - Listing and how-to's

Postby Slek » Mon May 04, 2009 4:23 pm

Hi, all.
I have made a chart server, based on FoFCS.
http://sourceforge.net/projects/fretsweb

Please check it out.
Fretsweb project: http://sourceforge.net/projects/fretsweb
It's a Contest Server...
Hajnaczky
Member
Posts: 1
Joined: June 16th, 2008
Location: Hungary, Székesfehérvár 8000
Reputation: 0

Re: Score charts - Listing and how-to's

Postby Hajnaczky » Thu Jan 07, 2010 3:34 pm

hy all!
can somebody help me?
i can't upload my score to world charts... but i don't know why! server is not going down, and i never get this problem before... pls help me!
(sorry my bad english...:P)
radicalpi
Member
Posts: 2
Joined: August 9th, 2008
Location: Owensboro, KY
Reputation: 0

Re: Score charts - Listing and how-to's

Postby radicalpi » Sun Aug 01, 2010 7:22 pm

Doesn't look like anyone has posted on this thread in a while. I'm attempting to create my own Online Score Chart. I've set up the database, and have the php scripts functioning. Everything seems to work how it should as far as uploading scores, however, I had a question regarding how FoFix displays your ranking. In other words, what text do I have to output on the upload page when a score is successfully submitted by the game, so that in-game, you'll see your rank? Currently, I'll get messages like: "Scores uploaded ...but there was no new high score" or "Scored uploaded ... but rank unknown".

By default, the php script only outputs True if the score was successfully added to the database. I tried outputing a number, but that doesn't seem to work.

Any help would be appreciated.
not a robot
raph666
Administrator
Posts: 2416
Joined: March 9th, 2007
Location: dans la mer du nord
Reputation: 0
Contact:

Re: Score charts - Listing and how-to's

Postby raph666 » Mon Aug 02, 2010 6:00 pm

radicalpi wrote:By default, the php script only outputs True if the score was successfully added to the database. I tried outputing a number, but that doesn't seem to work.

That's all you have to do. Simply echo True or False depending on if it's a new score or not and the rank. In my script I use two variables and output them like this:

Code: Select all

echo ("$newScore;$rank"); 
radicalpi
Member
Posts: 2
Joined: August 9th, 2008
Location: Owensboro, KY
Reputation: 0

Re: Score charts - Listing and how-to's

Postby radicalpi » Mon Aug 02, 2010 6:51 pm

raph666 wrote:That's all you have to do. Simply echo True or False depending on if it's a new score or not and the rank. In my script I use two variables and output them like this:

Code: Select all

echo ("$newScore;$rank"); 


Thanks, works perfectly. Also, if you don't mind answering another of my questions about the song hash. It appears to be a sha-1 hash, but what is it a hash of? Right now, I'm manually uploading new songs to the database as I play them and discover their hashes. I assume there is a much more efficient way.

Thanks.
not a robot
raph666
Administrator
Posts: 2416
Joined: March 9th, 2007
Location: dans la mer du nord
Reputation: 0
Contact:

Re: Score charts - Listing and how-to's

Postby raph666 » Tue Aug 03, 2010 6:17 am

Yes, the hash used to be a SHA-1 hash of the notes.mid file. In FoFix however the songs hashes are built from the notes-unedited.mid file if it is present, using the notes.mid only if it's not. There's a tool (a python script) to build your songs database coming along sneftrup's scripts called buildDatabase.py, of course you need to install python on your computer to run it. You simply have to copy and execute the script in your songs library (or your FoFiX root folder, as suggested by sneftrup, but I personally prefer to place it in the songs folder). It's getting a little old though, so you will have to modify it a little.

First, it's using the now deprecated 'sha' module. You might want to edit the script to use the 'hashlib' module instead.
'import hashlib' instead of 'import sha', and modify the 'buildHash' function:

Code: Select all

def buildHash(filename):
    hash = hashlib.sha1()
    file = open(filename, "rb")
    readsize = 1024
   
    while True:
      data = file.read(readsize)
      if not data:
          break
      hash.update(data)
    return hash.hexdigest() 

Next, you will have to take account of the notes-unedited.mid files in the parseSongIni function:
Change

Code: Select all

    hash = buildHash(os.path.join(song, "notes.mid"))
to

Code: Select all

    if os.path.isfile(os.path.join(song, "notes-unedited.mid")):
        notefile = "notes-unedited.mid"
    else:
        notefile = "notes.mid"
    hash = buildHash(os.path.join(song, notefile))   


Hope this helps.
bukdub
Member
Posts: 1
Joined: June 5th, 2011
Reputation: 0

Score charts Listing and how tos

Postby bukdub » Sun Oct 02, 2011 9:56 pm

for anyone that cares, at all

We might not but its what this thread all about, great scores for your first two days playing

I dont think I ever will post mine.. 645s score puts mine into shame
opichoscopynC
Member
Posts: 1
Joined: November 25th, 2011
Reputation: 0

RE:

Postby opichoscopynC » Mon Nov 28, 2011 3:03 pm

Same already discussed recently
pleadlide
Member
Posts: 1
Joined: November 22nd, 2011
Reputation: 0

Frets On Fire Fan Forum • Post a reply

Postby pleadlide » Sun Dec 11, 2011 8:55 pm

... up ...

Return to “High Score Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests