Repository navigation
Releases
v0.4.8
Per-platform binaries of hoi4-imagegen (CLI) and hoi4-imagegen-mcp (MCP stdio server). Unsigned; verify with SHA256SUMS and gh attestation verify <file> --repo klimPaskov/hoi4-imagegen-mcp.
0.4.8
Signing in again after a server sign-out (D-143). When the route records a sign-out, the MCP server that saw it opens the ChatGPT sign-in page once in your default browser and keeps the local callback listening for up to an hour (the same flow as hoi4-imagegen login, with an hour instead of ten minutes). One process opens the page per sign-out, however many MCP servers run, and it is never opened again for the same sign-out. Nothing types, stores or asks for a credential, and nothing clicks the consent for you. The command line does not do this. HOI4_IMAGEGEN_NO_AUTO_SIGN_IN=1 turns it off.
hoi4.image_status shows chatgpt_login.route.sign_in: state: waiting_for_sign_in with started_at, revoked_at, expires_at and remaining_secs (then timed_out, failed or listener_stopped), so a session that draws can notify you and pause until sign_in is gone and revoked is false. When the sign-in lands, drawing continues at the set number and the learned limit (D-141).
Ledger. A lock marker that stays behind after a release is now marked released and old, so 0.3.x and 0.4.5 to 0.4.6 take it over at once. 0.4.5 to 0.4.7 can share a ledger.
v0.4.7
Per-platform binaries of hoi4-imagegen (CLI) and hoi4-imagegen-mcp (MCP stdio server). Unsigned; verify with SHA256SUMS and gh attestation verify <file> --repo klimPaskov/hoi4-imagegen-mcp.
0.4.7
Ledger. Servers of different versions on one machine no longer fork the ledger. 0.4.5 and 0.4.6 deleted the lock marker .hoi4-imagegen/ledger.lock while a 0.4.4 server still held a handle on it, so two writers could append at once. The marker is now adopted and removed only when nobody has it open. New commands: hoi4-imagegen ledger verify, and hoi4-imagegen ledger repair --reason "..." (with --dry-run), which chains a forked ledger again after a recorded chain_repair entry, with a backup in .hoi4-imagegen/ledger-backups/. Do not run 0.3.x or 0.4.4 beside this version.
ChatGPT-login route (D-141).
-
No fixed ceiling. The default is 10 requests at once.
-
A number above 10 takes effect only after you confirm it. In
.hoi4-imagegen/config.toml:[providers.chatgpt_login] concurrency = 16 concurrency_confirmed = true
The environment forms are
HOI4_IMAGEGEN_CHATGPT_CONCURRENCY=16andHOI4_IMAGEGEN_CHATGPT_CONCURRENCY_CONFIRMED=1. Without the confirmation the route uses 10, andhoi4.image_statussays why. -
A sign-out no longer holds the route at one request for hours. Every sign-out lowers the number in use by one, down to one (the learned limit, shared by every process and kept across restarts).
hoi4-imagegen reset-concurrencyclears it. Status shows it aschatgpt_login.route.concurrency.learned_limitwith the reason. -
The 20 second gap per slot, the 429 backoff and the revocation record are unchanged. The risk note was updated.
v0.4.6
Per-platform binaries of hoi4-imagegen (CLI) and hoi4-imagegen-mcp (MCP stdio server). Unsigned; verify with SHA256SUMS and gh attestation verify <file> --repo klimPaskov/hoi4-imagegen-mcp.
v0.4.5
Per-platform binaries of hoi4-imagegen (CLI) and hoi4-imagegen-mcp (MCP stdio server). Unsigned; verify with SHA256SUMS and gh attestation verify <file> --repo klimPaskov/hoi4-imagegen-mcp.
v0.4.4
Per-platform binaries of hoi4-imagegen (CLI) and hoi4-imagegen-mcp (MCP stdio server). Unsigned; verify with SHA256SUMS and gh attestation verify <file> --repo klimPaskov/hoi4-imagegen-mcp.
v0.4.3
Per-platform binaries of hoi4-imagegen (CLI) and hoi4-imagegen-mcp (MCP stdio server). Unsigned; verify with SHA256SUMS and gh attestation verify <file> --repo klimPaskov/hoi4-imagegen-mcp.
What changed since v0.4.2
hoi4-imagegen familiesprints a readable table, andfamilies <family>a short fact sheet, instead of a long JSON document. Add--jsonfor the full data.hoi4-imagegen auditseparates the index of the game and the mod from this mod's own sprite uses, so a mod that uses no sprites yet no longer looks like it has 212 problems. Findings are unchanged.- Docs: canvas sizes were checked again on game version 1.19.5.0 (none changed); the trailer drafts are gone from the repository.
v0.4.2
Per-platform binaries of hoi4-imagegen (CLI) and hoi4-imagegen-mcp (MCP stdio server). Unsigned; verify with SHA256SUMS and gh attestation verify <file> --repo klimPaskov/hoi4-imagegen-mcp.
What changed since v0.4.1
- macOS: the MCP server no longer reads HOI4 Mod Setup's saved API keys from the Keychain by default, which is what could still make macOS ask for the login keychain password. Set
HOI4_IMAGEGEN_SETUP_KEYCHAIN=1to read them (macOS then asks once per key). Other systems are unchanged. Each key is looked up once per run. This has not been run on a Mac yet (#2). doctorshows the ChatGPT row asnot signed in: run hoi4-imagegen logininstead of a config key that does not exist, and the missing-key error says a key can come from the environment or from HOI4 Mod Setup.- Docs: internal notes removed from the public pages.
v0.4.1
Per-platform binaries of hoi4-imagegen (CLI) and hoi4-imagegen-mcp (MCP stdio server). Unsigned; verify with SHA256SUMS and gh attestation verify <file> --repo klimPaskov/hoi4-imagegen-mcp.
What changed since v0.4.0
- Focus icons are livelier and more varied again. They use vanilla's mix of forms (round plaques, other plaques, shields and free-standing subjects) and strong subject colour, as before 0.4.0. A set no longer plans a frame for every icon, no longer picks bolder standout frames for key focuses and no longer asks for a grey or sepia subject.
- Kept from 0.4.0: no flags or national emblems unless a focus is directly national, colour that follows each icon's subject with a limit on green, and the
varietyverdict. - The gallery's focus images were regenerated with 0.4.1.
Pull request: #18.
v0.4.0
Per-platform binaries of hoi4-imagegen (CLI) and hoi4-imagegen-mcp (MCP stdio server). Unsigned; verify with SHA256SUMS and gh attestation verify <file> --repo klimPaskov/hoi4-imagegen-mcp.
What changed since v0.3.8
Icon looks closer to vanilla
- Focus icons follow vanilla's compact medallion form: a thin worn rim, a muted enamel field and a desaturated, painted subject. A set plans a different frame for each icon, and key focuses (the start of a tree, hubs, choices between paths, ends of long branches) get a bolder frame.
- Sets use no national iconography by default (flags, ribbons, harps, roundels) unless a focus is about the nation's own identity. Green is limited to farming and forests, and icons are simpler.
varietyreportsgreen_icons,green_capand atoo_greenverdict. - Agency upgrades come out in vanilla's warm print tone on a plain backdrop, with one subject the brief names and hands only when asked. The
vignetterecipe is v3. - Doctrine accents use vanilla's yellow-to-red fall instead of one flat orange. The
doctrinerecipe is v4. - Palette variety: families whose vanilla images vary in main colour (technology, unit leader traits, national spirits, decisions, state modifiers, MIO policies) are no longer told that one colour dominates. Technology, concerns, MIO policies and state modifiers take their colours from the subject.
- Colour follows the icon's subject, not the country, and sets get a hue-variety verdict.
New and extended tools
operation_picturealso derives vanilla's 59x58 phase icon (GFX_phase_<x>_small), with the disc, edge and tone measured on vanilla's 71 phase icons.anim_scrolltakes a vertical direction and any frame count from the project profile.pack derivedrafts the finish of a style as well as colour and shape: a soft glow, a dark drop shadow, a thin frame or a coloured vignette. The derive cache moves to a new format, so old caches are measured again.model_referencerules are general and lean: one whole subject, a front view with protruding parts held apart, believable form, fidelity to the reference, a plain or transparent backdrop. Subject-specific points moved into the skill's brief and review checklist.
macOS
- The ChatGPT sign-in is kept in a private file (mode 0600 in a 0700 folder) at
~/Library/Application Support/hoi4-imagegen/chatgpt-login/auth.json, so the MCP server no longer asks for the Keychain password on every start and after every release. SetHOI4_IMAGEGEN_CHATGPT_STORE=keychainto keep using the Keychain. After updating from 0.3.x, sign in once more withhoi4-imagegen login, which also removes the old Keychain item.
Docs
- One entry point, contents that match the headings, install before quick start, the macOS Keychain check and the quarantine step for by-hand installs.
- The sign-in route cannot choose image model, quality or size.
docs/chatgpt-login.mdrecords what quality the backend chose in recorded runs. - The gallery images were regenerated.
v0.3.8
Per-platform binaries of hoi4-imagegen (CLI) and hoi4-imagegen-mcp (MCP stdio server). Unsigned; verify with SHA256SUMS and gh attestation verify <file> --repo klimPaskov/hoi4-imagegen-mcp.
What changed since v0.3.7
- A model for each kind of art on the OpenAI API route. GPT-Image 2.6 Sunburst makes edits, portraits, super events, event and operation pictures, larger images, animated sprites and model references. Flare makes icons and small sprites. A model you name always wins.
- The ChatGPT sign-in route cannot choose an image model, so it stays as the backend picks.
- More gallery images regenerated.