View Full Version : Traveller Map based on UWP List

09-11-2009, 09:39 AM
(Copied from my blog post (http://emacswiki.org/alex/2009-09-11_Traveller_Map_Based_on_UWP).)

There is an amazing Traveller Map API (http://travellermap.com/api.htm) available out there. Specifically, there's a service that will produce a PDF based on your UWP list (http://www.travellermap.com/post.htm). But you know how it is. I bet half the Traveller referees are trying to code up subsector generators and mappers. Me too!

Here's my SVG Mapper for Traveller (http://emacswiki.org/cgi-bin/svg-map). It comes with example data so you can figure out what format it expects by looking at it. Just klick the Submit button! Remember, you need a browser that knows how to deal with SVG files Firefox will do.

Source code is available (http://emacswiki.org/cgi-bin/svg-map/source). I got to reuse some of my abandoned Old School Hex Mapper (http://www.emacswiki.org/alex/2007-06-08_Old_School_Hex_Mapper_Getting_Better). And figuring out the trigonometry stuff is fun.

09-12-2009, 12:05 AM
Very nice! I saw the traveller subsector pdf mapper on the T20 traveller website and was very impressed.

I tried substituting some data in the list but it didn't seem to work all of the time. Not sure if there needs to be a certain number of spaces between each item of data like name / uwp etc.

Very clear though. I like it very much.

09-17-2009, 06:53 PM
I tried substituting some data in the list but it didn't seem to work all of the time.

Thanks. I can think of several things:

The code currently expects the tech-level to be a decimal number, not a hex code. So if you supply tech level A-F, it fails.

There is no standard for how to indicate a mix of bases. The traditional UWP code tries to code all combinations into a single byte where as I just handle the letters RSNCTG to draw the appropriate base or a gas giant. If you tried any other letter or number instead, it fails.

I'd be interested in fixing the script to handle whatever people expect it to handle. If you could provide a list of UWP entries that failed, I'll take a look.

Also, I realized that empty hexes didn't contain coordinates, so I fixed that. :)

09-17-2009, 07:51 PM
Thats extremely cool. I cant believe you sent all that data over the URL tho - lol.

09-18-2009, 04:39 AM
Hehe, you're right. I should change that. :)

I also documented the format.

09-20-2009, 11:49 PM
Ya, I love Travellermap.com

It would be a little easier to make a map if it worked off of tab delineation though.