Pattern viewer for forum threads

For discussion directly related to ConwayLife.com, such as requesting changes to how the forums or home page function.
unname4798
Posts: 1202
Joined: July 15th, 2023, 10:27 am
Location: On the highest skyscraper

Re: Pattern viewer for forum threads

Post by unname4798 » May 3rd, 2024, 11:03 am

rowett wrote:
May 3rd, 2024, 10:58 am
wirehead wrote:
May 1st, 2024, 8:47 pm
... can LifeViewer add a button for this when it detects it’s on a mobile device? sometimes I’m on my phone and can’t hit enter because the keyboard isn’t activated
Buttons: yes

Also I'm debating changing the Advance Selection functionality in LifeViewer to be more like Golly's:
  • In Golly the selection stays fixed size and the cells in the selection are advanced.
    In LifeViewer the selection adjusts to the size of the pattern in the selection as it evolves. Additionally the selection floats above cells in the pattern until you decide to drop it onto the grid (or Cancel).
Which is preferred?
The selection stays the same size and the cells in the selection are updated.
This profile is sponsored by Unname Inc. (2022-2024)
Status: none.
Companies: NOT (Nihonium Orange Team)

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

Re: Pattern viewer for forum threads

Post by dvgrn » May 3rd, 2024, 12:38 pm

I'm used to Golly's version of Advance Selection at this point, so I tend to find LifeViewer's floating-selection behavior kind of puzzling -- I don't expect to need an extra [Enter] after advancing.

Also, it's sometimes kind of hard to see what the advanced pattern looks like with some themes and scales.

On another topic, after several months of wrestling with this, I'm embarrassed to admit I still don't know how to get a chunk of RLE from the clipboard into LifeViewer. I have to do it by appending the RLE text to the end of the original RLE that LifeViewer is displaying, with some $$$$$$s instead of the ! and the second header; then I can copy/paste from the temporary location below the rest of the pattern, to put the new subpattern wherever I want it.

What is the actual trick I'm supposed to be using? Is it possible to make plain Ctrl+V work the way I wish it would?

User avatar
wirehead
Posts: 276
Joined: June 18th, 2022, 2:37 pm
Location: /dev/full
Contact:

Re: Pattern viewer for forum threads

Post by wirehead » May 3rd, 2024, 2:48 pm

rowett wrote:
May 3rd, 2024, 10:58 am
Additionally the selection floats above cells in the pattern until you decide to drop it onto the grid (or Cancel).
I think this is just rendering semantics, you could do it either way.
rowett wrote:
May 3rd, 2024, 10:58 am
Which is preferred?
As far as I’m concerned, advancing only a selection should behave as through the cells were transferred into a bounded plane (where the boundary cells are whatever they were in the selection, not 0, but frozen nevertheless), stepped, and then COPY-mode pasted back into the original pattern — the selection size does not change.
Langton's ant: Can't play the drums, can be taught.

User avatar
muzik
Posts: 5898
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » May 3rd, 2024, 8:16 pm

muzik wrote:
September 5th, 2023, 6:25 am
Some performance tests:
Results on my new PC (Windows 11, AMD Ryzen 5 7600 6-Core Processor, AMD Radeon RX 7800 XT Graphics Card, 32G RAM) with build 1140:

Brave:
Go To Gen 174762b:
- [R]Standard: 1.3s
- [R]History: 1.3s
- [R]Super: 6.1s
- [R]Investigator: 7.6s
- Ruletable: 3.3s
- Margolus: 1.4s
- General range: 6.1s

Identify:
- [R]Standard: 4.1s / 7.0s
- [R]History: 6.0s / 9.0s
- [R]Super: 14.8s / 22.5s
- [R]Investigator: 12.5s / 22.1s
- Ruletable: 7.5s / 12.4s
- Margolus: 4.4s / 7.3s
- General range: 13.7s / 21.2s


LibreWolf:
Go To Gen 174762b:
- [R]Standard: 1.3s
- [R]History: 1.3s
- [R]Super: 4.4s
- [R]Investigator: 6.5s
- Ruletable: 3.4s
- Margolus: 1.3s
- General range: 3.9s

Identify:
- [R]Standard: 6.4s / 9.2s
- [R]History: 6.9s / 9.8s
- [R]Super: 13.9s / 20.0s
- [R]Investigator: 13.8s / 22.0s
- Ruletable: 11.2s / 16.2s
- Margolus: 7.0s / 9.8s
- General range: 12.8s / 18.4s



It seems as though Chromium may have some sort of edge when it comes to pattern identification, whereas the opposite is true for simply reaching a generation the fastest, but more browser tests would be required to actually conclude this.

Hoping to get Linux results on this device soon as well, but there's some obstacles in the way that must be overcome first.

Also happy to report that this is the first time in a while I've been able to see pattern playback at any speed 1x and above where the slider isn't always red. This is probably since I can now use higher refresh rates, however a side effect I've noticed is that the frame counter can bleed outside of the timing details box as a result of this (kind of like how the deathforcer cell's name did in period map keys for a while):
fps-bleed.png
fps-bleed.png (28.5 KiB) Viewed 4738 times
Any chance we could get a higher amount of frames a second where hardware permits? It was stated here that we couldn't go above 60/s, but for my setup this is no longer a problem, so some way to increase this would not go unappreciated.
Parity Replicator Collection v1.6 is now live - please send all relevant discoveries here.

User avatar
muzik
Posts: 5898
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » May 4th, 2024, 1:38 pm

muzik wrote:
May 3rd, 2024, 8:16 pm
muzik wrote:
September 5th, 2023, 6:25 am
Some performance tests:
Hoping to get Linux results on this device soon as well, but there's some obstacles in the way that must be overcome first.
Same computer, Kubuntu 24.04 LTS, Firefox:

Go To Gen 174762b:
- [R]Standard: 1.4s
- [R]History: 1.7s
- [R]Super: 4.8s
- [R]Investigator: 6.8s
- Ruletable: 3.5s
- Margolus: 1.4s
- General range: 4.0s

Identify:
- [R]Standard: 6.9s / 9.9s
- [R]History: 7.3s / 10.4s
- [R]Super: 14.9s / 21.4s
- [R]Investigator: 14.9s / 23.5s
- Ruletable: 12.0s / 17.1s
- Margolus: 7.6s / 10.9s
- General range: 14.0s / 19.8s

This takes 119.0s for period and 212.4s total:

Code: Select all

x = 24, y = 25, rule = R6,C5,M1,S59..62,B12..17,NN
5$16.D$8.D$9.D6.2D$6.D12.D$5.C3DB6.B3D$5.2C12DC$5.2CB8D2B2C$6.2C4A7CB
$5.2B11C2B$5.6B2C4.2BA$5.2AB.9B2A$6.2A2.2A4B4A$7.12A$10.3A!
[[ SHOWTIMING EXTENDEDTIMING ]]
This takes 284.1s for period and 308.7s total:

Code: Select all

x = 10, y = 4, rule = B2-an3-iq4-acqw5aijq6aen7e8/S02k3nqy4inqrtwy5-ekq6-i78
3bo2bo$b8o$2ob4ob2o$bob4obo!
[[ SHOWTIMING EXTENDEDTIMING ]]
This takes 240.1s for period and 302.8s total:

Code: Select all

x = 100, y = 100, rule = R45,C2,S2884-4922,B2500-4973
40b20o$36b9o10b9o$34b7o5b8o5b7o$32b6o6b12o6b6o$30b6o6b16o6b6o$28b6o5b
22o5b6o$27b5o5b26o5b5o$25b6o3b32o3b6o$24b5o4b34o4b5o$22b6o3b38o3b6o$
21b6o2b42o2b6o$20b6o2b44o2b6o$19b6o2b46o2b6o$18b6ob50ob6o$16b7ob52ob7o
$15b7ob54ob7o$15b6ob56ob6o$14b6ob58ob6o$13b6ob60ob6o$12b6ob62ob6o$11b
6ob64ob6o$10b6ob66ob6o$9b6ob68ob6o$9b82o$8b84o$7b5ob74ob5o$7b4ob76ob4o
$6b4ob78ob4o$5b90o$5b43o4b43o$4b4ob34o14b34ob4o$4b37o18b37o$3b37o20b
37o$3b3ob32o22b32ob3o$3b34o26b34o$2b4ob29o28b29ob4o$2b33o30b33o$2b32o
32b32o$b33o32b33o$b32o34b32o$b31o36b31o$b31o36b31o$31o38b31o$31o38b31o
$31o38b31o$30o40b30o$30o40b30o$30o40b30o$30o40b30o$31o38b31o$31o38b31o
$31o38b31o$31o38b31o$3ob27o38b27ob3o$3ob28o36b28ob3o$b3ob27o36b27ob3o$
b3ob27o36b27ob3o$b2o3b27o34b27o3b2o$b3o2b28o32b28o2b3o$b3o3b27o32b27o
3b3o$2b2o3b28o30b28o3b2o$2b3o2b29o28b29o2b3o$2b3o3b29o26b29o3b3o$3b3o
2b30o24b30o2b3o$3b3o3b30o22b30o3b3o$4b3o2b32o18b32o2b3o$4b3o3b32o16b
32o3b3o$5b3o2b34o12b34o2b3o$5b3o3b78o3b3o$6b3o3b76o3b3o$6b4o2b76o2b4o$
7b4o2b74o2b4o$7b4o3b72o3b4o$8b4o2b72o2b4o$9b4o2b70o2b4o$9b5o2b68o2b5o$
10b5o2b66o2b5o$11b6ob64ob6o$12b6ob62ob6o$13b6ob60ob6o$13b7ob58ob7o$14b
7ob56ob7o$15b7ob54ob7o$16b7ob52ob7o$17b7ob50ob7o$18b7ob48ob7o$19b7ob
46ob7o$20b8ob42ob8o$22b7ob40ob7o$23b8ob36ob8o$24b8o2b32o2b8o$26b8o2b
28o2b8o$27b9o2b24o2b9o$29b10o2b18o2b10o$31b10o2b14o2b10o$33b34o$35b30o
$38b24o$41b18o$48b4o!
[[ SHOWTIMING EXTENDEDTIMING ]]
This takes 1205.7s for period and 1733.1s total:

Code: Select all

x = 589, y = 589, rule = B378/S23:T589
130bo176bo26b2o176b2o$128b2o205bo176bo26b2o$128bo26b2o176b2o205bo$156b
o176bo26b2o176b2o$154b2o205bo176bo26b2o$154bo26b2o176b2o205bo$182bo
176bo26b2o176b2o$2b2o176b2o205bo176bo$3bo176bo26b2o176b2o$b2o205bo176b
o26b2o$bo26b2o176b2o205bo$29bo176bo26b2o176b2o$27b2o205bo176bo26b2o$
27bo26b2o176b2o205bo$55bo176bo26b2o176b2o$53b2o205bo176bo26b2o$53bo26b
2o176b2o205bo$81bo176bo26b2o176b2o$79b2o205bo176bo26b2o$79bo26b2o176b
2o205bo$107bo176bo26b2o176b2o$105b2o205bo176bo26b2o$105bo26b2o176b2o
205bo$133bo176bo26b2o176b2o$131b2o205bo176bo26b2o$131bo26b2o176b2o205b
o$159bo176bo26b2o176b2o$157b2o205bo176bo26b2o$157bo26b2o176b2o205bo$
185bo176bo26b2o176b2o$5b2o176b2o205bo176bo$6bo176bo26b2o176b2o$4b2o
205bo176bo26b2o$4bo26b2o176b2o205bo$32bo176bo26b2o176b2o$30b2o205bo
176bo26b2o$30bo26b2o176b2o205bo$58bo176bo26b2o176b2o$56b2o205bo176bo
26b2o$56bo26b2o176b2o205bo$84bo176bo26b2o176b2o$82b2o205bo176bo26b2o$
82bo26b2o176b2o205bo$110bo176bo26b2o176b2o$108b2o205bo176bo26b2o$108bo
26b2o176b2o205bo$136bo176bo26b2o176b2o$134b2o205bo176bo26b2o$134bo26b
2o176b2o205bo$162bo176bo26b2o176b2o$160b2o205bo176bo26b2o$160bo26b2o
176b2o205bo$188bo176bo26b2o176b2o$8b2o176b2o205bo176bo$9bo176bo26b2o
176b2o$7b2o205bo176bo26b2o$7bo26b2o176b2o205bo$35bo176bo26b2o176b2o$
33b2o205bo176bo26b2o$33bo26b2o176b2o205bo$61bo176bo26b2o176b2o$59b2o
205bo176bo26b2o$59bo26b2o176b2o205bo$87bo176bo26b2o176b2o$85b2o205bo
176bo26b2o$85bo26b2o176b2o205bo$113bo176bo26b2o176b2o$111b2o205bo176bo
26b2o$111bo26b2o176b2o205bo$139bo176bo26b2o176b2o$137b2o205bo176bo26b
2o$137bo26b2o176b2o205bo$165bo176bo26b2o176b2o$163b2o205bo176bo26b2o$
163bo26b2o176b2o205bo$191bo176bo26b2o176b2o$11b2o176b2o205bo176bo$12bo
176bo26b2o176b2o$10b2o205bo176bo26b2o$10bo26b2o176b2o205bo$38bo176bo
26b2o176b2o$36b2o205bo176bo26b2o$36bo26b2o176b2o205bo$64bo176bo26b2o
176b2o$62b2o205bo176bo26b2o$62bo26b2o176b2o205bo$90bo176bo26b2o176b2o$
88b2o205bo176bo26b2o$88bo26b2o176b2o205bo$116bo176bo26b2o176b2o$114b2o
205bo176bo26b2o$114bo26b2o176b2o205bo$142bo176bo26b2o176b2o$140b2o205b
o176bo26b2o$140bo26b2o176b2o205bo$168bo176bo26b2o176b2o$166b2o205bo
176bo26b2o$166bo26b2o176b2o205bo$194bo176bo26b2o176b2o$14b2o176b2o205b
o176bo$15bo176bo26b2o176b2o$13b2o205bo176bo26b2o$13bo26b2o176b2o205bo$
41bo176bo26b2o176b2o$39b2o205bo176bo26b2o$39bo26b2o176b2o205bo$67bo
176bo26b2o176b2o$65b2o205bo176bo26b2o$65bo26b2o176b2o205bo$93bo176bo
26b2o176b2o$91b2o205bo176bo26b2o$91bo26b2o176b2o205bo$119bo176bo26b2o
176b2o$117b2o205bo176bo26b2o$117bo26b2o176b2o205bo$145bo176bo26b2o176b
2o$143b2o205bo176bo26b2o$143bo26b2o176b2o205bo$171bo176bo26b2o176b2o$
169b2o205bo176bo26b2o$169bo26b2o176b2o205bo$197bo176bo26b2o176b2o$17b
2o176b2o205bo176bo$18bo176bo26b2o176b2o$16b2o205bo176bo26b2o$16bo26b2o
176b2o205bo$44bo176bo26b2o176b2o$42b2o205bo176bo26b2o$42bo26b2o176b2o
205bo$70bo176bo26b2o176b2o$68b2o205bo176bo26b2o$68bo26b2o176b2o205bo$
96bo176bo26b2o176b2o$94b2o205bo176bo26b2o$94bo26b2o176b2o205bo$122bo
176bo26b2o176b2o$120b2o205bo176bo26b2o$120bo26b2o176b2o205bo$148bo176b
o26b2o176b2o$146b2o205bo176bo26b2o$146bo26b2o176b2o205bo$174bo176bo26b
2o176b2o$172b2o205bo176bo26b2o$172bo26b2o176b2o205bo$200bo176bo26b2o
176b2o$20b2o176b2o205bo176bo$21bo176bo26b2o176b2o$19b2o205bo176bo26b2o
$19bo26b2o176b2o205bo$47bo176bo26b2o176b2o$45b2o205bo176bo26b2o$45bo
26b2o176b2o205bo$73bo176bo26b2o176b2o$71b2o205bo176bo26b2o$71bo26b2o
176b2o205bo$99bo176bo26b2o176b2o$97b2o205bo176bo26b2o$97bo26b2o176b2o
205bo$125bo176bo26b2o176b2o$123b2o205bo176bo26b2o$123bo26b2o176b2o205b
o$151bo176bo26b2o176b2o$149b2o205bo176bo26b2o$149bo26b2o176b2o205bo$
177bo176bo26b2o176b2o$175b2o205bo176bo26b2o$175bo26b2o176b2o205bo$203b
o176bo26b2o176b2o$23b2o176b2o205bo176bo$24bo176bo26b2o176b2o$22b2o205b
o176bo26b2o$22bo26b2o176b2o205bo$50bo176bo26b2o176b2o$48b2o205bo176bo
26b2o$48bo26b2o176b2o205bo$76bo176bo26b2o176b2o$74b2o205bo176bo26b2o$
74bo26b2o176b2o205bo$102bo176bo26b2o176b2o$100b2o205bo176bo26b2o$100bo
26b2o176b2o205bo$128bo176bo26b2o176b2o$126b2o205bo176bo26b2o$126bo26b
2o176b2o205bo$154bo176bo26b2o176b2o$152b2o205bo176bo26b2o$152bo26b2o
176b2o205bo$180bo176bo26b2o176b2o$2o176b2o205bo176bo$bo176bo26b2o176b
2o$o205bo176bo26b2o176bo$26b2o176b2o205bo176bo$27bo176bo26b2o176b2o$
25b2o205bo176bo26b2o$25bo26b2o176b2o205bo$53bo176bo26b2o176b2o$51b2o
205bo176bo26b2o$51bo26b2o176b2o205bo$79bo176bo26b2o176b2o$77b2o205bo
176bo26b2o$77bo26b2o176b2o205bo$105bo176bo26b2o176b2o$103b2o205bo176bo
26b2o$103bo26b2o176b2o205bo$131bo176bo26b2o176b2o$129b2o205bo176bo26b
2o$129bo26b2o176b2o205bo$157bo176bo26b2o176b2o$155b2o205bo176bo26b2o$
155bo26b2o176b2o205bo$183bo176bo26b2o176b2o$3b2o176b2o205bo176bo$4bo
176bo26b2o176b2o$2b2o205bo176bo26b2o$2bo26b2o176b2o205bo$30bo176bo26b
2o176b2o$28b2o205bo176bo26b2o$28bo26b2o176b2o205bo$56bo176bo26b2o176b
2o$54b2o205bo176bo26b2o$54bo26b2o176b2o205bo$82bo176bo26b2o176b2o$80b
2o205bo176bo26b2o$80bo26b2o176b2o205bo$108bo176bo26b2o176b2o$106b2o
205bo176bo26b2o$106bo26b2o176b2o205bo$134bo176bo26b2o176b2o$132b2o205b
o176bo26b2o$132bo26b2o176b2o205bo$160bo176bo26b2o176b2o$158b2o205bo
176bo26b2o$158bo26b2o176b2o205bo$186bo176bo26b2o176b2o$6b2o176b2o205bo
176bo$7bo176bo26b2o176b2o$5b2o205bo176bo26b2o$5bo26b2o176b2o205bo$33bo
176bo26b2o176b2o$31b2o205bo176bo26b2o$31bo26b2o176b2o205bo$59bo176bo
26b2o176b2o$57b2o205bo176bo26b2o$57bo26b2o176b2o205bo$85bo176bo26b2o
176b2o$83b2o205bo176bo26b2o$83bo26b2o176b2o205bo$111bo176bo26b2o176b2o
$109b2o205bo176bo26b2o$109bo26b2o176b2o205bo$137bo176bo26b2o176b2o$
135b2o205bo176bo26b2o$135bo26b2o176b2o205bo$163bo176bo26b2o176b2o$161b
2o205bo176bo26b2o$161bo26b2o176b2o205bo$189bo176bo26b2o176b2o$9b2o176b
2o205bo176bo$10bo176bo26b2o176b2o$8b2o205bo176bo26b2o$8bo26b2o176b2o
205bo$36bo176bo26b2o176b2o$34b2o205bo176bo26b2o$34bo26b2o176b2o205bo$
62bo176bo26b2o176b2o$60b2o205bo176bo26b2o$60bo26b2o176b2o205bo$88bo
176bo26b2o176b2o$86b2o205bo176bo26b2o$86bo26b2o176b2o205bo$114bo176bo
26b2o176b2o$112b2o205bo176bo26b2o$112bo26b2o176b2o205bo$140bo176bo26b
2o176b2o$138b2o205bo176bo26b2o$138bo26b2o176b2o205bo$166bo176bo26b2o
176b2o$164b2o205bo176bo26b2o$164bo26b2o176b2o205bo$192bo176bo26b2o176b
2o$12b2o176b2o205bo176bo$13bo176bo26b2o176b2o$11b2o205bo176bo26b2o$11b
o26b2o176b2o205bo$39bo176bo26b2o176b2o$37b2o205bo176bo26b2o$37bo26b2o
176b2o205bo$65bo176bo26b2o176b2o$63b2o205bo176bo26b2o$63bo26b2o176b2o
205bo$91bo176bo26b2o176b2o$89b2o205bo176bo26b2o$89bo26b2o176b2o205bo$
117bo176bo26b2o176b2o$115b2o205bo176bo26b2o$115bo26b2o176b2o205bo$143b
o176bo26b2o176b2o$141b2o205bo176bo26b2o$141bo26b2o176b2o205bo$169bo
176bo26b2o176b2o$167b2o205bo176bo26b2o$167bo26b2o176b2o205bo$195bo176b
o26b2o176b2o$15b2o176b2o205bo176bo$16bo176bo26b2o176b2o$14b2o205bo176b
o26b2o$14bo26b2o176b2o205bo$42bo176bo26b2o176b2o$40b2o205bo176bo26b2o$
40bo26b2o176b2o205bo$68bo176bo26b2o176b2o$66b2o205bo176bo26b2o$66bo26b
2o176b2o205bo$94bo176bo26b2o176b2o$92b2o205bo176bo26b2o$92bo26b2o176b
2o205bo$120bo176bo26b2o176b2o$118b2o205bo176bo26b2o$118bo26b2o176b2o
205bo$146bo176bo26b2o176b2o$144b2o205bo176bo26b2o$144bo26b2o176b2o205b
o$172bo176bo26b2o176b2o$170b2o205bo176bo26b2o$170bo26b2o176b2o205bo$
198bo176bo26b2o176b2o$18b2o176b2o205bo176bo$19bo176bo26b2o176b2o$17b2o
205bo176bo26b2o$17bo26b2o176b2o205bo$45bo176bo26b2o176b2o$43b2o205bo
176bo26b2o$43bo26b2o176b2o205bo$71bo176bo26b2o176b2o$69b2o205bo176bo
26b2o$69bo26b2o176b2o205bo$97bo176bo26b2o176b2o$95b2o205bo176bo26b2o$
95bo26b2o176b2o205bo$123bo176bo26b2o176b2o$121b2o205bo176bo26b2o$121bo
26b2o176b2o205bo$149bo176bo26b2o176b2o$147b2o205bo176bo26b2o$147bo26b
2o176b2o205bo$175bo176bo26b2o176b2o$173b2o205bo176bo26b2o$173bo26b2o
176b2o205bo$201bo176bo26b2o176b2o$21b2o176b2o205bo176bo$22bo176bo26b2o
176b2o$20b2o205bo176bo26b2o$20bo26b2o176b2o205bo$48bo176bo26b2o176b2o$
46b2o205bo176bo26b2o$46bo26b2o176b2o205bo$74bo176bo26b2o176b2o$72b2o
205bo176bo26b2o$72bo26b2o176b2o205bo$100bo176bo26b2o176b2o$98b2o205bo
176bo26b2o$98bo26b2o176b2o205bo$126bo176bo26b2o176b2o$124b2o205bo176bo
26b2o$124bo26b2o176b2o205bo$152bo176bo26b2o176b2o$150b2o205bo176bo26b
2o$150bo26b2o176b2o205bo$178bo176bo26b2o176b2o$176b2o205bo176bo26b2o$
176bo26b2o176b2o205bo$204bo176bo26b2o176b2o$24b2o176b2o205bo176bo$25bo
176bo26b2o176b2o$23b2o205bo176bo26b2o$23bo26b2o176b2o205bo$51bo176bo
26b2o176b2o$49b2o205bo176bo26b2o$49bo26b2o176b2o205bo$77bo176bo26b2o
176b2o$75b2o205bo176bo26b2o$75bo26b2o176b2o205bo$103bo176bo26b2o176b2o
$101b2o205bo176bo26b2o$101bo26b2o176b2o205bo$129bo176bo26b2o176b2o$
127b2o205bo176bo26b2o$127bo26b2o176b2o205bo$155bo176bo26b2o176b2o$153b
2o205bo176bo26b2o$153bo26b2o176b2o205bo$181bo176bo26b2o176b2o$b2o176b
2o205bo176bo$2bo176bo26b2o176b2o$2o205bo176bo26b2o$o26b2o176b2o205bo$
28bo176bo26b2o176b2o$26b2o205bo176bo26b2o$26bo26b2o176b2o205bo$54bo
176bo26b2o176b2o$52b2o205bo176bo26b2o$52bo26b2o176b2o205bo$80bo176bo
26b2o176b2o$78b2o205bo176bo26b2o$78bo26b2o176b2o205bo$106bo176bo26b2o
176b2o$104b2o205bo176bo26b2o$104bo26b2o176b2o205bo$132bo176bo26b2o176b
2o$130b2o205bo176bo26b2o$130bo26b2o176b2o205bo$158bo176bo26b2o176b2o$
156b2o205bo176bo26b2o$156bo26b2o176b2o205bo$184bo176bo26b2o176b2o$4b2o
176b2o205bo176bo$5bo176bo26b2o176b2o$3b2o205bo176bo26b2o$3bo26b2o176b
2o205bo$31bo176bo26b2o176b2o$29b2o205bo176bo26b2o$29bo26b2o176b2o205bo
$57bo176bo26b2o176b2o$55b2o205bo176bo26b2o$55bo26b2o176b2o205bo$83bo
176bo26b2o176b2o$81b2o205bo176bo26b2o$81bo26b2o176b2o205bo$109bo176bo
26b2o176b2o$107b2o205bo176bo26b2o$107bo26b2o176b2o205bo$135bo176bo26b
2o176b2o$133b2o205bo176bo26b2o$133bo26b2o176b2o205bo$161bo176bo26b2o
176b2o$159b2o205bo176bo26b2o$159bo26b2o176b2o205bo$187bo176bo26b2o176b
2o$7b2o176b2o205bo176bo$8bo176bo26b2o176b2o$6b2o205bo176bo26b2o$6bo26b
2o176b2o205bo$34bo176bo26b2o176b2o$32b2o205bo176bo26b2o$32bo26b2o176b
2o205bo$60bo176bo26b2o176b2o$58b2o205bo176bo26b2o$58bo26b2o176b2o205bo
$86bo176bo26b2o176b2o$84b2o205bo176bo26b2o$84bo26b2o176b2o205bo$112bo
176bo26b2o176b2o$110b2o205bo176bo26b2o$110bo26b2o176b2o205bo$138bo176b
o26b2o176b2o$136b2o205bo176bo26b2o$136bo26b2o176b2o205bo$164bo176bo26b
2o176b2o$162b2o205bo176bo26b2o$162bo26b2o176b2o205bo$190bo176bo26b2o
176b2o$10b2o176b2o205bo176bo$11bo176bo26b2o176b2o$9b2o205bo176bo26b2o$
9bo26b2o176b2o205bo$37bo176bo26b2o176b2o$35b2o205bo176bo26b2o$35bo26b
2o176b2o205bo$63bo176bo26b2o176b2o$61b2o205bo176bo26b2o$61bo26b2o176b
2o205bo$89bo176bo26b2o176b2o$87b2o205bo176bo26b2o$87bo26b2o176b2o205bo
$115bo176bo26b2o176b2o$113b2o205bo176bo26b2o$113bo26b2o176b2o205bo$
141bo176bo26b2o176b2o$139b2o205bo176bo26b2o$139bo26b2o176b2o205bo$167b
o176bo26b2o176b2o$165b2o205bo176bo26b2o$165bo26b2o176b2o205bo$193bo
176bo26b2o176b2o$13b2o176b2o205bo176bo$14bo176bo26b2o176b2o$12b2o205bo
176bo26b2o$12bo26b2o176b2o205bo$40bo176bo26b2o176b2o$38b2o205bo176bo
26b2o$38bo26b2o176b2o205bo$66bo176bo26b2o176b2o$64b2o205bo176bo26b2o$
64bo26b2o176b2o205bo$92bo176bo26b2o176b2o$90b2o205bo176bo26b2o$90bo26b
2o176b2o205bo$118bo176bo26b2o176b2o$116b2o205bo176bo26b2o$116bo26b2o
176b2o205bo$144bo176bo26b2o176b2o$142b2o205bo176bo26b2o$142bo26b2o176b
2o205bo$170bo176bo26b2o176b2o$168b2o205bo176bo26b2o$168bo26b2o176b2o
205bo$196bo176bo26b2o176b2o$16b2o176b2o205bo176bo$17bo176bo26b2o176b2o
$15b2o205bo176bo26b2o$15bo26b2o176b2o205bo$43bo176bo26b2o176b2o$41b2o
205bo176bo26b2o$41bo26b2o176b2o205bo$69bo176bo26b2o176b2o$67b2o205bo
176bo26b2o$67bo26b2o176b2o205bo$95bo176bo26b2o176b2o$93b2o205bo176bo
26b2o$93bo26b2o176b2o205bo$121bo176bo26b2o176b2o$119b2o205bo176bo26b2o
$119bo26b2o176b2o205bo$147bo176bo26b2o176b2o$145b2o205bo176bo26b2o$
145bo26b2o176b2o205bo$173bo176bo26b2o176b2o$171b2o205bo176bo26b2o$171b
o26b2o176b2o205bo$199bo176bo26b2o176b2o$19b2o176b2o205bo176bo$20bo176b
o26b2o176b2o$18b2o205bo176bo26b2o$18bo26b2o176b2o205bo$46bo176bo26b2o
176b2o$44b2o205bo176bo26b2o$44bo26b2o176b2o205bo$72bo176bo26b2o176b2o$
70b2o205bo176bo26b2o$70bo26b2o176b2o205bo$98bo176bo26b2o176b2o$96b2o
205bo176bo26b2o$96bo26b2o176b2o205bo$124bo176bo26b2o176b2o$122b2o205bo
176bo26b2o$122bo26b2o176b2o205bo$150bo176bo26b2o176b2o$148b2o205bo176b
o26b2o$148bo26b2o176b2o205bo$176bo176bo26b2o176b2o$174b2o205bo176bo26b
2o$174bo26b2o176b2o205bo$202bo176bo26b2o176b2o$22b2o176b2o205bo176bo$
23bo176bo26b2o176b2o$21b2o205bo176bo26b2o$21bo26b2o176b2o205bo$49bo
176bo26b2o176b2o$47b2o205bo176bo26b2o$47bo26b2o176b2o205bo$75bo176bo
26b2o176b2o$73b2o205bo176bo26b2o$73bo26b2o176b2o205bo$101bo176bo26b2o
176b2o$99b2o205bo176bo26b2o$99bo26b2o176b2o205bo$127bo176bo26b2o176b2o
$125b2o205bo176bo26b2o$125bo26b2o176b2o205bo$153bo176bo26b2o176b2o$
151b2o205bo176bo26b2o$151bo26b2o176b2o205bo$179bo176bo26b2o176b2o$o
176b2o205bo176bo26bo$o176bo26b2o176b2o$205bo176bo26b2o176b2o$25b2o176b
2o205bo176bo$26bo176bo26b2o176b2o$24b2o205bo176bo26b2o$24bo26b2o176b2o
205bo$52bo176bo26b2o176b2o$50b2o205bo176bo26b2o$50bo26b2o176b2o205bo$
78bo176bo26b2o176b2o$76b2o205bo176bo26b2o$76bo26b2o176b2o205bo$104bo
176bo26b2o176b2o$102b2o205bo176bo26b2o$102bo26b2o176b2o205bo!
[[ SHOWTIMING EXTENDEDTIMING ]]
I may or may not test with other browsers soon.
Parity Replicator Collection v1.6 is now live - please send all relevant discoveries here.

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

Re: Pattern viewer for forum threads

Post by rowett » May 16th, 2024, 4:32 am

dvgrn wrote:
May 3rd, 2024, 12:38 pm
I still don't know how to get a chunk of RLE from the clipboard into LifeViewer.

What is the actual trick I'm supposed to be using? Is it possible to make plain Ctrl+V work the way I wish it would?
Try build 1142. When the Sync button is enabled LifeViewer will attempt to use the system clipboard when Paste is triggered.

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

Re: Pattern viewer for forum threads

Post by rowett » May 28th, 2024, 10:49 am

Build 1145 of LifeViewer improves on Paste when using the system clipboard.

LifeViewer will automatically convert between [R]Standard, [R]History, [R]Super and [R]Investigator on Paste.

Current rule:
  • [R]Standard
    • Clipboard rule:
      • [R]History - odd states to 1, even states to 0
      • [R]Super - odd states to 1, even states to 0
      • [R]Investigator - states 0 and 1 unchanged, states >= 2 to 0
  • [R]History
    • Clipboard rule:
      • [R]Standard - states 0 and 1 unchanged
      • [R]Super - states 0 to 6 unchanged, state 7 to 3, state 8 to 4, states 9 and 11 to 1, states 10 and 12 to 2, states 13, 15, 17, 19, 21, 23 and 25 to 1, states 14, 16, 18, 20, 22,and 24 to 0
      • [R]Investigator - states 0 and 1 unchanged, state 3 to 6, other states >= 2 to 0
  • [R]Super
    • Clipboard rule:
      • [R]Standard - states 0 and 1 unchanged
      • [R]History - states 0 to 6 unchanged
      • [R]Investigator - states 0 and 1 unchanged, state 3 to 6, other states >= 2 to 0
  • [R]Investigator
    • Clipboard rule:
      • [R]Standard - states 0 and 1 unchanged
      • [R]History - states 0 and 1 unchanged, state 6 to state 3, other states >= 2 to 0
      • [R]Super - states 0 and 1 unchanged, state 6 to state 3, other states >= 2 to 0
For other rules LifeViewer will treat any out of range state as state 0.

LifeViewer will use the system clipboard when the Sync button is enabled. If it is disabled then it will use internal clipboards.

User avatar
muzik
Posts: 5898
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » May 29th, 2024, 6:12 am

A random idea I've had on the back of my mind for a while now: would it be possible to colour-code the different edges of bounded grids to make it clear which side is connected to which other side?

For example, this:

Code: Select all

x = 20, y = 20, rule = B3/S2-i34q:T20,20
3$3b3o$4bo10$3bo$3b2o$3bo!
could look like this:

Code: Select all

x = 22, y = 22, rule = B3/S2-i34qSuper
F20IF$E20.E$E20.E$E20.E$E3.3A14.E$E4.A15.E$E20.E$E20.E$E20.E$E20.E$E20.
E$E20.E$E20.E$E20.E$E20.E$E3.A16.E$E3.2A15.E$E3.A16.E$E20.E$E20.E$E20.
E$F20IF!
[[ VIEWONLY COLOR on 0 255 255 COLOR 6 128 128 128 COLOR 5 192 192 128 COLOR 9 128 128 192 ]]
And this:

Code: Select all

x = 20, y = 20, rule = B3/S2-i34q:S20
3$3b3o$4bo10$3bo$3b2o$3bo!
could look like this:

Code: Select all

x = 22, y = 22, rule = B3/S2-i34qSuper
21EF$E20.I$E20.I$E20.I$E3.3A14.I$E4.A15.I$E20.I$E20.I$E20.I$E20.I$E20.
I$E20.I$E20.I$E20.I$E20.I$E3.A16.I$E3.2A15.I$E3.A16.I$E20.I$E20.I$E20.
I$F21I!
[[ VIEWONLY COLOR on 0 255 255 COLOR 6 128 128 128 COLOR 5 192 192 128 COLOR 9 128 128 192 ]]
There's been a handful of occasions in both Golly and LifeViewer where the lack of such indication has proven confusing, so something like this would go a long way, The standard gray colour would still be used for Plane bounded grids as well as the four corner cells of other bounded grids (unless two adjacent sides are the same colour as in Sphere).
Parity Replicator Collection v1.6 is now live - please send all relevant discoveries here.

User avatar
confocaloid
Posts: 4643
Joined: February 8th, 2022, 3:15 pm
Location: https://catagolue.hatsya.com/census/b3s234c/C4_4/xp62

Re: Pattern viewer for forum threads

Post by confocaloid » May 29th, 2024, 7:05 am

muzik wrote:
May 29th, 2024, 6:12 am
A random idea I've had on the back of my mind for a while now: would it be possible to colour-code the different edges of bounded grids to make it clear which side is connected to which other side? [...]
Sounds interesting. I think you would need some sort of arrows along the edges (as in a gluing diagram), otherwise it would be impossible to distinguish a torus from a Klein bottle.

One other idea regarding bounded universes: there could be a way to specify more or less arbitrary shapes for a torus, as long as the chosen shape is a polyomino that tiles the plane by translations only. For example, any inflated X-pentomino could be used, with the edges glued to each other as shown below. Certainly not a trivial feature, maybe more like yet another idea to think about:
gluing-diagram.png
gluing-diagram.png (1.65 KiB) Viewed 4535 times
127:1 B3/S234c User:Confocal/R (isotropic CA, incomplete)
Unlikely events happen.
My silence does not imply agreement, nor indifference. If I disagreed with something in the past, then please do not construe my silence as something that could change that.

User avatar
squareroot12621
Posts: 682
Joined: March 23rd, 2022, 4:53 pm

Re: Pattern viewer for forum threads

Post by squareroot12621 » May 29th, 2024, 10:11 am

confocaloid wrote:
May 29th, 2024, 7:05 am
...
Sounds interesting. I think you would need some sort of arrows along the edges (as in a gluing diagram), otherwise it would be impossible to distinguish a torus from a Klein bottle.
...or from either of these things with a shift. You would have to do something like this instead.

Code: Select all

x = 34, y = 34, rule = B3/S2-i34qSuper
20.I$10.I10.I$10.13I$10.I10.I$20.I2$6.22F$6.F20.F$6.F20.F$6.F20.F$6.F
3.3A14.F$.3E2.F4.A15.F2.3E$2.E3.F20.F3.E$2.E3.F20.F3.E$2.E3.F20.F3.E$
2.E3.F20.F3.E$2.E3.F20.F3.E$2.E3.F20.F3.E$2.E3.F20.F3.E$2.E3.F20.F3.E
$2.E3.F20.F3.E$E.E.E.F3.A16.F.E.E.E$.3E2.F3.2A15.F2.3E$2.E3.F3.A16.F3.
E$6.F20.F$6.F20.F$6.F20.F$6.22F2$20.I$10.I10.I$10.13I$10.I10.I$20.I!
[[ VIEWONLY COLOR on 0 255 255 COLOR 6 128 128 128 COLOR 5 192 192 128 COLOR 9 128 128 192 ]]
I removed the color-coding on the walls since it would kind of just fall apart with custom ruletables and custom colors.

User avatar
squareroot12621
Posts: 682
Joined: March 23rd, 2022, 4:53 pm

Re: Pattern viewer for forum threads

Post by squareroot12621 » May 31st, 2024, 4:59 pm

Double-posting due to a bug.
If you copy a pattern and then paste it, you'll get "Could not decode system clipboard". This only occurs when the rule being used is a ruletable that isn't on LifeWiki.

unname4798
Posts: 1202
Joined: July 15th, 2023, 10:27 am
Location: On the highest skyscraper

Re: Pattern viewer for forum threads

Post by unname4798 » June 3rd, 2024, 2:06 am

rowett wrote:
May 3rd, 2024, 10:58 am
wirehead wrote:
May 1st, 2024, 8:47 pm
... can LifeViewer add a button for this when it detects it’s on a mobile device? sometimes I’m on my phone and can’t hit enter because the keyboard isn’t activated
Buttons: yes

Also I'm debating changing the Advance Selection functionality in LifeViewer to be more like Golly's:
  • In Golly the selection stays fixed size and the cells in the selection are advanced.
    In LifeViewer the selection adjusts to the size of the pattern in the selection as it evolves. Additionally the selection floats above cells in the pattern until you decide to drop it onto the grid (or Cancel).
Which is preferred?
The selection stays the same size. All cells in the selection are updated.
EDIT:
Please, add parallel elementary cellular automata. (Parallel means each line is evolved independently of the other lines)
Also, please add "Choose a rule type" box. You can select a rule from a few rules in the box with the same name.
This profile is sponsored by Unname Inc. (2022-2024)
Status: none.
Companies: NOT (Nihonium Orange Team)

User avatar
confocaloid
Posts: 4643
Joined: February 8th, 2022, 3:15 pm
Location: https://catagolue.hatsya.com/census/b3s234c/C4_4/xp62

Re: Pattern viewer for forum threads

Post by confocaloid » June 3rd, 2024, 4:04 am

unname4798 wrote:
June 3rd, 2024, 2:06 am
[...]
Please, add parallel elementary cellular automata. (Parallel means each line is evolved independently of the other lines)
[...]
To clarify: do you mean CA like this? (Note that these can already be explored using weighted neighbourhoods.)

Code: Select all

x = 12, y = 14, rule = R1,C0,S0,1,2,B2,3,NW000102000
11bo5$o2bo2b3o$2bobo5bo$ob3o3bobo$o3b2o2bobo$2o2b2o2bobo$2obob2ob2o$o
2b2o2bobobo$o9bo$4b4o2bo!

The weighted neighbourhood is this:
0 0 0
1 0 2
0 0 0
127:1 B3/S234c User:Confocal/R (isotropic CA, incomplete)
Unlikely events happen.
My silence does not imply agreement, nor indifference. If I disagreed with something in the past, then please do not construe my silence as something that could change that.

unname4798
Posts: 1202
Joined: July 15th, 2023, 10:27 am
Location: On the highest skyscraper

Re: Pattern viewer for forum threads

Post by unname4798 » June 3rd, 2024, 5:45 am

confocaloid wrote:
June 3rd, 2024, 4:04 am
unname4798 wrote:
June 3rd, 2024, 2:06 am
[...]
Please, add parallel elementary cellular automata. (Parallel means each line is evolved independently of the other lines)
[...]
To clarify: do you mean CA like this? (Note that these can already be explored using weighted neighbourhoods.)

Code: Select all

x = 12, y = 14, rule = R1,C0,S0,1,2,B2,3,NW000102000
11bo5$o2bo2b3o$2bobo5bo$ob3o3bobo$o3b2o2bobo$2o2b2o2bobo$2obob2ob2o$o
2b2o2bobobo$o9bo$4b4o2bo!

The weighted neighbourhood is this:
0 0 0
1 0 2
0 0 0
W110 is shorter.
Edit: Please, add support for HRC1D (high-range chiral 1D rules)
This profile is sponsored by Unname Inc. (2022-2024)
Status: none.
Companies: NOT (Nihonium Orange Team)

User avatar
b-engine
Posts: 2242
Joined: October 26th, 2023, 4:11 am
Location: Somewhere on earth

Re: Pattern viewer for forum threads

Post by b-engine » June 3rd, 2024, 7:12 am

unname4798 wrote:
June 3rd, 2024, 5:45 am
Edit: Please, add support for HRC1D (high-range chiral 1D rules)
Also supported by HROT+NW:
b-engine wrote:
June 3rd, 2024, 4:23 am
I'm finding a range-2 equivalent of W110, end up I stumbled over this "class 3.5" rule:

Code: Select all

x=0,y=0,rule = R2,C2,S,B4-6,7-12,NW0000011722000000000000000
2o!
[[ THEME OCCUPIED ]]
b-rules100th post: 18 November 2023 1000th post: 8 March 2024 10000th post:

unname4798
Posts: 1202
Joined: July 15th, 2023, 10:27 am
Location: On the highest skyscraper

Re: Pattern viewer for forum threads

Post by unname4798 » June 3rd, 2024, 8:11 am

b-engine wrote:
June 3rd, 2024, 7:12 am
unname4798 wrote:
June 3rd, 2024, 5:45 am
Edit: Please, add support for HRC1D (high-range chiral 1D rules)
Also supported by HROT+NW:
b-engine wrote:
June 3rd, 2024, 4:23 am
I'm finding a range-2 equivalent of W110, end up I stumbled over this "class 3.5" rule:

Code: Select all

x=0,y=0,rule = R2,C2,S,B4-6,7-12,NW0000011722000000000000000
2o!
[[ THEME OCCUPIED ]]
Larger ranges can't do chiral 1D.
This profile is sponsored by Unname Inc. (2022-2024)
Status: none.
Companies: NOT (Nihonium Orange Team)

User avatar
b-engine
Posts: 2242
Joined: October 26th, 2023, 4:11 am
Location: Somewhere on earth

Re: Pattern viewer for forum threads

Post by b-engine » June 3rd, 2024, 9:15 am

unname4798 wrote:
June 3rd, 2024, 8:11 am
Larger ranges can't do chiral 1D.
What do you mean "chiral"? HROT+NW already supports most 1D rules.
b-rules100th post: 18 November 2023 1000th post: 8 March 2024 10000th post:

unname4798
Posts: 1202
Joined: July 15th, 2023, 10:27 am
Location: On the highest skyscraper

Re: Pattern viewer for forum threads

Post by unname4798 » June 3rd, 2024, 9:17 am

b-engine wrote:
June 3rd, 2024, 9:15 am
unname4798 wrote:
June 3rd, 2024, 8:11 am
Larger ranges can't do chiral 1D.
What do you mean "chiral"? HROT+NW already supports most 1D rules.
There are more rules with larger ranges.
This profile is sponsored by Unname Inc. (2022-2024)
Status: none.
Companies: NOT (Nihonium Orange Team)

User avatar
confocaloid
Posts: 4643
Joined: February 8th, 2022, 3:15 pm
Location: https://catagolue.hatsya.com/census/b3s234c/C4_4/xp62

Re: Pattern viewer for forum threads

Post by confocaloid » June 3rd, 2024, 9:23 am

Do you have specific suggestions for how exactly these features could work, from the user's viewpoint?

'W110' is indeed shorter than 'R1,C0,S0,1,2,B2,3,NW000102000'.
However, my point is that there is an existing notation (weighted neighbourhoods) that in principle covers this rulespace. Unless I'm mistaken, it should work for arbitrary two-state one-dimensional CA with range up to 3, and for some two-state one-dimensional CA with range above 3. It is not the shortest possible notation for the particular rulespaces you're interested in, but it already works, and it is fairly flexible.
unname4798 wrote:
June 3rd, 2024, 5:45 am
[...]
W110 is shorter.
Edit: Please, add support for HRC1D (high-range chiral 1D rules)
unname4798 wrote:
June 3rd, 2024, 9:17 am
[...]
There are more rules with larger ranges.
127:1 B3/S234c User:Confocal/R (isotropic CA, incomplete)
Unlikely events happen.
My silence does not imply agreement, nor indifference. If I disagreed with something in the past, then please do not construe my silence as something that could change that.

User avatar
squareroot12621
Posts: 682
Joined: March 23rd, 2022, 4:53 pm

Re: Pattern viewer for forum threads

Post by squareroot12621 » June 4th, 2024, 12:51 pm

I've already made a ruletable on LifeWiki (Rule:Supercomputer), but LifeViewer doesn't seem to recognize it (even after hard refreshing). Do I have to...
  • ...wait until the next build of LifeViewer?
  • ...add something to the page?
  • ...do something else?

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

Re: Pattern viewer for forum threads

Post by rowett » June 4th, 2024, 1:09 pm

squareroot12621 wrote:
June 4th, 2024, 12:51 pm
I've already made a ruletable on LifeWiki (Rule:Supercomputer), but LifeViewer doesn't seem to recognize it (even after hard refreshing). Do I have to...
  • ...wait until the next build of LifeViewer?
  • ...add something to the page?
  • ...do something else?
Any valid rule that is added to LifeWiki will be available immediately here on the forums and Wiki. The LifeViewer home page updates intermittantly so sometimes it will take a while to get the latest rules. I've just checked and the Supercomputer rule is available.

User avatar
PHPBB12345
Posts: 1124
Joined: August 5th, 2015, 11:55 pm
Contact:

Re: Pattern viewer for forum threads

Post by PHPBB12345 » June 4th, 2024, 11:41 pm

Suggestions:
View.prototype.copyToClipboard function replace with:

Code: Select all

View.prototype.copyToClipboard = function(/** @type {View} */ me, /** @type {string} */ contents) {
	var	/** @type {Element} */ copyElement = document.getElementById("ViewerCopy");
	var	/** @type {ClipboardItem} */ clipboardItem = null;

	// save the contents
	Controller.clipText = contents;

	// copy the text to the system clipboard
	// check if ClipboardItem is available
	if (window.ClipboardItem) {
		try {
			// create the clipboard item
			clipboardItem = new ClipboardItem({
				'text/plain': getClipText().then(() => {
					return new Promise(async (resolve) => {
						resolve(new Blob([contents], {type: "text/plain"}))
					})
				}),
			});
		} catch (err) {

		}
	}

	if (clipboardItem) {
		// write to the clipboard
		navigator.clipboard.write([clipboardItem]);
	} else {
		// just write text (Firefox)
		navigator.clipboard.writeText(contents);
	}

	// display copy notification
	me.menuManager.notification.notify("Copied to external clipboard", 15, 180, 15, true);

	// check if a copy text box exists
	if (copyElement) {
		copyElement.innerHTML = contents;
	}
};
cleanPattern function replace with:

Code: Select all

function cleanPattern(/** @type {Element} */ element) {
	// remove HTML tags
	var	/** @type {string} */ result = element.innerHTML.replace(/<br *\/>/gi, "\n").replace(/<br>/gi, "\n").replace(/&nbsp;/gi, " ").replace(/<span class="posthilit">/gi, "").replace(/<\/span>/gi, "").trim();

	// remove space or tab at the beginning of lines
	result = result.replace(/\n[ \t]+/g, "\n");

	// decode HTML entities
	result = result.replace(/&lt;/gi, "<").replace(/&gt;/gi, ">").replace(/&amp;/gi, "&");

	// if the result is empty make it a valid pattern
	if (result === "") {
		result = "!";
	}

	// return cleaned string
	return result;
}

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

Re: Pattern viewer for forum threads

Post by rowett » June 5th, 2024, 12:59 pm

squareroot12621 wrote:
May 31st, 2024, 4:59 pm
If you copy a pattern and then paste it, you'll get "Could not decode system clipboard". This only occurs when the rule being used is a ruletable that isn't on LifeWiki.
This has been fixed in build 1146. Thanks for the report!

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

Re: Pattern viewer for forum threads

Post by rowett » June 5th, 2024, 1:00 pm

wirehead wrote:
May 1st, 2024, 8:47 pm
b-engine wrote:
May 1st, 2024, 8:42 pm
That's already implemented. Press enter key after selecting a pattern to advance it.
confocaloid wrote:
May 1st, 2024, 8:44 pm
Doing Shift+Space instead advances the outside of selection. See Help -> Keys -> Edit in LifeViewer's builtin help for more info.

Now my request is: can LifeViewer add a button for this when it detects it’s on a mobile device? sometimes I’m on my phone and can’t hit enter because the keyboard isn’t activated
Build 1146 adds Advance Outside and Advance Selection buttons. Additionally, Advance Selection now keeps the selection static (like Golly).

User avatar
muzik
Posts: 5898
Joined: January 28th, 2016, 2:47 pm
Location: Scotland

Re: Pattern viewer for forum threads

Post by muzik » June 5th, 2024, 2:21 pm

Is the Advance Outside button also supposed to be copying the selection to the clipboard?
Parity Replicator Collection v1.6 is now live - please send all relevant discoveries here.

Post Reply