Skip to content

Barotrauma game wiki generated using data scraped from XML content definitions

Notifications You must be signed in to change notification settings

underscoren/barodocs

Repository files navigation

BaroDocs

A documentation generator for the game Barotrauma using the game's XML files.

The project is split in two: the scraper and the web app. The scraper generates a json file containing definitions for the web app, and the web app reads the definitions and generates html elements to display in the browser.

Currently in early stages of development, the majority of features are missing.

Setup

In order to run the generator for yourself, you will need node.js, npm and a retail copy of Barotrauma.

  1. Clone the github repo and run npm install to install all the packages.
  2. Copy the "Content" folder from your Barotrauma game into the "build" folder inside the repo.
    1. Fix the XML files as detailed below
  3. Run npm run scrape to scrape the files
  4. Run npm run build to build the web app
  5. Run npm start to start the web server
  6. Open up a web browser and nagivate to localhost:8000

TODO

  • Move to typescript
  • Create ContentParsers for all the other content types (currently only Items and Afflictions are parsed)
  • Parse the rest of the tags found in Item ContentParser
  • Allow the user to specify the contentPackPath and languagePath using command line arguments (yargs library?)
  • Improve search functionality
  • Improve mobile browsing experience
  • Replace all usage of jquery and replace bootstrap with bootstrap-react
  • Use a better XML parser

About

Barotrauma game wiki generated using data scraped from XML content definitions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages