From 6a36e860be0cad20be9aee490c29ed0672bf30ac Mon Sep 17 00:00:00 2001 From: Caledric Date: Mon, 1 Jan 2024 19:53:31 -0500 Subject: [PATCH 1/6] Update t2.lic Added a Startup setting to T2 script Inside Yaml the setting would be t2_before_startup: - action 1 - action 2 --- t2.lic | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t2.lic b/t2.lic index 243a8e08dd..23ef9d635a 100644 --- a/t2.lic +++ b/t2.lic @@ -37,6 +37,11 @@ class T2 if !@args.nodelay && @settings.t2_startup_delay.to_i > 0 pause until Time.now - DRSkill.start_time > @settings.t2_startup_delay end + + if !@settings.t2_before_startup.empty? + echo "***STATUS*** Performing Pre-startup activities." + execute_actions(@settings.t2_before_startup) + end end def run From c4bb4f0fcffb95634960fc58943fd1cb6c9c21cf Mon Sep 17 00:00:00 2001 From: Caledric Date: Mon, 1 Jan 2024 19:56:27 -0500 Subject: [PATCH 2/6] Update base.yaml --- profiles/base.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profiles/base.yaml b/profiles/base.yaml index 60bcbf9889..572b22b483 100644 --- a/profiles/base.yaml +++ b/profiles/base.yaml @@ -29,6 +29,10 @@ t2_avoids: - type: drag state: true +# scripts to rune before the starup of T2 +t2_before_starup: + - multi 1, move door + - gosafe # Scripts to run after *controlled* shutdown of T2 t2_after_shutdown: - gosafe From b63ae412b26cfc1a8e55eaf92b5109ac5f8afd5a Mon Sep 17 00:00:00 2001 From: Caledric Date: Mon, 1 Jan 2024 19:57:13 -0500 Subject: [PATCH 3/6] Update base-empty.yaml --- profiles/base-empty.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/profiles/base-empty.yaml b/profiles/base-empty.yaml index 842e1a344a..c1746a6385 100644 --- a/profiles/base-empty.yaml +++ b/profiles/base-empty.yaml @@ -101,6 +101,7 @@ empty_values: stealing_towns: [] storage_containers: [] summoned_weapons: [] + t2_before_startup: [] t2_after_shutdown: [] t2_avoids: [] tarantula_no_use_rooms: [] From 4f856e16ae3d51020a1ba6ee1c58ecf1da535e49 Mon Sep 17 00:00:00 2001 From: Caledric Date: Tue, 2 Jan 2024 16:17:27 -0500 Subject: [PATCH 4/6] Update profiles/base.yaml Co-authored-by: Mahtra <93822896+MahtraDR@users.noreply.github.com> --- profiles/base.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles/base.yaml b/profiles/base.yaml index 572b22b483..ba361ce21e 100644 --- a/profiles/base.yaml +++ b/profiles/base.yaml @@ -31,8 +31,8 @@ t2_avoids: # scripts to rune before the starup of T2 t2_before_starup: - - multi 1, move door - - gosafe +# - multi 1, move door +# - gosafe # Scripts to run after *controlled* shutdown of T2 t2_after_shutdown: - gosafe From fc6c41260258fda0635e21f49cf4d1a62e289ac7 Mon Sep 17 00:00:00 2001 From: Caledric Date: Tue, 2 Jan 2024 16:17:34 -0500 Subject: [PATCH 5/6] Update t2.lic Co-authored-by: Mahtra <93822896+MahtraDR@users.noreply.github.com> --- t2.lic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t2.lic b/t2.lic index 23ef9d635a..2cdb1d8eb5 100644 --- a/t2.lic +++ b/t2.lic @@ -38,7 +38,7 @@ class T2 pause until Time.now - DRSkill.start_time > @settings.t2_startup_delay end - if !@settings.t2_before_startup.empty? + unless @settings.t2_before_startup echo "***STATUS*** Performing Pre-startup activities." execute_actions(@settings.t2_before_startup) end From 7ca83e89c365e897929ce3e58994f5ad521d24ed Mon Sep 17 00:00:00 2001 From: Mahtra <93822896+MahtraDR@users.noreply.github.com> Date: Wed, 3 Jan 2024 11:29:13 +1300 Subject: [PATCH 6/6] Update t2.lic --- t2.lic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t2.lic b/t2.lic index 2cdb1d8eb5..42a0e19179 100644 --- a/t2.lic +++ b/t2.lic @@ -38,7 +38,7 @@ class T2 pause until Time.now - DRSkill.start_time > @settings.t2_startup_delay end - unless @settings.t2_before_startup + unless @settings.t2_before_startup.empty? echo "***STATUS*** Performing Pre-startup activities." execute_actions(@settings.t2_before_startup) end