From 4f2631b349c1971238084b3213f51755e5c77599 Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Wed, 28 May 2025 02:37:55 +0200 Subject: [PATCH] mmm --- computer/1/startup.lua | 10 +- computer/1/tobuild | 1584 --------------- computer/13/current_fluids | 0 computer/13/fluid_state.lua | 8 +- computer/13/fluids.lua | 1 - computer/13/machines.lua | 111 +- computer/13/recipes.lua | 1 + computer/13/recipes.txt | 71 + computer/13/startup.lua | 2 - computer/13/work.lua | 2 +- computer/20/.settings | 4 + computer/20/startup.lua | 58 +- computer/3/copyfile.lua | 4 +- computer/3/mine.lua | 16 +- computer/3/startup.lua | 114 +- computer/4/recievefile.lua | 19 +- computer/4/rednerd.lua | 4 +- computer/4/startup.lua | 111 +- computer/4/tobuild | 3841 ----------------------------------- computer/5/halt.lua | 4 +- computer/5/scoundril | 40 + computer/5/startup.lua | 10 +- computer/5/test2.lua | 34 + computer/5/thief | 30 + 24 files changed, 414 insertions(+), 5665 deletions(-) delete mode 100644 computer/13/current_fluids create mode 100644 computer/20/.settings create mode 100644 computer/5/scoundril create mode 100644 computer/5/test2.lua create mode 100644 computer/5/thief diff --git a/computer/1/startup.lua b/computer/1/startup.lua index 22c7672..a41ddb1 100644 --- a/computer/1/startup.lua +++ b/computer/1/startup.lua @@ -1,7 +1,7 @@ local filename = "tobuild" rednet.open("left") while true do - id, message, protocol = rednet.receive() + id, messages, protocol = rednet.receive() if protocol == "getnexttobuild" then file = fs.open(filename,"r") line = file.readLine() @@ -13,15 +13,15 @@ while true do print(line) rednet.send(id,line,"nexttobuild") elseif protocol == "failedtobuild" then - print(message.."failed") + print(messages.."failed") file = fs.open(filename,"r") restof = file.readAll() file.close() file = fs.open(filename,"w") - file.writeLine(message) + file.writeLine(messages) file.write(restof) file.close() end --file = fs.open(filename,"r") - --print(file.readAll()) -end + --print(file.readAll()) +end diff --git a/computer/1/tobuild b/computer/1/tobuild index 8035868..5dafbbe 100644 --- a/computer/1/tobuild +++ b/computer/1/tobuild @@ -1,1587 +1,3 @@ -18,-40,58 -18,-40,66 -18,-40,74 -18,-40,82 -18,-40,90 -18,-40,98 -18,-40,106 -18,-40,114 -18,-40,122 -18,-40,130 -18,-40,138 -18,-40,146 -26,-40,-150 -26,-40,-142 -26,-40,-134 -26,-40,-126 -26,-40,-118 -26,-40,-110 -26,-40,-102 -26,-40,-94 -26,-40,-86 -26,-40,-78 -26,-40,-70 -26,-40,-62 -26,-40,-54 -26,-40,-46 -26,-40,-38 -26,-40,-30 -26,-40,-22 -26,-40,-14 -26,-40,-6 -26,-40,2 -26,-40,10 -26,-40,18 -26,-40,26 -26,-40,34 -26,-40,42 -26,-40,50 -26,-40,58 -26,-40,66 -26,-40,74 -26,-40,82 -26,-40,90 -26,-40,98 -26,-40,106 -26,-40,114 -26,-40,122 -26,-40,130 -26,-40,138 -26,-40,146 -34,-40,-150 -34,-40,-142 -34,-40,-134 -34,-40,-126 -34,-40,-118 -34,-40,-110 -34,-40,-102 -34,-40,-94 -34,-40,-86 -34,-40,-78 -34,-40,-70 -34,-40,-62 -34,-40,-54 -34,-40,-46 -34,-40,-38 -34,-40,-30 -34,-40,-22 -34,-40,-14 -34,-40,-6 -34,-40,2 -34,-40,10 -34,-40,18 -34,-40,26 -34,-40,34 -34,-40,42 -34,-40,50 -34,-40,58 -34,-40,66 -34,-40,74 -34,-40,82 -34,-40,90 -34,-40,98 -34,-40,106 -34,-40,114 -34,-40,122 -34,-40,130 -34,-40,138 -34,-40,146 -42,-40,-150 -42,-40,-142 -42,-40,-134 -42,-40,-126 -42,-40,-118 -42,-40,-110 -42,-40,-102 -42,-40,-94 -42,-40,-86 -42,-40,-78 -42,-40,-70 -42,-40,-62 -42,-40,-54 -42,-40,-46 -42,-40,-38 -42,-40,-30 -42,-40,-22 -42,-40,-14 -42,-40,-6 -42,-40,2 -42,-40,10 -42,-40,18 -42,-40,26 -42,-40,34 -42,-40,42 -42,-40,50 -42,-40,58 -42,-40,66 -42,-40,74 -42,-40,82 -42,-40,90 -42,-40,98 -42,-40,106 -42,-40,114 -42,-40,122 -42,-40,130 -42,-40,138 -42,-40,146 -50,-40,-150 -50,-40,-142 -50,-40,-134 -50,-40,-126 -50,-40,-118 -50,-40,-110 -50,-40,-102 -50,-40,-94 -50,-40,-86 -50,-40,-78 -50,-40,-70 -50,-40,-62 -50,-40,-54 -50,-40,-46 -50,-40,-38 -50,-40,-30 -50,-40,-22 -50,-40,-14 -50,-40,-6 -50,-40,2 -50,-40,10 -50,-40,18 -50,-40,26 -50,-40,34 -50,-40,42 -50,-40,50 -50,-40,58 -50,-40,66 -50,-40,74 -50,-40,82 -50,-40,90 -50,-40,98 -50,-40,106 -50,-40,114 -50,-40,122 -50,-40,130 -50,-40,138 -50,-40,146 -58,-40,-150 -58,-40,-142 -58,-40,-134 -58,-40,-126 -58,-40,-118 -58,-40,-110 -58,-40,-102 -58,-40,-94 -58,-40,-86 -58,-40,-78 -58,-40,-70 -58,-40,-62 -58,-40,-54 -58,-40,-46 -58,-40,-38 -58,-40,-30 -58,-40,-22 -58,-40,-14 -58,-40,-6 -58,-40,2 -58,-40,10 -58,-40,18 -58,-40,26 -58,-40,34 -58,-40,42 -58,-40,50 -58,-40,58 -58,-40,66 -58,-40,74 -58,-40,82 -58,-40,90 -58,-40,98 -58,-40,106 -58,-40,114 -58,-40,122 -58,-40,130 -58,-40,138 -58,-40,146 -66,-40,-150 -66,-40,-142 -66,-40,-134 -66,-40,-126 -66,-40,-118 -66,-40,-110 -66,-40,-102 -66,-40,-94 -66,-40,-86 -66,-40,-78 -66,-40,-70 -66,-40,-62 -66,-40,-54 -66,-40,-46 -66,-40,-38 -66,-40,-30 -66,-40,-22 -66,-40,-14 -66,-40,-6 -66,-40,2 -66,-40,10 -66,-40,18 -66,-40,26 -66,-40,34 -66,-40,42 -66,-40,50 -66,-40,58 -66,-40,66 -66,-40,74 -66,-40,82 -66,-40,90 -66,-40,98 -66,-40,106 -66,-40,114 -66,-40,122 -66,-40,130 -66,-40,138 -66,-40,146 -74,-40,-150 -74,-40,-142 -74,-40,-134 -74,-40,-126 -74,-40,-118 -74,-40,-110 -74,-40,-102 -74,-40,-94 -74,-40,-86 -74,-40,-78 -74,-40,-70 -74,-40,-62 -74,-40,-54 -74,-40,-46 -74,-40,-38 -74,-40,-30 -74,-40,-22 -74,-40,-14 -74,-40,-6 -74,-40,2 -74,-40,10 -74,-40,18 -74,-40,26 -74,-40,34 -74,-40,42 -74,-40,50 -74,-40,58 -74,-40,66 -74,-40,74 -74,-40,82 -74,-40,90 -74,-40,98 -74,-40,106 -74,-40,114 -74,-40,122 -74,-40,130 -74,-40,138 -74,-40,146 -82,-40,-150 -82,-40,-142 -82,-40,-134 -82,-40,-126 -82,-40,-118 -82,-40,-110 -82,-40,-102 -82,-40,-94 -82,-40,-86 -82,-40,-78 -82,-40,-70 -82,-40,-62 -82,-40,-54 -82,-40,-46 -82,-40,-38 -82,-40,-30 -82,-40,-22 -82,-40,-14 -82,-40,-6 -82,-40,2 -82,-40,10 -82,-40,18 -82,-40,26 -82,-40,34 -82,-40,42 -82,-40,50 -82,-40,58 -82,-40,66 -82,-40,74 -82,-40,82 -82,-40,90 -82,-40,98 -82,-40,106 -82,-40,114 -82,-40,122 -82,-40,130 -82,-40,138 -82,-40,146 -90,-40,-150 -90,-40,-142 -90,-40,-134 -90,-40,-126 -90,-40,-118 -90,-40,-110 -90,-40,-102 -90,-40,-94 -90,-40,-86 -90,-40,-78 -90,-40,-70 -90,-40,-62 -90,-40,-54 -90,-40,-46 -90,-40,-38 -90,-40,-30 -90,-40,-22 -90,-40,-14 -90,-40,-6 -90,-40,2 -90,-40,10 -90,-40,18 -90,-40,26 -90,-40,34 -90,-40,42 -90,-40,50 -90,-40,58 -90,-40,66 -90,-40,74 -90,-40,82 -90,-40,90 -90,-40,98 -90,-40,106 -90,-40,114 -90,-40,122 -90,-40,130 -90,-40,138 -90,-40,146 -98,-40,-150 -98,-40,-142 -98,-40,-134 -98,-40,-126 -98,-40,-118 -98,-40,-110 -98,-40,-102 -98,-40,-94 -98,-40,-86 -98,-40,-78 -98,-40,-70 -98,-40,-62 -98,-40,-54 -98,-40,-46 -98,-40,-38 -98,-40,-30 -98,-40,-22 -98,-40,-14 -98,-40,-6 -98,-40,2 -98,-40,10 -98,-40,18 -98,-40,26 -98,-40,34 -98,-40,42 -98,-40,50 -98,-40,58 -98,-40,66 -98,-40,74 -98,-40,82 -98,-40,90 -98,-40,98 -98,-40,106 -98,-40,114 -98,-40,122 -98,-40,130 -98,-40,138 -98,-40,146 -106,-40,-150 -106,-40,-142 -106,-40,-134 -106,-40,-126 -106,-40,-118 -106,-40,-110 -106,-40,-102 -106,-40,-94 -106,-40,-86 -106,-40,-78 -106,-40,-70 -106,-40,-62 -106,-40,-54 -106,-40,-46 -106,-40,-38 -106,-40,-30 -106,-40,-22 -106,-40,-14 -106,-40,-6 -106,-40,2 -106,-40,10 -106,-40,18 -106,-40,26 -106,-40,34 -106,-40,42 -106,-40,50 -106,-40,58 -106,-40,66 -106,-40,74 -106,-40,82 -106,-40,90 -106,-40,98 -106,-40,106 -106,-40,114 -106,-40,122 -106,-40,130 -106,-40,138 -106,-40,146 -114,-40,-150 -114,-40,-142 -114,-40,-134 -114,-40,-126 -114,-40,-118 -114,-40,-110 -114,-40,-102 -114,-40,-94 -114,-40,-86 -114,-40,-78 -114,-40,-70 -114,-40,-62 -114,-40,-54 -114,-40,-46 -114,-40,-38 -114,-40,-30 -114,-40,-22 -114,-40,-14 -114,-40,-6 -114,-40,2 -114,-40,10 -114,-40,18 -114,-40,26 -114,-40,34 -114,-40,42 -114,-40,50 -114,-40,58 -114,-40,66 -114,-40,74 -114,-40,82 -114,-40,90 -114,-40,98 -114,-40,106 -114,-40,114 -114,-40,122 -114,-40,130 -114,-40,138 -114,-40,146 -122,-40,-150 -122,-40,-142 -122,-40,-134 -122,-40,-126 -122,-40,-118 -122,-40,-110 -122,-40,-102 -122,-40,-94 -122,-40,-86 -122,-40,-78 -122,-40,-70 -122,-40,-62 -122,-40,-54 -122,-40,-46 -122,-40,-38 -122,-40,-30 -122,-40,-22 -122,-40,-14 -122,-40,-6 -122,-40,2 -122,-40,10 -122,-40,18 -122,-40,26 -122,-40,34 -122,-40,42 -122,-40,50 -122,-40,58 -122,-40,66 -122,-40,74 -122,-40,82 -122,-40,90 -122,-40,98 -122,-40,106 -122,-40,114 -122,-40,122 -122,-40,130 -122,-40,138 -122,-40,146 -130,-40,-150 -130,-40,-142 -130,-40,-134 -130,-40,-126 -130,-40,-118 -130,-40,-110 -130,-40,-102 -130,-40,-94 -130,-40,-86 -130,-40,-78 -130,-40,-70 -130,-40,-62 -130,-40,-54 -130,-40,-46 -130,-40,-38 -130,-40,-30 -130,-40,-22 -130,-40,-14 -130,-40,-6 -130,-40,2 -130,-40,10 -130,-40,18 -130,-40,26 -130,-40,34 -130,-40,42 -130,-40,50 -130,-40,58 -130,-40,66 -130,-40,74 -130,-40,82 -130,-40,90 -130,-40,98 -130,-40,106 -130,-40,114 -130,-40,122 -130,-40,130 -130,-40,138 -130,-40,146 -138,-40,-150 -138,-40,-142 -138,-40,-134 -138,-40,-126 -138,-40,-118 -138,-40,-110 -138,-40,-102 -138,-40,-94 -138,-40,-86 -138,-40,-78 -138,-40,-70 -138,-40,-62 -138,-40,-54 -138,-40,-46 -138,-40,-38 -138,-40,-30 -138,-40,-22 -138,-40,-14 -138,-40,-6 -138,-40,2 -138,-40,10 -138,-40,18 -138,-40,26 -138,-40,34 -138,-40,42 -138,-40,50 -138,-40,58 -138,-40,66 -138,-40,74 -138,-40,82 -138,-40,90 -138,-40,98 -138,-40,106 -138,-40,114 -138,-40,122 -138,-40,130 -138,-40,138 -138,-40,146 -146,-40,-150 -146,-40,-142 -146,-40,-134 -146,-40,-126 -146,-40,-118 -146,-40,-110 -146,-40,-102 -146,-40,-94 -146,-40,-86 -146,-40,-78 -146,-40,-70 -146,-40,-62 -146,-40,-54 -146,-40,-46 -146,-40,-38 -146,-40,-30 -146,-40,-22 -146,-40,-14 -146,-40,-6 -146,-40,2 -146,-40,10 -146,-40,18 -146,-40,26 -146,-40,34 -146,-40,42 -146,-40,50 -146,-40,58 -146,-40,66 -146,-40,74 -146,-40,82 -146,-40,90 -146,-40,98 -146,-40,106 -146,-40,114 -146,-40,122 -146,-40,130 -146,-40,138 -146,-40,146 --150,-32,-150 --150,-32,-142 --150,-32,-134 --150,-32,-126 --150,-32,-118 --150,-32,-110 --150,-32,-102 --150,-32,-94 --150,-32,-86 --150,-32,-78 --150,-32,-70 --150,-32,-62 --150,-32,-54 --150,-32,-46 --150,-32,-38 --150,-32,-30 --150,-32,-22 --150,-32,-14 --150,-32,-6 --150,-32,2 --150,-32,10 --150,-32,18 --150,-32,26 --150,-32,34 --150,-32,42 --150,-32,50 --150,-32,58 --150,-32,66 --150,-32,74 --150,-32,82 --150,-32,90 --150,-32,98 --150,-32,106 --150,-32,114 --150,-32,122 --150,-32,130 --150,-32,138 --150,-32,146 --142,-32,-150 --142,-32,-142 --142,-32,-134 --142,-32,-126 --142,-32,-118 --142,-32,-110 --142,-32,-102 --142,-32,-94 --142,-32,-86 --142,-32,-78 --142,-32,-70 --142,-32,-62 --142,-32,-54 --142,-32,-46 --142,-32,-38 --142,-32,-30 --142,-32,-22 --142,-32,-14 --142,-32,-6 --142,-32,2 --142,-32,10 --142,-32,18 --142,-32,26 --142,-32,34 --142,-32,42 --142,-32,50 --142,-32,58 --142,-32,66 --142,-32,74 --142,-32,82 --142,-32,90 --142,-32,98 --142,-32,106 --142,-32,114 --142,-32,122 --142,-32,130 --142,-32,138 --142,-32,146 --134,-32,-150 --134,-32,-142 --134,-32,-134 --134,-32,-126 --134,-32,-118 --134,-32,-110 --134,-32,-102 --134,-32,-94 --134,-32,-86 --134,-32,-78 --134,-32,-70 --134,-32,-62 --134,-32,-54 --134,-32,-46 --134,-32,-38 --134,-32,-30 --134,-32,-22 --134,-32,-14 --134,-32,-6 --134,-32,2 --134,-32,10 --134,-32,18 --134,-32,26 --134,-32,34 --134,-32,42 --134,-32,50 --134,-32,58 --134,-32,66 --134,-32,74 --134,-32,82 --134,-32,90 --134,-32,98 --134,-32,106 --134,-32,114 --134,-32,122 --134,-32,130 --134,-32,138 --134,-32,146 --126,-32,-150 --126,-32,-142 --126,-32,-134 --126,-32,-126 --126,-32,-118 --126,-32,-110 --126,-32,-102 --126,-32,-94 --126,-32,-86 --126,-32,-78 --126,-32,-70 --126,-32,-62 --126,-32,-54 --126,-32,-46 --126,-32,-38 --126,-32,-30 --126,-32,-22 --126,-32,-14 --126,-32,-6 --126,-32,2 --126,-32,10 --126,-32,18 --126,-32,26 --126,-32,34 --126,-32,42 --126,-32,50 --126,-32,58 --126,-32,66 --126,-32,74 --126,-32,82 --126,-32,90 --126,-32,98 --126,-32,106 --126,-32,114 --126,-32,122 --126,-32,130 --126,-32,138 --126,-32,146 --118,-32,-150 --118,-32,-142 --118,-32,-134 --118,-32,-126 --118,-32,-118 --118,-32,-110 --118,-32,-102 --118,-32,-94 --118,-32,-86 --118,-32,-78 --118,-32,-70 --118,-32,-62 --118,-32,-54 --118,-32,-46 --118,-32,-38 --118,-32,-30 --118,-32,-22 --118,-32,-14 --118,-32,-6 --118,-32,2 --118,-32,10 --118,-32,18 --118,-32,26 --118,-32,34 --118,-32,42 --118,-32,50 --118,-32,58 --118,-32,66 --118,-32,74 --118,-32,82 --118,-32,90 --118,-32,98 --118,-32,106 --118,-32,114 --118,-32,122 --118,-32,130 --118,-32,138 --118,-32,146 --110,-32,-150 --110,-32,-142 --110,-32,-134 --110,-32,-126 --110,-32,-118 --110,-32,-110 --110,-32,-102 --110,-32,-94 --110,-32,-86 --110,-32,-78 --110,-32,-70 --110,-32,-62 --110,-32,-54 --110,-32,-46 --110,-32,-38 --110,-32,-30 --110,-32,-22 --110,-32,-14 --110,-32,-6 --110,-32,2 --110,-32,10 --110,-32,18 --110,-32,26 --110,-32,34 --110,-32,42 --110,-32,50 --110,-32,58 --110,-32,66 --110,-32,74 --110,-32,82 --110,-32,90 --110,-32,98 --110,-32,106 --110,-32,114 --110,-32,122 --110,-32,130 --110,-32,138 --110,-32,146 --102,-32,-150 --102,-32,-142 --102,-32,-134 --102,-32,-126 --102,-32,-118 --102,-32,-110 --102,-32,-102 --102,-32,-94 --102,-32,-86 --102,-32,-78 --102,-32,-70 --102,-32,-62 --102,-32,-54 --102,-32,-46 --102,-32,-38 --102,-32,-30 --102,-32,-22 --102,-32,-14 --102,-32,-6 --102,-32,2 --102,-32,10 --102,-32,18 --102,-32,26 --102,-32,34 --102,-32,42 --102,-32,50 --102,-32,58 --102,-32,66 --102,-32,74 --102,-32,82 --102,-32,90 --102,-32,98 --102,-32,106 --102,-32,114 --102,-32,122 --102,-32,130 --102,-32,138 --102,-32,146 --94,-32,-150 --94,-32,-142 --94,-32,-134 --94,-32,-126 --94,-32,-118 --94,-32,-110 --94,-32,-102 --94,-32,-94 --94,-32,-86 --94,-32,-78 --94,-32,-70 --94,-32,-62 --94,-32,-54 --94,-32,-46 --94,-32,-38 --94,-32,-30 --94,-32,-22 --94,-32,-14 --94,-32,-6 --94,-32,2 --94,-32,10 --94,-32,18 --94,-32,26 --94,-32,34 --94,-32,42 --94,-32,50 --94,-32,58 --94,-32,66 --94,-32,74 --94,-32,82 --94,-32,90 --94,-32,98 --94,-32,106 --94,-32,114 --94,-32,122 --94,-32,130 --94,-32,138 --94,-32,146 --86,-32,-150 --86,-32,-142 --86,-32,-134 --86,-32,-126 --86,-32,-118 --86,-32,-110 --86,-32,-102 --86,-32,-94 --86,-32,-86 --86,-32,-78 --86,-32,-70 --86,-32,-62 --86,-32,-54 --86,-32,-46 --86,-32,-38 --86,-32,-30 --86,-32,-22 --86,-32,-14 --86,-32,-6 --86,-32,2 --86,-32,10 --86,-32,18 --86,-32,26 --86,-32,34 --86,-32,42 --86,-32,50 --86,-32,58 --86,-32,66 --86,-32,74 --86,-32,82 --86,-32,90 --86,-32,98 --86,-32,106 --86,-32,114 --86,-32,122 --86,-32,130 --86,-32,138 --86,-32,146 --78,-32,-150 --78,-32,-142 --78,-32,-134 --78,-32,-126 --78,-32,-118 --78,-32,-110 --78,-32,-102 --78,-32,-94 --78,-32,-86 --78,-32,-78 --78,-32,-70 --78,-32,-62 --78,-32,-54 --78,-32,-46 --78,-32,-38 --78,-32,-30 --78,-32,-22 --78,-32,-14 --78,-32,-6 --78,-32,2 --78,-32,10 --78,-32,18 --78,-32,26 --78,-32,34 --78,-32,42 --78,-32,50 --78,-32,58 --78,-32,66 --78,-32,74 --78,-32,82 --78,-32,90 --78,-32,98 --78,-32,106 --78,-32,114 --78,-32,122 --78,-32,130 --78,-32,138 --78,-32,146 --70,-32,-150 --70,-32,-142 --70,-32,-134 --70,-32,-126 --70,-32,-118 --70,-32,-110 --70,-32,-102 --70,-32,-94 --70,-32,-86 --70,-32,-78 --70,-32,-70 --70,-32,-62 --70,-32,-54 --70,-32,-46 --70,-32,-38 --70,-32,-30 --70,-32,-22 --70,-32,-14 --70,-32,-6 --70,-32,2 --70,-32,10 --70,-32,18 --70,-32,26 --70,-32,34 --70,-32,42 --70,-32,50 --70,-32,58 --70,-32,66 --70,-32,74 --70,-32,82 --70,-32,90 --70,-32,98 --70,-32,106 --70,-32,114 --70,-32,122 --70,-32,130 --70,-32,138 --70,-32,146 --62,-32,-150 --62,-32,-142 --62,-32,-134 --62,-32,-126 --62,-32,-118 --62,-32,-110 --62,-32,-102 --62,-32,-94 --62,-32,-86 --62,-32,-78 --62,-32,-70 --62,-32,-62 --62,-32,-54 --62,-32,-46 --62,-32,-38 --62,-32,-30 --62,-32,-22 --62,-32,-14 --62,-32,-6 --62,-32,2 --62,-32,10 --62,-32,18 --62,-32,26 --62,-32,34 --62,-32,42 --62,-32,50 --62,-32,58 --62,-32,66 --62,-32,74 --62,-32,82 --62,-32,90 --62,-32,98 --62,-32,106 --62,-32,114 --62,-32,122 --62,-32,130 --62,-32,138 --62,-32,146 --54,-32,-150 --54,-32,-142 --54,-32,-134 --54,-32,-126 --54,-32,-118 --54,-32,-110 --54,-32,-102 --54,-32,-94 --54,-32,-86 --54,-32,-78 --54,-32,-70 --54,-32,-62 --54,-32,-54 --54,-32,-46 --54,-32,-38 --54,-32,-30 --54,-32,-22 --54,-32,-14 --54,-32,-6 --54,-32,2 --54,-32,10 --54,-32,18 --54,-32,26 --54,-32,34 --54,-32,42 --54,-32,50 --54,-32,58 --54,-32,66 --54,-32,74 --54,-32,82 --54,-32,90 --54,-32,98 --54,-32,106 --54,-32,114 --54,-32,122 --54,-32,130 --54,-32,138 --54,-32,146 --46,-32,-150 --46,-32,-142 --46,-32,-134 --46,-32,-126 --46,-32,-118 --46,-32,-110 --46,-32,-102 --46,-32,-94 --46,-32,-86 --46,-32,-78 --46,-32,-70 --46,-32,-62 --46,-32,-54 --46,-32,-46 --46,-32,-38 --46,-32,-30 --46,-32,-22 --46,-32,-14 --46,-32,-6 --46,-32,2 --46,-32,10 --46,-32,18 --46,-32,26 --46,-32,34 --46,-32,42 --46,-32,50 --46,-32,58 --46,-32,66 --46,-32,74 --46,-32,82 --46,-32,90 --46,-32,98 --46,-32,106 --46,-32,114 --46,-32,122 --46,-32,130 --46,-32,138 --46,-32,146 --38,-32,-150 --38,-32,-142 --38,-32,-134 --38,-32,-126 --38,-32,-118 --38,-32,-110 --38,-32,-102 --38,-32,-94 --38,-32,-86 --38,-32,-78 --38,-32,-70 --38,-32,-62 --38,-32,-54 --38,-32,-46 --38,-32,-38 --38,-32,-30 --38,-32,-22 --38,-32,-14 --38,-32,-6 --38,-32,2 --38,-32,10 --38,-32,18 --38,-32,26 --38,-32,34 --38,-32,42 --38,-32,50 --38,-32,58 --38,-32,66 --38,-32,74 --38,-32,82 --38,-32,90 --38,-32,98 --38,-32,106 --38,-32,114 --38,-32,122 --38,-32,130 --38,-32,138 --38,-32,146 --30,-32,-150 --30,-32,-142 --30,-32,-134 --30,-32,-126 --30,-32,-118 --30,-32,-110 --30,-32,-102 --30,-32,-94 --30,-32,-86 --30,-32,-78 --30,-32,-70 --30,-32,-62 --30,-32,-54 --30,-32,-46 --30,-32,-38 --30,-32,-30 --30,-32,-22 --30,-32,-14 --30,-32,-6 --30,-32,2 --30,-32,10 --30,-32,18 --30,-32,26 --30,-32,34 --30,-32,42 --30,-32,50 --30,-32,58 --30,-32,66 --30,-32,74 --30,-32,82 --30,-32,90 --30,-32,98 --30,-32,106 --30,-32,114 --30,-32,122 --30,-32,130 --30,-32,138 --30,-32,146 --22,-32,-150 --22,-32,-142 --22,-32,-134 --22,-32,-126 --22,-32,-118 --22,-32,-110 --22,-32,-102 --22,-32,-94 --22,-32,-86 --22,-32,-78 --22,-32,-70 --22,-32,-62 --22,-32,-54 --22,-32,-46 --22,-32,-38 --22,-32,-30 --22,-32,-22 --22,-32,-14 --22,-32,-6 --22,-32,2 --22,-32,10 --22,-32,18 --22,-32,26 --22,-32,34 --22,-32,42 --22,-32,50 --22,-32,58 --22,-32,66 --22,-32,74 --22,-32,82 --22,-32,90 --22,-32,98 --22,-32,106 --22,-32,114 --22,-32,122 --22,-32,130 --22,-32,138 --22,-32,146 --14,-32,-150 --14,-32,-142 --14,-32,-134 --14,-32,-126 --14,-32,-118 --14,-32,-110 --14,-32,-102 --14,-32,-94 --14,-32,-86 --14,-32,-78 --14,-32,-70 --14,-32,-62 --14,-32,-54 --14,-32,-46 --14,-32,-38 --14,-32,-30 --14,-32,-22 --14,-32,-14 --14,-32,-6 --14,-32,2 --14,-32,10 --14,-32,18 --14,-32,26 --14,-32,34 --14,-32,42 --14,-32,50 --14,-32,58 --14,-32,66 --14,-32,74 --14,-32,82 --14,-32,90 --14,-32,98 --14,-32,106 --14,-32,114 --14,-32,122 --14,-32,130 --14,-32,138 --14,-32,146 --6,-32,-150 --6,-32,-142 --6,-32,-134 --6,-32,-126 --6,-32,-118 --6,-32,-110 --6,-32,-102 --6,-32,-94 --6,-32,-86 --6,-32,-78 --6,-32,-70 --6,-32,-62 --6,-32,-54 --6,-32,-46 --6,-32,-38 --6,-32,-30 --6,-32,-22 --6,-32,-14 --6,-32,-6 --6,-32,2 --6,-32,10 --6,-32,18 --6,-32,26 --6,-32,34 --6,-32,42 --6,-32,50 --6,-32,58 --6,-32,66 --6,-32,74 --6,-32,82 --6,-32,90 --6,-32,98 --6,-32,106 --6,-32,114 --6,-32,122 --6,-32,130 --6,-32,138 --6,-32,146 -2,-32,-150 -2,-32,-142 -2,-32,-134 -2,-32,-126 -2,-32,-118 -2,-32,-110 -2,-32,-102 -2,-32,-94 -2,-32,-86 -2,-32,-78 -2,-32,-70 -2,-32,-62 -2,-32,-54 -2,-32,-46 -2,-32,-38 -2,-32,-30 -2,-32,-22 -2,-32,-14 -2,-32,-6 -2,-32,2 -2,-32,10 -2,-32,18 -2,-32,26 -2,-32,34 -2,-32,42 -2,-32,50 -2,-32,58 -2,-32,66 -2,-32,74 -2,-32,82 -2,-32,90 -2,-32,98 -2,-32,106 -2,-32,114 -2,-32,122 -2,-32,130 -2,-32,138 -2,-32,146 -10,-32,-150 -10,-32,-142 -10,-32,-134 -10,-32,-126 -10,-32,-118 -10,-32,-110 -10,-32,-102 -10,-32,-94 -10,-32,-86 -10,-32,-78 -10,-32,-70 -10,-32,-62 -10,-32,-54 -10,-32,-46 -10,-32,-38 -10,-32,-30 -10,-32,-22 -10,-32,-14 -10,-32,-6 -10,-32,2 -10,-32,10 -10,-32,18 -10,-32,26 -10,-32,34 -10,-32,42 -10,-32,50 -10,-32,58 -10,-32,66 -10,-32,74 -10,-32,82 -10,-32,90 -10,-32,98 -10,-32,106 -10,-32,114 -10,-32,122 -10,-32,130 -10,-32,138 -10,-32,146 -18,-32,-150 -18,-32,-142 -18,-32,-134 -18,-32,-126 -18,-32,-118 -18,-32,-110 -18,-32,-102 -18,-32,-94 -18,-32,-86 -18,-32,-78 -18,-32,-70 -18,-32,-62 -18,-32,-54 -18,-32,-46 -18,-32,-38 -18,-32,-30 -18,-32,-22 -18,-32,-14 -18,-32,-6 -18,-32,2 -18,-32,10 -18,-32,18 -18,-32,26 -18,-32,34 -18,-32,42 -18,-32,50 -18,-32,58 -18,-32,66 -18,-32,74 -18,-32,82 -18,-32,90 -18,-32,98 -18,-32,106 -18,-32,114 -18,-32,122 -18,-32,130 -18,-32,138 -18,-32,146 -26,-32,-150 -26,-32,-142 -26,-32,-134 -26,-32,-126 -26,-32,-118 -26,-32,-110 -26,-32,-102 -26,-32,-94 -26,-32,-86 -26,-32,-78 -26,-32,-70 -26,-32,-62 -26,-32,-54 -26,-32,-46 -26,-32,-38 -26,-32,-30 -26,-32,-22 -26,-32,-14 -26,-32,-6 -26,-32,2 -26,-32,10 -26,-32,18 -26,-32,26 -26,-32,34 -26,-32,42 -26,-32,50 -26,-32,58 -26,-32,66 -26,-32,74 -26,-32,82 -26,-32,90 -26,-32,98 -26,-32,106 -26,-32,114 -26,-32,122 -26,-32,130 -26,-32,138 -26,-32,146 -34,-32,-150 -34,-32,-142 -34,-32,-134 -34,-32,-126 -34,-32,-118 -34,-32,-110 -34,-32,-102 -34,-32,-94 -34,-32,-86 -34,-32,-78 -34,-32,-70 -34,-32,-62 -34,-32,-54 -34,-32,-46 -34,-32,-38 -34,-32,-30 -34,-32,-22 -34,-32,-14 -34,-32,-6 -34,-32,2 -34,-32,10 -34,-32,18 -34,-32,26 -34,-32,34 -34,-32,42 -34,-32,50 -34,-32,58 -34,-32,66 -34,-32,74 -34,-32,82 -34,-32,90 -34,-32,98 -34,-32,106 -34,-32,114 -34,-32,122 -34,-32,130 -34,-32,138 -34,-32,146 -42,-32,-150 -42,-32,-142 -42,-32,-134 -42,-32,-126 -42,-32,-118 -42,-32,-110 -42,-32,-102 -42,-32,-94 -42,-32,-86 -42,-32,-78 -42,-32,-70 -42,-32,-62 -42,-32,-54 -42,-32,-46 -42,-32,-38 -42,-32,-30 -42,-32,-22 -42,-32,-14 -42,-32,-6 -42,-32,2 -42,-32,10 -42,-32,18 -42,-32,26 -42,-32,34 -42,-32,42 -42,-32,50 -42,-32,58 -42,-32,66 -42,-32,74 -42,-32,82 -42,-32,90 -42,-32,98 -42,-32,106 -42,-32,114 -42,-32,122 -42,-32,130 -42,-32,138 -42,-32,146 -50,-32,-150 -50,-32,-142 -50,-32,-134 -50,-32,-126 -50,-32,-118 -50,-32,-110 -50,-32,-102 -50,-32,-94 -50,-32,-86 -50,-32,-78 -50,-32,-70 -50,-32,-62 -50,-32,-54 -50,-32,-46 50,-32,-38 50,-32,-30 50,-32,-22 diff --git a/computer/13/current_fluids b/computer/13/current_fluids deleted file mode 100644 index e69de29..0000000 diff --git a/computer/13/fluid_state.lua b/computer/13/fluid_state.lua index 57c0d1b..98d6550 100644 --- a/computer/13/fluid_state.lua +++ b/computer/13/fluid_state.lua @@ -1,15 +1,15 @@ return { { name = "water", - amount = 32900, + amount = 32700, }, { name = "blood", - amount = 150, + amount = 50, }, { name = "still_milk", - amount = 2000, + amount = 1000, }, { name = "lava", @@ -25,7 +25,7 @@ return { }, { name = "molten_rose_gold", - amount = 0.44444444444446, + amount = 0, }, { amount = 0, diff --git a/computer/13/fluids.lua b/computer/13/fluids.lua index 355fbd7..b6e671e 100644 --- a/computer/13/fluids.lua +++ b/computer/13/fluids.lua @@ -120,7 +120,6 @@ function connectTankOrAssign(fluid) _G.fluidTanks[index] = { name = fluid, amount = 0, - connected = false } print("assigned tank", index, "to", fluid) break diff --git a/computer/13/machines.lua b/computer/13/machines.lua index 67a6a5d..990f327 100644 --- a/computer/13/machines.lua +++ b/computer/13/machines.lua @@ -3,18 +3,19 @@ require("pathfinding") require("fluids") sfx = require("sfx") -press_pos = vector.new(1,0,0) -deployer_pos = vector.new(2,0,0) -furnace_pos = vector.new(4,2,0) -saw_pos = vector.new(3,1,0) -saw_out_pos = vector.new(2,0,0) -mill_pos = vector.new(4,0,0) -mixer_pos = vector.new(-1,0,0) -compactor_pos = vector.new(-2,0,0) -spout_pos = vector.new(-3,0,0) -melter_pos = vector.new(-4,1,-3) -casting_table_pos = vector.new(-3,0,-3) -washer_pos = vector.new(3,0,-4) +press_pos = vector.new(1, 0, 0) +deployer_pos = vector.new(2, 0, 0) +furnace_pos = vector.new(4, 2, 0) +saw_pos = vector.new(3, 1, 0) +saw_out_pos = vector.new(2, 0, 0) +mill_pos = vector.new(4, 0, 0) +mixer_pos = vector.new(-1, 0, 0) +compactor_pos = vector.new(-2, 0, 0) +spout_pos = vector.new(-3, 0, 0) +melter_pos = vector.new(-4, 1, -3) +casting_pos = vector.new(-2, 1, -4) +washer_pos = vector.new(3, 0, -4) +growth_chamber_pos = vector.new(-3, 2, 0) function spout(extra_items) local fluid = extra_items[1] @@ -40,25 +41,27 @@ function spout(extra_items) end pumpToTanks(false) end + function saw(_) goTo(saw_pos, "south") turtle.drop() goTo(saw_out_pos, "south") takeDepot() end + function mill(extra_items) - goTo(mill_pos,"south") + goTo(mill_pos, "south") item_count = 0 if turtle.getItemCount() ~= 0 then item_count = 1 end insertForward(1, 1) - for _,item in pairs(extra_items) do + for _, item in pairs(extra_items) do item_count = item_count + item.count selectItem(item.name) insertForward(1, item.count) end - print(item_count,"items") + print(item_count, "items") while pFront("getItemDetail", 1) do sleep(0.1) end @@ -66,6 +69,7 @@ function mill(extra_items) takeForward(i) end end + function deploy(extra_items) -- extra_items should only be one item goTo(deployer_pos, "south") @@ -80,6 +84,7 @@ function deploy(extra_items) goDown() takeDepot() end + function deploy_tool(extra_items) -- extra_items should only be one item goTo(deployer_pos, "south") @@ -98,6 +103,7 @@ function deploy_tool(extra_items) pFront("pushItem", "top") turtle.suckUp() end + function furnace(extra_items) goTo(furnace_pos, "south") item_count = 0 @@ -106,7 +112,7 @@ function furnace(extra_items) end turtle.dropUp(1) pFront("pullItems", "top", 1, 64, 1) - for _,item in pairs(extra_items) do + for _, item in pairs(extra_items) do item_count = item_count + item.count selectItem(item.name) turtle.dropUp(item.count) @@ -118,19 +124,22 @@ function furnace(extra_items) pFront("pushItems", "top", 3) turtle.suckUp() end + function press(_) goTo(press_pos, "south") insertDepot(1) sleep(1) takeDepot() end + function compact(extra_items, product, yield) silly_temp = mixer_pos mixer_pos = compactor_pos mix(extra_items, product, yield) mixer_pos = silly_temp end -function make_water(_,_,yield) + +function make_water(_, _, yield) selectFluidDevice("water_source") connectTank("water") pumpToTanks(true) @@ -139,6 +148,7 @@ function make_water(_,_,yield) pumpToTanks(false) fluidInvAdd("water", yield) end + function alloy(parts, product) for _, item in pairs(parts) do if not isFluid[item.name] then @@ -174,6 +184,7 @@ function alloy(parts, product) fluidInvAdd(fluid.name, -created_amount) end end + function melt(_, product, yield) goTo(melter_pos, "north") goUp() @@ -188,6 +199,7 @@ function melt(_, product, yield) pumpToTanks(false) fluidInvAdd(product, yield) end + function mix(extra_items, product, yield) -- prepare fluids local fluids = {} @@ -221,7 +233,7 @@ function mix(extra_items, product, yield) sleep(1) contents = pFront("list") inputs_remaining = false - for i = 1,9 do + for i = 1, 9 do if contents[i] then inputs_remaining = true break @@ -231,7 +243,7 @@ function mix(extra_items, product, yield) if product == "still_milk" then repeat is_done = false - for _,t in pairs(pFront("tanks")) do + for _, t in pairs(pFront("tanks")) do if stripModname(t.name) == "still_milk" then is_done = t.amount >= yield break @@ -245,7 +257,7 @@ function mix(extra_items, product, yield) end -- empty fluids tanks = pFront("tanks") - for _,tank in pairs(tanks) do + for _, tank in pairs(tanks) do if tank.amount > 0 then connectTankOrAssign(stripModname(tank.name)) pumpToTanks(true) @@ -255,6 +267,7 @@ function mix(extra_items, product, yield) end fluidInvAdd(product, yield) end + function craft(extra_items) local slot = 0 for _, item in pairs(extra_items) do @@ -277,7 +290,7 @@ function wash(_, product) insertDepot(1) repeat is_done = false - for _,item in pairs(pFront("items")) do + for _, item in pairs(pFront("items")) do if stripModname(item.name) == product then is_done = true end @@ -286,6 +299,57 @@ function wash(_, product) takeDepot() end +function growth_chamber() + goTo(growth_chamber_pos, "west") + pTop("pushItem", "front") + turtle.suck() +end + +function cast_ingot(source, product, yield) + fluid = source[1] + if not isFluid[fluid.name] then + error(fluid .. " is not a fluid") + end + connectTank(fluid) + selectFluidDevice("melter") + pumpToDevices(true) + goTo(melter_pos, "north") + repeat + melter_tank = pFront("tanks")[1] + local storage_emptied = melter_tank.amount >= getFluidAmount(fluid.name) + local melter_full = melter_tank.amount >= melter_tank.capacity + done_filling = storage_emptied or melter_full + until done_filling + pumpToDevices(false) + local fluid_in_melter = melter_tank.amount + local ingot_count = math.floor(fluid_in_melter / 111) + local leftover = fluid_in_melter - ingot_count * 111.11 + print("expecting", ingot_count, "ingots") + goTo(casting_pos, "west") + for i = 1, ingot_count do + redstone.setOutput("front", true) + sleep(0.1) + redstone.setOutput("front", false) + goDown() + repeat + sleep(0.1) + until pFront("getItemDetail", 2) + takeForward(2) + goUp() + end + + if leftover > 1 then + pumpToTanks(true) + sleep(5) + pumpToTanks(false) + end + fluidInvAdd(fluid.name, -(ingot_count * 111)) +end + +function rolling_mill() + print("unimplemented :3") +end + return { mill = mill, deploy = deploy, @@ -301,4 +365,7 @@ return { spout = spout, make_water = make_water, wash = wash, -} \ No newline at end of file + cast_ingot = cast_ingot, + rolling_mill = rolling_mill, + growth_chamber = growth_chamber, +} diff --git a/computer/13/recipes.lua b/computer/13/recipes.lua index d625c45..b8fa57a 100644 --- a/computer/13/recipes.lua +++ b/computer/13/recipes.lua @@ -11,6 +11,7 @@ function read_recipe(file) yield = 1 while 1 do line = file.readLine() + if not line then return nil end if string.sub(line, 1, 5) == "base " then base = string.sub(line, 6) elseif string.sub(line, 1, 13) == "intermediate " then diff --git a/computer/13/recipes.txt b/computer/13/recipes.txt index fa30437..808f1e1 100644 --- a/computer/13/recipes.txt +++ b/computer/13/recipes.txt @@ -112,6 +112,10 @@ yield 3 steps: craft andesite_alloy bronze_sheet +large_cogwheel +steps: +craft cogwheel bronze_sheet cogwheel + flint_knife steps: craft flint nil nil stick @@ -231,6 +235,10 @@ molten_rose_gold steps: alloy molten_copper molten_gold +rose_gold_ingot +steps: +cast_ingot molten_rose_gold + molten_copper yield 111 base copper_ingot @@ -366,3 +374,66 @@ salmon yield 0.25 steps: compact wet_sponge + +milk_jar +steps: +craft glass birch_planks glass glass milk_bucket glass glass glass glass + +milk_bucket +base bucket +steps: +spout still_milk:1000 + +bucket +steps: +craft iron_ingot nil iron_ingot nil iron_ingot + +molten_bronze +yield 888 +steps: +mix copper_nugget:36 tin_nugget:36 + +bronze_ingot +steps: +cast_ingot molten_bronze + +copper_nugget +yield 9 +steps: +craft copper_ingot + +tin_nugget +yield 9 +steps: +craft tin_ingot + +iron_wire +yield 2 +steps: +rolling_mill iron_sheet + +redstone_chip +base electron_tube +intermediate incomplete_redstone_chip +repeat 12 +steps: +spout molten_copper:41 +deploy iron_wire +press + +smart_chute +steps: +craft filter golden_sheet nil comparator observer nil chute chute + +chute +yield 4 +steps: +craft iron_sheet nil nil iron_ingot nil nil iron_sheet + +stone_growth_chamber +steps: +craft copper_casing copper_casing copper_casing copper_sheet water_bucket copper_sheet copper_casing copper_casing copper_casing + +cobblestone +steps: +growth_chamber diff --git a/computer/13/startup.lua b/computer/13/startup.lua index 5a158a7..ca93f09 100644 --- a/computer/13/startup.lua +++ b/computer/13/startup.lua @@ -1,7 +1,5 @@ term.clear() term.setCursorPos(1,1) - - parallel.waitForAny( function() shell.run("shell") diff --git a/computer/13/work.lua b/computer/13/work.lua index 58e95cc..e1dd33a 100644 --- a/computer/13/work.lua +++ b/computer/13/work.lua @@ -10,7 +10,7 @@ keep_stocked = { flint = 10 } --- resetAllFluidDevices() +resetAllFluidDevices() goHome() print("known recipes:\n") diff --git a/computer/20/.settings b/computer/20/.settings new file mode 100644 index 0000000..4bc0f68 --- /dev/null +++ b/computer/20/.settings @@ -0,0 +1,4 @@ +{ + [ "motd.enable" ] = false, + [ "motd.path" ] = "/rom/motd.txt:/motd.txt:/rom/cccbridge_motd.txt", +} \ No newline at end of file diff --git a/computer/20/startup.lua b/computer/20/startup.lua index f279ab8..5b5551e 100644 --- a/computer/20/startup.lua +++ b/computer/20/startup.lua @@ -1,18 +1,48 @@ -screen = peripheral.wrap("bottom") +screen = peripheral.wrap("create_source_1") -message = { -"Menu coming soon!", -"Don't miss our opening day 50% off!", -"The best vegan* fast food available" +robot = peripheral.wrap("animatronic_1") + +messages = { + "Menu coming soon!", + "Don't miss our opening day 50% off!", + "The best vegan* fast food available" } -i= 1 +rotations = {360-40, 360-20, 0, 360+20, 360+40} + +n=1 +function update_rot() + n = n%5 + 1 + target_rot = 180 + rotations[n] + if target_rot > 180 then + target_rot = target_rot - 360 + end + robot.setBodyRot(0, target_rot, 0) + robot.setFace("sad") + robot.push() + -- sleep(1.5) + -- for i = 1, 5 do + + -- end +end + +message_time = 5 +message_index = 1 +pose_time = 0 +dt = 0.1 while true do -screen.clear() -screen.setCursorPos(1,1) -screen.write(message[i]) -i = i+1 -if i > #message then - i = 1 -end -sleep(4) + sleep(dt) + pose_time = pose_time + dt + if pose_time > 0.4 then + pose_time = 0 + -- + end + message_time = message_time + dt + if message_time > 4 then + message_time = 0 + screen.clear() + screen.setCursorPos(1, 1) + screen.write(messages[message_index]) + message_index = (message_index % #messages) + 1 + end + update_rot() end diff --git a/computer/3/copyfile.lua b/computer/3/copyfile.lua index 8828b16..a9f1429 100644 --- a/computer/3/copyfile.lua +++ b/computer/3/copyfile.lua @@ -1,9 +1,9 @@ -file = fs.open("tobuild","r") +file = fs.open(arg[1],"r") line = file.readLine() while line do rednet.send(4,line) line = file.readLine() end write("line".."\n") -rednet.send(4,"done") +rednet.send(4,nil) file.close() diff --git a/computer/3/mine.lua b/computer/3/mine.lua index 2a02f71..0281755 100644 --- a/computer/3/mine.lua +++ b/computer/3/mine.lua @@ -2,8 +2,8 @@ im = require("inventorymanager") local height = 0 function mineLayer() rednet.broadcast("i can halt now") - id, message = rednet.receive(nil, 5) - if message == "halt" then + id, messages = rednet.receive(nil, 5) + if messages == "halt" then print("was ordered to stop") return false end @@ -17,15 +17,15 @@ function mineLayer() slots = slots +1 end end - + if slots < 8 then print("not confident i can pick it all up :(") return false end status = "dropping down" print(status) - while turtle.down() do - height = height+1 + while turtle.down() do + height = height+1 end turtle.digDown() turtle.down() @@ -33,7 +33,7 @@ function mineLayer() status = "mining layer:"..height print(status) for i = 1,16 do - + for j = 1,15 do hit, below = turtle.inspectDown() if below.name == "minecraft:water" then @@ -66,7 +66,7 @@ function mineLayer() end function gohome() status = "resurfacing" - print(status) + print(status) for i = 1,height do turtle.up() end @@ -74,6 +74,6 @@ function gohome() end turtle.forward() while mineLayer() do - + end gohome() diff --git a/computer/3/startup.lua b/computer/3/startup.lua index dbfd78c..d2e828a 100644 --- a/computer/3/startup.lua +++ b/computer/3/startup.lua @@ -1,85 +1,37 @@ _G.position = vector.new(-2,186,126) _G.facing = vector.new(-1,0,0) rednet.open("left") ---old_print = _G.print ---[[new_print = function(...) - x = "" - for i,v in ipairs(arg) do - x = x..tostring(v).." " - end - old_print(x) - rednet.broadcast(x) -end]] ---_G.print = new_print ---rednet.host("tomfoolery",os.computerLabel()) ---while true do -function append(tbl,value) - table.insert(tbl,value) - return tbl -end -rednet.host("tomfoolery",os.getComputerLabel()) -queue = {} -history = {} -if true then - parallel.waitForAll( - function() - while true do - --print("reading") - while running do - coroutine.yield() - end - write( - shell.dir().."> " - ) - table.insert( - queue, - append( - history, - not running and read( - nil, - history, - shell.complete - ) - )[#history] - ) - sleep(0.05)--coroutine.yield() - end - end, - function() - while true do - --print("attempting to run shell on :"..(queue[1] or "")) - running = true - shell.run( - table.remove( - queue, - 1 - ) - ) - running = false - --term.clear() - for i,v in pairs(queue) do - --print(v) - end - sleep(0.05) - end - end, - function() - while true do - --print("recieving") - id,mess,kind = rednet.receive() - if kind == "complete" then - rednet.send(id,shell.complete(mess),"completed") - elseif kind == "run" then - print("recieved") - print(id, mess, kind) - table.insert(queue,mess) - sleep(0.05) - else - - end - end - end - ) -end -rednet.receive() +rednet.host("tomfoolery",os.computerLabel()) +forward = {} +--print(term.native()) +for i,v in pairs(term.native()) do + print(i,v) + forward[i] = function(...) + rednet.send(5,{i,{...}}) + return v(...) + end +end +term.redirect(forward) +W = window.create(term.current(),1,1,term.getSize()) +term.redirect(W) +parallel.waitForAll( + function() + shell.run("shell") + end, + function() + while true do + id, message, protocol = rednet.receive( + "pocketevent" + ) + os.queueEvent(unpack(message)) + end + end + , + function() + while true do + W.redraw() + sleep(0.5) + end + end +) diff --git a/computer/4/recievefile.lua b/computer/4/recievefile.lua index 216705b..05175da 100644 --- a/computer/4/recievefile.lua +++ b/computer/4/recievefile.lua @@ -1,13 +1,6 @@ -file = fs.open("tobuild","w") -while true do - id,message = rednet.receive() - if id == 3 then - if message=="done" then - file.close() - return - else - print(message) - file.writeLine(message) - end - end -end +file = fs.open(arg[1],"w") +repeat + id,mess = rednet.receive() + file.writeLine(mess) + until not mess +file.close() diff --git a/computer/4/rednerd.lua b/computer/4/rednerd.lua index dea964e..42fc54c 100644 --- a/computer/4/rednerd.lua +++ b/computer/4/rednerd.lua @@ -1,6 +1,6 @@ while true do print("rednerd") - message = {os.pullEvent("rednet_message")} - print(message[3]) + messages = {os.pullEvent("rednet_message")} + print(messages[3]) coroutine.yield() end diff --git a/computer/4/startup.lua b/computer/4/startup.lua index 7224ac4..2c768bb 100644 --- a/computer/4/startup.lua +++ b/computer/4/startup.lua @@ -1,84 +1,39 @@ _G.position = vector.new(-1,186,126) _G.facing = vector.new(-1,0,0) rednet.open("left") ---old_print = _G.print ---[[new_print = function(...) - x = "" - for i,v in ipairs(arg) do - x = x..tostring(v).." " +rednet.host("tomfoolery",os.computerLabel()) +forward = {} +--print(term.native()) +for i,v in pairs(term.native()) do + print(i,v) + forward[i] = function(...) + rednet.send(5,{i,{...}}) + return v(...) end - old_print(x) - rednet.broadcast(x) -end]] ---_G.print = new_print ---rednet.host("tomfoolery",os.computerLabel()) ---while true do -function append(tbl,value) - table.insert(tbl,value) - return tbl end -rednet.host("tomfoolery",os.getComputerLabel()) -queue = {} -history = {} -if true then - parallel.waitForAll( - function() - while true do - --print("reading") - while running do - coroutine.yield() - end - write( - shell.dir().."> " - ) - table.insert( - queue, - append( - history, - not running and read( - nil, - history, - shell.complete - ) - )[#history] - ) - sleep(0.05)--coroutine.yield() - end - end, - function() - while true do - --print("attempting to run shell on :"..(queue[1] or "")) - running = true - shell.run( - table.remove( - queue, - 1 - ) - ) - running = false - --term.clear() - for i,v in pairs(queue) do - --print(v) - end - sleep(0.05) - end - end, - function() - while true do - --print("recieving") - id,mess,kind = rednet.receive() - if kind == "complete" then - rednet.send(id,shell.complete(mess),"completed") - elseif kind == "run" then - print("recieved") - print(id, mess, kind) - table.insert(queue,mess) - sleep(0.05) - else - - end - end +term.redirect(forward) +W = window.create(term.current(),1,1,term.getSize()) +W.setBackgroundColor(colors.white) +W.setTextColor(colors.black) +term.redirect(W) +parallel.waitForAll( + function() + shell.run("shell") + end, + function() + while true do + id, message, protocol = rednet.receive( + "pocketevent" + ) + os.queueEvent(unpack(message)) end - ) -end -rednet.receive() + end + , + function() + while true do + W.redraw() + sleep(0.1) + end + end +) + diff --git a/computer/4/tobuild b/computer/4/tobuild index ef886ed..e69de29 100644 --- a/computer/4/tobuild +++ b/computer/4/tobuild @@ -1,3841 +0,0 @@ -10,-48,-22 -10,-48,-14 -10,-48,-6 -10,-48,2 -10,-48,10 -10,-48,18 -10,-48,26 -10,-48,34 -10,-48,42 -10,-48,50 -10,-48,58 -10,-48,66 -10,-48,74 -10,-48,82 -10,-48,90 -10,-48,98 -10,-48,106 -10,-48,114 -10,-48,122 -10,-48,130 -10,-48,138 -10,-48,146 -18,-48,-150 -18,-48,-142 -18,-48,-134 -18,-48,-126 -18,-48,-118 -18,-48,-110 -18,-48,-102 -18,-48,-94 -18,-48,-86 -18,-48,-78 -18,-48,-70 -18,-48,-62 -18,-48,-54 -18,-48,-46 -18,-48,-38 -18,-48,-30 -18,-48,-22 -18,-48,-14 -18,-48,-6 -18,-48,2 -18,-48,10 -18,-48,18 -18,-48,26 -18,-48,34 -18,-48,42 -18,-48,50 -18,-48,58 -18,-48,66 -18,-48,74 -18,-48,82 -18,-48,90 -18,-48,98 -18,-48,106 -18,-48,114 -18,-48,122 -18,-48,130 -18,-48,138 -18,-48,146 -26,-48,-150 -26,-48,-142 -26,-48,-134 -26,-48,-126 -26,-48,-118 -26,-48,-110 -26,-48,-102 -26,-48,-94 -26,-48,-86 -26,-48,-78 -26,-48,-70 -26,-48,-62 -26,-48,-54 -26,-48,-46 -26,-48,-38 -26,-48,-30 -26,-48,-22 -26,-48,-14 -26,-48,-6 -26,-48,2 -26,-48,10 -26,-48,18 -26,-48,26 -26,-48,34 -26,-48,42 -26,-48,50 -26,-48,58 -26,-48,66 -26,-48,74 -26,-48,82 -26,-48,90 -26,-48,98 -26,-48,106 -26,-48,114 -26,-48,122 -26,-48,130 -26,-48,138 -26,-48,146 -34,-48,-150 -34,-48,-142 -34,-48,-134 -34,-48,-126 -34,-48,-118 -34,-48,-110 -34,-48,-102 -34,-48,-94 -34,-48,-86 -34,-48,-78 -34,-48,-70 -34,-48,-62 -34,-48,-54 -34,-48,-46 -34,-48,-38 -34,-48,-30 -34,-48,-22 -34,-48,-14 -34,-48,-6 -34,-48,2 -34,-48,10 -34,-48,18 -34,-48,26 -34,-48,34 -34,-48,42 -34,-48,50 -34,-48,58 -34,-48,66 -34,-48,74 -34,-48,82 -34,-48,90 -34,-48,98 -34,-48,106 -34,-48,114 -34,-48,122 -34,-48,130 -34,-48,138 -34,-48,146 -42,-48,-150 -42,-48,-142 -42,-48,-134 -42,-48,-126 -42,-48,-118 -42,-48,-110 -42,-48,-102 -42,-48,-94 -42,-48,-86 -42,-48,-78 -42,-48,-70 -42,-48,-62 -42,-48,-54 -42,-48,-46 -42,-48,-38 -42,-48,-30 -42,-48,-22 -42,-48,-14 -42,-48,-6 -42,-48,2 -42,-48,10 -42,-48,18 -42,-48,26 -42,-48,34 -42,-48,42 -42,-48,50 -42,-48,58 -42,-48,66 -42,-48,74 -42,-48,82 -42,-48,90 -42,-48,98 -42,-48,106 -42,-48,114 -42,-48,122 -42,-48,130 -42,-48,138 -42,-48,146 -50,-48,-150 -50,-48,-142 -50,-48,-134 -50,-48,-126 -50,-48,-118 -50,-48,-110 -50,-48,-102 -50,-48,-94 -50,-48,-86 -50,-48,-78 -50,-48,-70 -50,-48,-62 -50,-48,-54 -50,-48,-46 -50,-48,-38 -50,-48,-30 -50,-48,-22 -50,-48,-14 -50,-48,-6 -50,-48,2 -50,-48,10 -50,-48,18 -50,-48,26 -50,-48,34 -50,-48,42 -50,-48,50 -50,-48,58 -50,-48,66 -50,-48,74 -50,-48,82 -50,-48,90 -50,-48,98 -50,-48,106 -50,-48,114 -50,-48,122 -50,-48,130 -50,-48,138 -50,-48,146 -58,-48,-150 -58,-48,-142 -58,-48,-134 -58,-48,-126 -58,-48,-118 -58,-48,-110 -58,-48,-102 -58,-48,-94 -58,-48,-86 -58,-48,-78 -58,-48,-70 -58,-48,-62 -58,-48,-54 -58,-48,-46 -58,-48,-38 -58,-48,-30 -58,-48,-22 -58,-48,-14 -58,-48,-6 -58,-48,2 -58,-48,10 -58,-48,18 -58,-48,26 -58,-48,34 -58,-48,42 -58,-48,50 -58,-48,58 -58,-48,66 -58,-48,74 -58,-48,82 -58,-48,90 -58,-48,98 -58,-48,106 -58,-48,114 -58,-48,122 -58,-48,130 -58,-48,138 -58,-48,146 -66,-48,-150 -66,-48,-142 -66,-48,-134 -66,-48,-126 -66,-48,-118 --22,-40,58 --22,-40,66 --22,-40,74 --22,-40,82 --22,-40,90 --22,-40,98 --22,-40,106 --22,-40,114 --22,-40,122 --22,-40,130 --22,-40,138 --22,-40,146 --14,-40,-150 --14,-40,-142 --14,-40,-134 --14,-40,-126 --14,-40,-118 --14,-40,-110 --14,-40,-102 --14,-40,-94 --14,-40,-86 --14,-40,-78 --14,-40,-70 --14,-40,-62 --14,-40,-54 --14,-40,-46 --14,-40,-38 --14,-40,-30 --14,-40,-22 --14,-40,-14 --14,-40,-6 --14,-40,2 --14,-40,10 --14,-40,18 --14,-40,26 --14,-40,34 --14,-40,42 --14,-40,50 --14,-40,58 --14,-40,66 --14,-40,74 --14,-40,82 --14,-40,90 --14,-40,98 --14,-40,106 --14,-40,114 --14,-40,122 --14,-40,130 --14,-40,138 --14,-40,146 --6,-40,-150 --6,-40,-142 --6,-40,-134 --6,-40,-126 --6,-40,-118 --6,-40,-110 --6,-40,-102 --6,-40,-94 --6,-40,-86 --6,-40,-78 --6,-40,-70 --6,-40,-62 --6,-40,-54 --6,-40,-46 --6,-40,-38 --6,-40,-30 --6,-40,-22 --6,-40,-14 --6,-40,-6 --6,-40,2 --6,-40,10 --6,-40,18 --6,-40,26 --6,-40,34 --6,-40,42 --6,-40,50 --6,-40,58 --6,-40,66 --6,-40,74 --6,-40,82 --6,-40,90 --6,-40,98 --6,-40,106 --6,-40,114 --6,-40,122 --6,-40,130 --6,-40,138 --6,-40,146 -2,-40,-150 -2,-40,-142 -2,-40,-134 -2,-40,-126 -2,-40,-118 -2,-40,-110 -2,-40,-102 -2,-40,-94 -2,-40,-86 -2,-40,-78 -2,-40,-70 -2,-40,-62 -2,-40,-54 -2,-40,-46 -2,-40,-38 -2,-40,-30 -2,-40,-22 -2,-40,-14 -2,-40,-6 -2,-40,2 -2,-40,10 -2,-40,18 -2,-40,26 -2,-40,34 -2,-40,42 -2,-40,50 -2,-40,58 -2,-40,66 -2,-40,74 -2,-40,82 -2,-40,90 -2,-40,98 -2,-40,106 -2,-40,114 -2,-40,122 -2,-40,130 -2,-40,138 -2,-40,146 -10,-40,-150 -10,-40,-142 -10,-40,-134 -10,-40,-126 -10,-40,-118 -10,-40,-110 -10,-40,-102 -10,-40,-94 -10,-40,-86 -10,-40,-78 -10,-40,-70 -10,-40,-62 -10,-40,-54 -10,-40,-46 -10,-40,-38 -10,-40,-30 -10,-40,-22 -10,-40,-14 -10,-40,-6 -10,-40,2 -10,-40,10 -10,-40,18 -10,-40,26 -10,-40,34 -10,-40,42 -10,-40,50 -10,-40,58 -10,-40,66 -10,-40,74 -10,-40,82 -10,-40,90 -10,-40,98 -10,-40,106 -10,-40,114 -10,-40,122 -10,-40,130 -10,-40,138 -10,-40,146 -18,-40,-150 -18,-40,-142 -18,-40,-134 -18,-40,-126 -18,-40,-118 -18,-40,-110 -18,-40,-102 -18,-40,-94 -18,-40,-86 -18,-40,-78 -18,-40,-70 -18,-40,-62 -18,-40,-54 -18,-40,-46 -18,-40,-38 -18,-40,-30 -18,-40,-22 -18,-40,-14 -18,-40,-6 -18,-40,2 -18,-40,10 -18,-40,18 -18,-40,26 -18,-40,34 -18,-40,42 -18,-40,50 -18,-40,58 -18,-40,66 -18,-40,74 -18,-40,82 -18,-40,90 -18,-40,98 -18,-40,106 -18,-40,114 -18,-40,122 -18,-40,130 -18,-40,138 -18,-40,146 -26,-40,-150 -26,-40,-142 -26,-40,-134 -26,-40,-126 -26,-40,-118 -26,-40,-110 -26,-40,-102 -26,-40,-94 -26,-40,-86 -26,-40,-78 -26,-40,-70 -26,-40,-62 -26,-40,-54 -26,-40,-46 -26,-40,-38 -26,-40,-30 -26,-40,-22 -26,-40,-14 -26,-40,-6 -26,-40,2 -26,-40,10 -26,-40,18 -26,-40,26 -26,-40,34 -26,-40,42 -26,-40,50 -26,-40,58 -26,-40,66 -26,-40,74 -26,-40,82 -26,-40,90 -26,-40,98 -26,-40,106 -26,-40,114 -26,-40,122 -26,-40,130 -26,-40,138 -26,-40,146 -34,-40,-150 -34,-40,-142 -34,-40,-134 -34,-40,-126 -34,-40,-118 -34,-40,-110 -34,-40,-102 -34,-40,-94 -34,-40,-86 -34,-40,-78 -34,-40,-70 -34,-40,-62 -34,-40,-54 -34,-40,-46 -34,-40,-38 -34,-40,-30 --54,-32,-22 --54,-32,-14 --54,-32,-6 --54,-32,2 --54,-32,10 --54,-32,18 --54,-32,26 --54,-32,34 --54,-32,42 --54,-32,50 --54,-32,58 --54,-32,66 --54,-32,74 --54,-32,82 --54,-32,90 --54,-32,98 --54,-32,106 --54,-32,114 --54,-32,122 --54,-32,130 --54,-32,138 --54,-32,146 --46,-32,-150 --46,-32,-142 --46,-32,-134 --46,-32,-126 --46,-32,-118 --46,-32,-110 --46,-32,-102 --46,-32,-94 --46,-32,-86 --46,-32,-78 --46,-32,-70 --46,-32,-62 --46,-32,-54 --46,-32,-46 --46,-32,-38 --46,-32,-30 --46,-32,-22 --46,-32,-14 --46,-32,-6 --46,-32,2 --46,-32,10 --46,-32,18 --46,-32,26 --46,-32,34 --46,-32,42 --46,-32,50 --46,-32,58 --46,-32,66 --46,-32,74 --46,-32,82 --46,-32,90 --46,-32,98 --46,-32,106 --46,-32,114 --46,-32,122 --46,-32,130 --46,-32,138 --46,-32,146 --38,-32,-150 --38,-32,-142 --38,-32,-134 --38,-32,-126 --38,-32,-118 --38,-32,-110 --38,-32,-102 --38,-32,-94 --38,-32,-86 --38,-32,-78 --38,-32,-70 --38,-32,-62 --38,-32,-54 --38,-32,-46 --38,-32,-38 --38,-32,-30 --38,-32,-22 --38,-32,-14 --38,-32,-6 --38,-32,2 --38,-32,10 --38,-32,18 --38,-32,26 --38,-32,34 --38,-32,42 --38,-32,50 --38,-32,58 --38,-32,66 --38,-32,74 --38,-32,82 --38,-32,90 --38,-32,98 --38,-32,106 --38,-32,114 --38,-32,122 --38,-32,130 --38,-32,138 --38,-32,146 --30,-32,-150 --30,-32,-142 --30,-32,-134 --30,-32,-126 --30,-32,-118 --30,-32,-110 --30,-32,-102 --30,-32,-94 --30,-32,-86 --30,-32,-78 --30,-32,-70 --30,-32,-62 --30,-32,-54 --30,-32,-46 --30,-32,-38 --30,-32,-30 --30,-32,-22 --30,-32,-14 --30,-32,-6 --30,-32,2 --30,-32,10 --30,-32,18 --30,-32,26 --30,-32,34 --30,-32,42 --30,-32,50 --30,-32,58 --30,-32,66 --30,-32,74 --30,-32,82 --30,-32,90 --30,-32,98 --30,-32,106 --30,-32,114 --30,-32,122 --30,-32,130 --30,-32,138 --30,-32,146 --22,-32,-150 --22,-32,-142 --22,-32,-134 --22,-32,-126 --22,-32,-118 --22,-32,-110 --22,-32,-102 --22,-32,-94 --22,-32,-86 --22,-32,-78 --22,-32,-70 --22,-32,-62 --22,-32,-54 --22,-32,-46 --22,-32,-38 --22,-32,-30 --22,-32,-22 --22,-32,-14 --22,-32,-6 --22,-32,2 --22,-32,10 --22,-32,18 --22,-32,26 --22,-32,34 --22,-32,42 --22,-32,50 --22,-32,58 --22,-32,66 --22,-32,74 --22,-32,82 --22,-32,90 --22,-32,98 --22,-32,106 --22,-32,114 --22,-32,122 --22,-32,130 --22,-32,138 --22,-32,146 --14,-32,-150 --14,-32,-142 --14,-32,-134 --14,-32,-126 --14,-32,-118 --14,-32,-110 --14,-32,-102 --14,-32,-94 --14,-32,-86 --14,-32,-78 --14,-32,-70 --14,-32,-62 --14,-32,-54 --14,-32,-46 --14,-32,-38 --14,-32,-30 --14,-32,-22 --14,-32,-14 --14,-32,-6 --14,-32,2 --14,-32,10 --14,-32,18 --14,-32,26 --14,-32,34 --14,-32,42 --14,-32,50 --14,-32,58 --14,-32,66 --14,-32,74 --14,-32,82 --14,-32,90 --14,-32,98 --14,-32,106 --14,-32,114 --14,-32,122 --14,-32,130 --14,-32,138 --14,-32,146 --6,-32,-150 --6,-32,-142 --6,-32,-134 --6,-32,-126 --6,-32,-118 --6,-32,-110 --6,-32,-102 --6,-32,-94 --6,-32,-86 --6,-32,-78 --6,-32,-70 --6,-32,-62 --6,-32,-54 --6,-32,-46 --6,-32,-38 --6,-32,-30 --6,-32,-22 --6,-32,-14 --6,-32,-6 --6,-32,2 --6,-32,10 --6,-32,18 --6,-32,26 --6,-32,34 --6,-32,42 --6,-32,50 --6,-32,58 --6,-32,66 --6,-32,74 --6,-32,82 --6,-32,90 --6,-32,98 --6,-32,106 --6,-32,114 --6,-32,122 --6,-32,130 --6,-32,138 --6,-32,146 -2,-32,-150 -2,-32,-142 -2,-32,-134 -2,-32,-126 -2,-32,-118 -2,-32,-110 -18,-24,122 -18,-24,130 -18,-24,138 -18,-24,146 -26,-24,-150 -26,-24,-142 -26,-24,-134 -26,-24,-126 -26,-24,-118 -26,-24,-110 -26,-24,-102 -26,-24,-94 -26,-24,-86 -26,-24,-78 -26,-24,-70 -26,-24,-62 -26,-24,-54 -26,-24,-46 -26,-24,-38 -26,-24,-30 -26,-24,-22 -26,-24,-14 -26,-24,-6 -26,-24,2 -26,-24,10 -26,-24,18 -26,-24,26 -26,-24,34 -26,-24,42 -26,-24,50 -26,-24,58 -26,-24,66 -26,-24,74 -26,-24,82 -26,-24,90 -26,-24,98 -26,-24,106 -26,-24,114 -26,-24,122 -26,-24,130 -26,-24,138 -26,-24,146 -34,-24,-150 -34,-24,-142 -34,-24,-134 -34,-24,-126 -34,-24,-118 -34,-24,-110 -34,-24,-102 -34,-24,-94 -34,-24,-86 -34,-24,-78 -34,-24,-70 -34,-24,-62 -34,-24,-54 -34,-24,-46 -34,-24,-38 -34,-24,-30 -34,-24,-22 -34,-24,-14 -34,-24,-6 -34,-24,2 -34,-24,10 -34,-24,18 -34,-24,26 -34,-24,34 -34,-24,42 -34,-24,50 -34,-24,58 -34,-24,66 -34,-24,74 -34,-24,82 -34,-24,90 -34,-24,98 -34,-24,106 -34,-24,114 -34,-24,122 -34,-24,130 -34,-24,138 -34,-24,146 -42,-24,-150 -42,-24,-142 -42,-24,-134 -42,-24,-126 -42,-24,-118 -42,-24,-110 -42,-24,-102 -42,-24,-94 -42,-24,-86 -42,-24,-78 -42,-24,-70 -42,-24,-62 -42,-24,-54 -42,-24,-46 -42,-24,-38 -42,-24,-30 -42,-24,-22 -42,-24,-14 -42,-24,-6 -42,-24,2 -42,-24,10 -42,-24,18 -42,-24,26 -42,-24,34 -42,-24,42 -42,-24,50 -42,-24,58 -42,-24,66 -42,-24,74 -42,-24,82 -42,-24,90 -42,-24,98 -42,-24,106 -42,-24,114 -42,-24,122 -42,-24,130 -42,-24,138 -42,-24,146 -50,-24,-150 -50,-24,-142 -50,-24,-134 -50,-24,-126 -50,-24,-118 -50,-24,-110 -50,-24,-102 -50,-24,-94 -50,-24,-86 -50,-24,-78 -50,-24,-70 -50,-24,-62 -50,-24,-54 -50,-24,-46 -50,-24,-38 -50,-24,-30 -50,-24,-22 -50,-24,-14 -50,-24,-6 -50,-24,2 -50,-24,10 -50,-24,18 -50,-24,26 -50,-24,34 -50,-24,42 -50,-24,50 -50,-24,58 -50,-24,66 -50,-24,74 -50,-24,82 -50,-24,90 -50,-24,98 -50,-24,106 -50,-24,114 -50,-24,122 -50,-24,130 -50,-24,138 -50,-24,146 -58,-24,-150 -58,-24,-142 -58,-24,-134 -58,-24,-126 -58,-24,-118 -58,-24,-110 -58,-24,-102 -58,-24,-94 -58,-24,-86 -58,-24,-78 -58,-24,-70 -58,-24,-62 -58,-24,-54 -58,-24,-46 -58,-24,-38 -58,-24,-30 -58,-24,-22 -58,-24,-14 -58,-24,-6 -58,-24,2 -58,-24,10 -58,-24,18 -58,-24,26 -58,-24,34 -58,-24,42 -58,-24,50 -58,-24,58 -58,-24,66 -58,-24,74 -58,-24,82 -58,-24,90 -58,-24,98 -58,-24,106 -58,-24,114 -58,-24,122 -58,-24,130 -58,-24,138 -58,-24,146 -66,-24,-150 -66,-24,-142 -66,-24,-134 -66,-24,-126 -66,-24,-118 -66,-24,-110 -66,-24,-102 -66,-24,-94 -66,-24,-86 -66,-24,-78 -66,-24,-70 -66,-24,-62 -66,-24,-54 -66,-24,-46 -66,-24,-38 -66,-24,-30 -66,-24,-22 -66,-24,-14 -66,-24,-6 -66,-24,2 -66,-24,10 -66,-24,18 -66,-24,26 -66,-24,34 -66,-24,42 -66,-24,50 -66,-24,58 -66,-24,66 -66,-24,74 -66,-24,82 -66,-24,90 -66,-24,98 -66,-24,106 -66,-24,114 -66,-24,122 -66,-24,130 -66,-24,138 -66,-24,146 -74,-24,-150 -74,-24,-142 -74,-24,-134 -74,-24,-126 -74,-24,-118 -74,-24,-110 -74,-24,-102 -74,-24,-94 -74,-24,-86 -74,-24,-78 -74,-24,-70 -74,-24,-62 -74,-24,-54 -74,-24,-46 -74,-24,-38 -74,-24,-30 -74,-24,-22 -74,-24,-14 -74,-24,-6 -74,-24,2 -74,-24,10 -74,-24,18 -74,-24,26 -74,-24,34 -34,-16,130 -34,-16,138 -34,-16,146 -42,-16,-150 -42,-16,-142 -42,-16,-134 -42,-16,-126 -42,-16,-118 -42,-16,-110 -42,-16,-102 -42,-16,-94 -42,-16,-86 -42,-16,-78 -42,-16,-70 -42,-16,-62 -42,-16,-54 -42,-16,-46 -42,-16,-38 -42,-16,-30 -42,-16,-22 -42,-16,-14 -42,-16,-6 -42,-16,2 -42,-16,10 -42,-16,18 -42,-16,26 -42,-16,34 -42,-16,42 -42,-16,50 -42,-16,58 -42,-16,66 -42,-16,74 -42,-16,82 -42,-16,90 -42,-16,98 -42,-16,106 -42,-16,114 -42,-16,122 -42,-16,130 -42,-16,138 -42,-16,146 -50,-16,-150 -50,-16,-142 -50,-16,-134 -50,-16,-126 -50,-16,-118 -50,-16,-110 -50,-16,-102 -50,-16,-94 -50,-16,-86 -50,-16,-78 -50,-16,-70 -50,-16,-62 -50,-16,-54 -50,-16,-46 -50,-16,-38 -50,-16,-30 -50,-16,-22 -50,-16,-14 -50,-16,-6 -50,-16,2 -50,-16,10 -50,-16,18 -50,-16,26 -50,-16,34 -50,-16,42 -50,-16,50 -50,-16,58 -50,-16,66 -50,-16,74 -50,-16,82 -50,-16,90 -50,-16,98 -50,-16,106 -50,-16,114 -50,-16,122 -50,-16,130 -50,-16,138 -50,-16,146 -58,-16,-150 -58,-16,-142 -58,-16,-134 -58,-16,-126 -58,-16,-118 -58,-16,-110 -58,-16,-102 -58,-16,-94 -58,-16,-86 -58,-16,-78 -58,-16,-70 -58,-16,-62 -58,-16,-54 -58,-16,-46 -58,-16,-38 -58,-16,-30 -58,-16,-22 -58,-16,-14 -58,-16,-6 -58,-16,2 -58,-16,10 -58,-16,18 -58,-16,26 -58,-16,34 -58,-16,42 -58,-16,50 -58,-16,58 -58,-16,66 -58,-16,74 -58,-16,82 -58,-16,90 -58,-16,98 -58,-16,106 -58,-16,114 -58,-16,122 -58,-16,130 -58,-16,138 -58,-16,146 -66,-16,-150 -66,-16,-142 -66,-16,-134 -66,-16,-126 -66,-16,-118 -66,-16,-110 -66,-16,-102 -66,-16,-94 -66,-16,-86 -66,-16,-78 -66,-16,-70 -66,-16,-62 -66,-16,-54 -66,-16,-46 -66,-16,-38 -66,-16,-30 -66,-16,-22 -66,-16,-14 -66,-16,-6 -66,-16,2 -66,-16,10 -66,-16,18 -66,-16,26 -66,-16,34 -66,-16,42 -66,-16,50 -66,-16,58 -66,-16,66 -66,-16,74 -66,-16,82 -66,-16,90 -66,-16,98 -66,-16,106 -66,-16,114 -66,-16,122 -66,-16,130 -66,-16,138 -66,-16,146 -74,-16,-150 -74,-16,-142 -74,-16,-134 -74,-16,-126 -74,-16,-118 -74,-16,-110 -74,-16,-102 -74,-16,-94 -74,-16,-86 -74,-16,-78 -74,-16,-70 -74,-16,-62 -74,-16,-54 -74,-16,-46 -74,-16,-38 -74,-16,-30 -74,-16,-22 -74,-16,-14 -74,-16,-6 -74,-16,2 -74,-16,10 -74,-16,18 -74,-16,26 -74,-16,34 -74,-16,42 -74,-16,50 -74,-16,58 -74,-16,66 -74,-16,74 -74,-16,82 -74,-16,90 -74,-16,98 -74,-16,106 -74,-16,114 -74,-16,122 -74,-16,130 -74,-16,138 -74,-16,146 -82,-16,-150 -82,-16,-142 -82,-16,-134 -82,-16,-126 -82,-16,-118 -82,-16,-110 -82,-16,-102 -82,-16,-94 -82,-16,-86 -82,-16,-78 -82,-16,-70 -82,-16,-62 -82,-16,-54 -82,-16,-46 -82,-16,-38 -82,-16,-30 -82,-16,-22 -82,-16,-14 -82,-16,-6 -82,-16,2 -82,-16,10 -82,-16,18 -82,-16,26 -82,-16,34 -82,-16,42 -82,-16,50 -82,-16,58 -82,-16,66 -82,-16,74 -82,-16,82 -82,-16,90 -82,-16,98 -82,-16,106 -82,-16,114 -82,-16,122 -82,-16,130 -82,-16,138 -82,-16,146 -90,-16,-150 -90,-16,-142 -90,-16,-134 -90,-16,-126 -90,-16,-118 -90,-16,-110 -90,-16,-102 -90,-16,-94 -90,-16,-86 -90,-16,-78 -90,-16,-70 -90,-16,-62 -90,-16,-54 -90,-16,-46 -90,-16,-38 -90,-16,-30 -90,-16,-22 -90,-16,-14 -90,-16,-6 -90,-16,2 -90,-16,10 -90,-16,18 -90,-16,26 -90,-16,34 -90,-16,42 -122,-8,-142 -122,-8,-134 -122,-8,-126 -122,-8,-118 -122,-8,-110 -122,-8,-102 -122,-8,-94 -122,-8,-86 -122,-8,-78 -122,-8,-70 -122,-8,-62 -122,-8,-54 -122,-8,-46 -122,-8,-38 -122,-8,-30 -122,-8,-22 -122,-8,-14 -122,-8,-6 -122,-8,2 -122,-8,10 -122,-8,18 -122,-8,26 -122,-8,34 -122,-8,42 -122,-8,50 -122,-8,58 -122,-8,66 -122,-8,74 -122,-8,82 -122,-8,90 -122,-8,98 -122,-8,106 -122,-8,114 -122,-8,122 -122,-8,130 -122,-8,138 -122,-8,146 -130,-8,-150 -130,-8,-142 -130,-8,-134 -130,-8,-126 -130,-8,-118 -130,-8,-110 -130,-8,-102 -130,-8,-94 -130,-8,-86 -130,-8,-78 -130,-8,-70 -130,-8,-62 -130,-8,-54 -130,-8,-46 -130,-8,-38 -130,-8,-30 -130,-8,-22 -130,-8,-14 -130,-8,-6 -130,-8,2 -130,-8,10 -130,-8,18 -130,-8,26 -130,-8,34 -130,-8,42 -130,-8,50 -130,-8,58 -130,-8,66 -130,-8,74 -130,-8,82 -130,-8,90 -130,-8,98 -130,-8,106 -130,-8,114 -130,-8,122 -130,-8,130 -130,-8,138 -130,-8,146 -138,-8,-150 -138,-8,-142 -138,-8,-134 -138,-8,-126 -138,-8,-118 -138,-8,-110 -138,-8,-102 -138,-8,-94 -138,-8,-86 -138,-8,-78 -138,-8,-70 -138,-8,-62 -138,-8,-54 -138,-8,-46 -138,-8,-38 -138,-8,-30 -138,-8,-22 -138,-8,-14 -138,-8,-6 -138,-8,2 -138,-8,10 -138,-8,18 -138,-8,26 -138,-8,34 -138,-8,42 -138,-8,50 -138,-8,58 -138,-8,66 -138,-8,74 -138,-8,82 -138,-8,90 -138,-8,98 -138,-8,106 -138,-8,114 -138,-8,122 -138,-8,130 -138,-8,138 -138,-8,146 -146,-8,-150 -146,-8,-142 -146,-8,-134 -146,-8,-126 -146,-8,-118 -146,-8,-110 -146,-8,-102 -146,-8,-94 -146,-8,-86 -146,-8,-78 -146,-8,-70 -146,-8,-62 -146,-8,-54 -146,-8,-46 -146,-8,-38 -146,-8,-30 -146,-8,-22 -146,-8,-14 -146,-8,-6 -146,-8,2 -146,-8,10 -146,-8,18 -146,-8,26 -146,-8,34 -146,-8,42 -146,-8,50 -146,-8,58 -146,-8,66 -146,-8,74 -146,-8,82 -146,-8,90 -146,-8,98 -146,-8,106 -146,-8,114 -146,-8,122 -146,-8,130 -146,-8,138 -146,-8,146 --150,0,-150 --150,0,-142 --150,0,-134 --150,0,-126 --150,0,-118 --150,0,-110 --150,0,-102 --150,0,-94 --150,0,-86 --150,0,-78 --150,0,-70 --150,0,-62 --150,0,-54 --150,0,-46 --150,0,-38 --150,0,-30 --150,0,-22 --150,0,-14 --150,0,-6 --150,0,2 --150,0,10 --150,0,18 --150,0,26 --150,0,34 --150,0,42 --150,0,50 --150,0,58 --150,0,66 --150,0,74 --150,0,82 --150,0,90 --150,0,98 --150,0,106 --150,0,114 --150,0,122 --150,0,130 --150,0,138 --150,0,146 --142,0,-150 --142,0,-142 --142,0,-134 --142,0,-126 --142,0,-118 --142,0,-110 --142,0,-102 --142,0,-94 --142,0,-86 --142,0,-78 --142,0,-70 --142,0,-62 --142,0,-54 --142,0,-46 --142,0,-38 --142,0,-30 --142,0,-22 --142,0,-14 --142,0,-6 --142,0,2 --142,0,10 --142,0,18 --142,0,26 --142,0,34 --142,0,42 --142,0,50 --142,0,58 --142,0,66 --142,0,74 --142,0,82 --142,0,90 --142,0,98 --142,0,106 --142,0,114 --142,0,122 --142,0,130 --142,0,138 --142,0,146 --134,0,-150 --134,0,-142 --134,0,-134 --134,0,-126 --134,0,-118 --134,0,-110 --134,0,-102 --134,0,-94 --134,0,-86 --134,0,-78 --134,0,-70 --134,0,-62 --134,0,-54 --134,0,-46 --134,0,-38 --134,0,-30 --134,0,-22 --134,0,-14 --134,0,-6 --134,0,2 --134,0,10 --134,0,18 --134,0,26 --134,0,34 --134,0,42 --134,0,50 --134,0,58 --134,0,66 --134,0,74 -130,0,130 -130,0,138 -130,0,146 -138,0,-150 -138,0,-142 -138,0,-134 -138,0,-126 -138,0,-118 -138,0,-110 -138,0,-102 -138,0,-94 -138,0,-86 -138,0,-78 -138,0,-70 -138,0,-62 -138,0,-54 -138,0,-46 -138,0,-38 -138,0,-30 -138,0,-22 -138,0,-14 -138,0,-6 -138,0,2 -138,0,10 -138,0,18 -138,0,26 -138,0,34 -138,0,42 -138,0,50 -138,0,58 -138,0,66 -138,0,74 -138,0,82 -138,0,90 -138,0,98 -138,0,106 -138,0,114 -138,0,122 -138,0,130 -138,0,138 -138,0,146 -146,0,-150 -146,0,-142 -146,0,-134 -146,0,-126 -146,0,-118 -146,0,-110 -146,0,-102 -146,0,-94 -146,0,-86 -146,0,-78 -146,0,-70 -146,0,-62 -146,0,-54 -146,0,-46 -146,0,-38 -146,0,-30 -146,0,-22 -146,0,-14 -146,0,-6 -146,0,2 -146,0,10 -146,0,18 -146,0,26 -146,0,34 -146,0,42 -146,0,50 -146,0,58 -146,0,66 -146,0,74 -146,0,82 -146,0,90 -146,0,98 -146,0,106 -146,0,114 -146,0,122 -146,0,130 -146,0,138 -146,0,146 --150,8,-150 --150,8,-142 --150,8,-134 --150,8,-126 --150,8,-118 --150,8,-110 --150,8,-102 --150,8,-94 --150,8,-86 --150,8,-78 --150,8,-70 --150,8,-62 --150,8,-54 --150,8,-46 --150,8,-38 --150,8,-30 --150,8,-22 --150,8,-14 --150,8,-6 --150,8,2 --150,8,10 --150,8,18 --150,8,26 --150,8,34 --150,8,42 --150,8,50 --150,8,58 --150,8,66 --150,8,74 --150,8,82 --150,8,90 --150,8,98 --150,8,106 --150,8,114 --150,8,122 --150,8,130 --150,8,138 --150,8,146 --142,8,-150 --142,8,-142 --142,8,-134 --142,8,-126 --142,8,-118 --142,8,-110 --142,8,-102 --142,8,-94 --142,8,-86 --142,8,-78 --142,8,-70 --142,8,-62 --142,8,-54 --142,8,-46 --142,8,-38 --142,8,-30 --142,8,-22 --142,8,-14 --142,8,-6 --142,8,2 --142,8,10 --142,8,18 --142,8,26 --142,8,34 --142,8,42 --142,8,50 --142,8,58 --142,8,66 --142,8,74 --142,8,82 --142,8,90 --142,8,98 --142,8,106 --142,8,114 --142,8,122 --142,8,130 --142,8,138 --142,8,146 --134,8,-150 --134,8,-142 --134,8,-134 --134,8,-126 --134,8,-118 --134,8,-110 --134,8,-102 --134,8,-94 --134,8,-86 --134,8,-78 --134,8,-70 --134,8,-62 --134,8,-54 --134,8,-46 --134,8,-38 --134,8,-30 --134,8,-22 --134,8,-14 --134,8,-6 --134,8,2 --134,8,10 --134,8,18 --134,8,26 --134,8,34 --134,8,42 --134,8,50 --134,8,58 --134,8,66 --134,8,74 --134,8,82 --134,8,90 --134,8,98 --134,8,106 --134,8,114 --134,8,122 --134,8,130 --134,8,138 --134,8,146 --126,8,-150 --126,8,-142 --126,8,-134 --126,8,-126 --126,8,-118 --126,8,-110 --126,8,-102 --126,8,-94 --126,8,-86 --126,8,-78 --126,8,-70 --126,8,-62 --126,8,-54 --126,8,-46 --126,8,-38 --126,8,-30 --126,8,-22 --126,8,-14 --126,8,-6 --126,8,2 --126,8,10 --126,8,18 --126,8,26 --126,8,34 --126,8,42 --126,8,50 --126,8,58 --126,8,66 --126,8,74 --126,8,82 --126,8,90 --126,8,98 --126,8,106 --126,8,114 --126,8,122 --126,8,130 --126,8,138 --126,8,146 --118,8,-150 --118,8,-142 --118,8,-134 --118,8,-126 --118,8,-118 --118,8,-110 --118,8,-102 --118,8,-94 --118,8,-86 --118,8,-78 --118,8,-70 --118,8,-62 --118,8,-54 --118,8,-46 --118,8,-38 --118,8,-30 --118,8,-22 --118,8,-14 --118,8,-6 --118,8,2 --118,8,10 --118,8,18 --118,8,26 --118,8,34 --118,8,42 --94,16,90 --94,16,98 --94,16,106 --94,16,114 --94,16,122 --94,16,130 --94,16,138 --94,16,146 --86,16,-150 --86,16,-142 --86,16,-134 --86,16,-126 --86,16,-118 --86,16,-110 --86,16,-102 --86,16,-94 --86,16,-86 --86,16,-78 --86,16,-70 --86,16,-62 --86,16,-54 --86,16,-46 --86,16,-38 --86,16,-30 --86,16,-22 --86,16,-14 --86,16,-6 --86,16,2 --86,16,10 --86,16,18 --86,16,26 --86,16,34 --86,16,42 --86,16,50 --86,16,58 --86,16,66 --86,16,74 --86,16,82 --86,16,90 --86,16,98 --86,16,106 --86,16,114 --86,16,122 --86,16,130 --86,16,138 --86,16,146 --78,16,-150 --78,16,-142 --78,16,-134 --78,16,-126 --78,16,-118 --78,16,-110 --78,16,-102 --78,16,-94 --78,16,-86 --78,16,-78 --78,16,-70 --78,16,-62 --78,16,-54 --78,16,-46 --78,16,-38 --78,16,-30 --78,16,-22 --78,16,-14 --78,16,-6 --78,16,2 --78,16,10 --78,16,18 --78,16,26 --78,16,34 --78,16,42 --78,16,50 --78,16,58 --78,16,66 --78,16,74 --78,16,82 --78,16,90 --78,16,98 --78,16,106 --78,16,114 --78,16,122 --78,16,130 --78,16,138 --78,16,146 --70,16,-150 --70,16,-142 --70,16,-134 --70,16,-126 --70,16,-118 --70,16,-110 --70,16,-102 --70,16,-94 --70,16,-86 --70,16,-78 --70,16,-70 --70,16,-62 --70,16,-54 --70,16,-46 --70,16,-38 --70,16,-30 --70,16,-22 --70,16,-14 --70,16,-6 --70,16,2 --70,16,10 --70,16,18 --70,16,26 --70,16,34 --70,16,42 --70,16,50 --70,16,58 --70,16,66 --70,16,74 --70,16,82 --70,16,90 --70,16,98 --70,16,106 --70,16,114 --70,16,122 --70,16,130 --70,16,138 --70,16,146 --62,16,-150 --62,16,-142 --62,16,-134 --62,16,-126 --62,16,-118 --62,16,-110 --62,16,-102 --62,16,-94 --62,16,-86 --62,16,-78 --62,16,-70 --62,16,-62 --62,16,-54 --62,16,-46 --62,16,-38 --62,16,-30 --62,16,-22 --62,16,-14 --62,16,-6 --62,16,2 --62,16,10 --62,16,18 --62,16,26 --62,16,34 --62,16,42 --62,16,50 --62,16,58 --62,16,66 --62,16,74 --62,16,82 --62,16,90 --62,16,98 --62,16,106 --62,16,114 --62,16,122 --62,16,130 --62,16,138 --62,16,146 --54,16,-150 --54,16,-142 --54,16,-134 --54,16,-126 --54,16,-118 --54,16,-110 --54,16,-102 --54,16,-94 --54,16,-86 --54,16,-78 --54,16,-70 --54,16,-62 --54,16,-54 --54,16,-46 --54,16,-38 --54,16,-30 --54,16,-22 --54,16,-14 --54,16,-6 --54,16,2 --54,16,10 --54,16,18 --54,16,26 --54,16,34 --54,16,42 --54,16,50 --54,16,58 --54,16,66 --54,16,74 --54,16,82 --54,16,90 --54,16,98 --54,16,106 --54,16,114 --54,16,122 --54,16,130 --54,16,138 --54,16,146 --46,16,-150 --46,16,-142 --46,16,-134 --46,16,-126 --46,16,-118 --46,16,-110 --46,16,-102 --46,16,-94 --46,16,-86 --46,16,-78 --46,16,-70 --46,16,-62 --46,16,-54 --46,16,-46 --46,16,-38 --46,16,-30 --46,16,-22 --46,16,-14 --46,16,-6 --46,16,2 --46,16,10 --46,16,18 --46,16,26 --46,16,34 --46,16,42 --46,16,50 --46,16,58 --46,16,66 --46,16,74 --46,16,82 --46,16,90 --46,16,98 --46,16,106 --46,16,114 --46,16,122 --46,16,130 --46,16,138 --46,16,146 --38,16,-150 --38,16,-142 --38,16,-134 --38,16,-126 --38,16,-118 --38,16,-110 --38,16,-102 --38,16,-94 --38,16,-86 --38,16,-78 --38,16,-70 --38,16,-62 --38,16,-54 --38,16,-46 --38,16,-38 --38,16,-30 --38,16,-22 --38,16,-14 --38,16,-6 --38,16,2 --70,24,82 --70,24,90 --70,24,98 --70,24,106 --70,24,114 --70,24,122 --70,24,130 --70,24,138 --70,24,146 --62,24,-150 --62,24,-142 --62,24,-134 --62,24,-126 --62,24,-118 --62,24,-110 --62,24,-102 --62,24,-94 --62,24,-86 --62,24,-78 --62,24,-70 --62,24,-62 --62,24,-54 --62,24,-46 --62,24,-38 --62,24,-30 --62,24,-22 --62,24,-14 --62,24,-6 --62,24,2 --62,24,10 --62,24,18 --62,24,26 --62,24,34 --62,24,42 --62,24,50 --62,24,58 --62,24,66 --62,24,74 --62,24,82 --62,24,90 --62,24,98 --62,24,106 --62,24,114 --62,24,122 --62,24,130 --62,24,138 --62,24,146 --54,24,-150 --54,24,-142 --54,24,-134 --54,24,-126 --54,24,-118 --54,24,-110 --54,24,-102 --54,24,-94 --54,24,-86 --54,24,-78 --54,24,-70 --54,24,-62 --54,24,-54 --54,24,-46 --54,24,-38 --54,24,-30 --54,24,-22 --54,24,-14 --54,24,-6 --54,24,2 --54,24,10 --54,24,18 --54,24,26 --54,24,34 --54,24,42 --54,24,50 --54,24,58 --54,24,66 --54,24,74 --54,24,82 --54,24,90 --54,24,98 --54,24,106 --54,24,114 --54,24,122 --54,24,130 --54,24,138 --54,24,146 --46,24,-150 --46,24,-142 --46,24,-134 --46,24,-126 --46,24,-118 --46,24,-110 --46,24,-102 --46,24,-94 --46,24,-86 --46,24,-78 --46,24,-70 --46,24,-62 --46,24,-54 --46,24,-46 --46,24,-38 --46,24,-30 --46,24,-22 --46,24,-14 --46,24,-6 --46,24,2 --46,24,10 --46,24,18 --46,24,26 --46,24,34 --46,24,42 --46,24,50 --46,24,58 --46,24,66 --46,24,74 --46,24,82 --46,24,90 --46,24,98 --46,24,106 --46,24,114 --46,24,122 --46,24,130 --46,24,138 --46,24,146 --38,24,-150 --38,24,-142 --38,24,-134 --38,24,-126 --38,24,-118 --38,24,-110 --38,24,-102 --38,24,-94 --38,24,-86 --38,24,-78 --38,24,-70 --38,24,-62 --38,24,-54 --38,24,-46 --38,24,-38 --38,24,-30 --38,24,-22 --38,24,-14 --38,24,-6 --38,24,2 --38,24,10 --38,24,18 --38,24,26 --38,24,34 --38,24,42 --38,24,50 --38,24,58 --38,24,66 --38,24,74 --38,24,82 --38,24,90 --38,24,98 --38,24,106 --38,24,114 --38,24,122 --38,24,130 --38,24,138 --38,24,146 --30,24,-150 --30,24,-142 --30,24,-134 --30,24,-126 --30,24,-118 --30,24,-110 --30,24,-102 --30,24,-94 --30,24,-86 --30,24,-78 --30,24,-70 --30,24,-62 --30,24,-54 --30,24,-46 --30,24,-38 --30,24,-30 --30,24,-22 --30,24,-14 --30,24,-6 --30,24,2 --30,24,10 --30,24,18 --30,24,26 --30,24,34 --30,24,42 --30,24,50 --30,24,58 --30,24,66 --30,24,74 --30,24,82 --30,24,90 --30,24,98 --30,24,106 --30,24,114 --30,24,122 --30,24,130 --30,24,138 --30,24,146 --22,24,-150 --22,24,-142 --22,24,-134 --22,24,-126 --22,24,-118 --22,24,-110 --22,24,-102 --22,24,-94 --22,24,-86 --22,24,-78 --22,24,-70 --22,24,-62 --22,24,-54 --22,24,-46 --22,24,-38 --22,24,-30 --22,24,-22 --22,24,-14 --22,24,-6 --22,24,2 --22,24,10 --22,24,18 --22,24,26 --22,24,34 --22,24,42 --22,24,50 --22,24,58 --22,24,66 --22,24,74 --22,24,82 --22,24,90 --22,24,98 --22,24,106 --22,24,114 --22,24,122 --22,24,130 --22,24,138 --22,24,146 --14,24,-150 --14,24,-142 --14,24,-134 --14,24,-126 --14,24,-118 --14,24,-110 --14,24,-102 --14,24,-94 --14,24,-86 --14,24,-78 --14,24,-70 --14,24,-62 --14,24,-54 --14,24,-46 --14,24,-38 --14,24,-30 --14,24,-22 --14,24,-14 --14,24,-6 -10,32,-38 -10,32,-30 -10,32,-22 -10,32,-14 -10,32,-6 -10,32,2 -10,32,10 -10,32,18 -10,32,26 -10,32,34 -10,32,42 -10,32,50 -10,32,58 -10,32,66 -10,32,74 -10,32,82 -10,32,90 -10,32,98 -10,32,106 -10,32,114 -10,32,122 -10,32,130 -10,32,138 -10,32,146 -18,32,-150 -18,32,-142 -18,32,-134 -18,32,-126 -18,32,-118 -18,32,-110 -18,32,-102 -18,32,-94 -18,32,-86 -18,32,-78 -18,32,-70 -18,32,-62 -18,32,-54 -18,32,-46 -18,32,-38 -18,32,-30 -18,32,-22 -18,32,-14 -18,32,-6 -18,32,2 -18,32,10 -18,32,18 -18,32,26 -18,32,34 -18,32,42 -18,32,50 -18,32,58 -18,32,66 -18,32,74 -18,32,82 -18,32,90 -18,32,98 -18,32,106 -18,32,114 -18,32,122 -18,32,130 -18,32,138 -18,32,146 -26,32,-150 -26,32,-142 -26,32,-134 -26,32,-126 -26,32,-118 -26,32,-110 -26,32,-102 -26,32,-94 -26,32,-86 -26,32,-78 -26,32,-70 -26,32,-62 -26,32,-54 -26,32,-46 -26,32,-38 -26,32,-30 -26,32,-22 -26,32,-14 -26,32,-6 -26,32,2 -26,32,10 -26,32,18 -26,32,26 -26,32,34 -26,32,42 -26,32,50 -26,32,58 -26,32,66 -26,32,74 -26,32,82 -26,32,90 -26,32,98 -26,32,106 -26,32,114 -26,32,122 -26,32,130 -26,32,138 -26,32,146 -34,32,-150 -34,32,-142 -34,32,-134 -34,32,-126 -34,32,-118 -34,32,-110 -34,32,-102 -34,32,-94 -34,32,-86 -34,32,-78 -34,32,-70 -34,32,-62 -34,32,-54 -34,32,-46 -34,32,-38 -34,32,-30 -34,32,-22 -34,32,-14 -34,32,-6 -34,32,2 -34,32,10 -34,32,18 -34,32,26 -34,32,34 -34,32,42 -34,32,50 -34,32,58 -34,32,66 -34,32,74 -34,32,82 -34,32,90 -34,32,98 -34,32,106 -34,32,114 -34,32,122 -34,32,130 -34,32,138 -34,32,146 -42,32,-150 -42,32,-142 -42,32,-134 -42,32,-126 -42,32,-118 -42,32,-110 -42,32,-102 -42,32,-94 -42,32,-86 -42,32,-78 -42,32,-70 -42,32,-62 -42,32,-54 -42,32,-46 -42,32,-38 -42,32,-30 -42,32,-22 -42,32,-14 -42,32,-6 -42,32,2 -42,32,10 -42,32,18 -42,32,26 -42,32,34 -42,32,42 -42,32,50 -42,32,58 -42,32,66 -42,32,74 -42,32,82 -42,32,90 -42,32,98 -42,32,106 -42,32,114 -42,32,122 -42,32,130 -42,32,138 -42,32,146 -50,32,-150 -50,32,-142 -50,32,-134 -50,32,-126 -50,32,-118 -50,32,-110 -50,32,-102 -50,32,-94 -50,32,-86 -50,32,-78 -50,32,-70 -50,32,-62 -50,32,-54 -50,32,-46 -50,32,-38 -50,32,-30 -50,32,-22 -50,32,-14 -50,32,-6 -50,32,2 -50,32,10 -50,32,18 -50,32,26 -50,32,34 -50,32,42 -50,32,50 -50,32,58 -50,32,66 -50,32,74 -50,32,82 -50,32,90 -50,32,98 -50,32,106 -50,32,114 -50,32,122 -50,32,130 -50,32,138 -50,32,146 -58,32,-150 -58,32,-142 -58,32,-134 -58,32,-126 -58,32,-118 -58,32,-110 -58,32,-102 -58,32,-94 -58,32,-86 -58,32,-78 -58,32,-70 -58,32,-62 -58,32,-54 -58,32,-46 -58,32,-38 -58,32,-30 -58,32,-22 -58,32,-14 -58,32,-6 -58,32,2 -58,32,10 -58,32,18 -58,32,26 -58,32,34 -58,32,42 -58,32,50 -58,32,58 -58,32,66 -58,32,74 -58,32,82 -58,32,90 -58,32,98 -58,32,106 -58,32,114 -58,32,122 -58,32,130 -58,32,138 -58,32,146 -66,32,-150 -66,32,-142 -66,32,-134 -66,32,-126 -90,40,-22 -90,40,-14 -90,40,-6 -90,40,2 -90,40,10 -90,40,18 -90,40,26 -90,40,34 -90,40,42 -90,40,50 -90,40,58 -90,40,66 -90,40,74 -90,40,82 -90,40,90 -90,40,98 -90,40,106 -90,40,114 -90,40,122 -90,40,130 -90,40,138 -90,40,146 -98,40,-150 -98,40,-142 -98,40,-134 -98,40,-126 -98,40,-118 -98,40,-110 -98,40,-102 -98,40,-94 -98,40,-86 -98,40,-78 -98,40,-70 -98,40,-62 -98,40,-54 -98,40,-46 -98,40,-38 -98,40,-30 -98,40,-22 -98,40,-14 -98,40,-6 -98,40,2 -98,40,10 -98,40,18 -98,40,26 -98,40,34 -98,40,42 -98,40,50 -98,40,58 -98,40,66 -98,40,74 -98,40,82 -98,40,90 -98,40,98 -98,40,106 -98,40,114 -98,40,122 -98,40,130 -98,40,138 -98,40,146 -106,40,-150 -106,40,-142 -106,40,-134 -106,40,-126 -106,40,-118 -106,40,-110 -106,40,-102 -106,40,-94 -106,40,-86 -106,40,-78 -106,40,-70 -106,40,-62 -106,40,-54 -106,40,-46 -106,40,-38 -106,40,-30 -106,40,-22 -106,40,-14 -106,40,-6 -106,40,2 -106,40,10 -106,40,18 -106,40,26 -106,40,34 -106,40,42 -106,40,50 -106,40,58 -106,40,66 -106,40,74 -106,40,82 -106,40,90 -106,40,98 -106,40,106 -106,40,114 -106,40,122 -106,40,130 -106,40,138 -106,40,146 -114,40,-150 -114,40,-142 -114,40,-134 -114,40,-126 -114,40,-118 -114,40,-110 -114,40,-102 -114,40,-94 -114,40,-86 -114,40,-78 -114,40,-70 -114,40,-62 -114,40,-54 -114,40,-46 -114,40,-38 -114,40,-30 -114,40,-22 -114,40,-14 -114,40,-6 -114,40,2 -114,40,10 -114,40,18 -114,40,26 -114,40,34 -114,40,42 -114,40,50 -114,40,58 -114,40,66 -114,40,74 -114,40,82 -114,40,90 -114,40,98 -114,40,106 -114,40,114 -114,40,122 -114,40,130 -114,40,138 -114,40,146 -122,40,-150 -122,40,-142 -122,40,-134 -122,40,-126 -122,40,-118 -122,40,-110 -122,40,-102 -122,40,-94 -122,40,-86 -122,40,-78 -122,40,-70 -122,40,-62 -122,40,-54 -122,40,-46 -122,40,-38 -122,40,-30 -122,40,-22 -122,40,-14 -122,40,-6 -122,40,2 -122,40,10 -122,40,18 -122,40,26 -122,40,34 -122,40,42 -122,40,50 -122,40,58 -122,40,66 -122,40,74 -122,40,82 -122,40,90 -122,40,98 -122,40,106 -122,40,114 -122,40,122 -122,40,130 -122,40,138 -122,40,146 -130,40,-150 -130,40,-142 -130,40,-134 -130,40,-126 -130,40,-118 -130,40,-110 -130,40,-102 -130,40,-94 -130,40,-86 -130,40,-78 -130,40,-70 -130,40,-62 -130,40,-54 -130,40,-46 -130,40,-38 -130,40,-30 -130,40,-22 -130,40,-14 -130,40,-6 -130,40,2 -130,40,10 -130,40,18 -130,40,26 -130,40,34 -130,40,42 -130,40,50 -130,40,58 -130,40,66 -130,40,74 -130,40,82 -130,40,90 -130,40,98 -130,40,106 -130,40,114 -130,40,122 -130,40,130 -130,40,138 -130,40,146 -138,40,-150 -138,40,-142 -138,40,-134 -138,40,-126 -138,40,-118 -138,40,-110 -138,40,-102 -138,40,-94 -138,40,-86 -138,40,-78 -138,40,-70 -138,40,-62 -138,40,-54 -138,40,-46 -138,40,-38 -138,40,-30 -138,40,-22 -138,40,-14 -138,40,-6 -138,40,2 -138,40,10 -138,40,18 -138,40,26 -138,40,34 -138,40,42 -138,40,50 -138,40,58 -138,40,66 -138,40,74 -138,40,82 -138,40,90 -138,40,98 -138,40,106 -138,40,114 -138,40,122 -138,40,130 -138,40,138 -138,40,146 -146,40,-150 -146,40,-142 -146,40,-134 -146,40,-126 -146,40,-118 -146,40,-110 -98,48,-142 -98,48,-134 -98,48,-126 -98,48,-118 -98,48,-110 -98,48,-102 -98,48,-94 -98,48,-86 -98,48,-78 -98,48,-70 -98,48,-62 -98,48,-54 -98,48,-46 -98,48,-38 -98,48,-30 -98,48,-22 -98,48,-14 -98,48,-6 -98,48,2 -98,48,10 -98,48,18 -98,48,26 -98,48,34 -98,48,42 -98,48,50 -98,48,58 -98,48,66 -98,48,74 -98,48,82 -98,48,90 -98,48,98 -98,48,106 -98,48,114 -98,48,122 -98,48,130 -98,48,138 -98,48,146 -106,48,-150 -106,48,-142 -106,48,-134 -106,48,-126 -106,48,-118 -106,48,-110 -106,48,-102 -106,48,-94 -106,48,-86 -106,48,-78 -106,48,-70 -106,48,-62 -106,48,-54 -106,48,-46 -106,48,-38 -106,48,-30 -106,48,-22 -106,48,-14 -106,48,-6 -106,48,2 -106,48,10 -106,48,18 -106,48,26 -106,48,34 -106,48,42 -106,48,50 -106,48,58 -106,48,66 -106,48,74 -106,48,82 -106,48,90 -106,48,98 -106,48,106 -106,48,114 -106,48,122 -106,48,130 -106,48,138 -106,48,146 -114,48,-150 -114,48,-142 -114,48,-134 -114,48,-126 -114,48,-118 -114,48,-110 -114,48,-102 -114,48,-94 -114,48,-86 -114,48,-78 -114,48,-70 -114,48,-62 -114,48,-54 -114,48,-46 -114,48,-38 -114,48,-30 -114,48,-22 -114,48,-14 -114,48,-6 -114,48,2 -114,48,10 -114,48,18 -114,48,26 -114,48,34 -114,48,42 -114,48,50 -114,48,58 -114,48,66 -114,48,74 -114,48,82 -114,48,90 -114,48,98 -114,48,106 -114,48,114 -114,48,122 -114,48,130 -114,48,138 -114,48,146 -122,48,-150 -122,48,-142 -122,48,-134 -122,48,-126 -122,48,-118 -122,48,-110 -122,48,-102 -122,48,-94 -122,48,-86 -122,48,-78 -122,48,-70 -122,48,-62 -122,48,-54 -122,48,-46 -122,48,-38 -122,48,-30 -122,48,-22 -122,48,-14 -122,48,-6 -122,48,2 -122,48,10 -122,48,18 -122,48,26 -122,48,34 -122,48,42 -122,48,50 -122,48,58 -122,48,66 -122,48,74 -122,48,82 -122,48,90 -122,48,98 -122,48,106 -122,48,114 -122,48,122 -122,48,130 -122,48,138 -122,48,146 -130,48,-150 -130,48,-142 -130,48,-134 -130,48,-126 -130,48,-118 -130,48,-110 -130,48,-102 -130,48,-94 -130,48,-86 -130,48,-78 -130,48,-70 -130,48,-62 -130,48,-54 -130,48,-46 -130,48,-38 -130,48,-30 -130,48,-22 -130,48,-14 -130,48,-6 -130,48,2 -130,48,10 -130,48,18 -130,48,26 -130,48,34 -130,48,42 -130,48,50 -130,48,58 -130,48,66 -130,48,74 -130,48,82 -130,48,90 -130,48,98 -130,48,106 -130,48,114 -130,48,122 -130,48,130 -130,48,138 -130,48,146 -138,48,-150 -138,48,-142 -138,48,-134 -138,48,-126 -138,48,-118 -138,48,-110 -138,48,-102 -138,48,-94 -138,48,-86 -138,48,-78 -138,48,-70 -138,48,-62 -138,48,-54 -138,48,-46 -138,48,-38 -138,48,-30 -138,48,-22 -138,48,-14 -138,48,-6 -138,48,2 -138,48,10 -138,48,18 -138,48,26 -138,48,34 -138,48,42 -138,48,50 -138,48,58 -138,48,66 -138,48,74 -138,48,82 -138,48,90 -138,48,98 -138,48,106 -138,48,114 -138,48,122 -138,48,130 -138,48,138 -138,48,146 -146,48,-150 -146,48,-142 -146,48,-134 -146,48,-126 -146,48,-118 -146,48,-110 -146,48,-102 -146,48,-94 -146,48,-86 -146,48,-78 -146,48,-70 -146,48,-6 -2 -146,48,-54 -146,48,-46 -146,48,-38 -146,48,-30 -146,48,-22 -146,48,-14 -146,48,-6 -146,48,2 -146,48,10 -146,48,18 -146,48,26 -146,48,34 -146,48,42 -146,48,50 -146,48,58 -146,48,66 -146,48,74 -74,56,106 -74,56,114 -74,56,122 -74,56,130 -74,56,138 -74,56,146 -82,56,-150 -82,56,-142 -82,56,-134 -82,56,-126 -82,56,-118 -82,56,-110 -82,56,-102 -82,56,-94 -82,56,-86 -82,56,-78 -82,56,-70 -82,56,-62 -82,56,-54 -82,56,-46 -82,56,-38 -82,56,-30 -82,56,-22 -82,56,-14 -82,56,-6 -82,56,2 -82,56,10 -82,56,18 -82,56,26 -82,56,34 -82,56,42 -82,56,50 -82,56,58 -82,56,66 -82,56,74 -82,56,82 -82,56,90 -82,56,98 -82,56,106 -82,56,114 -82,56,122 -82,56,130 -82,56,138 -82,56,146 -90,56,-150 -90,56,-142 -90,56,-134 -90,56,-126 -90,56,-118 -90,56,-110 -90,56,-102 -90,56,-94 -90,56,-86 -90,56,-78 -90,56,-70 -90,56,-62 -90,56,-54 -90,56,-46 -90,56,-38 -90,56,-30 -90,56,-22 -90,56,-14 -90,56,-6 -90,56,2 -90,56,10 -90,56,18 -90,56,26 -90,56,34 -90,56,42 -90,56,50 -90,56,58 -90,56,66 -90,56,74 -90,56,82 -90,56,90 -90,56,98 -90,56,106 -90,56,114 -90,56,122 -90,56,130 -90,56,138 -90,56,146 -98,56,-150 -98,56,-142 -98,56,-134 -98,56,-126 -98,56,-118 -98,56,-110 -98,56,-102 -98,56,-94 -98,56,-86 -98,56,-78 -98,56,-70 -98,56,-62 -98,56,-54 -98,56,-46 -98,56,-38 -98,56,-30 -98,56,-22 -98,56,-14 -98,56,-6 -98,56,2 -98,56,10 -98,56,18 -98,56,26 -98,56,34 -98,56,42 -98,56,50 -98,56,58 -98,56,66 -98,56,74 -98,56,82 -98,56,90 -98,56,98 -98,56,106 -98,56,114 -98,56,122 -98,56,130 -98,56,138 -98,56,146 -106,56,-150 -106,56,-142 -106,56,-134 -106,56,-126 -106,56,-118 -106,56,-110 -106,56,-102 -106,56,-94 -106,56,-86 -106,56,-78 -106,56,-70 -106,56,-62 -106,56,-54 -106,56,-46 -106,56,-38 -106,56,-30 -106,56,-22 -106,56,-14 -106,56,-6 -106,56,2 -106,56,10 -106,56,18 -106,56,26 -106,56,34 -106,56,42 -106,56,50 -106,56,58 -106,56,66 -106,56,74 -106,56,82 -106,56,90 -106,56,98 -106,56,106 -106,56,114 -106,56,122 -106,56,130 -106,56,138 -106,56,146 -114,56,-150 -114,56,-142 -114,56,-134 -114,56,-126 -114,56,-118 -114,56,-110 -114,56,-102 -114,56,-94 -114,56,-86 -114,56,-78 -114,56,-70 -114,56,-62 -114,56,-54 -114,56,-46 -114,56,-38 -114,56,-30 -114,56,-22 -114,56,-14 -114,56,-6 -114,56,2 -114,56,10 -114,56,18 -114,56,26 -114,56,34 -114,56,42 -114,56,50 -114,56,58 -114,56,66 -114,56,74 -114,56,82 -114,56,90 -114,56,98 -114,56,106 -114,56,114 -114,56,122 -114,56,130 -114,56,138 -114,56,146 -122,56,-150 -122,56,-142 -122,56,-134 -122,56,-126 -122,56,-118 -122,56,-110 -122,56,-102 -122,56,-94 -122,56,-86 -122,56,-78 -122,56,-70 -122,56,-62 -122,56,-54 -122,56,-46 -122,56,-38 -122,56,-30 -122,56,-22 -122,56,-14 -122,56,-6 -122,56,2 -122,56,10 -122,56,18 -122,56,26 -122,56,34 -122,56,42 -122,56,50 -122,56,58 -122,56,66 -122,56,74 -122,56,82 -122,56,90 -122,56,98 -122,56,106 -122,56,114 -122,56,122 -122,56,130 -122,56,138 -122,56,146 -130,56,-150 -130,56,-142 -130,56,-134 -130,56,-126 -130,56,-118 -130,56,-110 -130,56,-102 -130,56,-94 -130,56,-86 -130,56,-78 -130,56,-70 -130,56,-62 -130,56,-54 -130,56,-46 -130,56,-38 -130,56,-30 -130,56,-22 -130,56,-14 -130,56,-6 -130,56,2 -130,56,10 -130,56,18 -106,64,-46 -106,64,-38 -106,64,-30 -106,64,-22 -106,64,-14 -106,64,-6 -106,64,2 -106,64,10 -106,64,18 -106,64,26 -106,64,34 -106,64,42 -106,64,50 -106,64,58 -106,64,66 -106,64,74 -106,64,82 -106,64,90 -106,64,98 -106,64,106 -106,64,114 -106,64,122 -106,64,130 -106,64,138 -106,64,146 -114,64,-150 -114,64,-142 -114,64,-134 -114,64,-126 -114,64,-118 -114,64,-110 -114,64,-102 -114,64,-94 -114,64,-86 -114,64,-78 -114,64,-70 -114,64,-62 -114,64,-54 -114,64,-46 -114,64,-38 -114,64,-30 -114,64,-22 -114,64,-14 -114,64,-6 -114,64,2 -114,64,10 -114,64,18 -114,64,26 -114,64,34 -114,64,42 -114,64,50 -114,64,58 -114,64,66 -114,64,74 -114,64,82 -114,64,90 -114,64,98 -114,64,106 -114,64,114 -114,64,122 -114,64,130 -114,64,138 -114,64,146 -122,64,-150 -122,64,-142 -122,64,-134 -122,64,-126 -122,64,-118 -122,64,-110 -122,64,-102 -122,64,-94 -122,64,-86 -122,64,-78 -122,64,-70 -122,64,-62 -122,64,-54 -122,64,-46 -122,64,-38 -122,64,-30 -122,64,-22 -122,64,-14 -122,64,-6 -122,64,2 -122,64,10 -122,64,18 -122,64,26 -122,64,34 -122,64,42 -122,64,50 -122,64,58 -122,64,66 -122,64,74 -122,64,82 -122,64,90 -122,64,98 -122,64,106 -122,64,114 -122,64,122 -122,64,130 -122,64,138 -122,64,146 -130,64,-150 -130,64,-142 -130,64,-134 -130,64,-126 -130,64,-118 -130,64,-110 -130,64,-102 -130,64,-94 -130,64,-86 -130,64,-78 -130,64,-70 -130,64,-62 -130,64,-54 -130,64,-46 -130,64,-38 -130,64,-30 -130,64,-22 -130,64,-14 -130,64,-6 -130,64,2 -130,64,10 -130,64,18 -130,64,26 -130,64,34 -130,64,42 -130,64,50 -130,64,58 -130,64,66 -130,64,74 -130,64,82 -130,64,90 -130,64,98 -130,64,106 -130,64,114 -130,64,122 -130,64,130 -130,64,138 -130,64,146 -138,64,-150 -138,64,-142 -138,64,-134 -138,64,-126 -138,64,-118 -138,64,-110 -138,64,-102 -138,64,-94 -138,64,-86 -138,64,-78 -138,64,-70 -138,64,-62 -138,64,-54 -138,64,-46 -138,64,-38 -138,64,-30 -138,64,-22 -138,64,-14 -138,64,-6 -138,64,2 -138,64,10 -138,64,18 -138,64,26 -138,64,34 -138,64,42 -138,64,50 -138,64,58 -138,64,66 -138,64,74 -138,64,82 -138,64,90 -138,64,98 -138,64,106 -138,64,114 -138,64,122 -138,64,130 -138,64,138 -138,64,146 -146,64,-150 -146,64,-142 -146,64,-134 -146,64,-126 -146,64,-118 -146,64,-110 -146,64,-102 -146,64,-94 -146,64,-86 -146,64,-78 -146,64,-70 -146,64,-62 -146,64,-54 -146,64,-46 -146,64,-38 -146,64,-30 -146,64,-22 -146,64,-14 -146,64,-6 -146,64,2 -146,64,10 -146,64,18 -146,64,26 -146,64,34 -146,64,42 -146,64,50 -146,64,58 -146,64,66 -146,64,74 -146,64,82 -146,64,90 -146,64,98 -146,64,106 -146,64,114 -146,64,122 -146,64,130 -146,64,138 -146,64,146 --150,72,-150 --150,72,-142 --150,72,-134 --150,72,-126 --150,72,-118 --150,72,-110 --150,72,-102 --150,72,-94 --150,72,-86 --150,72,-78 --150,72,-70 --150,72,-62 --150,72,-54 --150,72,-46 --150,72,-38 --150,72,-30 --150,72,-22 --150,72,-14 --150,72,-6 --150,72,2 --150,72,10 --150,72,18 --150,72,26 --150,72,34 --150,72,42 --150,72,50 --150,72,58 --150,72,66 --150,72,74 --150,72,82 --150,72,90 --150,72,98 --150,72,106 --150,72,114 --150,72,122 --150,72,130 --150,72,138 --150,72,146 --142,72,-150 --142,72,-142 --142,72,-134 --110,80,-134 --110,80,-126 --110,80,-118 --110,80,-110 --110,80,-102 --110,80,-94 --110,80,-86 --110,80,-78 --110,80,-70 --110,80,-62 --110,80,-54 --110,80,-46 --110,80,-38 --110,80,-30 --110,80,-22 --110,80,-14 --110,80,-6 --110,80,2 --110,80,10 --110,80,18 --110,80,26 --110,80,34 --110,80,42 --110,80,50 --110,80,58 --110,80,66 --110,80,74 --110,80,82 --110,80,90 --110,80,98 --110,80,106 --110,80,114 --110,80,122 --110,80,130 --110,80,138 --110,80,146 --102,80,-150 --102,80,-142 --102,80,-134 --102,80,-126 --102,80,-118 --102,80,-110 --102,80,-102 --102,80,-94 --102,80,-86 --102,80,-78 --102,80,-70 --102,80,-62 --102,80,-54 --102,80,-46 --102,80,-38 --102,80,-30 --102,80,-22 --102,80,-14 --102,80,-6 --102,80,2 --102,80,10 --102,80,18 --102,80,26 --102,80,34 --102,80,42 --102,80,50 --102,80,58 --102,80,66 --102,80,74 --102,80,82 --102,80,90 --102,80,98 --102,80,106 --102,80,114 --102,80,122 --102,80,130 --102,80,138 --102,80,146 --94,80,-150 --94,80,-142 --94,80,-134 --94,80,-126 --94,80,-118 --94,80,-110 --94,80,-102 --94,80,-94 --94,80,-86 --94,80,-78 --94,80,-70 --94,80,-62 --94,80,-54 --94,80,-46 --94,80,-38 --94,80,-30 --94,80,-22 --94,80,-14 --94,80,-6 --94,80,2 --94,80,10 --94,80,18 --94,80,26 --94,80,34 --94,80,42 --94,80,50 --94,80,58 --94,80,66 --94,80,74 --94,80,82 --94,80,90 --94,80,98 --94,80,106 --94,80,114 --94,80,122 --94,80,130 --94,80,138 --94,80,146 --86,80,-150 --86,80,-142 --86,80,-134 --86,80,-126 --86,80,-118 --86,80,-110 --86,80,-102 --86,80,-94 --86,80,-86 --86,80,-78 --86,80,-70 --86,80,-62 --86,80,-54 --86,80,-46 --86,80,-38 --86,80,-30 --86,80,-22 --86,80,-14 --86,80,-6 --86,80,2 --86,80,10 --86,80,18 --86,80,26 --86,80,34 --86,80,42 --86,80,50 --86,80,58 --86,80,66 --86,80,74 --86,80,82 --86,80,90 --86,80,98 --86,80,106 --86,80,114 --86,80,122 --86,80,130 --86,80,138 --86,80,146 --78,80,-150 --78,80,-142 --78,80,-134 --78,80,-126 --78,80,-118 --78,80,-110 --78,80,-102 --78,80,-94 --78,80,-86 --78,80,-78 --78,80,-70 --78,80,-62 --78,80,-54 --78,80,-46 --78,80,-38 --78,80,-30 --78,80,-22 --78,80,-14 --78,80,-6 --78,80,2 --78,80,10 --78,80,18 --78,80,26 --78,80,34 --78,80,42 --78,80,50 --78,80,58 --78,80,66 --78,80,74 --78,80,82 --78,80,90 --78,80,98 --78,80,106 --78,80,114 --78,80,122 --78,80,130 --78,80,138 --78,80,146 --70,80,-150 --70,80,-142 --70,80,-134 --70,80,-126 --70,80,-118 --70,80,-110 --70,80,-102 --70,80,-94 --70,80,-86 --70,80,-78 --70,80,-70 --70,80,-62 --70,80,-54 --70,80,-46 --70,80,-38 --70,80,-30 --70,80,-22 --70,80,-14 --70,80,-6 --70,80,2 --70,80,10 --70,80,18 --70,80,26 --70,80,34 --70,80,42 --70,80,50 --70,80,58 --70,80,66 --70,80,74 --70,80,82 --70,80,90 --70,80,98 --70,80,106 --70,80,114 --70,80,122 --70,80,130 --70,80,138 --70,80,146 --62,80,-150 --62,80,-142 --62,80,-134 --62,80,-126 --62,80,-118 --62,80,-110 --62,80,-102 --62,80,-94 --62,80,-86 --62,80,-78 --62,80,-70 --62,80,-62 --62,80,-54 --62,80,-46 --62,80,-38 --62,80,-30 --62,80,-22 --62,80,-14 --62,80,-6 --62,80,2 --62,80,10 --62,80,18 --62,80,26 --62,80,34 --62,80,42 --62,80,50 --62,80,58 --62,80,66 --62,80,74 --62,80,82 - diff --git a/computer/5/halt.lua b/computer/5/halt.lua index 1263283..566583a 100644 --- a/computer/5/halt.lua +++ b/computer/5/halt.lua @@ -1,5 +1,5 @@ -while message~="i can halt now" do +while messages~="i can halt now" do rednet.send(id,"halt") - id,message = rednet.receve() + id,messages = rednet.receve() end diff --git a/computer/5/scoundril b/computer/5/scoundril new file mode 100644 index 0000000..23b8dc7 --- /dev/null +++ b/computer/5/scoundril @@ -0,0 +1,40 @@ +W = window.create(term.native(),5,10,39,13) +--W.setBackgroundColor(colors.lightGray) +--W.setTextColor(colors.black) +W.clear() + +function scoundrilmirror() + while true do + --local x,y = W.getCursorPos() + --paintutils.drawBox(4,9,46,23,colors.gray) + --W.setBackgroundColor(colors.brown) + --W.setTextColor(colors.pink) + id,mess = rednet.receive() + if id == 4 then + W[mess[1]](unpack(mess[2])) + end + --W.setCursorPos(x,y) + --paintutils.drawBox(4,9,46,23,colors.gray) + end +end +function eventmirror() + while true do + event = {os.pullEventRaw()} + if event[1] == "rednet_message" then + + elseif event[1] == "modem_message" then + + else + rednet.send( + 4, + event, + "pocketevent" + ) + --print(event) + end + end +end +parallel.waitForAll( + scoundrilmirror, + eventmirror +) diff --git a/computer/5/startup.lua b/computer/5/startup.lua index 2350f51..7288de8 100644 --- a/computer/5/startup.lua +++ b/computer/5/startup.lua @@ -7,7 +7,7 @@ local function splitprefixes(str,prefixes) end end end -while true do +while false do thing = read( nil, nil, function(str) copy = require("rednetcopy") @@ -24,15 +24,15 @@ while true do if #choices > 0 then return choices end - - + + name,sub,id = splitprefixes(str,turts) --print(name,sub,id) --print(sub) if not id then return end rednet.send(id,sub,"complete") - _,message = rednet.receive("completed",0.2) - return message + _,messages = rednet.receive("completed",0.2) + return messages end ) turts = copy.lookup("tomfoolery") diff --git a/computer/5/test2.lua b/computer/5/test2.lua new file mode 100644 index 0000000..0137103 --- /dev/null +++ b/computer/5/test2.lua @@ -0,0 +1,34 @@ +tab = "self" + +while true do + copy = require("rednetcopy") + turts = copy.lookup("tomfoolery") + table.insert(turts,{-1,"self"}) + table.sort( + turts, + function(a,b) + return a[1] < b[1] + end + ) + turtlenames = {} + x,y = term.getCursorPos() + term.setCursorPos(1,1) + for i,v in pairs(turts) do + if tab ~= v[2] then + term.setBackgroundColor((math.mod(i,2) == 0) and colors.lightGray or colors.cyan) + term.setTextColor(colors.black) + else + term.setBackgroundColor(colors.gray) + term.setTextColor(colors.white) + end + table.insert(turtlenames,v[2]) + write(" "..v[2].." ") + end + term.setBackgroundColor(colors.brown) + write(" ") + term.setBackgroundColor(colors.black) + term.setTextColor(colors.white) + term.setCursorPos(x,y) + + +end diff --git a/computer/5/thief b/computer/5/thief new file mode 100644 index 0000000..9833cba --- /dev/null +++ b/computer/5/thief @@ -0,0 +1,30 @@ +W = window.create(term.native(),3,3,39,13) +function thiefmirror() + while true do + id,mess = rednet.receive() + if id == 3 then + W[mess[1]](unpack(mess[2])) + end + end +end +function eventmirror() + while true do + event = {os.pullEventRaw()} + if event[1] == "rednet_message" then + + elseif event[1] == "modem_message" then + + else + rednet.send( + 3, + event, + "pocketevent" + ) + --print(event) + end + end +end +parallel.waitForAll( + thiefmirror, + eventmirror +)