Skip to main content

Automatic card layout creation for Gloomhaven custom classes

Project description

Have you ever wanted to create you own custom Gloomhaven character? Do you wish there was a simple way to create beautiful cards for the class you are designing? Maybe you don't know how to use graphics editors to their best and would like to focus on class mechanic, but not bother with the graphic layout?

Good news then: just head to over to The Sleeping Lion and find out about the starting mercenaries getting ready to head for adventure!

The Sleeping Lion allows you to create normalized Gloomhaven cards for custom classes. It is essentially a parser converting a Gloomhaven Markdown Language (GML) file to a PDF or PNG file.

The Gloomhaven Markdown Language (GML) is a laconic way to easily describe cards by using text. They are saved with the extension .gml. Since these files are basically text files, they are quite small in size (only a few kilobytes) and are therefore easily sharable: perfect if your are working with someone else on a custom class!

The Sleeping Lion also comes with an interactive visual interface to help you design your cards. This interface allows you to easily create, edit and export GML files and also shows a preview of the cards you are designing.

Before creating your cards, make sure to check the tutorial to use this software at its best.

Here are a few examples of what the cards look like when they are created using The Sleeping Lion:

Installing The Sleeping Lion

Windows users

For Windows, you can simply use this binary (you do not need to have Python installed).

Of course, you can also install The Sleeping Lion in a Python environment by following the instructions below.

Linux users

Dependencies

The Sleeping Lion depends on PyGObject and manimpango, which require non-python dependencies. You can install those dependencies by running

sudo apt install libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0 libpango1.0-dev

You can find the PyGObject install documentation here and the manimpango documentation here.

The Sleeping Lion

The Sleeping Lion is distributed though PyPi and can simply be installed using pip:

pip install thesleepinglion

You can also install it from source by downloading this repository and running:

pip install .

Once installed, just run thesleepinglion to launch the graphical interface.

Documentation

  • You will find here a short tutorial explaining how to get started with The Sleeping Lion.
  • A list of available functions can be found here.
  • You can find the .gml file corresponding to the Spellweaver's cards here. The corresponding output PDF can be found here.
  • Similarly, you will find the Demolitionist's cards here, and the output PDF here. This example includes enhancement dots and divider lines, and also highlights some of The Sleeping Lion's limits.
  • The FAQ for The Sleeping Lion can be found here.
  • If you want to help develop The Sleeping Lion, or want to know what is happening behind the scenes, check out this document about some advanced topics!

Acknowledgements

I would like to thank Isaac Childres for releasing the assets, and for his interest in developping an active community around Gloomhaven. This project, and in general the creation of custom Gloomhaven classes would not have been possible without his cooperation.

I would also like to thank Matthieu Vigne for his support and help throughout this project. The Sleeping Lion would never have made it without you.

Credits go to Alex Vigne for The Sleeping Lion's icon. Thanks!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thesleepinglion-1.2.0.tar.gz (30.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thesleepinglion-1.2.0-py3-none-any.whl (30.0 MB view details)

Uploaded Python 3

File details

Details for the file thesleepinglion-1.2.0.tar.gz.

File metadata

  • Download URL: thesleepinglion-1.2.0.tar.gz
  • Upload date:
  • Size: 30.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for thesleepinglion-1.2.0.tar.gz
Algorithm Hash digest
SHA256 424a4203456dac5205f15cebe99f76d91ec175fdc263b1c732f09e6006daa81b
MD5 4c06b3bef46c43676ef2ec1fe0b559dd
BLAKE2b-256 530e30a0ff46b25851a160a61ff3728dc162b2ba4f521f550ad9a0aa7eba8b8e

See more details on using hashes here.

File details

Details for the file thesleepinglion-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for thesleepinglion-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 936191699ce6524eb17d48b09955febf72b927d70821de31081afb88824e0d2e
MD5 64da94ebe6cab31f88419b8963153d98
BLAKE2b-256 395b45b4eda4ffec176681fe9a0b84c6c5a2e1129205ea7ef0c5c6ee905ef65a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page