Utility Script: Extended plots for game page

« Back to Developers

2679 days, 12 hours, 4 minutes ago
Profile Image
kedalion
Utility Script: Extended plots for game pageWrite Reply
I added extra history plots to the game page.  Plots are shown for ships (sum of both types), starbases, and PBPs.

The script can be found here: http://userscripts.org/scripts/show/131062

2679 days, 10 hours, 26 minutes ago
View lord helmet's profile
lord helmet
RE: Utility Script: Extended plots for game pageWrite Reply
Did you forget to inject the wrapper? I can see the list elements (Bases, Ships, PBPs) but they show no graph.

Edit: I cannot even find your calculation functions...
2679 days, 9 hours, 52 minutes ago
Profile Image
kedalion
RE: Utility Script: Extended plots for game pageWrite Reply
That is weird. I just tested it again straight of userscripts. Works both in Chrome and Firefox. 

Can you give me some more information? What browser are you using? Did you get any of the other extensions working?
Can you disable all other extensions and try again? I only tested it with kosmo's 'Planets.nu strategic information assistant' and my 'Giant melee stat fix'...
2679 days, 9 hours, 45 minutes ago
View lord helmet's profile
lord helmet
RE: Utility Script: Extended plots for game pageWrite Reply
All other scripts worked perfectly. Using FF11.0 on Win7 and FF12.0 on Ubuntu Oneiric. Same on both: black pane instead of graph.
2679 days, 8 hours, 21 minutes ago
Profile Image
dtolman
RE: Utility Script: Extended plots for game pageWrite Reply
Same here. You sure that you loaded all the code? Or don't have another script active that it depends on?
2679 days, 5 hours, 14 minutes ago
View vepr's profile
vepr
RE: Utility Script: Extended plots for game pageWrite Reply
nevermind...found it.
2679 days, 4 hours, 2 minutes ago
Profile Image
kedalion
RE: Utility Script: Extended plots for game pageWrite Reply
Found it... please try again now.

FYI: I could actually reproduce the problem. Nothing would show up if the Giant Melee Fix was not installed or if it was installed after this extension... no sure why as they don't depend on each other. 

The solution was to actually put the script inside the div element of the scores. The other scripts don't seem to need it... Maybe one of the other developers knows. 
2678 days, 23 hours, 14 minutes ago
View big beefer's profile
big beefer
RE: Utility Script: Extended plots for game pageWrite Reply
Works now! (it didn't when I tried before) These look really really good.
2675 days, 1 hours, 44 minutes ago
View mjs68508's profile
mjs68508
RE: Utility Script: Extended plots for game pageWrite Reply
Installed it. Works fine (the first time). I always close my browser and re-open it before trying a new script I have installed.

The ships and bases are very helpful. But, the PBP graph is not that intuitive.

What if you made it cumulative? I think I would get more info that I would actually use.
2674 days, 19 hours, 15 minutes ago
Profile Image
kedalion
RE: Utility Script: Extended plots for game pageWrite Reply
What do you mean by cumulative here?
2660 days, 7 hours, 45 minutes ago
Profile Image
kedalion
RE: Utility Script: Extended plots for game pageWrite Reply
Version 0.3 now works well with the Game Data Alliance Addon. Ordering was dependent on the order in which extensions were installed.
2271 days, 22 hours, 46 minutes ago
Profile Image
kedalion
RE: Utility Script: Extended plots for game pageWrite Reply
This script has been updated for the new planets.nu website. I removed the pbp graph and added some new stuff... 

A new addition is a history graph showing the total number of ships in the game. This allows to estimate the turn when the ship limit will be reached. As comparison the fastest, slowest, and average (median) speed games are also plotted depending on the game type.
2271 days, 13 hours, 51 minutes ago
Profile Image
dtolman
RE: Utility Script: Extended plots for game pageWrite Reply
Not working for me on firefox/greasemonkey

1) Greasemonkey isn't picking the page up as being on the include list
2) If I add it in manually (http://*), I see some errors pop up in and it appears the script isn't loading.
2271 days, 12 hours, 5 minutes ago
View big beefer's profile
big beefer
RE: Utility Script: Extended plots for game pageWrite Reply
I'm not having any luck getting this one to run either (I also use firefox):

Console says:
[08:27:48.788] SecurityError: The operation is insecure. @ http://planets.nu/#/sector/54512:15
[08:27:48.788] Creating space in game menu.
[08:27:48.788] Invoked with :#egametabs #etabs li
[08:27:48.788] 0
2271 days, 8 hours, 28 minutes ago
Profile Image
kedalion
RE: Utility Script: Extended plots for game pageWrite Reply
Found it. Turns out play.planets.nu hasn't been completely moved over to planets.nu.... The CSS stylesheets still reside on play which caused my script to trigger cross-site manipulation.

Should be working on planets.nu/#/*, play.planets.nu, and test.planets.nu in both chrome and firefox.
2271 days, 7 hours, 51 minutes ago
Profile Image
dtolman
RE: Utility Script: Extended plots for game pageWrite Reply
Working for me now - looks like you got it!
2271 days, 7 hours, 30 minutes ago
View big beefer's profile
big beefer
RE: Utility Script: Extended plots for game pageWrite Reply
Yes, very nice. I missed these!

One other thing, the pie charts don't seem to include the last player.
2271 days, 7 hours, 8 minutes ago
Profile Image
kedalion
RE: Utility Script: Extended plots for game pageWrite Reply
Nice catch, beefer. It's fixed. 

As for the pie charts, the google api for them automatically prunes 'insignificant' players out of the chart which actually seems nice. I used to just bunch them in a joint pie slice 'the rest of them'.
I do miss the labels around the outside though.

Any feedback or ideas for the 'speed' chart? 
1960 days, 7 hours, 19 minutes ago
View figak's profile
figak
RE: Utility Script: Extended plots for game pageWrite Reply
Suggestion:

Add the option to summarise the charts per team/alliance instead of pure player.