Giter Site home page Giter Site logo

mattraykowski / fgmgt2travellerworldsdata Goto Github PK

View Code? Open in Web Editor NEW

This project forked from madbeardman/fgmgt2travellerworldsdata

0.0 1.0 0.0 54 KB

App used to pull the data from TravellerMap.com into Fantasy Grounds formats

JavaScript 100.00%

fgmgt2travellerworldsdata's Introduction

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.

Configuring what data format is used

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)

License

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

fgmgt2travellerworldsdata's People

Contributors

madbeardman avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.