Utility script: See the changes in public scores easily

« Back to Developers

2706 days, 11 hours, 45 minutes ago
Profile Image
kosmonymous
Utility script: See the changes in public scores easilyWrite Reply
Hi!

Here's a small script I wrote to show the changes in any games public score, for faster overview of game progress. See screenshot for better description.

http://userscripts.org/scripts/show/128376

Check it out! Feedback is welcome.

Cheers, Kosmonymous
2706 days, 11 hours, 34 minutes ago
View rudel's profile
rudel
RE: Utility script: See the changes in public scores easilyWrite Reply
Looks really great! 

So how do I use it? Chrome/Firefox explanation would be appreciated. ^^ 
2706 days, 11 hours, 31 minutes ago
Profile Image
kosmonymous
RE: Utility script: See the changes in public scores easilyWrite Reply
Ahh, the blindness. Of course.

Its a GreaseMonkey script, so it will function in Firefox with GreaseMonkey addon.

Basically, you just follow the link and install. Requires the addon, but I'm sure it will suggest installing it first (if not, install the GreaseMonkey first). After install, should work out of the box.

I'll make chrome version if demanded, or force Sdeha to make it.
2706 days, 11 hours, 24 minutes ago
View rudel's profile
rudel
RE: Utility script: See the changes in public scores easilyWrite Reply
Perfect, it works great. :) 

I switched to Chrome lately because I did not like the new FF versions (they are slow & crash way more often at my PC) but I kept an FF installation on my hdd. So for checking the scores it's perfectly ok. 
2706 days, 11 hours, 22 minutes ago
Profile Image
kosmonymous
RE: Utility script: See the changes in public scores easilyWrite Reply
Thanks for the feedback. Smoothing the experience for taking it into use is important. I'll look into the Chrome port later.
2706 days, 9 hours, 30 minutes ago
Profile Image
sdeha
RE: Utility script: See the changes in public scores easilyWrite Reply
Rewrote the script to support both Chrome and Firefox.

Took a little different approach. I didnt use unsafewindow at all to manipulate the dom. I am injecting a complete script to the body of the document and running it. This way it works in both Chrome and Firefox.

You can install it on Chrome by just pressing the Install button at userscripts page.

2706 days, 9 hours, 20 minutes ago
View rudel's profile
rudel
RE: Utility script: See the changes in public scores easilyWrite Reply
Hurray it worked :D 

Great job!
2705 days, 22 hours, 3 minutes ago
View vepr's profile
vepr
RE: Utility script: See the changes in public scores easilyWrite Reply
Great script Kosmonomous!  Thanks.

2705 days, 21 hours, 29 minutes ago
View coldsteel's profile
coldsteel
RE: Utility script: See the changes in public scores easilyWrite Reply
Don't want to seem obtuse, but I installed the Chrome version -- now what? How do I actually run it?
2705 days, 21 hours, 20 minutes ago
View mjs68508's profile
mjs68508
RE: Utility script: See the changes in public scores easilyWrite Reply
Go to the game page of any game. Go down to the bottom and click "Data."

This is so cool.

Thank you.
2705 days, 11 hours, 24 minutes ago
View mthomas47's profile
mthomas47
RE: Utility script: See the changes in public scores easilyWrite Reply
Just tried it out and it's terrific. Great job!
2705 days, 10 hours, 43 minutes ago
Profile Image
kosmonymous
RE: Utility script: See the changes in public scores easilyWrite Reply
I changed my script to support Chrome also.

http://userscripts.org/scripts/show/128376
2705 days, 6 hours, 26 minutes ago
View lord helmet's profile
lord helmet
RE: Utility script: See the changes in public scores easilyWrite Reply
Great stuff! Thanks!
2705 days, 1 hours, 47 minutes ago
Profile Image
joesnoffy
RE: Utility script: See the changes in public scores easilyWrite Reply
Excellent, thank you.
2696 days, 3 hours, 24 minutes ago
View smn's profile
smn
RE: Utility script: See the changes in public scores easilyWrite Reply
This is brilliant!
2695 days, 23 hours, 44 minutes ago
View bondservant's profile
bondservant
RE: Utility script: See the changes in public scores easilyWrite Reply
Yes very nice. Thank you.
2695 days, 15 hours, 56 minutes ago
Profile Image
kedalion
RE: Utility script: See the changes in public scores easilyWrite Reply
Sweet! :) 

Something like this should be default on .NU.
2695 days, 15 hours, 55 minutes ago
Profile Image
kosmonymous
RE: Utility script: See the changes in public scores easilyWrite Reply
They are free to add this by default. I'm more like let's get it done like a guy :)
2695 days, 15 hours, 42 minutes ago
View emork the lizard king's profile
emork the lizard king
RE: Utility script: See the changes in public scores easilyWrite Reply
Many thanks, kosmonymous! Great!!!

This also will make me take a deeper look at the GreaseMonkey thing.


2695 days, 7 hours, 26 minutes ago
Profile Image
kedalion
RE: Utility script: See the changes in public scores easilyWrite Reply
Kosmo, I'm all with you. I meant that this is how I would have liked it in the first place. Big thumbs up for making this availble.
2695 days, 6 hours, 40 minutes ago
View nitemare's profile
nitemare
RE: Utility script: See the changes in public scores easilyWrite Reply
Wow!!! This save me a lot of time working each turn in excel. Thanks man! 
2695 days, 6 hours, 7 minutes ago
View jobo's profile
jobo
RE: Utility script: See the changes in public scores easilyWrite Reply
this script makes me happy - thanks
2692 days, 13 hours, 25 minutes ago
View thin lizzy's profile
thin lizzy
RE: Utility script: See the changes in public scores easilyWrite Reply

this is brilliant..
2692 days, 3 hours, 38 minutes ago
View spacesquad's profile
spacesquad
RE: Utility script: See the changes in public scores easilyWrite Reply
wow, great  job, saves another 5min for each turn, thanks.
2685 days, 5 hours, 13 minutes ago
View mjs68508's profile
mjs68508
RE: Utility script: See the changes in public scores easilyWrite Reply
Added to links page:


2684 days, 9 hours, 29 minutes ago
Profile Image
kedalion
RE: Utility script: See the changes in public scores easilyWrite Reply
I haven't looked into the code, but the script seems to show some wrong numbers. For example one dead race is losing its last 3 planets every turn since it actually happened.  PBPs are shown to increase for some races that don't have ships (or had ships last turn) anymore. Ship numbers are shown to increase though the race only has that one ship and no bases. 

I didn't record last turns numbers, but I'll take a screenshot this turn and compare it to next turn.
2684 days, 9 hours, 15 minutes ago
Profile Image
sdeha
RE: Utility script: See the changes in public scores easilyWrite Reply
Can you give me a link to the game where you think it happened? I can go through the JSON object to see if there is an explanation for this. 


2684 days, 1 hours, 37 minutes ago
Profile Image
kedalion
RE: Utility script: See the changes in public scores easilyWrite Reply
Sorry, should have done that right away... It's Gotti's Hideout.

Look at player 1. The scores should all be constant 0 for everything for some turns now. 
As far as I can tell (I'm new to Chrome's inspect element features.) the scores for turn 40 and 41 (scores[1170] and scores[1200]) both contain the correct values which is all 0s.
2680 days, 21 hours, 15 minutes ago
Profile Image
kedalion
RE: Utility script: See the changes in public scores easilyWrite Reply
Turn 41 screenshot: http://images.cjb.net/3d134.jpg
Turn 42 screenshot: http://images.cjb.net/67a27.jpg
2680 days, 16 hours, 26 minutes ago
Profile Image
sdeha
RE: Utility script: See the changes in public scores easilyWrite Reply
Cheers, I also checked the scores for that game. There seems to be something strange going on for giant melee games. I will check it as soon as I have time.
2680 days, 8 hours, 41 minutes ago
Profile Image
kosmonymous
RE: Utility script: See the changes in public scores easilyWrite Reply
Good find, its because of the multiple same race + player name combos, when player is dead. eg. ( Cyborg (dead) and another Cyborg(dead) ).
2680 days, 7 hours, 39 minutes ago
Profile Image
kosmonymous
RE: Utility script: See the changes in public scores easilyWrite Reply
Fixed: dead races show wrong data

Get the updated version 0.2 from userscripts page.

Cheers, Kosmo
2674 days, 19 hours, 15 minutes ago
View snork's profile
snork
RE: Utility script: See the changes in public scores easilyWrite Reply
Does not work for me. :(
2674 days, 16 hours, 24 minutes ago
Profile Image
kosmonymous
RE: Utility script: See the changes in public scores easilyWrite Reply
snork, could you share information on what browser are you using and what steps did you do to use the script?
2674 days, 15 hours, 38 minutes ago
View snork's profile
snork
RE: Utility script: See the changes in public scores easilyWrite Reply
Opensuse 12.1 x86_64 Tumbleweed
Firefox 11.0 with Greasemonkey 0.9.18
Chrome 20.0.1094.0 (svn131123) with Tampermonkey 2.4.2702
Flash 11.2 r202

Both browsers, I installed script via userscripts.org. In Firefox the script didn't seem to run on the score pages. I didn't like the included page URL, so I added the planets.nu/home as well. The script seems active now, but nothing happens.

Haven't done much with Chrome except confirm it doesn't work.
2674 days, 15 hours, 16 minutes ago
Profile Image
kosmonymous
RE: Utility script: See the changes in public scores easilyWrite Reply

I must ask you did install this 0.2 version: http://userscripts.org/scripts/show/128376

And went to the data page of the score (not the ingame score) and you never saw any additional info on it on any game or in neither of the browsers?

2674 days, 15 hours, 16 minutes ago
View lord helmet's profile
lord helmet
RE: Utility script: See the changes in public scores easilyWrite Reply
Are you sure you're looking at the right place? It is not the ingame score table but the one at planets.nu/games/??? under Data.
2674 days, 9 hours, 29 minutes ago
View snork's profile
snork
RE: Utility script: See the changes in public scores easilyWrite Reply
Yes, sorry. I used that version (from that link).
2674 days, 9 hours, 27 minutes ago
View snork's profile
snork
RE: Utility script: See the changes in public scores easilyWrite Reply
Lord helmet gets the prize. I thought it was the in game score from the layout of the table. Doh! Everything seems to work fine.
2674 days, 9 hours, 26 minutes ago
Profile Image
kosmonymous
RE: Utility script: See the changes in public scores easilyWrite Reply

Great! 

2674 days, 8 hours, 31 minutes ago
Profile Image
kedalion
RE: Utility script: See the changes in public scores easilyWrite Reply
kosmo, I just uploaded a new script for extended plots. Once we tweaked all the single scripts for the game details page, we might want to merge them into one extension.
2673 days, 18 hours, 11 minutes ago
Profile Image
kosmonymous
RE: Utility script: See the changes in public scores easilyWrite Reply
Agreed, there is no use to maintain separate versions. Feel free to cannibalize any code you see fit for the united script or we can look into it together.
2673 days, 14 hours, 57 minutes ago
Profile Image
herbert
RE: Utility script: See the changes in public scores easilyWrite Reply
very useful script - thank you!
2671 days, 4 hours, 15 minutes ago
Profile Image
kedalion
RE: Utility script: See the changes in public scores easilyWrite Reply
Hmmm, something is still off. Just saw +2 ships on the second turn of a game: http://planets.nu/games/38376
2671 days, 4 hours, 10 minutes ago
Profile Image
kedalion
RE: Utility script: See the changes in public scores easilyWrite Reply
Nevermind. I double checked the input data: the script is correct, but the data seems to be wrong. (... Joshua / Zelrik)
2671 days, 3 hours, 58 minutes ago
View mjs68508's profile
mjs68508
RE: Utility script: See the changes in public scores easilyWrite Reply
The data may be correct. The bug may be earlier. Sometimes if you reset the starting turn, the MDSF disappears and then reappears on turn 2 with the ship you built the first turn.