From dfcafb9f4acb1fb14cf12784774430b3a59d8a47 Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 3 Oct 2026 15:31:19 -0400 Subject: [PATCH] =?UTF-8?q?debug:=20one-shot=20hook-fire=20trace=20(is=5Fs?= =?UTF-8?q?erver/flag=20state=20inside=20wrapped=20set=5Ftag)=20=E2=80=94?= =?UTF-8?q?=20last=20run:=20hook=20installed=20OK,=20tag=20created-then-go?= =?UTF-8?q?ne=20or=20branch-skipped,=20console=20shows=20zero=20SmartTagSy?= =?UTF-8?q?stem=20warnings,=20ambiguous?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoMark/scripts/mods/AutoMark/mark/servo_skull_mark.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AutoMark/scripts/mods/AutoMark/mark/servo_skull_mark.lua b/AutoMark/scripts/mods/AutoMark/mark/servo_skull_mark.lua index 6f93588..9ecadca 100644 --- a/AutoMark/scripts/mods/AutoMark/mark/servo_skull_mark.lua +++ b/AutoMark/scripts/mods/AutoMark/mark/servo_skull_mark.lua @@ -45,6 +45,11 @@ local function ensure_automark_tag_hook() local cls = getmetatable(smart_tag_system) if type(cls) == "table" and cls.set_tag ~= nil then mod:hook(cls, "set_tag", function(previous_hook, self, template_name, tagger_unit, target_unit, target_location) + if template_name == HACK_TAG_NAME and mod_settings.debug_mode and not mod.omni_hack_hook_fired then + mod.omni_hack_hook_fired = true + local ext = target_unit and self._unit_extension_data[target_unit] + mod:diag("OMNI-HACK-DIAG hook FIRE is_server=", tostring(self._is_server), " flagged=", tostring(ext and ext._automark_hack_order), " has_ext=", tostring(ext ~= nil), " target=", tostring(target_unit), " loc=", tostring(target_location)) + end if template_name == HACK_TAG_NAME and target_unit and self._is_server then local target_extension = self._unit_extension_data[target_unit] if target_extension and target_extension._automark_hack_order then