From 1b054ff99da97957629b8543bb5da4ade209e327 Mon Sep 17 00:00:00 2001 From: Eric Swenson Date: Sat, 18 Nov 2023 10:52:38 -0800 Subject: [PATCH 1/3] Don't use XXFILE to build Zork. Updated zork.tcl to no longer use XXFILE to either compile or load/save zork. XXFILE seems too brittle and doesn't function consistently. --- build/zork.tcl | 90 +++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 82 insertions(+), 8 deletions(-) diff --git a/build/zork.tcl b/build/zork.tcl index 3b5c325c3..bc26fc391 100644 --- a/build/zork.tcl +++ b/build/zork.tcl @@ -11,12 +11,86 @@ respond "*" ":link sys1;ts zork, sys; ts rbye\r" mkdir "cfs" -respond "*" ":xxfile lcf;comp log_lcf;comp xxfile\r" -expect -timeout 6000 "Job XXFILE interrupted: .VALUE;" -type "\033p" -expect ":KILL" - -respond "*" ":xxfile lcf;zork log_lcf;zork xxfile\r" -expect "Job XXFILE interrupted: .VALUE;" -type "\033p" +respond "*" ":pcomp\r" +respond "T" "" +respond "LCF" "\">" +respond "Job PCOMP wants the TTY" "p" +respond "\"So you re-owned me, eh? I'm done anyway.\"" "\">" +respond "Job PCOMP wants the TTY" "p" +respond "\"So you re-owned me, eh? I'm done anyway.\"" "\">" +respond "Job PCOMP wants the TTY" "p" +respond "\"So you re-owned me, eh? I'm done anyway.\"" "\">" +respond "Job PCOMP wants the TTY" "p" +respond "\"So you re-owned me, eh? I'm done anyway.\"" "\">" +respond "Job PCOMP wants the TTY" "p" +respond "\"So you re-owned me, eh? I'm done anyway.\"" "" +respond ":KILL" ":assem \"lcf;tell >\" \"lcf;tell nbin\"\r" +respond "Is this assembly for TENEX?" "n" +respond ":KILL" ":pcomp\r" +respond "T" "" +respond "DONE" "\">" +expect -timeout 900 "Job PCOMP wants the TTY" +type "p" +respond "\"So you re-owned me, eh? I'm done anyway.\"" "" +respond ":KILL" ":pcomp\r" +respond "T" "" +respond "DONE" "\">" +expect -timeout 900 "Job PCOMP wants the TTY" +type "p" +respond "\"So you re-owned me, eh? I'm done anyway.\"" "" +respond ":KILL" ":pcomp\r" +respond "T" "" +respond "DONE" "\">" +expect -timeout 900 "Job PCOMP wants the TTY" +type "p" +respond "\"So you re-owned me, eh? I'm done anyway.\"" "" +respond ":KILL" ":pcomp\r" +respond "T" "" +respond "DONE" "\">" +expect -timeout 900 "Job PCOMP wants the TTY" +type "p" +respond "\"So you re-owned me, eh? I'm done anyway.\"" "" +respond ":KILL" ":pcomp\r" +respond "T" "" +respond "DONE" "\">" +expect -timeout 900 "Job PCOMP wants the TTY" +type "p" +respond "\"So you re-owned me, eh? I'm done anyway.\"" "\">" +expect -timeout 900 "Job PCOMP wants the TTY" +type "p" +respond "\"So you re-owned me, eh? I'm done anyway.\"" "" +respond ":KILL" ":pcomp\r" +respond "T" "" +respond "DONE" "\">" +respond "Job PCOMP wants the TTY" "p" +respond "\"So you re-owned me, eh? I'm done anyway.\"" "\">" +respond "Job PCOMP wants the TTY" "p" +respond "\"So you re-owned me, eh? I'm done anyway.\"" "" +respond ":KILL" ":mudsav;mud55\r" +respond "LISTENING-AT-LEVEL 1 PROCESS 1" "" +type "" +respond "LCF" "" +respond "\"DONE\"" "" +respond "\"DONE\"" "" +respond "\"DONE\"" "" +respond "\"DONE\"" "" +respond "\"DONE\"" "" +respond "\"DONE\"" "" +respond "\"DONE\"" "" +respond "\"DONE\"" "" +respond "\"DONE\"" "" +respond "\"DONE\"" "" +respond "\"DONE\"" "" +respond "\"DONE\"" "" +respond "\"DONE\"" "" +respond "\"DONE\"" "" +respond "\"DONE\"" ">" +respond "T" "%% ,ERRH>" +type ">>>" +respond "#HANDLER #SUBR" "%% ,CTRL-S>>>" +type "" +type "" +type "" +type ">" +type "" expect ":KILL" From 6be9aecc7270fa3c8c7067ebbaf0ab335db878a3 Mon Sep 17 00:00:00 2001 From: Eric Swenson Date: Sat, 18 Nov 2023 10:52:38 -0800 Subject: [PATCH 2/3] Updated lcf/comp.xxfile so that it doesn't fail during ACT2 build. Seems the occasional failures during zork build can be mitigated by breaking up some of the compiles into separate jobs. --- src/lcf/comp.xxfile | 6 ++++++ src/lcf/zork.xxfile | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/lcf/comp.xxfile b/src/lcf/comp.xxfile index c2622a8c6..590057b03 100644 --- a/src/lcf/comp.xxfile +++ b/src/lcf/comp.xxfile @@ -1,3 +1,5 @@ + +:vk R :pcomp  @@ -37,6 +39,10 @@ n "> p J + +:pcomp + +J "> p J diff --git a/src/lcf/zork.xxfile b/src/lcf/zork.xxfile index 82bba6711..2389a0f4f 100644 --- a/src/lcf/zork.xxfile +++ b/src/lcf/zork.xxfile @@ -1,3 +1,5 @@ + +:vk R :mudsav;mud55  From 59156deff8ede068863b6ca8498d47f25fc95e69 Mon Sep 17 00:00:00 2001 From: Eric Swenson Date: Sat, 18 Nov 2023 10:52:38 -0800 Subject: [PATCH 3/3] Fix Zork issue when opening non-functional windows. Updated Zork to address issue with bad message when opening non-functional windows. Addresses this issue: https://github.com/heasm66/mdlzork/issues/58 And this fix: https://github.com/heasm66/mdlzork/pull/59 --- src/lcf/{act1.255 => act1.256} | 5 +++++ src/lcf/{dung.355 => dung.356} | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) rename src/lcf/{act1.255 => act1.256} (99%) rename src/lcf/{dung.355 => dung.356} (99%) diff --git a/src/lcf/act1.255 b/src/lcf/act1.256 similarity index 99% rename from src/lcf/act1.255 rename to src/lcf/act1.256 index 1bd609f8e..521ad5f60 100644 --- a/src/lcf/act1.255 +++ b/src/lcf/act1.256 @@ -1661,6 +1661,11 @@ probably)."> ( >)>> + + )>> + )) >> diff --git a/src/lcf/dung.355 b/src/lcf/dung.356 similarity index 99% rename from src/lcf/dung.355 rename to src/lcf/dung.356 index 26abd71e5..9317fdf48 100644 --- a/src/lcf/dung.355 +++ b/src/lcf/dung.356 @@ -1509,11 +1509,11 @@ threat to his livelihood."]]!]> WATER-FUNCTION> > + DWIND-FUNCTION> \ @@ -1597,7 +1597,7 @@ and all the windows are barred." "North of House" - () + () <> <+ ,RLANDBIT ,RLIGHTBIT ,RNWALLBIT ,RSACREDBIT> (RGLOBAL <+ ,DWINDOW ,HOUSEBIT>)> @@ -1608,7 +1608,7 @@ and all the windows are barred." "South of House" - () + () <> <+ ,RLANDBIT ,RLIGHTBIT ,RNWALLBIT ,RSACREDBIT> (RGLOBAL <+ ,DWINDOW ,HOUSEBIT>)>