Repository navigation
v1.4.0
Mod-test checks, DLC without the Steam client, four launch fixes on 1.19.4.1, and war tools for the native
macOS and Linux builds. The Windows Python server gains the new test-mode tools; it still has 52 tools.
War tools (native macOS and Linux)
- New army tools:
hoi4_army_motorization(set an army's supply motorization),hoi4_army_detach(move chosen
divisions out of an army) andhoi4_division_disband(disband divisions of one army). - New read and map tools:
hoi4_alerts,hoi4_occupation,hoi4_war_stats(read-only) andhoi4_map_mode. hoi4_research_startcan replace the research in a busy slot (replace: true).- Orders that the game answers with a receipt now settle as errors when the receipt is a refusal, the camera
is reset more reliably, error messages say what was missing, and the campaign playbook gained notes on army
organisation and the war operating loop. Details are in the macOS tool list.
Launch check
- Refusing a launch while a Steam client or steamcmd runs is now opt-in: set
HOI4_LIVE_REQUIRE_STEAM_CLOSED=1
(Python server and native Linux supervisor). Unset, the launch goes ahead.
Launch failures
Four launch failures seen on 1.19.4.1 on 2 November are handled. Offline tests and fakes cover the logic. A live
run on HOI4 1.19.4.2 on 9 November confirmed the MAP_ERROR stop (below) and hoi4_new_game with no START
retry needed in two runs; the START retry itself, the custom Select Country screen and the console changes were
not exercised live (see "Live acceptance" below).
hoi4_launchwith-debugfails at once when the game reports a MAP_ERROR (it waits on an OK dialog),
with the error lines fromerror.log, the dialog text if OCR reads it, and a screenshot, instead of waiting
for the launch timeout. A normal launch lists the lines asmap_errors.hoi4_new_gameclicks START again at most three more times (30 s apart) when the ready screen stays up, then
fails withstart_not_registered. The result reportsstart_retries.hoi4_new_gamegoes through a mod's own Select Country screen: it recognises it by its heading or by a
confirming button next to Back to menu, clicks the country by name and the button, and continues from the
ready screen. When the screen offers neither, the call stops withcustom_country_screenand the text it saw.- The console opens over an open sea-region panel and over a total conversion's own interface. A toggle that
visibly changes the console area counts as opened when the console frame cannot be seen (it is closed the same
way in the same call, andkeep_openis refused in that case), andhoi4_consolecloses open windows with
Esc once before giving up (console_not_open).
DLC without the Steam client
hoi4_prepare(Python, test mode): copieslauncher-v2.sqliteanddlc_signaturefrom the normal user
folder into the run's user folder with a byte-exact backup, so a launch without the Steam client keeps the
DLC.hoi4_shutdown(orhoi4_prepare action=restore) puts the folder back and never overwrites a file
that changed after the copy.hoi4_launch prepare_dlc=truedoes both steps. The README explains the launch
order (prepare, launch, test, shutdown). New config keydlc_source_dir.docs/tools.mdregenerated from the registry (it had drifted behindhoi4_front,hoi4_memoryand others).
Smoke tests and checks (R-5)
hoi4_check_trigger(test mode): evaluates a trigger block in the running game for a country (or a state)
and returns true or false with the unmet condition. Each top-level condition is asked on its own through the
console (eval_effectwrapping anifthat logs TRUE or FALSE to game.log), and a falseOR,NOTor scope
block is explained by its children.hoi4_check_focus(test mode): is a national focus selectable for a country? Reads the focus from the game
and mod files and asks the game about: already completed, each prerequisite group, each mutually exclusive
focus, every condition ofavailableandallow_branch; a holdingbypassis reported. Not checked: a focus
already in progress, focus slots, political power.- New test-mode tool
hoi4_sweep_loc: sweeps the map and the panels for[missing_key], raw localisation keys, unresolved$VARIABLES$and[Root.GetName]commands and colour codes shown as text through OCR, and lists the localisation warnings thaterror.logandtext.loggained during the sweep. hoi4_smoke_namespace(test mode): fires every event<namespace>.Nthrough the console, answers each option
of its window (one firing per option), takes the decisions of a category or id prefix through the decision
panel after checking their conditions with the game, and reads the newerror.loglines after every step.
One report (Markdown and JSON underartifacts/) lists per event and decision what appeared, what was
answered, the unmet condition of a decision that could not be taken and the error lines. State, unit leader
and character events, targeted decisions and missions are skipped with the reason.dry_runlists the plan.
Live acceptance (Windows, HOI4 1.19.4.2)
Run on 9 November 2026 with the installed 1.4.0 candidate, a scratch user folder, no mods unless stated, and no
console, save edit or memory write.
- Install and
selftestpass; the server answers 52 tools. A normal debug launch reaches the main menu in 88 to
129 s;hoi4_statusandhoi4_screenreport the running game andmain_menu. hoi4_prepare/prepare_dlc: both DLC files are copied,error.loghas no "Could not find DLC", the main menu
shows the DLC icons, and the restore removes both files and leaves the real user folder byte-identical.-debuglaunch of a scratch mod with province 221 removed from its strategic region fails with
map_error_on_launchabout a minute after the start. The log line reads
MAP_ERROR: The province 221 - has no strategic region assigned.hoi4_new_gamestarts a game (1936.1.1.12) for two countries in 9 to 27 s withstart_retries0.- Not confirmed: the START retry (never needed), the custom Select Country screen (Old World Blues and The New
Order: Rises Again both failed to load their map on 1.19.4.2 with their own script errors, so no total
conversion could be reached), and every console-based tool (hoi4_console,hoi4_check_trigger,
hoi4_check_focus,hoi4_smoke_namespace,hoi4_sweep_loc), which the run did not use. - Found, not fixed in this release: at a 2560x1440 game window the capture and OCR frame is 1920x1080 and
clicks go to unscaled coordinates, so menu clicks miss (use a 1920x1080 window); after a resign 1.19.4.2 shows a
"Playthrough Overview" window whose Exit to Menu buttonhoi4_new_game exit_to_menudoes not click;
hoi4_shutdowncan return before the process has exited and then leaves the DLC files for
hoi4_prepare action=restore;hoi4_launchwaits for its timeout when the game crashes on a map error
instead of reporting the crash.
Known limits
Windows only; windowed or borderless at 1920x1080 and interface scale 1; the screen language of the game must
match the OCR language; the campaign tools were verified on the vanilla interface with one large mod; the phase 4
exit check was not repeated end to end on the final code and the two-year campaign runs of the plan were not made
(see docs/STATUS.md).
Full list of changes: CHANGELOG.md.
Verify a download: sha256sum -c SHA256SUMS.txt --ignore-missing and
gh attestation verify <file> --repo klimPaskov/HOI4-Live-Tools.