From 5a4b43a85e68b2572462d7fd028abca7ad19de60 Mon Sep 17 00:00:00 2001 From: LOIRELAB <66545056+LoireLab@users.noreply.github.com> Date: Sat, 19 Jul 2025 20:25:03 +0200 Subject: [PATCH] disable heavy scanning in chronicle --- chronicle.lua | 6 +++--- docs/chronicle.rst | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/chronicle.lua b/chronicle.lua index 40548b68d..c40b4a0b4 100644 --- a/chronicle.lua +++ b/chronicle.lua @@ -1,4 +1,4 @@ --- Chronicles fortress events (deaths, artifacts, invasions) +-- Chronicles fortress events (currently only unit deaths) --@module = true --@enable = true @@ -64,10 +64,10 @@ local function check_invasions() end end +-- main loop; artifact and invasion tracking disabled to avoid scanning large +-- data structures, which was causing hangs on some forts local function event_loop() if not state.enabled then return end - check_artifacts() - check_invasions() dfhack.timeout(1200, 'ticks', event_loop) end diff --git a/docs/chronicle.rst b/docs/chronicle.rst index 7239a22fe..7943ee30a 100644 --- a/docs/chronicle.rst +++ b/docs/chronicle.rst @@ -2,12 +2,12 @@ chronicle ========= .. dfhack-tool:: - :summary: Record fortress events like deaths, artifacts, and invasions. + :summary: Record fortress events like deaths. Artifact and invasion tracking disabled. :tags: fort gameplay This tool automatically records notable events in a chronicle that is stored -with your save. The chronicle contains entries for unit deaths, newly created -artifacts, and the start of invasions. +with your save. Currently only unit deaths are recorded since artifact and +invasion tracking has been disabled due to performance issues. Usage -----