How to Install and Use PCGen: A Guide for Character Creation in Tabletop Games

Aug 19, 2024 | Programming

If you are an avid player of pen and paper games like Dungeons & Dragons or Pathfinder, you’ve probably encountered the need for an efficient way to create and manage your characters. Enter PCGen, a powerful open-source program designed to streamline your character management process. Whether you’re on Windows, Mac, or Linux, PCGen is the magical tool you need! This guide will walk you through the installation process and basic workflows, ensuring that you can dive right into your next adventure.

Table of Contents

Installing From Release 6.08

  1. Install Java:

    • JDK 11 is recommended and has long-term support, later versions should also work. Versions 10 and below are not supported.
    • To check if you have Java installed, see Install Java.
    • If you don’t have it, get it from AdoptOpenJDK.
  2. Download and extract the full zip file from GitHub PCGen Releases.
  3. Now run PCGen based on your OS:
    • Windows: pcgen.exe (or pcgen.bat for command-line users)
    • Linux: pcgen.sh
    • Mac: pcgen.jar (or pcgen.dmg if available)

Installing From Release 6.09 (Alpha)

Note: Java does not need to be preinstalled with PCGen 6.09.05.

  1. Using Zip Bundle:
    • Download and extract the zip labeled 6.09.xx from GitHub PCGen Releases.
    • Run PCGen similarly based on your OS.
  2. Using Installer (Windows and Mac only):

PCGen Needs You

PCGen thrives on community contributions! If you have experience with Java, or want to help expand the book support, consider joining the team. Connect via:

The Old Wiki

For historical context and design insights, explore the Old Wiki. The archive contains useful dev information that may enhance your PCGen experience.

PCGen LST Tutorial

Andrew has created a series of informative videos on LST files. Aimed mainly at new DATA contributors, these videos can also benefit anyone looking to deepen their understanding.

Basic Workflow

To ensure a smooth development process, adhere to this workflow:

  1. Pick a bug from the JIRA.
  2. Create and work on a branch in your fork of PCGen.
  3. Complete your work and push it back to your fork.
  4. Submit a pull request to the main repository for review.

Development Setup

The following steps guide you through setting up your development environment:

  1. Install Java (version 11 for 6.08, versions 17 and up for 6.09).
  2. Install Git for version control.
  3. Fork and clone the PCGen repository from GitHub.
  4. Keep your local repository updated with upstream changes.
  5. Choose an IDE, such as IntelliJ, Eclipse, or Netbeans, for coding.

Essential Gradle Tasks

Gradle is used to manage and build projects. Here are some essential commands:

  1. To see all available commands: ./gradlew tasks
  2. To compile Java: ./gradlew compileJava
  3. To run PCGen: ./gradlew run
  4. To clean all build files: ./gradlew clean

Troubleshooting

If you encounter an error stating “Task :run FAILED Error: –module-path requires module path specification” in IntelliJ, create a run configuration using Gradle to resolve this issue. You can also debug by using the Main configuration.

Check that you are using the supported Java version. For any additional questions, feel free to ask in the Discord or Slack.

For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.

At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

Stay Informed with the Newest F(x) Insights and Blogs

Tech News and Blog Highlights, Straight to Your Inbox