Utility Script: Integrates dark sense and super spy to planet hover text

« Back to Developers

2694 days, 2 hours, 52 minutes ago
View big beefer's profile
big beefer
Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
First let me thank the authors of http://planets.nu/discussion/utility-script-see-the-changes-in-public-scores-easily for introducing me to the userscript concept which I'd never heard of before.

I've posted a userscript that updates the info box shown when you mouse over a planet to include the "total" minerals reported in dark sense and super spy info. It also shows the friendly code, and if the planet is a base, the # of fighters. Here's a screen shot of a dark-sensed planet (notice the single value for minerals instead of the ?? / ??, also the friendly code (not known in this case)):




NOTE: this overwrites the planets.nu function normally used to display the box (it is just a modified version of said function), so if changes are made to the original this could break. It should do no permanent harm, but make sure you know how to uninstall user scripts in case something goes wrong.

Feedback of course welcome. Also, I've only tested with firefox so results on chrome would be nice to know too.

The link to install:
http://userscripts.org/scripts/show/129362
2693 days, 15 hours, 24 minutes ago
Profile Image
kosmonymous
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply

Nice one!

I have been thinking of modifying the vgap.js code, but haven't had a time to look into it yet. This will be a useful as a tutorial and also useful as is.

2692 days, 4 hours, 56 minutes ago
View mjs68508's profile
mjs68508
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
I really like being able to see the fcode when mousing over. It helps when playing with alliances and team games and you want to beam up fuel, minerals, etc.
2691 days, 2 hours, 58 minutes ago
View mjs68508's profile
mjs68508
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
I just noticed, it also tells you how many ftrs at your SB - cool.

Possible addition: Since it gives you the fcode of the planets, can you make it give you the fcode of each of your ships? That would be great when beaming up stuff from allies.
2691 days, 1 hours, 5 minutes ago
View big beefer's profile
big beefer
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Yeah, showing the fighters was pretty much due to a game I'm playing as the empire, where they kind of become just another resource you farm.

Anyways, I updated the script to show ship FCs as well. I've been hesitant to add too much since you can't scroll the info box, and every line you add might result in seeing fewer ships where there are big fleets. Another thought I had has to move to a more terse format, cramming more stuff into a smaller space. Something like:

N: 1200/1760 D: 400 T: 200 M: 50
$: 10000        C: 800 S: 100 Ftr: 50
FC: DIE         Dmg: 25% (Cloaked)
2690 days, 22 hours, 17 minutes ago
View mjs68508's profile
mjs68508
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Thank you for updating the script. As the borg in team games it will help when picking up stuff from allied worlds. I can also see it being useful for noticing if your HYP ships still have the HYP fcode and if Fireclouds still have a numeric fcode.

I guess you are right about not making it too big. That is something to be wary about.
2685 days, 9 hours, 37 minutes ago
View big beefer's profile
big beefer
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
I updated the script again to try out a new, shorter form for ships similar to the one I mentioned above. It should allow quite a few more ships to fit on the screen (and some additional info), hopefully without affecting readability too much. Damage and "Cloaked" will only be shown if applicable.

If you hate the shortened form, just use version 0.4 for now. I'm working on a method to be able to switch between them, but don't have anything great yet. More just looking for feedback right now.
2685 days, 6 hours, 45 minutes ago
View mjs68508's profile
mjs68508
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
I prefer the new one (0.5). However, I think some people might prefer the old one (0.4). I am a nerd and like spreadsheets anyway.

1. Maybe you could have 2 versions:
a. Regular (0.4)
b. Compact (0.5)

2. In the Compact version (0.5), it would be nice to have speed (say, right under "cln:"). I can't tell you how many times I don't have warp 9 because:
a. I am leaving a warp well and was travelling at warp 1
b. I just repaired a ship and the speed had been < warp 9

3. Then, if you are feeling really, really ambitious, the same treatment for when hovering over a ship in the planet display (upper left). It would be really helpful to see the damaged ships and warp speeds. In fact, if you could also add the notes (make the box bigger?), that would be even better. Sometimes I have many more ships at a planet than I can see with the hover that you are working on.

2684 days, 8 hours, 8 minutes ago
View mjs68508's profile
mjs68508
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Also, another nice addition would be owner, helpful in alliance and team games.
2684 days, 7 hours, 58 minutes ago
View mjs68508's profile
mjs68508
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Added to links page:


2679 days, 22 hours, 5 minutes ago
View big beefer's profile
big beefer
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Posted a slightly updated version with the warp for ships as requested, and also added what ship is being built to starbases. Meant to add owner to friendly ships, but forgot. Next time. Debating adding hull type as well, but don't know if it's worth the space.

Adding info to the ship/planet/starbase screen hover as well is a great idea, and I'll be getting to that soon I hope. Enjoy!
2676 days, 4 hours, 57 minutes ago
View big beefer's profile
big beefer
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Another minor update adding owner to allied ships (in the shortened view), and a map tool "Switch Info View" to toggle between the two different styles.

Note I changed the script name a little to match the form I've been using for my other scripts. You may have to remove the old version manually. I had to do so on firefox. I won't change names anymore, that's annoying.
2658 days, 6 hours, 42 minutes ago
View big beefer's profile
big beefer
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Updated (ver 0.9) to use (hopefully) persistent settings to toggle various things you may or may not want displayed, so should make things more customizable. Can add more options as requested. Settings are now more appropriately located on the "Settings" page, and should be saved locally across games. The "Switch Info View" tool has been removed as unnecessary now.

Let me know if there are issues.
2623 days, 5 hours, 8 minutes ago
View lord helmet's profile
lord helmet
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
I've got the feeling this one doesn't work any more as intended; I've got outdated info on enemy planets in the planet hover. Got no time to investigate right now, just thought you should know.
2549 days, 0 hours, 8 minutes ago
View big beefer's profile
big beefer
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Some updates to this one - version 0.11:
- Added option to show ship mission in hover text (short form). Actually did this a long time ago but forgot to post the new version.
- Updated the "other" hover text (the one on the ship/planet/starbase views) to include new info
- Will integrate with the ally info sharing script to show updated ally info when available
2523 days, 8 hours, 45 minutes ago
View mycroft's profile
mycroft
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Could it be possible included that the hover text portion show what ship(s) exploded on a purple "X" when highlighted? Save some time going back and forth and having to figure out which of the 30 blown up ships were where. 

Just the name portion (which is the only real known information) is necessary. 
2515 days, 21 hours, 19 minutes ago
View makko's profile
makko
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Okay, not playing the birds or Evil empire, so should this script show anything if installed?
I am not seeing anything new on mouse overs.
2515 days, 2 hours, 59 minutes ago
View big beefer's profile
big beefer
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
You should see new things, even if not playing birds or empire. There's a lot useful for any race. It sounds like the script isn't running (and I noticed you posted another question about one of my scripts that seems to be the same). If the script is running properly, you should see some new options related to it on the settings page.

So a few questions to try and troubleshoot:
- What page do you access the game from? http:/planets.nu/home? This would be the first place to try. Seems most reliable, or at least it's the one I use. I've done pretty much zero testing with the "new" site.

- When in the game (or at the games screen), if you click on the arrow next to grease monkey it should display all the scripts applicable to that page. Can you make sure they are listed and checked (enabled)?

- Are you running any other scripts, and are they all working?
2514 days, 9 hours, 47 minutes ago
View makko's profile
makko
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
I access the game from http://planets.nu/home

The script is enabled.

Here are the scripts that I have installed and enabled.
ally information sharing 0.10
improved hover text 0.11
improved ship list view 0.8 (works)
advanced starbase screen 0.5 (works)
map drawing 0.11
2460 days, 1 hours, 7 minutes ago
View makko's profile
makko
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
I got the script working, but I had to install the greasemonkey add-on first.  Then all of my other add-ons.
2237 days, 12 hours, 57 minutes ago
View tom n's profile
tom n
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Hi BB, Any plans to modify this very helpful script to the NEW site? I miss this one and I bet others do also. Tom
2236 days, 23 hours, 28 minutes ago
View big beefer's profile
big beefer
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
This one actually seemed like it worked on the new site for me... I did fix a small error causing a hang when exiting, so I did go ahead post a new version 0.14. I did find that in the new version I had to go into the settings and re-enable all the options for the add-on, but only once. I think it just saves to a different key for the different site name maybe? But anyways, it seems to work ok once they're enabled.

Give it a shot and let me know! I didn't look that close, so maybe I missed some part of it that isn't working.
2236 days, 22 hours, 28 minutes ago
View tom n's profile
tom n
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Fixed! Works great and really appreciate it Big Guy! In a game with 70+ bases and an ally with the same, it's a HUGE help to see FC and Ship Builds at a glance on the starmap. Great script!
At the risk of being a pest, did you create the "History On by Default" script? I must click that "History" button 100 times a day. Really miss that mod. Either way, thanks MUCH!
2162 days, 5 hours, 29 minutes ago
View figak's profile
figak
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Hi, so if you have darksense, bioscaner or super spy info you only see one of three on the planet with the new UI (and the old), this script will "fix" all of that into a single view?
2161 days, 11 hours, 44 minutes ago
View big beefer's profile
big beefer
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
@Figak, I'm not exactly sure what you are asking, but here's how it works as far as I remember:

If you ever had full mineral details on a planet (by owning it, being over it when it was unowned, or from an ally), that information is displayed. I didn't find a simple way to determine if that info or the darksense/superspy info was more recent.

Otherwise, if the only info you have is a total mineral value for darksense/superspy, that is displayed.

Note that this only applies to the hover text when you mouseover a planet (gray bar on the right side). I think you've always been able to see both sets of info by clicking a planet, it's just not as easy to quickly scan over things that way.

Also, this script does a fair amount more now. It was definitely a "must have" update for me before switching to the new version.
2161 days, 8 hours, 19 minutes ago
View figak's profile
figak
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
I recently have come across an issue that if you have share intel between races that have super spy, bioscanner or darksense. Then the combination of information from both is not possible to see. So one of those 3 is over-rides the other two.

I was wondering if this an UI problem (data is there but UI doesn't show it) or an DB problem (intelligence by shared by ally is thrown away).

If it is an UI problem, do you think this script may help?

If you want me to more especific send me a private and I will share info in confidence.
2158 days, 3 hours, 18 minutes ago
View big beefer's profile
big beefer
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
I took a peek at this and *think* it would be a host issue, with data from one ally clobbering the info from another, instead of merging them as you would like. There's only one set of values available to the UI for each planet, so it's just showing what's there.
2157 days, 18 hours, 43 minutes ago
View figak's profile
figak
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Thanks BB one for @Joshua
2157 days, 18 hours, 43 minutes ago
View figak's profile
figak
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Thanks BB one for @Joshua
2119 days, 12 hours, 42 minutes ago
Profile Image
moorgaan
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Does this script still work with the new client?  I tried adding it and it doesn't seem to work.
2118 days, 8 hours, 4 minutes ago
View big beefer's profile
big beefer
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
It's been working for me, so I know it at least *can* work. If you just recently installed it, you may need to go into the settings, and you should see some options for it at the bottom. You won't see much difference until you turn some of them on.

If you don't see any options for the add-on under settings, then it's not working. If you could open up a javascript console in your browser and see if it is spitting back an error, that would help me track down the problem.
2117 days, 13 hours, 40 minutes ago
Profile Image
ryndieum
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
I got it working for Moorgaan (my kid). He didn't realize that you had to restart Chrome after installing an addon to get the addon script to work.

I do have my own question however. In the older version of the client, there was an addon that displayed what ship was being built in the hovertext for a starbase. How difficult would it be to add that information to this addon? It is very useful for endgame starbase planning.
2117 days, 12 hours, 52 minutes ago
View tom n's profile
tom n
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
+1. I miss the "building: Gorbie" text.
2117 days, 12 hours, 17 minutes ago
View big beefer's profile
big beefer
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
That isn't working for you all? Is that a recent thing? It works fine for me, but I'll try to see what's going on. Do you see the number of fighters at a base or is that not working either?
2117 days, 12 hours, 14 minutes ago
Profile Image
moorgaan
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
After Dad got the addon working, I figured out that the starbase building and fighters at the base will work if you enable any (or all) of the checkboxes for the ship displays. If you have all the boxes uncheceked, the starbase stuff doesn't seem to appear either.
2117 days, 11 hours, 57 minutes ago
View tom n's profile
tom n
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Sorry. My error. Working well for me.
2117 days, 10 hours, 33 minutes ago
View big beefer's profile
big beefer
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Well, glad everyone seems to have it working! @Moorgan, I think that may be some sort of first-run initialization problem. I went and unchecked everything and I still saw the base stuff. This script is way overdue for an update, so I'll take a look when I get to that.
2044 days, 2 hours, 1 minutes ago
View figak's profile
figak
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
It seems this addon discards default UI info if the ship on hover is cloaked (intel sharing), worth noting for the next update :)
2033 days, 4 hours, 44 minutes ago
View tom n's profile
tom n
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Looks like this script somehow disables the NU message "WEB REPORT=OUT OF FUEL", which is much needed for us Crystal players. When I disable your (useful) script in Chrome, I can now see that NU text regarding WEB REPORTS. 
1959 days, 0 hours, 32 minutes ago
Profile Image
glyn
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
This one is totally not working now...
1958 days, 8 hours, 43 minutes ago
View tom n's profile
tom n
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Works for me. 
1856 days, 15 hours, 28 minutes ago
Profile Image
rock_the_endbringer
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
if i turn off this script, i can see whether a ship of mine or allies is cloaked or not, when i hover.
1619 days, 7 hours, 3 minutes ago
View tom n's profile
tom n
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Big Beefer,

Regarding the "Improved Hover Text" script:

If you have time, and it's not too much trouble, it would be great if this script would show "CLOAKED" in the hover box (as it does when I disable it) of ships belonging to me or races I am sharing intel with. I love the features, but really miss knowing if my allies ship is cloaked. Thanks again.
1619 days, 6 hours, 46 minutes ago
View big beefer's profile
big beefer
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Yeah, I've taken a step back from planets stuff because I need to find some paying work, so haven't been messing with scripts much... However, I think somebody posted a modified version on greasyfork.org that includes this, so check there.
1619 days, 6 hours, 37 minutes ago
View tom n's profile
tom n
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Thanks much!
1619 days, 6 hours, 26 minutes ago
View tom n's profile
tom n
RE: Utility Script: Integrates dark sense and super spy to planet hover textWrite Reply
Although, in case the new programmer is reading, the new script did not address this issue. Still no "cloaked" text in the hover over ships.