Red Hatter |
 |
Friday, August 17 2012 @ 12:58 AM UTC (Read 3874 times) |
|
|

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.
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!
|
|
|
|
Buddleia |
 |
Friday, August 17 2012 @ 05:05 PM UTC |
|
|

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 - 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
.... 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
|
|
|
|
Red Hatter |
 |
Friday, August 17 2012 @ 05:34 PM UTC |
|
|

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? 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....
|
|
|
|
Red Hatter |
 |
Friday, August 17 2012 @ 11:08 PM UTC |
|
|

Contender
 Status: offline
Registered: 08/09/12
Posts: 59
|
OK, it's working now. I had set the WIDTH and HEIGHT wrong.
|
|
|
|
Nekops |
 |
Saturday, August 18 2012 @ 02:15 AM UTC |
|
|

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
|
|
|
|
Buddleia |
 |
Saturday, August 18 2012 @ 02:22 AM UTC |
|
|

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
|
|
|
|
Red Hatter |
 |
Saturday, August 18 2012 @ 02:59 AM UTC |
|
|

Contender
 Status: offline
Registered: 08/09/12
Posts: 59
|
I like it I'll see what I can do.
|
|
|
|
Donk |
 |
Saturday, August 18 2012 @ 05:48 AM UTC |
|
|

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.
|
|
|
|
Matthew |
 |
Saturday, August 18 2012 @ 06:53 AM UTC |
|
|

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.
|
|
|
|
Red Hatter |
 |
Saturday, August 18 2012 @ 11:07 PM UTC |
|
|

Contender
 Status: offline
Registered: 08/09/12
Posts: 59
|
Quote by: NekopsNow 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: MatthewI 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....
|
|
|
|
Buddleia |
 |
Sunday, August 19 2012 @ 12:18 AM UTC |
|
|

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
|
|
|
|
Red Hatter |
 |
Sunday, August 19 2012 @ 03:18 AM UTC |
|
|

Contender
 Status: offline
Registered: 08/09/12
Posts: 59
|
Quote by: BuddleiaThe 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
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!
|
|
|
|
Red Hatter |
 |
Sunday, August 19 2012 @ 04:35 AM UTC |
|
|

Contender
 Status: offline
Registered: 08/09/12
Posts: 59
|
Quote by: DonkAll 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!
|
|
|
|
Omega |
 |
Sunday, August 19 2012 @ 10:39 AM UTC |
|
|

Improbable Badass
 Status: offline
Registered: 10/12/09
Posts: 240
|
Quote by: MatthewI 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.
|
|
|
|
Matthew |
 |
Sunday, August 19 2012 @ 11:14 AM UTC |
|
|

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.
|
|
|
|
Buddleia |
 |
Sunday, August 19 2012 @ 06:37 PM UTC |
|
|

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
|
|
|
|
Red Hatter |
 |
Sunday, August 19 2012 @ 07:53 PM UTC |
|
|

Contender
 Status: offline
Registered: 08/09/12
Posts: 59
|
Quote by: BuddleiaWould 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.
|
|
|
|
Red Hatter |
 |
Monday, August 20 2012 @ 11:21 PM UTC |
|
|

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.
|
|
|
|