Showing posts with label booklet. Show all posts
Showing posts with label booklet. Show all posts

2014-05-20

T5SS Data Update - April/May 2014

The new data is now live!

Summary of changes:

  • T5SS sectors now have 4-character allegiances; these are visible on the map and in tab-delimited and column-delimited data files. The new allegiance codes are mapped to 2-character codes when "SEC" files are output or at low scales. Codes are documented at http://travellermap.com/doc/secondsurvey
  • T5SS sectors now have 1- or 2-character base codes, e.g. NS for Naval Base and Scout Base, when shown in tab-delimited and column-delimited files. They are mapped to 1-character codes when "SEC" files are output. Codes are documented at http://travellermap.com/doc/secondsurvey
  • Booklet and World Data Sheets now use the newfangled allegiance and base codes
  • The following sectors are under review as part of the T5SS. The data is updated to conform to T5SS formats, but the data is still subject to heavy change.
  • Tab-delimited files are now assumed to be UTF-8 (previously, was Windows-1252)
  • And, of course, nearly all of the sectors covered by the T5SS have had some tweaks.
This will doubtless have introduced issues visible on the site (e.g. borders and routes that need tweaking) and due to the extensive code changes it's likely bugs have crept in that will affect booklet/poster creation. Let me know here or via email and I'll try and get them fixed ASAP.

Ω

2014-01-02

Custom Booklets

Experimental support for custom booklets is up at:

http://travellermap.com/booklet.html

I've tested this in Chrome and Firefox. If it works in IE it will require at least IE9. You can use your own data or pick an existing sector, although for an existing sector it's faster to just use http://travellermap.com/booklet.html?sector=name

A lot of "fancy" script and Web Platform APIs are used, so it may be fragile. To fetch custom images using form within a page requires using the FormData, XMLHttpRequest with response type Blob and FileReader, and since there's a gob of asynchronous processing that needs to go on I bit the bullet and used ECMAScript 6 "Promisespolyfill I had sitting around. If none of that makes sense, you can take away that it's more programming voodoo than usual.

I also had to implement HTTP POST support for the sector data and sector metadata APIs; it's pretty boring - they just parse what you send and spit it back out, but it can be used to parse SEC and get T5 Tab Delimited, or MSEC and get JSON out.

Ω