Skip to content

Repository files navigation

Roll Stats

Welcome to Roll Stats, a utility for breaking down and analyzing FoundryVTT (Virtual Tabletop) JSON databases (ldb) to provide an easily digestible format for game masters and players alike.

Features

  • Parses FoundryVTT ldb files to generate meaningful statistics.
  • Displays data in an easy-to-read format for quick insights.
  • Helps game masters understand trends in dice rolls, player activity, and more.

Installation

  1. Download the roll-stats-AllInOne.zip file from the repository and unzip it.

Make sure to shut down FoundryVTT before proceeding.

  1. Enter the newly created folder and install the required dependencies (or run install.bat):

    npm install

    Note: Ensure you have Node.js and npm installed. You can download Node.js, which includes npm, from https://nodejs.org/. Follow the instructions for your operating system to complete the installation. The level library is required for ldb-reader.js to work properly, and the package.json file includes this dependency, so running npm install will handle it for you.

  2. Run the program:

    roll-stats.exe
  3. Target the /messages folder in your FoundryVTT instance. Make sure FoundryVTT is completely shut down before proceeding. For example, it may be located at:

    C:\Users\yourusername\Desktop\FoundryVTT\Data\worlds\yourworldname\data\messages
    

Usage

  • Ensure you have a .ldb file exported from FoundryVTT.
  • Provide the .ldb file as an input to Roll Stats.
  • View the detailed breakdown of statistics in the output.

Example Output

After running Roll Stats, you will receive a report that includes:

  • Total number of rolls made.
  • Breakdown of rolls by player.
  • Frequency of natural 1s and 20s.
  • Average rolls and critical success rates. image

This makes it easier for you to analyze gameplay behavior and ensure everyone has a fair and enjoyable experience.

Contributing

Contributions are welcome! If you'd like to help improve Roll Stats, feel free to:

  • Fork this repository.
  • Create a new branch for your feature or bug fix.
  • Submit a pull request with a detailed explanation of your changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

If you encounter any issues or have suggestions, please open an issue on the GitHub repo or reach out to me directly via GitHub.

Acknowledgments

Special thanks to the FoundryVTT community for inspiring this project and providing valuable feedback.

Known Issues / Upcoming Fixes

  • Better instructions on how to merge characters.
  • Newly merged characters should not be auto-selected, allowing users to merge more characters without additional clicks.
  • Provide better information for the debug option and automatically redirect to the details tab instead of the results tab when debugging.
  • The dialog box asking if you want to use output.txt is deprecated and needs to be removed.

About

Parses chat logs from FoundryVTT into readable stats

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages