Skip Navigation

Pixel Leaderboard

I wrote a lua script that prints out how many pixels were placed by each player. It takes reverted pixels into account.

Previously I filtered via the shell with cat ./pixels.log.txt | grep -F 'user place' | grep -o -P '[^ \t\r\n@]+[@][^ \t\r\n@]+' | sort | uniq -c | sort -f | sort -b -g -s -r but that wasn't very much accurate.

So this is the result:

You're viewing a single thread.

12 comments
  • oops, didn't see the other thread...

    • I only posted top 100, your post is much more complete thanks :)

      Also, I used cat pixels.log.txt | awk '{print $3}' | sort | uniq -c | sort -nr (then head -100) to parse it. Do you mind telling me what grep -o -P '[^ \t\r\n@]+[@][^ \t\r\n@]+' does in yours? It looks scary lol

      • I've written a Lua script now that should deliver more accurate results and edited the post. Though I'm not sure how to interpret the "mod overwrite" actions, so I guess that would count as a moderation action that would decrement the user's place count.

        • Thank you! I was just working on something in python to remove the "user undo" from the results. Your results look a lot more accurate now

      • It basically does what awk '{print $3}' in your command does, so it just gets the users. It was quicker for me to do that right out of the top of my head :D

12 comments