Git Product home page Git Product logo

pf2ools-data's Introduction

The Pf2ools Data Repository

A project in the Pf2ools ecosystem to represent all Pathfinder 2nd Edition game content in JSON format.

Overview

All the actual game data is in the data/ directory.

Directory structure

All Paizo-made content is in the core/ directory, and all homebrew content is in the homebrew/ directory. In each of these directories, there is one directory for each source, named according to its title. In each of these directories, there is a source file which describes that source, and further directories for each datatype that source contains. The actual content-data files are within these lattermost directories.

In addition to core/ and homebrew/, there is also a common/ directory, which contains directories for any license or source group files.

Data structure

All files are JSON objects with the following properties:

  • type, which defines the type of data described;
  • name or title, which defines the content's name;
  • data, which represents the content itself.

There might also be a tags property, which contains various categories and variables that don't directly define the statblock itself.

The exact form of each of these properties can be investigated over in the Pf2ools Schema.

Conventions

Pf2ools follows the following standardisation conventions:

  • Files must be encoded with UTF-8 (without BOM), use "LF" as the end-of-line sequence, and end with a newline.
  • Files must use tabs for indentation and have no trailing whitespace.
  • Filenames must match the contained data's name.display or use the format <name.display>; <name.specifier>.json (e.g. Attack of Opportunity; Swashbuckler.json) if specifier is defined. The only exceptions are source, source group, and license files (which are all named following their title.full). Filesystem-unsafe characters (e.g. "?", ":") must be replaced with an underscore "_".

Using the data

The data is yours! Although the master data is stored in a 'statblock-by-statblock' manner, this is primarily for ease of maintenance. For developer- and application-use, you may find more use with it in another format.

Bundles and indexes

The bundles/ directory contains a series of directories containing JSON files. These files mirror the master data, but are (as you might expect) bundled together for ease of use in other applications.

The indexes/ directory contains a series of JSON files that serve as indexes of the existing data. Some of these are used internally, but you may generally find them easier to iterate through instead of the files directly!

In both cases, the files should be named fairly intuitively.

Important

You can run npm run build yourself, but you must have PowerShell 7 installed.

Some individual scripts accept optional parameters. See the comments at the top of each for more information; you can use them via npm run <script> -- [-Parameter ["value"] ...] [-Switch ...].

Versioning

Pf2ools gets better all the time!

Although bundled releases will be published from time to time, this will typically only occur when something 'substantial' has happened. For instance, there'll be a new release when we finish converting a new set of core content or update the schema... or if it's just been a while and there's a lot of typo fixes pending. This is admittedly fairly arbitrary, but we'll aim for a new release at least once every 4 months.

The bundles/ and indexes/ directories will be regenerated only when a new release is published.

Contributing

Please see CONTRIBUTING.md or join our Discord server for more information.

Legal

Content maintained by Pf2ools is reproduced without claim of ownership and under its respective license. Please refer to each source object's license property and cross-reference with the respective file in the data/common/license/ directory for more information.

Content published by Paizo Inc. is reproduced in accordance with the Community Use Policy.

All original content (e.g. scripts) is licensed under the MIT license.

pf2ools-data's People

Contributors

dependabot[bot] avatar mrvauxs avatar spappz avatar

Stargazers

 avatar  avatar  avatar

pf2ools-data's Issues

Skills Data

Just skills data. Nothing too major, and would allow for a very easy start into foraying into pop-up windows and whatnot with our current backgrounds page.

Create GitHub Issue Templates

Something for me to do. Current ideas for templates include:

  • Book Requests
  • Typo Reports

Feel free to comment any more that should be added.

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.