Graal Forums  

Go Back   Graal Forums > PlayerWorlds > Era Main Forum > Era Bugs and improvements
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #10  
Old 01-19-2010, 12:09 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by 12171217 View Post
There's no need to do all that, simply parse the file's contents out, byte for byte, and generate a hash, then compare hashes. Of course merely changing a pixel or adding some header information would **** you over, but whatever.

Alternatively, you could sample a certain coordinates for the head, like where it faces down, and store the RGBA values with a threshold to permit. Then compare a few pixels aganist each other, only 32x32x3 bytes to parse if you do them all anyway, wouldn't take that long.
Not worth it for our cause . The head checker was just added as a precaution because with the new uploader it's a hell of a lot easier to re-upload heads (click "Upload", click "heads" folder, then double click one).

Quote:
Originally Posted by CharlieM View Post
problem with auto checking is there could be something that someone took from there head and put on a friends head that took up maybe 50% of the head, so if it checked by pixel it would come up as stolen wouldnt it?
see below

Quote:
Originally Posted by cbk1994 View Post
It's not quite that simple. The way it works is that it looks for heads with the exact same file size (down to the byte) from a list of corresponding head paths and file sizes. If it matches, it's most likely a duplicate. However, there are rare cases where there are two heads with the same file size, so it also compares the contents with a string check.

Changing this to actually load every file, parse it as a PNG/GIF/MNG, then compare each pixel would be nearly impossible and definitely not worth the effort (except maybe for experience in programming, I guess).
__________________
Reply With Quote
 


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 +2. The time now is 11:05 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.