2017-06-30 Traveller Subsector Generator

Yesterday I posted some Traveller links. Today I refactored my Traveller Subsector Generator and moved to a new web framework. I also merged my *UWP Generator* and my *SVG Mapper for Traveller* into a single web app, the Traveller Subsector Generator. I hope it’s pretty obvious how to use it, but I know that sometimes I get confused myself so here’s what it can do:

Traveller links

Traveller Subsector Generator

You start with an editable example UWP:

If you’re looking at an SVG map and you got here via *Random Map*:

If you’re looking at an SVG map and you got here via *Generate Map*:

If you’re looking an a read-only UWP:

OK, so the only weird thing is that sometimes there is no UWP link back from the map, right? Well, if you’re looking at https://campaignwiki.org/traveller/edit/344450615 and click on *Generate Map* then you can always use that id in the URL and type https://campaignwiki.org/traveller/map/344450615 into the address bar of your browser. And now the missing UWP link appears!

https://campaignwiki.org/traveller/edit/344450615

https://campaignwiki.org/traveller/map/344450615

I don’t even know why I’m posting all this. I makes me realise that the user interface needs more tinkering and I’m tired. If you have an idea for how to make it more obvious, specially if you haven’t used it before and you’re confused, I’d like to hear about it. Perhaps we can improve the web app together.

​#RPG ​#Traveller ​#Traveller Subsector Generator ​#Maps

Comments

(Please contact me if you want to remove your comment.)

Made some changes, and added random sector generation (32x40 instead of 8x10).

– Alex 2017-07-05 06:07 UTC

---

How to get a random UWP from the command line:

`perl traveller.pl get /uwp/874568503 2>/dev/null | xmllint --html --xpath '//pre/text()' - | perl -MHTML::Entities -pe 'decode_entities($_);'`

– Alex Schroeder 2017-07-05 14:57 UTC

---

How to generate a SVG file from the command line:

`perl traveller.pl get /map/874568503 2>/dev/null > 874568503.svg`

– Alex Schroeder 2017-07-05 14:58 UTC

---

Generating a simple SVG file from a map on the command line (URL-escaped):

`perl traveller.pl get --header 'Content-Type:application/x-www-form-urlencoded' --method POST --content "map=Rezufa%200101%20E310000-0%20Ba" /map 2>/dev/null`

– Alex Schroeder 2017-07-05 15:09 UTC

---

Generating an SVG map from UWP in a text file:

`perl traveller.pl get --header 'Content-Type:application/x-www-form-urlencoded' --method POST --content map=$(cat 874568503.txt|encodeURIComponent) /map`

This assumes you defined the following alias:

`alias encodeURIComponent='perl -pe '\''s/([^a-zA-Z0-9_.!~*()'\''\'\'''\''-])/sprintf("%%%02X",ord($1))/ge'\'`

– Alex Schroeder 2017-07-05 15:21 UTC

---

Amazing! I am doing a piece on my podcast discussing Traveller maps and will def be mentioning this. What a gift!

– Froth 2019-03-12 16:05 UTC

Froth

---

Hah, cool! Please link campaignwiki.org/traveller instead of this blogpost, though. I don’t think most people would want to know how to generate maps on the commandline using Perl, haha. 🙂

– Alex Schroeder 2019-03-12 16:09 UTC