Git Product home page Git Product logo

pfsb's Introduction

A PFRPG Monster Stat Block generator

I hope you find PFSB useful. It needs a lot of work right now, but even in this
primitive state it should be useful.

I wanted to release this as GPL code, but due to the nature of PFRPG I felt it
was legally necessary for me to release this as OGL instead. I won't come after
you for incorporating my code into a GPL or similarly copyleft program, as long
as you return the favor if I ask. That said, I can't guarantee that someone else
won't come after you.

Additional contributors, wittingly or otherwise, will be listed in CONTRIBUTORS.

To build:

1. Ignore the config script. It just runs true.
2. Run make.
3. Run make install.


To use:

1. Open a terminal in the desired output folder.

2. Invoke the program from the command line. --version prints the version and
     license information. --help prints help text and a warning to not use $ in
     user input. --ogl prints information on Open Game Content and Product
     Identity. Any other switch will cause the program to error out.

3. Follow the prompts. You'll get an HTML file at the end. The HTML template and
     the CSS sheet are stored in a subdirectory of /usr/share/pfsb/.

4. Open the HTML file and read/print your monster. Or put it on a laptop and
     take it to game night/your FLGS. Or print it to a PDF and put it on your
     phone.


Also note that make uninstall intentionally leaves the CSS file where it is, so that existing files will still display correctly. To remove everything, run `make total-uninstall`.


As written, this version of the program will only function on *nix systems, but
it should be trivial to make it behave on Windows. Follow development at
https://github.com/frozenMustelid/pfsb

pfsb's People

Contributors

frozenmustelid avatar

Stargazers

 avatar

Forkers

skizzerz

pfsb's Issues

Program produces incorrect HP values

Some inputs produce correct values, some do not. Looking at the function, it's clear that the appropriate calculations are barely even close to what the program is actually doing. A quick glance at the function tells me that low-HD monsters should be more likely to be correct than high-HD ones, and that Undead are likely completely and utterly screwed. Either way, I should stop programming at 6AM.

Until this gets fixed, use a text editor to manually correct the information in the HTML file. Based on the 1 test I did, it seems like the breakdown is correct, though I wouldn't trust it.

Missing license info

The OGL isn’t a software license. While it covers much of the content/data you are using, you should have a license for the source code itself as well.

Odd-numbered ability scores less than 10 produce an ability modifier that's too high

The code that creates the ability score modifiers produces incorrect values for odd-numbered scores under 10. For example, 9 CON will be calculated as a +0 mod, 7 WIS will be calculated as a -1 mod, etc.

To reproduce:
Start PFSB
Follow the prompts until you reach the part where you enter ability scores
Give the creature a number less than 10 in any ability score. The more easily visible (like DEX), the better. Note that CON may not be the best choice, as the current version (0.1) of the program calculates HP incorrectly.
Follow prompts until the program exits.
Manually calculate the determined values (example: saves) from the independent values (for the saves example, base saves + ability mod) of the odd-numbered abilities lower than 10. Compare to the output file of PFSB.

Program rejects construct sizes smaller than Small

The code that calculates a construct's size-based bonus HP has a default case that assumes that any size smaller than Small is a typo. Since the program always thinks that any value for a creature size not accounted for is a mistake, the program will exit.

To reproduce:
Start PFSB
Follow the prompts
Tell the program the creature is a construct
Tell the program the size is tiny, fine, or diminutive
Follow prompts until the program exits. No file will be written, because the program thinks that your creature failed a sanity check.

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.