Pattern viewer for forum threads

For discussion directly related to ConwayLife.com, such as requesting changes to how the forums or wiki function.
muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » February 15th, 2020, 9:08 am

rowett wrote:
February 15th, 2020, 7:36 am
muzik wrote:
February 15th, 2020, 7:24 am
Can a script command be added that hides all the buttons, but still retains their functionality?
How would that work? Make them invisible but you can still click?
Yes this would pretty much be how it would work. They'd probably become visible again when in the settings or help menus, but then become invisible when quitting out of them.

Also viewonly would just disable options linked to playback and editing, so zooming and stuff would still be possible.
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

User avatar
rowett
Moderator
Posts: 1992
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » February 15th, 2020, 10:42 am

muzik wrote:
February 15th, 2020, 9:08 am
rowett wrote:
February 15th, 2020, 7:36 am
muzik wrote:
February 15th, 2020, 7:24 am
Can a script command be added that hides all the buttons, but still retains their functionality?
How would that work? Make them invisible but you can still click?
Yes this would pretty much be how it would work. They'd probably become visible again when in the settings or help menus, but then become invisible when quitting out of them.

Also viewonly would just disable options linked to playback and editing, so zooming and stuff would still be possible.
What are you trying to achieve?

muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » February 15th, 2020, 1:45 pm

Mainly to keep consistency and continue the trend of disabled/unusable buttons and sliders appearing grey instead of disappearing entirely. I can see why it might be undesirable to have the buttons present, though, so the new script command would hide all the (disabled, at least) buttons and granting a clearer view of the pattern.

On the topic of disabled buttons and sliders, I think it would be a good idea for a corresponding error message to be displayed upon attempting to use them explaining why they can't be used.
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

muzik
Posts: 3775
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » February 16th, 2020, 9:01 am

Some more aliases have been added to catagolue: https://gitlab.com/apgoucher/catagolue/ ... s/41/diffs

Some questions:
- For margolus rules which birth a non-0000 or non-1111 cell arrangement for 0000, can they be supported on bounded grids?

Code: Select all

x = 20, y = 12, rule = M14,1,2,3,4,5,6,7,8,9,10,11,12,13,0,15:T160,160
4b6o4b6o11$6o4b6o!
- Will infinite bounded grids be supported for HROT rules?

Code: Select all

x = 1, y = 4, rule = B3/S28:T0,4
o$o$o$o!

Code: Select all

x = 1, y = 4, rule = R1,C2,S2,8,B3,NM:T0,4
o$o$o$o!
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

Ian07
Posts: 521
Joined: September 22nd, 2018, 8:48 am

Re: Pattern viewer for forum threads

Post by Ian07 » March 30th, 2020, 3:05 pm

The Sticky rule seems to not be displaying a viewer option despite its wiki page having both @TABLE and @TREE sections.

User avatar
rowett
Moderator
Posts: 1992
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » March 30th, 2020, 4:39 pm

Ian07 wrote:
March 30th, 2020, 3:05 pm
The Sticky rule seems to not be displaying a viewer option despite its wiki page having both @TABLE and @TREE sections.
It's because both sections in the rule were invalid so LifeViewer ignored the rule.

The @TREE section was missing some entries.

The @TABLE section had a syntax LifeViewer didn't like. Some var assignments were missing the equals (=) sign:
var a{0,1,2,3} rather than var a={0,1,2,3}.

I've fixed both issues on the Wiki.

User avatar
dvgrn
Moderator
Posts: 6485
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI
Contact:

Re: Pattern viewer for forum threads

Post by dvgrn » April 1st, 2020, 12:25 pm

I was just looking for an example of a use of PASTET to fit a long single-channel recipe into LifeViewer's relatively small grid.

Here's a sample pattern that I'm fairly sure was working last September 23rd, but it isn't any more. Did something change that means I should update the script? I'm also seeing some other odd behavior here, like the viewer popping up mostly off the screen at first, then getting corrected if I resize the window.

Code: Select all

x = 1, y = 1, rule = B3/S23
b!
[[ MAXGRIDSIZE 14 ]]
[[ COLOR LABEL Orange ]]
[[ LABELT 0 10000 0 LABEL 90 0 2 "Snarkmaker\nSnarkmaker,\nmake me a Snark --" ]]
[[ COLOR LABEL Green ]]
[[ LABELT 0 2500 100 LABEL -10 80 2 "recipe to create an offset block" ]]
[[ LABELT 3000 6500 100 LABEL -10 80 2 "line up elbow with new block\n(two parts)" ]]
[[ LABELT 6700 8900 100 LABEL -10 80 2 "duplicate the elbow,\ncreate a 0-degree elbow" ]]
[[ LABELT 9000 10500 100 LABEL -10 80 2 "move 0-degree elbow to safe distance" ]]
[[ LABELT 11000 248000 100 LABEL -10 80 2 "0-degree slow salvo recipe" ]]
[[ LABELT 249000 251000 100 LABEL -10 80 2 "remove 0-degree elbow" ]]
[[ LABELT 251000 260000 100 LABEL -10 80 2 "push new elbow back\n(optional)" ]]
#C Define block pattern
#C [[ RLE block 2o$2o! ]]
#C [[ RLE glider 2o$obo$o! ]]
#C [[ PASTE block ]]
#C [[ PASTEMODE OR ]]
#C [[ RLE elbow_to_block 2o$obo$o25$28bo$27b2o$27bobo21$50b2o$50bobo$50bo21$74bo$73b2o$73bobo21$96b2o$95b2o$97bo31$129b2o$128b2o$130bo27$157b3o$157bo$158bo29$190bo$189b2o$189bobo21$212b2o$212bobo$212bo21$234b3o$234bo$235bo20$258bo$257b2o$257bobo22$281b2o$281bobo$281bo21$303b3o$303bo$304bo26$332b2o$332bobo$332bo39$372b3o$372bo$373bo56$431b2o$430b2o$432bo38$470b3o$470bo$471bo20$493b2o$493bobo$493bo37$532b2o$531b2o$533bo29$564bo$563b2o$563bobo22$586b3o$586bo$587bo27$616b2o$616bobo$616bo21$638b3o$638bo$639bo20$662bo$661b2o$661bobo21$684b2o$683b2o$685bo!
PASTE elbow_to_block 4 0 ]]
# elbow_to_block = 0 109 91 93 90 132 115 127 91 90 91 95 90 114 162 233 159 90 155 126 93 118 90 91 90 1114
#C [[ RLE PULL10.5fd
3o$o$bo25$28b2o$27b2o$29bo21$50b3o$50bo$51bo21$74b2o$74bobo$74bo21$97b
2o$96b2o$98bo21$119b3o$119bo$120bo21$142b3o$142bo$143bo20$165b2o$165bo
bo$165bo40$208bo$207b2o$207bobo21$230b2o$230bobo$230bo21$252b3o$252bo$
253bo27$281b3o$281bo$282bo20$304b2o$304bobo$304bo26$333bo$332b2o$332bo
bo!
PASTE PULL10.5fd 754 751 ]]
# PULL10.5fd = 4000 109 91 94 91 91 92 90 169 91 90 116 90 113
#C [[ RLE PULL3fd
b2o$2o$2bo25$28b2o$28bobo$28bo21$51b2o$50b2o$52bo21$74b2o$74bobo$74bo
21$97b2o$96b2o$98bo37$136b2o$135b2o$137bo21$158b3o$158bo$159bo20$182bo
$181b2o$181bobo22$205b2o$204b2o$206bo20$228bo$227b2o$227bobo21$250b2o$
250bobo$250bo33$285b2o$285bobo$285bo21$308b2o$307b2o$309bo24$333b3o$
333bo$334bo20$357bo$356b2o$356bobo21$379b2o$379bobo$379bo31$412b2o$
412bobo$412bo!
PASTE PULL3fd 1164 1161 ]]
# PULL3fd = 6000 109 91 93 91 156 91 91 94 90 91 140 91 103 91 91 132
#C [[ RLE elbow_duplicator
3o$o$bo25$28b2o$27b2o$29bo20$51bo$50b2o$50bobo22$73b3o$73bo$74bo20$97b
o$96b2o$96bobo21$119b2o$119bobo$119bo21$141b3o$141bo$142bo20$164b2o$
164bobo$164bo23$189b2o$189bobo$189bo21$211b3o$211bo$212bo20$234b2o$
234bobo$234bo35$270b3o$270bo$271bo22$294b3o$294bo$295bo20$317b2o$317bo
bo$317bo21$339b3o$339bo$340bo20$362b2o$362bobo$362bo21$385b2o$385bobo$
385bo37$424b2o$424bobo$424bo34$460b2o$460bobo$460bo!
PASTE elbow_duplicator 1754 1751 ]]
#C elbow_duplicator = 8000 109 90 93 91 91 90 90 100 90 90 146 96 90 90 90 92 156 144
#C [[ RLE PULL10.5fd_shallow_envelope
3o$o$bo25$28b2o$27b2o$29bo21$50b3o$50bo$51bo21$74b2o$73b2o$75bo21$96b
3o$96bo$97bo31$129b3o$129bo$130bo26$159bo$158b2o$158bobo24$184b2o$183b
2o$185bo20$207bo$206b2o$206bobo21$229b2o$229bobo$229bo21$252b2o$251b2o
$253bo21$274b3o$274bo$275bo20$297b2o$297bobo$297bo21$319b3o$319bo$320b
o36$358b2o$358bobo$358bo!
PASTE PULL10.5fd_shallow_envelope 2292 2289 ]]
#C PULL10.5fd_shallow_envelope 10000 109 91 93 91 132 115 102 90 91 91 91 90 90 154
#C a trailing "98" would mark a safe location for the first glider in a following copy of the recipe
#C [[ PASTET 10500 93 91 118 91 151 90 159 91 92 90 136 90 90 154 90 101 104 165 129 91 109 91 93 91 97 90 91 111 91 116 91 94 330 91 90 95 91 90 90 91 123 90 91 152 90 90 93 91 116 91 131 91 95 188 113 91 91 147 122 91 173 91 91 133 247 92 90 109 91 93 91 129 148 91 93 154 90 134 91 91 90 91 91 111 91 91 91 91 91 109 90 93 91 91 158 94 113 91 90 91 96 90 142 91 109 91 94 91 91 179 91 90 94 91 114 90 166 90 90 90 91 117 90 96 90 90 95 91 91 109 91 93 90 156 91 91 94 91 90 147 117 91 144 90 91 128 100 91 90 105 91 91 109 91 94 91 91 124 91 105 90 169 91 90 116 91 142 90 90 91 109 91 93 91 92 91 90 90 95 102 91 91 91 130 91 90 136 91 91 119 113 90 91 114 90 109 91 94 91 91 179 91 90 94 91 102 91 151 90 90 101 90 91 125 184 90 90 90 109 91 94 91 91 179 91 90 94 91 102 91 151 90 90 101 90 91 125 184 90 90 90 109 91 93 90 140 150 132 212 103 90 98 90 148 90 90 91 91 91 119 101 108 90 91 91 119 90 109 91 94 91 90 99 90 112 90 91 105 90 121 118 103 90 144 117 95 91 109 91 93 91 92 91 90 90 95 102 91 91 91 130 91 90 136 91 91 119 113 90 91 114 91 109 90 93 91 91 181 90 95 110 114 100 160 90 143 91 119 90 106 129 109 91 93 91 92 91 90 90 162 91 91 90 129 91 113 90 90 90 90 109 91 93 90 140 150 142 91 90 111 91 91 193 97 91 91 155 90 98 90 91 93 91 151 90 139 180 103 115 167 91 120 139 135 91 91 170 109 91 93 90 155 106 91 121 90 90 91 137 90 232 90 91 91 94 90 171 90 91 103 102 109 91 93 91 137 90 166 91 102 90 104 91 96 96 91 90 90 90 166 90 90 93 90 91 109 91 94 91 91 124 91 105 91 119 91 132 99 90 90 90 150 160 116 91 91 91 90 96 90 90 109 91 93 90 171 90 90 91 90 91 90 91 129 144 90 90 120 90 91 91 169 90 91 109 91 93 91 118 90 91 91 91 104 219 91 135 105 154 90 91 164 91 132 90 90 140 94 93 90 96 90 90 91 149 90 90 161 100 109 91 93 91 92 91 90 90 124 91 142 90 90 91 91 112 90 102 102 103 90 90 90 117 112 90 189 90 90 109 91 93 91 92 91 90 90 162 91 91 90 129 91 113 90 90 90 90 109 91 93 91 92 90 97 91 116 91 145 90 91 98 90 90 188 91 91 91 90 115 91 109 91 93 91 97 91 90 91 120 91 117 91 123 90 118 91 146 110 160 90 109 91 93 90 129 148 90 93 90 143 96 92 90 165 90 118 90 90 91 91 109 91 94 91 91 93 90 158 90 91 90 90 116 104 109 91 94 91 91 167 90 90 91 95 90 90 148 90 151 90 90 136 134 155 115 103 91 109 91 93 90 155 106 91 121 90 90 91 137 90 232 90 91 91 94 90 171 90 91 103 101 109 91 94 91 91 136 91 91 90 168 90 90 110 90 90 93 91 111 91 91 90 132 91 91 93 91 118 90 137 91 173 93 158 90 90 90 118 90 91 90 151 154 167 91 133 90 119 178 155 90 90 90 109 91 94 91 91 95 91 90 93 218 142 90 91 161 90 138 90 162 91 90 140 95 109 109 91 93 91 92 91 98 201 91 129 90 90 90 90 90 103 90 108 90 104 90 109 91 93 90 129 148 90 93 90 143 96 92 90 165 90 118 90 90 91 91 109 91 94 91 91 179 91 90 94 91 111 90 90 90 171 91 110 91 154 90 132 91 109 91 94 91 91 124 90 144 90 90 90 165 119 90 104 90 100 90 90 91 109 91 93 91 92 91 90 90 162 91 91 90 129 91 113 90 90 90 91 109 91 94 91 91 95 91 90 93 218 172 90 90 90 116 112 341 107 106 90 163 91 90 109 91 93 90 169 90 91 103 91 133 90 90 91 91 90 110 91 93 90 112 171 90 109 91 94 91 91 171 91 90 113 90 97 114 90 105 90 139 90 113 90 106 98 121 90 109 91 94 91 91 124 90 142 90 90 146 91 153 90 102 91 152 108 97 91 109 91 94 91 91 124 90 170 90 90 91 90 99 91 90 91 110 121 161 117 115 137 90 91 90 109 90 93 91 91 128 90 139 91 90 97 91 124 157 91 90 90 129 144 91 91 147 130 91 90 90 91 90 140 90 92 90 90 109 91 93 90 156 91 91 102 91 91 90 90 106 91 166 90 125 91 90 126 91 109 91 94 91 91 179 91 90 94 91 102 91 151 90 90 101 90 91 125 184 90 90 90 93 91 151 90 139 180 103 115 167 91 120 139 135 91 91 170 109 90 93 91 91 128 90 139 91 90 97 91 124 157 91 90 90 129 144 91 91 147 130 91 90 90 91 90 140 90 92 90 90 109 91 93 91 145 215 114 91 121 91 150 91 91 153 91 141 90 91 91 90 123 91 109 90 101 169 213 133 195 90 132 143 91 139 138 158 151 99 91 108 99 91 90 91 91 90 91 131 91 109 91 93 90 156 91 91 96 132 91 91 106 91 90 119 185 91 96 90 132 90 91 90 142 109 91 94 91 91 124 90 170 90 90 91 90 99 91 90 91 110 121 161 117 115 137 90 91 90 109 91 93 90 155 106 91 121 90 90 91 137 90 232 90 91 91 94 90 171 90 91 103 102 109 91 93 90 129 148 91 102 91 91 145 178 91 115 90 90 91 104 90 90 92 249 90 90 91 109 91 94 91 90 152 91 90 91 117 90 91 111 91 91 118 90 145 90 100 116 90 90 99 90 109 91 94 91 91 128 126 90 161 151 90 109 91 90 90 94 144 106 90 94 90 90 90 109 91 94 91 91 124 91 105 90 169 91 90 116 91 142 90 90 91 109 91 93 90 140 150 108 91 90 111 91 91 194 98 90 169 90 109 91 94 91 91 141 90 171 90 155 90 111 91 90 130 90 91 90 97 90 90 109 91 94 91 91 121 90 90 90 90 90 90 99 90 165 119 90 106 90 90 91 109 91 94 91 91 93 90 95 90 113 90 99 90 156 90 90 90 138 170 109 91 94 91 91 92 90 169 90 90 90 107 90 90 91 90 95 91 91 109 91 93 90 171 90 90 91 90 91 90 91 129 144 90 90 120 90 91 91 169 90 91 109 90 95 245 90 131 135 90 90 154 90 91 91 91 111 90 90 91 91 128 91 96 91 109 91 94 91 91 124 91 105 91 119 91 132 99 90 90 90 150 160 116 91 91 91 90 96 90 91 93 91 116 91 151 90 109 111 127 91 113 91 169 186 90 90 158 91 90 90 90 117 91 160 90 91 96 90 90 91 109 91 94 91 90 95 91 90 147 167 90 160 90 160 104 90 90 91 91 101 139 91 90 136 129 90 109 91 93 91 123 91 118 90 91 108 91 91 90 90 90 90 143 91 92 177 129 101 167 91 90 90 91 130 127 90 137 91 93 90 91 91 94 229 107 91 90 104 91 91 101 91 91 93 90 119 90 133 90 91 93 145 91 132 91 109 91 93 91 137 90 166 91 102 90 104 91 96 96 91 90 90 90 166 90 90 93 90 90 109 90 93 91 91 128 90 139 91 90 97 91 124 157 91 90 90 129 144 91 91 147 130 91 90 90 91 90 140 90 92 90 91 123 270 90 125 90 90 90 94 137 123 90 145 136 90 91 100 91 105 91 153 91 90 145 155 109 91 93 91 92 91 139 90 91 91 90 96 130 97 91 164 90 97 91 90 91 114 90 90 118 90 90 123 270 90 125 90 90 90 94 137 123 90 145 136 90 91 100 91 105 91 153 91 90 145 155 109 90 93 91 91 148 91 90 151 90 91 163 108 151 112 144 90 149 90 90 99 90 109 91 94 91 91 124 91 126 91 140 162 148 90 90 119 90 91 109 91 93 91 155 106 91 91 96 90 90 91 108 90 156 90 90 120 90 112 91 99 91 109 91 93 91 129 148 91 93 154 90 134 91 91 90 91 91 111 91 91 91 91 90 109 91 93 91 129 148 91 93 154 90 134 91 91 90 91 91 111 91 91 91 91 90 109 91 93 91 129 149 91 90 90 142 219 90 99 91 109 115 92 185 91 109 90 93 91 91 142 90 98 90 91 125 114 127 90 111 90 109 91 93 91 130 91 90 134 90 90 103 122 156 112 90 183 117 91 152 141 90 98 90 91 93 91 116 91 131 91 95 188 113 91 91 147 122 91 173 91 91 133 247 92 91 109 91 93 90 156 91 91 94 91 90 147 117 91 144 90 91 128 100 91 90 105 91 91 93 91 116 91 106 91 155 90 106 90 167 90 90 91 148 123 111 155 91 105 90 90 92 90 124 90 91 109 91 94 91 91 95 91 90 97 143 171 90 105 90 91 144 91 90 90 90 94 90 90 90 109 91 93 91 92 90 158 90 94 270 172 130 90 91 91 96 90 90 147 91 109 91 93 91 92 90 162 90 129 91 91 91 90 137 99 90 90 111 91 153 90 90 90 109 91 95 125 128 90 90 90 172 90 90 90 119 91 113 247 90 144 90 140 90 109 90 93 91 90 95 91 91 139 90 147 90 90 99 117 91 157 91 126 90 90 91 160 90 91 91 91 111 90 90 113 90 91 109 91 94 91 90 99 90 112 90 91 105 90 121 118 103 90 144 117 95 91 109 91 94 91 91 124 90 144 90 90 90 165 119 90 104 90 100 90 90 90 109 91 94 91 91 179 91 90 94 91 114 90 166 90 90 90 91 117 90 96 90 90 95 91 91 109 91 94 91 91 95 91 90 150 90 140 90 91 90 171 90 118 91 111 90 104 91 109 91 93 91 97 91 90 91 120 90 95 91 143 90 90 90 90 91 109 90 95 245 90 95 90 123 91 90 115 142 91 109 91 94 91 91 124 91 90 91 91 90 91 90 141 90 172 91 161 90 169 228 90 109 91 94 91 91 93 90 91 91 90 100 90 94 90 108 90 91 91 119 1114 109 91 95 113 90 134 90 1114 109 90 93 91 90 95 91 91 138 157 96 90 120 91 97 107 90 90 93 188 109 90 93 91 90 95 91 91 138 157 96 90 120 91 97 107 90 90 93 188 109 90 93 91 90 95 91 91 138 157 96 90 120 91 97 107 90 90 93 188 109 91 93 91 92 90 97 91 116 91 93 115 90 91 130 ]]
#C a trailing "90" would mark a safe location for the first glider in a following copy of the recipe
[[ PASTE glider 254 250
X 40 Y 10 Z 2 STEP 9
T 11000
T 11001 STEP 64
T 249000
T 249001 STEP 9
T 251000 ]]

User avatar
rowett
Moderator
Posts: 1992
Joined: January 31st, 2013, 2:34 am
Location: UK
Contact:

Re: Pattern viewer for forum threads

Post by rowett » Yesterday, 1:58 am

dvgrn wrote:
April 1st, 2020, 12:25 pm
I was just looking for an example of a use of PASTET to fit a long single-channel recipe into LifeViewer's relatively small grid.
This has been fixed. Thanks for reporting!

Post Reply