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.
In order to run the generator for yourself, you will need node.js, npm and a retail copy of Barotrauma.
- Clone the github repo and run
npm install
to install all the packages. - Copy the "Content" folder from your Barotrauma game into the "build" folder inside the repo.
- Fix the XML files as detailed below
- Run
npm run scrape
to scrape the files - Run
npm run build
to build the web app - Run
npm start
to start the web server - Open up a web browser and nagivate to localhost:8000
- 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
andlanguagePath
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