CK2 STAtic POrtrait MOd Generator
A quick tool to generate static portrait mods for Crusader Kings 2.
Install
Install with pip install stapomog. Make sure to use pip3 if Python 3 isn't your default version.
Use
Copy all your image files into a folder (you can use arbitrary subfolders for organization). There's no need to crop them into circles, but make sure your character's face is somewhat centered. Name the files following the pattern name_agerange_trait.ext. Everything after the first dot is ignored, so you can have multiple files with the same attributes.
Example:
hannah_20-30.png # will be used for the "hannah" portrait between ages 20 and 30
steve_mid.jpg # will be used for the "steve" portrait for middle age (30-49)
mike_35-40.alternate.jpeg # will be used for the "mike" portrait between ages 35 and 40
emily_-30_fair.png # will be used for the "emily" portrait up to age 30 if she's attractive
tiffany.jpg # will be used for the "tiffany" portrait at any age
gilly_young_wilding.png # will be used for the "gilly" portrait for young age (16-29) if she has the "wildling" trait
Then simply run the command stapomog (folder). It will generate a new mod in the folder stapomog_portrait_mod. Merge this folder with your existing mod or use it as a standalone mod (make sure to create a .mod file).
You can now assign the new portraits by adding traits with events, decisions or console commands - they are simply named portrait_(name). If you set the global flag debug_stapomog, you can directly assign portraits to any living person by right-clicking them.
If you add additional pictures, you can simply update your existing mod (even if you moved and renamed it) by running stapomog (modfolder). Keep in mind that updating mods midgame will break your savegames if traits are added or removed.
Metadata
Release files for stapomog 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stapomog-0.2.1.tar.gz | 17.2 kB | Without provenance | Details for stapomog-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stapomog-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for stapomog-0.2.1-py3-none-any.whl |
Total release size: 50.6 kB
Release files / stapomog-0.2.1.tar.gz
| Download URL | stapomog-0.2.1.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c001eb5cb1b71d166bb0d3e0abd46eaec8d15967686b18f740495538fa50d7e
|
|
BLAKE2b-256 checksum How to use checksums |
48682fe885c3821c71b2d2567605058bd3b25ac68b6916cf29a7a60ac7ea5dce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.9
|
Release files / stapomog-0.2.1-py3-none-any.whl
| Download URL | stapomog-0.2.1-py3-none-any.whl |
|---|---|
| Size | 33.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4388395043e1d5c105a29e24efe2b755a7d497681fd90b90143ab58df465aa26
|
|
BLAKE2b-256 checksum How to use checksums |
f66d130c404693286687ec405d96b5e943067196b1d9a4038a7caeb67f1247b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.9
|
Security for stapomog 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.