Skip to content

v1.4.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 00:26
· 641 commits to master since this release
6357e53

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) and hoi4_division_disband (disband divisions of one army).
  • New read and map tools: hoi4_alerts, hoi4_occupation, hoi4_war_stats (read-only) and hoi4_map_mode.
  • hoi4_research_start can 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_launch with -debug fails at once when the game reports a MAP_ERROR (it waits on an OK dialog),
    with the error lines from error.log, the dialog text if OCR reads it, and a screenshot, instead of waiting
    for the launch timeout. A normal launch lists the lines as map_errors.
  • hoi4_new_game clicks START again at most three more times (30 s apart) when the ready screen stays up, then
    fails with start_not_registered. The result reports start_retries.
  • hoi4_new_game goes 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 with custom_country_screen and 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, and keep_open is refused in that case), and hoi4_console closes open windows with
    Esc once before giving up (console_not_open).

DLC without the Steam client

  • hoi4_prepare (Python, test mode): copies launcher-v2.sqlite and dlc_signature from 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 (or hoi4_prepare action=restore) puts the folder back and never overwrites a file
    that changed after the copy. hoi4_launch prepare_dlc=true does both steps. The README explains the launch
    order (prepare, launch, test, shutdown). New config key dlc_source_dir.
  • docs/tools.md regenerated from the registry (it had drifted behind hoi4_front, hoi4_memory and 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_effect wrapping an if that logs TRUE or FALSE to game.log), and a false OR, NOT or 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 of available and allow_branch; a holding bypass is 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 that error.log and text.log gained during the sweep.
  • hoi4_smoke_namespace (test mode): fires every event <namespace>.N through 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 new error.log lines after every step.
    One report (Markdown and JSON under artifacts/) 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_run lists 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 selftest pass; the server answers 52 tools. A normal debug launch reaches the main menu in 88 to
    129 s; hoi4_status and hoi4_screen report the running game and main_menu.
  • hoi4_prepare / prepare_dlc: both DLC files are copied, error.log has 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.
  • -debug launch of a scratch mod with province 221 removed from its strategic region fails with
    map_error_on_launch about a minute after the start. The log line reads
    MAP_ERROR: The province 221 - has no strategic region assigned.
  • hoi4_new_game starts a game (1936.1.1.12) for two countries in 9 to 27 s with start_retries 0.
  • 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 button hoi4_new_game exit_to_menu does not click;
    hoi4_shutdown can return before the process has exited and then leaves the DLC files for
    hoi4_prepare action=restore; hoi4_launch waits 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.