Skip to main content

kirby-sheet

Render a HERO Designer character through HD's own .hde export templates — byte for byte.

Hero Designer has no plain-text exporter. HTMLWriter is the only writer it has, and it substitutes <!--TOKEN--> markers into an export template. This reproduces that, so a sheet rendered here is the sheet HD would have rendered.

Status: the output engine. Reads a .hdc character through kirby-cost and writes it out as JSON, plain text, HTML, PDF, or back to .hdc. It also inspects .hde templates, reporting which tokens a template uses and which the renderer resolves.

The .hde template engine is gated byte-for-byte against HD itself.

Ships no Hero Games content

No templates, no rules text, no character files. Point it at a .hde you already have.

Development

python -m venv venv && source venv/bin/activate
pip install -e ../kirby-cost          # ALWAYS, and first
pip install -e ".[dev]"
python -m pytest tests/ -q

Install the sibling editable, and do it first. kirby-cost is published, so pip will happily resolve the dependency pin against PyPI and give you a release that is behind the checkout next door — same version number, different code. That is not a hypothetical: this package was built for a day against a stale 0.2.2 and read a character's STR as 5 instead of 15 before anyone noticed. Nothing fails loudly when it happens, because a stale dependency installs perfectly.

Tests that need Hero Designer skip when it is absent:

Variable What it names
KIRBY_SHEET_HDC a .hdc character
KIRBY_SHEET_ORACLE hd6cli.sh from kirby-hd-oracle

Provenance

This is a port of licensed source code, purchased from Hero Games — the same provenance as kirby-cost, whose README sets it out in full.

The HERO Designer Source Code package is an official product Hero Games sells, offered precisely so people can build software that works with HD. The HTMLWriter behaviour reproduced here is cited against it line by line throughout this repository (e.g. HTMLWriter.swapValue (HTMLWriter.java:5636)). The purchase receipt and product page are retained by the maintainer and are deliberately not in this repository, which carries no Hero Games material of any kind.

Licence terms, and how this project sits inside them

Quoted from the product page:

  • You are welcome to change the code or utilize it however you want for your own personal use.
  • If the product you develop is distributed, you will need to pursue licensing with HERO Games -- the terms are exceedingly easy.
  • If the product you develop is intended for sale, there may be a licensing discussion needed with both HERO Games and the developer/owner of the HERO Designer source code. Generally speaking, use of the HERO Designer source code which does not replace or replicate the character generation process does not fall into this category.

This project follows those guidelines deliberately.

  • The source licence was purchased, at full price, from Hero Games' own store.
  • Use here is personal, which the first condition permits without conditions.
  • kirby-sheet does not replace or replicate the character generation process. It has no creation interface. It renders and re-expresses a character HD already built, and it cannot run without a .hde template and a .hdc file that only HD produces.
  • It is noncommercial — offered under PolyForm Noncommercial 1.0.0, not for sale — so the third condition's "intended for sale" case is not engaged.
  • The second condition is acknowledged, not hidden. This repository is public, which the terms treat as distribution. Nothing of Hero Games' is redistributed — not the templates, not the character files, not the rules text. Hero Games describe the licensing terms as "exceedingly easy", and if they want that arrangement formalised, contact the maintainer.

If Hero Games, or the owner of the HERO Designer source, sees any of this differently, we want to hear it — contact the maintainer and it will be acted on.

Copyright and trademark

HERO Designer is © 2002, 2003, 2006, 2009 by DOJ, Inc. d/b/a Hero Games. HERO System™ is DOJ, Inc.'s trademark for its roleplaying system. Game rules content remains the property of its copyright holders, and no claim is made to ownership of the HERO Designer application, the game rules, or the game mechanics. This project is an independent work and is not affiliated with or endorsed by DOJ, Inc. d/b/a Hero Games.

Licence

See LICENSE for the terms this code is offered under (PolyForm Noncommercial 1.0.0).

Download files

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

Source Distribution

kirby_sheet-0.1.0.tar.gz (58.3 kB view details)

Uploaded Source

Built Distribution

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

kirby_sheet-0.1.0-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

Details for the file kirby_sheet-0.1.0.tar.gz.

File metadata

  • Download URL: kirby_sheet-0.1.0.tar.gz
  • Upload date:
  • Size: 58.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for kirby_sheet-0.1.0.tar.gz
Algorithm Hash digest
SHA256 49c024c8f3807b9789b7e32118749cf5ba7a22232ee59992ecdf2821816a01d7
MD5 d3556c337b4950e712db90bed4868513
BLAKE2b-256 e4047961fd018adb40cc74bc5655c67c472a6f90dcc426cf16f8839cb192c9f5

See more details on using hashes here.

File details

Details for the file kirby_sheet-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kirby_sheet-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 35.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for kirby_sheet-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe594d2e450e12fab06367e6a87805e5af45a800eb012a686f3f85d9fabea960
MD5 8236cdbdd7441ff9c6739c4d5bd123eb
BLAKE2b-256 b198b94213487b7365a58ab3e999bcb4f69dd47b74b6536e26792573656329bb

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.1

2 files

0.2.0

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page