Jump to content
Sign in to follow this  
road-runner

Folding Stats Borked?

Recommended Posts

What happen to the folding stats, they do not see to be correct?

Share this post


Link to post
Share on other sites

Looks like a bug in the image generation PHP code that stops after 10,000,000. Of course, it could have been a built in "feature" due to space limitations on the image itself.

 

You and Bosco's both have the same issue...

 

foldingimage.php?image=5&name=road-runner&blah.gif

foldingimage.php?image=5&name=bosco&blah.gif

 

foldingimage.php?image=4&name=road-runner&blah.gif

foldingimage.php?image=4&name=bosco&blah.gif

 

foldingimage.php?image=3&name=road-runner&blah.gif

foldingimage.php?image=3&name=bosco&blah.gif

 

foldingimage.php?image=2&name=road-runner&blah.gif

foldingimage.php?image=2&name=bosco&blah.gif

 

foldingimage.php?image=1&name=road-runner&blah.gif

foldingimage.php?image=1&name=bosco&blah.gif

 

 

Where others are correct...

 

foldingimage.php?image=5&name=d3bruts1d&blah.gif

 

foldingimage.php?image=4&name=ccokeman&blah.gif

 

foldingimage.php?image=3&name=Judy_Dunbar&blah.gif

 

foldingimage.php?image=2&name=Nemo&blah.gif

 

foldingimage.php?image=1&name=ijagwalaafq&blah.gif

 

 

 

 

On a side note, team production is WAY down. :'(

Share this post


Link to post
Share on other sites

// -----------------------------------
// retrieve the data for the user...
// -----------------------------------
// we have an user, we try to retrieve the data!
if ($name != "") {
$sql = "select SQL_CACHE USR_ACCOUNT, USR_SCORE, USR_WU, USR_RANK, USR_GRANK,
					TEM_NAME, TEM_USERS, TEM_SCORE, TEM_WU, TEM_RANK 
					from " . $table_prefix . "users, " . $table_prefix . "team
					where UCASE(USR_ACCOUNT) = \"" . strtoupper($name) . "\"";
if ($db->query($sql) && $db->num_rows() > 0) {

	$db->next_record();

 

...

 

		// ***********************************************
	// DATABASE READING AND VARIABLE/STRING GENERATION
	// ***********************************************

	// read data from database
	$rawscore = round($db->Record["USR_SCORE"]);
	$wu = number_format($db->Record["USR_WU"]);
	$rank = number_format($db->Record["USR_RANK"]);

	// ensure score value is an integer by removing the decimal point and
	// anything that follows it
	$pos = strpos($parsed[3], ".");
	if ($pos == null) {
		$score = $rawscore;
	} else {
		$score = substr($rawscore, 0, $pos);
	}

	// generate number format variations
	$rankordinal = f_num($rank);	// e.g. 33 becomes 33rd, 4 becomes 4th, and so on
	$scorecommas = number_format($score);	// e.g. 72309385 becomes 72,309,385

 

...

 

I can't see a problem with the way the image generation code is reading or rounding the numbers... I think perhaps the database itself is somehow applying an arbitrary maximum value (10M) for the USR_SCORE column

 

I can't view/edit the database, nor edit the current php code to debug the variables... I only rewrote the image generation code to support additional images (there are actually 12)

Share this post


Link to post
Share on other sites

I dont know, I just added it to my sig a little while ago and noticed it stuck on 1,000,000... :unsure:

 

Edit: Appears to be working now I guess someone fixed it, Thanks...

Share this post


Link to post
Share on other sites

We hit the limit that the db storage allowed, so I increased it to accomodate much higher scores :).

Share this post


Link to post
Share on other sites
We hit the limit that the db storage allowed, so I increased it to accomodate much higher scores :).

Thanks... :thumbs-up:

Share this post


Link to post
Share on other sites

Or it could be that! :D

 

We could have another issue if anyone ever reaches 2,147,483,647 points. Thankfully, that'll be a while. ;)

Share this post


Link to post
Share on other sites
On a side note, team production is WAY down. :'(

 

 

I am trying to help :foldon:

Share this post


Link to post
Share on other sites
I have some more hardware I could throw together but my electricity is high enough now so...

:withstupid: I was thinking the exact samething :lol:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...