Printable Version of Topic

Click here to view this topic in its original format

Dumpshock Forums _ Shadowrun _ Any real-life hackers out there?

Posted by: chinagreenelvis Jul 12 2010, 09:02 PM

http://www.1w6.de/rpg/sr/map/

Seriously. I want the code that runs this site so I can

a. make it possible to zoom in closer

and

b. add things to it

Posted by: Critias Jul 12 2010, 09:10 PM

Then maybe you should

a. find out who runs it

and

b. talk to them.

Posted by: chinagreenelvis Jul 12 2010, 09:14 PM

But I've

a. already thought of that

and

b. sent an e-mail through the site and used Google to translate it into German so they can understand what it is I want

and

c. anticipated that I will probably never, ever get a response

Posted by: Cabral Jul 12 2010, 09:18 PM

http://www.1w6.de/rpg/sr/

My German is non-existent, but I gather they use Google Map. Plug that url into Google and the translation of that page should give you a tip or two.

Posted by: Dr.Rockso Jul 12 2010, 09:36 PM

The site has an awesome interactive flash map of Seattle though : http://www.1w6.de/rpg/sr/seattledistricts.php4

Posted by: Stahlseele Jul 12 2010, 09:44 PM

The Descriptions of the dots on the map are in english for me O.o

Posted by: chinagreenelvis Jul 12 2010, 10:09 PM

Oh, it's all in English and works great, except for the part about not being able to zoom in to street level (the clusterfuck of dots just north of the Arcology is impossible to work through otherwise). Also, I'd like to be able to add some things to it.

Posted by: Hartbaine Jul 12 2010, 10:16 PM

It's just a Google map. Make your own. I use them all the time for World of Darkness games.

Posted by: biccat Jul 12 2010, 10:19 PM

Nice map.

Reminds me of one a friend did (although it wasn't online) with pins. He also had traveled to Seattle recently and had photographs of famous places.

Posted by: chinagreenelvis Jul 12 2010, 10:28 PM

QUOTE (Hartbaine @ Jul 12 2010, 10:16 PM) *
It's just a Google map. Make your own. I use them all the time for World of Darkness games.


I don't have the time or energy to start from scratch. I want to appropriate the hard work of others.

Posted by: Abschalten Jul 12 2010, 10:30 PM

QUOTE (chinagreenelvis @ Jul 12 2010, 06:28 PM) *
I don't have the time or energy to start from scratch. I want to appropriate the hard work of others.


LAWL! ohplease.gif

Posted by: Cabral Jul 12 2010, 10:43 PM

Try this:
http://bbs.keyhole.com/ubb/ubbthreads.php?ubb=showthreaded&Number=424094&site_id=1#import

Posted by: chinagreenelvis Jul 12 2010, 11:52 PM

Hm. You know, that might be even better. Thanks!

Posted by: Congzilla Jul 13 2010, 12:37 AM

Just do 'view source', it has the java script laying right out on that page.

CODE
var point = new GPoint(-122.33603, 47.61000);
      var html = '<div class="text"><b>Wylie´s Gala Inn</b><br>4th Avenue & Pike Street<br>Middle-Class Hotel (20 floors)<p>The 1930s decor of this hotel seems better-suited<br />to a detective trideo than to modern-day Seattle.<br />Service is good, if a little slow. This was the<br />first hotel of the small Wylie´s Gala Inn chain.</p></div>';
var marker = createMarker(point, html, icon_hotel);
      map.addOverlay(marker);


These are the bits you need to change.

To change what the markers represent change these bits.

CODE
var myshadow = new Image(17, 17);
myshadow.src = 'clear.png';

var icon = new GIcon();
icon.image = "dot.png";
icon.shadow = "clear.png";
icon.iconSize = new GSize(15, 15);
icon.shadowSize = new GSize(17, 17);
icon.iconAnchor = new GPoint(7, 7);
icon.infoWindowAnchor = new GPoint(7, 7);

Posted by: Congzilla Jul 13 2010, 12:51 AM

This is the best thing to use to strip apart a website btw.

https://addons.mozilla.org/en-US/firefox/addon/60/

Posted by: chinagreenelvis Jul 13 2010, 01:34 AM

Ah yeah, we use the Web Dev plugin at work. Hadn't thought of that.

I did however just save the page, which I then uploaded to http://shadowrun.chinagreenelvis.com/seattlemap in order to test it. It loads everything just fine but for some reason the dots disappear after loading, as if the z-indexes of everything were borked. I'll have to look closer.

I did find that code for adding new dots - which would take a pretty good amount of trial and error for getting the locations right, but thankfully not at all impossible. The one crucial element that I'm lacking is the ability to zoom in even further, even if it pixellates or blurs the map images. If anyone can scan the codes and figure this part out, that would be truly karma-worthy.

Thanks for all the suggestions!

Posted by: chinagreenelvis Jul 13 2010, 01:36 AM

Hm. I'm noticing that when the dots disappear, the page starts loading information from the original website. Curious.

Posted by: chinagreenelvis Jul 13 2010, 01:50 AM

Yeah, having just saved the page through firefox basically killed the functionality. I'll try going back to the original source.

Posted by: chinagreenelvis Jul 13 2010, 02:45 AM

Looks like the dots are set to Earth coordinates as opposed to pixels or percentages. As long as I have those, I should be able to recreate the contents in another map. Guh. I still can't fathom why they didn't make it possible to zoom in further in their version, plus I'm wondering where the map tiles they're using came from. They appear to have been custom made. Oh well.

Posted by: chinagreenelvis Jul 13 2010, 04:54 AM

Woot.

http://shadowrun.chinagreenelvis.com/map/


Posted by: Mäx Jul 13 2010, 07:13 AM

QUOTE (chinagreenelvis @ Jul 13 2010, 06:54 AM) *
Woot.

http://shadowrun.chinagreenelvis.com/map/

Well nice job making it more zoomable, but its not really cool to steal other peoples work like that.

Posted by: IKerensky Jul 13 2010, 07:57 AM

QUOTE (chinagreenelvis @ Jul 12 2010, 10:02 PM) *
http://www.1w6.de/rpg/sr/map/

Seriously. I want the code that runs this site so I can

a. make it possible to zoom in closer

and

b. add things to it


a. use the CTRL + mouse wheels

nyahnyah.gif

Posted by: simplexio Jul 13 2010, 08:30 AM

I got this Idea, how about creating page into shadowrunWiki which has Name, GPS point and short description or reference to book in some useful format. So that people could grab it and use POI data in Google maps overlays or whatever people use for their map drawing.

That could be useful tool for community.
Other ideas include taking current height data and change it according shadowrun rule books (you need height rastermaps for this, available for free), Overlays like 1w6 site has about ratings in area, etc. Just publish them in some usable geodata format and it should be easy to people add their own tools. Best part using standard geodata formats is that you can overlay all that data into Google Maps and/or use all existing geodata with shadowrun data.

Posted by: chinagreenelvis Jul 13 2010, 11:41 AM

QUOTE (Mäx @ Jul 13 2010, 07:13 AM) *
Well nice job making it more zoomable, but its not really cool to steal other peoples work like that.


What can I say? I'm a bastard. But much as I did with the diceroller, I'll be including original credit in the page's source-code with a link to the German site. I was just too tired to add it in last night.

Edit: Just got an e-mail from the guy who runs the site. Permission was given to appropriate their work for my own use. All is well.

Posted by: chinagreenelvis Jul 13 2010, 11:41 AM

QUOTE (IKerensky @ Jul 13 2010, 07:57 AM) *
a. use the CTRL + mouse wheels

nyahnyah.gif


LOL. That was the first thing I tried! Unfortunately it just makes the clusterfuck of dots bigger, rather than creating space between them.

Posted by: chinagreenelvis Jul 13 2010, 11:43 AM

QUOTE (simplexio @ Jul 13 2010, 08:30 AM) *
I got this Idea, how about creating page into shadowrunWiki which has Name, GPS point and short description or reference to book in some useful format. So that people could grab it and use POI data in Google maps overlays or whatever people use for their map drawing.

That could be useful tool for community.
Other ideas include taking current height data and change it according shadowrun rule books (you need height rastermaps for this, available for free), Overlays like 1w6 site has about ratings in area, etc. Just publish them in some usable geodata format and it should be easy to people add their own tools. Best part using standard geodata formats is that you can overlay all that data into Google Maps and/or use all existing geodata with shadowrun data.


THIS is a great idea. Having GPS point info would make it really easy to add new locations. I say we put this in Community Projects.

Posted by: Yerameyahu Jul 13 2010, 01:17 PM

Can't steal free things.

Posted by: MJBurrage Jul 13 2010, 03:02 PM

I'm guessing that the original German version used custom map tiles to have the neighborhood security codes showing (AAA, AA, etc.) and the red boundry lines. Perhaps the zoom was restricted by the resolution of said map tiles.

Can letter-groups be used as pins on Google-powered maps ? What about the red lines between Downtown, Pullyup, etc. ?

Posted by: chinagreenelvis Jul 13 2010, 03:20 PM

QUOTE (MJBurrage @ Jul 13 2010, 04:02 PM) *
I'm guessing that the original German version used custom map tiles to have the neighborhood security codes showing (AAA, AA, etc.) and the red boundry lines. Perhaps the zoom was restricted by the resolution of said map tiles.

Can letter-groups be used as pins on Google-powered maps ? What about the red lines between Downtown, Pullyup, etc. ?


I'll be looking into this next, actually. That's one of the things I really like about their version.

The security codes should be the easy part, apart from a bit time consuming. I can use opaque .png files as markers and place them accordingly. Getting the lines drawn on the map might be tricky...

If anyone wants to take a stab at either one, setting up a Google page is actually pretty easy - but I'm forced to use the outdated version in order to keep the marker codes without having to rewrite them all.

http://code.google.com/apis/maps/documentation/javascript/v2/

Here is everything needed for the map page that I'm using:

http://shadowrun.chinagreenelvis.com/map/map.zip

Just replace the first javascript link in the index page with the one that Google gives you and you should be able to upload it to whatever site you designate for your key.

Posted by: Draco18s Jul 13 2010, 03:39 PM

QUOTE (Mäx @ Jul 13 2010, 02:13 AM) *
Well nice job making it more zoomable, but its not really cool to steal other peoples work like that.


Dude, guys. It's just a re-icon'd version of http://maps.google.com/maps/ms?hl=en&ie=UTF8&msa=0&msid=107934196054375000963.000465d56e7a904c6b0c8&z=11.

Looks like it has a bit more info, but I'd bet dollars to doughnuts that he borrowed the information that was there and just added to it for his own use.

Posted by: chinagreenelvis Jul 13 2010, 03:54 PM

QUOTE (Draco18s @ Jul 13 2010, 04:39 PM) *
Dude, guys. It's just a re-icon'd version of http://maps.google.com/maps/ms?hl=en&ie=UTF8&msa=0&msid=107934196054375000963.000465d56e7a904c6b0c8&z=11.

Looks like it has a bit more info, but I'd bet dollars to doughnuts that he borrowed the information that was there and just added to it for his own use.


Hm. That's pretty sweet, too.

Anywho, awesome. I started the community project thread for it http://forums.dumpshock.com/index.php?showtopic=32012&st=0#entry956506, so we can let this one die.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)