Enquirer Home Page | Twitter | Back to Improbable Island

 Forum Index > Season Two > Development New Topic Post Reply
 New greasemonkey script: Info Map
 |  Printable Version
Red Hatter
 Friday, August 17 2012 @ 12:58 AM UTC (Read 3874 times)  
Forum Contender
Contender

Status: offline

Registered: 08/09/12
Posts: 59

Yet another map script. This one will record the place you come across in your travels and allow you to make notes on them. Never remembering were has beds? Or were the KIND tower was? Hopefully this will fix that. Laughing Out Loud
https://github.com/RedHatter/ii-info-map/raw/master/ii-info-map.user.js

I'll be commenting the code in the next few days.

Prefs

Near the top of the file you'll find some variables in all caps, those are the preferences.

WIDTH and HEIGHT: the width and height of each square in the grid.

IMAGE: The location of the map image. This is a good one to use.

RESIZE: The map will be resized according to this value.

CROP: Cut this many pixels off the bottom. If using the alternative listed above set to 270

SHOW_PLACES: If set to true the map will show places as little black squares.
-------------------------------------

Bugs, comments, ideas? Shoot away!


 
Profile Email Website
Quote
Buddleia
 Friday, August 17 2012 @ 05:05 PM UTC  
Forum Improbable Badass
Improbable Badass

Status: offline

Registered: 04/23/10
Posts: 343

Oh, man, that's awesome. I'm one of those odd people who rarely have trouble remembering where particular places are - particularly not KIND Tower Mr. Green - but I can see this would be really handy.

I'd just about finished updating the landreg yet again. Now I have to go all over the whole map again to catch all the Places into this - and do you know I am not the least bit upset about this Wink


.... aaaaaand then I just found the MOTD. CMJ, what hath you wraught? You sneaky bastard! Making these things just when other people have been making their own versions!


Improbable Reference Links - goo.gl/MRBnb -------------- Land Registry (map of Places) ---- goo.gl/bpkRR
 
Profile Email Website
Quote
Red Hatter
 Friday, August 17 2012 @ 05:34 PM UTC  
Forum Contender
Contender

Status: offline

Registered: 08/09/12
Posts: 59

I just discoverer that it's not working, I must have made a bug on my last edit. I'll get it working as soon as I can.

Yeah, I post this, then MoTD starts flashing. I was like nooooooooooo, I spent weeks making something that was already being made? Laughing Out Loud my version does have a few things the game map does not, you can put notes on the places and view the map from anywhere. I think I might just integrate those into the game map now....


 
Profile Email Website
Quote
Red Hatter
 Friday, August 17 2012 @ 11:08 PM UTC  
Forum Contender
Contender

Status: offline

Registered: 08/09/12
Posts: 59

OK, it's working now. I had set the WIDTH and HEIGHT wrong.


 
Profile Email Website
Quote
Nekops
 Saturday, August 18 2012 @ 02:15 AM UTC  
Forum Contender
Contender

Status: offline

Registered: 06/05/11
Posts: 37

Now that the data is freely available, it would be great to be able to search the map for places... as in, have a text box into which I can type 'Sand', which would then indicate the squares that include the 'Sandy Singularity', the 'Slightly Disturbed Sand', 'The Singing Sands', etc...

That way, when you hear whispers of a Place, or see someone with a Memento you think might be given by a certain type of Place, you wouldn't have to click through the whole map to figure out where it is... just the four spots with 'Book' or 'Library' in the name.

Of course, I have no clue how feasible that is, but it would be a useful thing. Enough to get me to figure out how Greasemonkey scripts work and install one. :-P


 
Profile Email
Quote
Buddleia
 Saturday, August 18 2012 @ 02:22 AM UTC  
Forum Improbable Badass
Improbable Badass

Status: offline

Registered: 04/23/10
Posts: 343

Nekops, you can still do that by using the Search box or ctrl-F on the Land Registry ... though yes, even I have to admit that an automatically-updated one (rather than one that I spend hours tramping over the map to check every detail) would be much better. Nice idea.


Improbable Reference Links - goo.gl/MRBnb -------------- Land Registry (map of Places) ---- goo.gl/bpkRR
 
Profile Email Website
Quote
Red Hatter
 Saturday, August 18 2012 @ 02:59 AM UTC  
Forum Contender
Contender

Status: offline

Registered: 08/09/12
Posts: 59

I like it Big Grin I'll see what I can do.


 
Profile Email Website
Quote
Donk
 Saturday, August 18 2012 @ 05:48 AM UTC  
Forum Newbie
Newbie

Status: offline

Registered: 08/07/12
Posts: 7

CMJ's new map is quite awsome. All it needs is a "you are here" indicator, perhaps.


 
Profile Email
Quote
Matthew
 Saturday, August 18 2012 @ 06:53 AM UTC  
Forum Improbable Badass
Improbable Badass

Status: offline

Registered: 08/26/10
Posts: 578

I was about to post that. Are we not supposed to have a you-are-here anymore?

Also, when I click to hide the list of places I get stuck in a badnav. I can get unstuck by hitting the back button.


 
Profile Email
Quote
Red Hatter
 Saturday, August 18 2012 @ 11:07 PM UTC  
Forum Contender
Contender

Status: offline

Registered: 08/09/12
Posts: 59

Quote by: Nekops

Now that the data is freely available, it would be great to be able to search the map for places...

Thanks for the idea, you can find the new script here.

Quote by: Matthew

I was about to post that. Are we not supposed to have a you-are-here anymore?

Also, when I click to hide the list of places I get stuck in a badnav. I can get unstuck by hitting the back button.

You should make a new thread, I doubt CMJ is going to see it here....


 
Profile Email Website
Quote
Buddleia
 Sunday, August 19 2012 @ 12:18 AM UTC  
Forum Improbable Badass
Improbable Badass

Status: offline

Registered: 04/23/10
Posts: 343

The bugs with the new Map have been reported using the Petitions system. No need to make new threads or list them here - CMJ does know about them.



Using your new script, I get an interactive image, just like the new World Map. Nice. Adding notes fills in the little triangles to black, so I can instantly see which I've annotated. Very nice.

However, if I add notes, they don't appear until I've saved the note, closed the description and then reopened it. And the triangles don't turn black until I've reopened the map after adding notes. Would it be possible to have them change immediately?

Also, how do you close the map? It's dragable so I can shove it out of the way, but it seems to be stuck on top of the other things until I click an in-game navlink. How about an X in the topright corner to hide it? Uh, and I appear to have managed to open three of them at once. Whoops.


Improbable Reference Links - goo.gl/MRBnb -------------- Land Registry (map of Places) ---- goo.gl/bpkRR
 
Profile Email Website
Quote
Red Hatter
 Sunday, August 19 2012 @ 03:18 AM UTC  
Forum Contender
Contender

Status: offline

Registered: 08/09/12
Posts: 59

Quote by: Buddleia

The bugs with the new Map have been reported using the Petitions system. No need to make new threads or list them here - CMJ does know about them.


Yeah... I wasn't thinking, I'll be quite now Laughing Out Loud

Quote by: Buddleia


However, if I add notes, they don't appear until I've saved the note, closed the description and then reopened it. And the triangles don't turn black until I've reopened the map after adding notes. Would it be possible to have them change immediately?

Also, how do you close the map? It's dragable so I can shove it out of the way, but it seems to be stuck on top of the other things until I click an in-game navlink. How about an X in the topright corner to hide it?

Done, done, and done! Big Grin


 
Profile Email Website
Quote
Red Hatter
 Sunday, August 19 2012 @ 04:35 AM UTC  
Forum Contender
Contender

Status: offline

Registered: 08/09/12
Posts: 59

Quote by: Donk

All it needs is a "you are here" indicator, perhaps.


Only 'bout 4 lines of code later... and Advanced Game Map now has a current location indicator! Mr. Green


 
Profile Email Website
Quote
Omega
 Sunday, August 19 2012 @ 10:39 AM UTC  
Forum Improbable Badass
Improbable Badass

Status: offline

Registered: 10/12/09
Posts: 240

Quote by: Matthew

I was about to post that. Are we not supposed to have a you-are-here anymore?

Also, when I click to hide the list of places I get stuck in a badnav. I can get unstuck by hitting the back button.



Matthew, are you using Internet Explorer or Firefox? Those two seem to be the only ones that get a whitescreen when hitting the back button.


There are two secrets to success. The second one is to never reveal all your secrets.
 
Profile Email
Quote
Matthew
 Sunday, August 19 2012 @ 11:14 AM UTC  
Forum Improbable Badass
Improbable Badass

Status: offline

Registered: 08/26/10
Posts: 578

Yes, I'm using the latest version of Firefox.

No, I will not switch to Chrome.


 
Profile Email
Quote
Buddleia
 Sunday, August 19 2012 @ 06:37 PM UTC  
Forum Improbable Badass
Improbable Badass

Status: offline

Registered: 04/23/10
Posts: 343

Another idea: the notes you can add are stored in the browser cache, aren't they? Would it mean a huge rewrite, or might it be doable to add a way of downloading them to e.g. a text file, and being able to upload it as a backup if you need to clear your cache? And, ideally, if the text file was readable by humans as well as computers, and editable as well, then we'd be able to browse and update our notes while not actually on Improbable Island.


Improbable Reference Links - goo.gl/MRBnb -------------- Land Registry (map of Places) ---- goo.gl/bpkRR
 
Profile Email Website
Quote
Red Hatter
 Sunday, August 19 2012 @ 07:53 PM UTC  
Forum Contender
Contender

Status: offline

Registered: 08/09/12
Posts: 59

Quote by: Buddleia

Would it be doable to add a way of downloading them to e.g. a text file, and being able to upload it as a backup if you need to clear your cache? And, ideally, if the text file was readable by humans as well as computers, and editable as well, then we'd be able to browse and update our notes while not actually on Improbable Island.

Hum.... I don't know, I'll have to do some research. Confused


 
Profile Email Website
Quote
Red Hatter
 Monday, August 20 2012 @ 11:21 PM UTC  
Forum Contender
Contender

Status: offline

Registered: 08/09/12
Posts: 59

You can now view the places (all, filtered, or notated ones) in a text box for download, but no way to upload yet.


 
Profile Email Website
Quote
Content generated in: 1.42 seconds
New Topic Post Reply



 All times are UTC. The time is now 06:32 PM.

Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content