Skip to main content

Tool to quickly create Static Portrait Mods for Crusader Kings 2

Project description

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. 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 fair
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.

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

stapomog-0.2.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

stapomog-0.2.0-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file stapomog-0.2.0.tar.gz.

File metadata

  • Download URL: stapomog-0.2.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for stapomog-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3af088c11c2b5f5e59e98b1fa10765bdb13360a923c6f2eba75bc866c003e81c
MD5 b8fb32778a03e08ecaccd6eaff113a27
BLAKE2b-256 b0effa10dcce654b891daecac028b9eef07d950132972c5216fffc9e6e02da1e

See more details on using hashes here.

File details

Details for the file stapomog-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: stapomog-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for stapomog-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45d549ea5907594223eec178a1109a48439c66050c016785acdfb93a74a17769
MD5 663e8dd0970f0af9b97146601daae124
BLAKE2b-256 3229b31b75021906c9b57ba26c003cafafba15655b96b0f711a7c0b47a2ba6aa

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