This app is written to generate the data files (text) for the Fantasy Grounds internal parsing application. It saves the many hours building them by hand, or copying and pasting them from PDFs etc.
To do this we use the TravellerMAP API's. This amongst other things, allows this app to pull down the UWP data for a sector split by subsectors.
https://travellermap.com/doc/api
This includes the subsectors and all systems within those subsectors.
The files are written as text files in the ./data
sub-folder using the sector name as the basis.
The format of these files are fixed, one is for the Reference Manual, one is for the System data, and the last produces a .mod suitable for Fantasy Grounds.
It's written using NodeJS v12. Make sure you are using v12 and above before you run this.
To install
After cloning this repo, make sure you're in the repo folder inside a terminal window
npm i
That should install all the libraries required for the app.
To Run
npm start
Please note that if data already exists for the sector, it will be replaced with the new data.
Tests
There are currently no Unit Tests.
At the moment, there's no UI with this app, I don't see the need for it for my own needs, but might create a UI in the future, it really needs refactoring now everything is there.
You will need an .env file (located in the root folder you'll find an example env sample
- you can rename this).
Editing the env file:
SECTOR=Reft
BUILD_TYPE=module
SORT=alpha
HEXCODE=sector
You can change the sector by editing it here, note that it's case senstive and spelling must be accurate, otherwise an error will be thrown.
Build Type - this can be 'module', 'ref' or 'system' (defaults to ref)
Sort - this can be 'alpha' or left empty
Hexcode - this can be 'sector' or 'subsector' (defaults to sector)
This application is under the ISC License, however the data generated is not, please see here for further information:
https://www.farfuture.net/FFEFairUsePolicy2008.pdf
If you use this application, please give me credit, thanks.
Colin 'MadBeardMan' Richardson