Pattern viewer for forum threads

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

Re: Pattern viewer for forum threads

Post by muzik » July 1st, 2018, 5:24 pm

I've been having that issue for a long while as well.

Also, in the interests of mobile users, can things that require keybinds to work (such as switching hexagonal grids) also be made toggleable from inside the viewer as options?

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

Re: Pattern viewer for forum threads

Post by rowett » July 4th, 2018, 2:32 pm

muzik wrote:Also, in the interests of mobile users, can things that require keybinds to work (such as switching hexagonal grids) also be made toggleable from inside the viewer as options?
Yes I could put them on the menu screen. Which did you have in mind?

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

Re: Pattern viewer for forum threads

Post by dvgrn » July 4th, 2018, 4:02 pm

A separate subject, while I'm thinking of it: Saka reported a few days ago that he's seeing a wall of Javascript on (all pages of) my weblog now, and no LifeViewer -- but the same articles quoted on the conwaylife.com home page look fine.

I'm not seeing any such problem, and I'm not sure what might be causing it. But one possible difference is that I updated the b3s23life site to Build 259, where the home page is still languishing back at Build 250.

Can anyone else see the problem? Wall of Javascript and no LifeViewer here, working LifeViewer in second article here? Saka will have to provide browser and OS details, I don't know them.

User avatar
Macbi
Posts: 903
Joined: March 29th, 2009, 4:58 am

Re: Pattern viewer for forum threads

Post by Macbi » July 4th, 2018, 4:37 pm

It looks fine to me (Firefox 52.9.0, Debian 10).

User avatar
Saka
Posts: 3627
Joined: June 19th, 2015, 8:50 pm
Location: Indonesia
Contact:

Re: Pattern viewer for forum threads

Post by Saka » July 6th, 2018, 9:15 am

dvgrn wrote:Saka will have to provide browser and OS details, I don't know them.
Oops, I forgot, but here they are.
Chrome, Version 67.0.3396.99 (Official Build) (64-bit)
Windows 10, Version 1803, OS Build 17134.112 (Don't know the difference between version and OS Build, just found it in my settings)

User avatar
Redstoneboi
Posts: 429
Joined: May 14th, 2018, 3:57 am

Re: Pattern viewer for forum threads

Post by Redstoneboi » July 13th, 2018, 1:36 am

in Lifeviewer, when you set the step size to a number n large enough to "overload" (when it starts flashing red), wait a few moments, then set it to something low, like step 1, it still runs at step n.
run this at step 50, 60 gps for 1000 generations then set the step to 1.

Code: Select all

#N Max
#O Tim Coe
#C A spacefiller that fills space with zebra stripes.
#C www.conwaylife.com/wiki/index.php?title=Max
x = 27, y = 27, rule = s23/b3
18bo8b$17b3o7b$12b3o4b2o6b$11bo2b3o2bob2o4b$10bo3bobo2bobo5b$10bo4bobo
bobob2o2b$12bo4bobo3b2o2b$4o5bobo4bo3bob3o2b$o3b2obob3ob2o9b2ob$o5b2o
5bo13b$bo2b2obo2bo2bob2o10b$7bobobobobobo5b4o$bo2b2obo2bo2bo2b2obob2o
3bo$o5b2o3bobobo3b2o5bo$o3b2obob2o2bo2bo2bob2o2bob$4o5bobobobobobo7b$
10b2obo2bo2bob2o2bob$13bo5b2o5bo$b2o9b2ob3obob2o3bo$2b3obo3bo4bobo5b4o
$2b2o3bobo4bo12b$2b2obobobobo4bo10b$5bobo2bobo3bo10b$4b2obo2b3o2bo11b$
6b2o4b3o12b$7b3o17b$8bo!
c(>^w^<c)~*
This is 「Fluffy」
「Fluffy」is my sutando.
「Fluffy」has the ability to engineer r e p l i c a t o r s.
「Fluffy」likes to watch spaceship guns in Golly.
「Fluffy」knows Natsuki best girl.

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

Re: Pattern viewer for forum threads

Post by rowett » July 13th, 2018, 2:31 am

Redstoneboi wrote:in Lifeviewer, when you set the step size to a number n large enough to "overload" (when it starts flashing red), wait a few moments, then set it to something low, like step 1, it still runs at step n.
Thanks for reporting! This has been fixed and will be in the next released build.

Gamedziner
Posts: 795
Joined: May 30th, 2016, 8:47 pm
Location: Milky Way Galaxy: Planet Earth

Re: Pattern viewer for forum threads

Post by Gamedziner » July 13th, 2018, 7:44 am

rowett wrote:
Redstoneboi wrote:in Lifeviewer, when you set the step size to a number n large enough to "overload" (when it starts flashing red), wait a few moments, then set it to something low, like step 1, it still runs at step n.
Thanks for reporting! This has been fixed and will be in the next released build.
Upon testing it myself, I realized this issue also affects the generations per second.

Code: Select all

x = 81, y = 96, rule = LifeHistory
58.2A$58.2A3$59.2A17.2A$59.2A17.2A3$79.2A$79.2A2$57.A$56.A$56.3A4$27.
A$27.A.A$27.2A21$3.2A$3.2A2.2A$7.2A18$7.2A$7.2A2.2A$11.2A11$2A$2A2.2A
$4.2A18$4.2A$4.2A2.2A$8.2A!

Bullet51
Posts: 663
Joined: July 21st, 2014, 4:35 am

Re: Pattern viewer for forum threads

Post by Bullet51 » July 23rd, 2018, 6:30 am

shouldsee, in OCA, wrote:I was staring at this thing again today here and wondering how long does its novelty last (until entering oscillation), but apparently I wasn't able to eyeball it..

Maybe we should add oscar.py to LIfeVIewer as a plugin?
[/code]
Still drifting.

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

Re: Pattern viewer for forum threads

Post by rowett » September 11th, 2018, 9:31 am

Build 259 is now live on the Forums and LifeWiki

Please note: you will need to refresh your browser to use the new build

Enhancements since the last released build:
  • General
    • improved elapsed time calculation for multi-generation steps
    • with bounded grids the stats now show cell density rather than births and deaths
    • added colour names to help information
    • aligned R G B values in help information
    • added colour sets for JvN29, Hutton32 and Nobili32
    • initial zoom and fit zoom (but not AutoFit) will snap to integer if zoom is within 1% of an integer
    • removed bounded grid postfix from rule name display
  • UI
    • hotkey "u" toggles NOGUI mode
      • will be ignored if [[ NOGUI ]] defined
    • hotkey "k" copies the current position to the clipboard as script commands
      • #C [[ X 10 Y -5 ZOOM 3 ]]
    • shift and hotkey "k" copies the current position and the view to the clipboard as script commands
      • #C [[ X 5 Y 13 ZOOM 2.33 ]]
      • #C [[ THEME 3 WIDTH 640 HEIGHT 400 ]]
    • hotkey control and "r" now resets the pattern (like Golly) rather than refreshing the browser
    • hotkey shift and Page Up moves to previous help topic
    • hotkey shift and Page Down moves to next help topic
    • fit zoom UI control is now disabled when AutoFit enabled
  • Script commands
    • waypoints now work with step back
    • LOOP no longer resets camera
    • [[ PAUSE ]] script command can now take 0 as an argument for instant camera relocation
Fixes since the last released build:
  • fixed population count for bounded grids
  • Themes without history were causing rendering issues
  • manual step forward for multiple generations no longer bails out early due to time
  • gps control was incorrectly showing 10.0 for 10
  • fixed an issue with Waypoint playback that was causing stuttering
  • fixed a crash when invalid patterns have a bounded grid specification
  • custom colours now work with Generations rule
The updated hotkey map detailing the LifeViewer keyboard controls is here.

Comments, feedback, suggestions and bug reports welcome!

LTL is not complete yet!

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

Re: Pattern viewer for forum threads

Post by dvgrn » September 12th, 2018, 5:15 am

rowett wrote:Build 259 is now live on the Forums and LifeWiki
...
  • fixed an issue with Waypoint playback that was causing stuttering
Looks good! Playback speed seems a lot more predictable now.
rowett wrote:
  • [[ PAUSE ]] script command can now take 0 as an argument for instant camera relocation
There's now an example of PAUSE 0 use in the line crosser article on the LifeWiki.

... It's working very nicely on my system at least. If people with older computers or on mobile devices could check to see if the animation of such a large pattern causes issues, I could scale back on my animation ambitions a bit if you let me know here.

User avatar
BlinkerSpawn
Posts: 1992
Joined: November 8th, 2014, 8:48 pm
Location: Getting a snacker from R-Bee's

Re: Pattern viewer for forum threads

Post by BlinkerSpawn » October 12th, 2018, 10:32 pm

I'm trying to make something that goes like this:

Code: Select all

tracking part of a pattern
...
stop camera movement
display text
but the TRACK family of commands won't work if I attempt to display text during PAUSEs, and I can't use STOP or the text won't come up.
How would I go about doing this?
LifeWiki: Like Wikipedia but with more spaceships. [citation needed]

Image

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

Re: Pattern viewer for forum threads

Post by rowett » October 13th, 2018, 8:50 am

BlinkerSpawn wrote:I'm trying to make something that goes like this:

Code: Select all

tracking part of a pattern
...
stop camera movement
display text
but the TRACK family of commands won't work if I attempt to display text during PAUSEs, and I can't use STOP or the text won't come up.
How would I go about doing this?
Just use the [[ T ]] waypoint command instead. See below for an example (original thanks to dvgrn):

Code: Select all

#C sample attempt to follow a glider around in the p59 gun
#C [[ AUTOSTART GPS 60 THEME 2 LAYERS 2 DEPTH 0.4 T 0 X -48 Y 58 ZOOM 12
#C PAUSE 1 "3..."
#C PAUSE 1 "2..."
#C PAUSE 1 "1..."
#C PAUSE 1 "Go!"
#C T 140 X -80 Y 94 ZOOM 20
#C T 310 X -120 Y 52 ZOOM 16 ANGLE 45 STEP 4
#C T 360 X -130 Y 65 ZOOM 10 ANGLE 90 STEP 1
#C PAUSE 2 "Dramatic pause"
#C T 480 THEME 3 DEPTH 5 LAYERS 6 GPS 15 X -110 Y 95 ANGLE 0 ZOOM 15 "Slow motion"
#C T 610 THEME 1 DEPTH 0.4 GPS 30 AUTOFIT ANGLE 10 STEP 2
#C T 675 THEME 4 GPS 60 LAYERS 2 X -106 Y 50 ZOOM 10 ANGLE 350 STEP 3
#C T 858 X -140 Y 0 ZOOM 8 ANGLE 10 STEP 1
#C PAUSE 5 X 0 Y 5 ZOOM 1.5 DEPTH 0 ANGLE 0 "Show me the world..."
#C PAUSE 5 AUTOFIT THEME 5 "That's all folks!\nWaypoint Animations"
#C LOOP 1300 ]]
x = 299, y = 239, rule = B3/S23
118b2o3b2o$118b2o2bob3o$122bo4bo$118b4ob2o2bo$118bo2bobobob2o$121bobob
obo$122b2obobo$126bo2$112b2o$113bo7b2o$113bobo$114b2o$121b2o$121b2obo
98b2o3b2o26b2o3b2o$122b2o99b2o2bob3o22b3obo2b2o$123bo103bo4bo20bo4bo$
223b4ob2o2bo20bo2b2ob4o$223bo2bobobob2o18b2obobobo2bo$124b2o100bobobob
o20bobobobo$124bo102b2obobo20bobob2o$125b3o103bo22bo$127bo$136bobo78b
2o48b2o$137b2o79bo7b2o29b3o7bo$126b2o3b2o4bo80bobo5b2o28bo3bo4bobo$
124b3obo2b2o86b2o34bo5bo3b2o$108b2o13bo4bo125bo3bo3bo$109b2o12bo2b2ob
4o121bo2bobo2bo$108bo13b2obobobo2bo92b2o27bo3bo3bo$123bobobobo94bobo
28bo5bo$123bobob2o97bo33bo$124bo130bo3bo$229b2o24bo$137b2o90bo8bobo15b
o$128bo8bo92b3o6b2o12b3o$127b3o5bobo94bo6bo13bo$126b5o4b2o15bo$125b2o
3b2o21bo115bo$124b3o3b3o18b3o87bo26b2o$125b2o3b2o107b2o27bobo$126b5o
109b2o$93b3o31b3o$95bo30b3o$94bo30b2o83b2o$126bo54bo29b2o$123b3o55b3o
26bo$123bo60bo$183b2o69bo$153bo16b2o48b2o33bo$110bo27b3o12b3o14b2o48b
2o31b3o34bo$110bobo25bo17bo115b2o14b5o$110b2o27bo15b2o9bo103bo2bo13bo
5bo$167b2o101b2obobo4bo7b3o2bo$92bo67b3o3b2o12b3o26b3o13bo46bob2o3bobo
9bob2o$92b3o64bo4bo13bo4bo24bo4bo11bobo44bo5bo3bo5b4o2bo$79bo15bo129b
2o7b2o34b3o5bo3bo5bo3b2o$79b2o13b2o59bobo2bo3bo13bo3bo2bobo16bobo2bo3b
o20bo34bo8bo3bo6b3o$78bobo74bobo3b3o6b3o6b3o3bobo16bobo3b3o6b3o10bobo
34b2o8bobo9bo$154bo15b3o15bo14bo15b3o10b2o46bo10bob2o$86b2o66b2o15bo
15b2o14b2o15bo69b2ob2o$86bo67b3o14bo14b3o14b3o14bo15b2o7bo21b2o$83b2ob
o68b2o14bo14b2o16b2o14bo15b2o5b3o20bo2bo$83bo2b3o7bobo53b2ob2o13bobo
15bo14bo15bobo20bo39b2o$84b2o3bo6bo2bo53bobo81bo4b2o22b3o13bo$86b4o6bo
2bo48b2o4bo81bobo20b2o22b3o$86bo11bo3b2o45bo20bobo15bo14bo15bobo13b2ob
2o18bobo24bo$87b3o12bobo41b3o5b2o15bo14b2o16b2o14bo14b2o21bo$90bo13bo
41bo7b2o15bo14b3o14b3o14bo14b3o19b2o$85b5o14b2o65bo15b2o14b2o15bo15b2o
$84bo73b2o10b3o15bo14bo15b3o15bo33bo$64b2o17bo2b2o69bobo10b3o6b3o3bobo
16bobo3b3o6b3o6b3o3bobo30b2obobo$63bobo16bob2obo69bo20bo3bo2bobo16bobo
2bo3bo13bo3bo2bobo29bobobobo$65bo10b2o4bo73b2o7b2o96bo2bobobob2o$74bo
2bo2b2ob4o77bobo11bo4bo24bo4bo13bo4bo30b4ob2o2bo$74b2obobobobo2bo79bo
13b3o26b3o12b2o3b3o35bo4bo$77bobobobo139b2o38b2o2bob3o$77bobob2o37bo
104bo9b2o15bo10b2o3b2o$78bo28bo10b3o114bo17bo$108bo8bo52b2o19b2o27b2o
14b3o12b3o$91b2o13b3o8b2o51b2o18bobo27b2o16bo$82b2o7bo100bo$82b2o5bobo
$89b2o34b2ob2o51bo28bo$126bob2o49b2o30b2o$126bo53b2o28b2o$49b2o67b2o4b
3o$50b2o66b2o3bo3b2o70b2o3b2o$49bo22bo13bo36b4o2bo20b2o45b3obo2b2o$71b
o13b2o22b2o15bob2o21b2o43bo4bo$71b3o5b2o4bobo20bobo12b3o2bo21bo45bo2b
2ob4o32b3o$80bo27bo13bo5bo66b2obobobo2bo32bo$77b3o27b2o6bo7b5o68bobobo
bo36bo26bo$77bo35b2o10bo70bobob2o65b2o$114b2o60b2o19bo68b2o$100bo76b2o
$100b3o73bo33b2o$103bo97b2o7bo28bo$102b2o61bo35b2o5bobo15bo10b3o$165bo
bo40b2o14bobo9bo$105bo59b2o58b2o9b2o51bo$34b3o67bo2bo179b3o$36bo71bo
177bo$35bo22bo9b2o3b2o24b2o4bo29b3o106b2o40b2o$56b2o10b2o2bob3o23bo4bo
3bo27bo53bo53bo8bo$57b2o13bo4bo22bo2bo5bo2b2o22bo54bobo11b2o31bo6bob2o
4b2o$68b4ob2o2bo24b2o8bobo76b2o5b2o4b2o31bo6b2o2bo4bobo38b2ob2o$68bo2b
o3bob2o24bobobo6bo84bo6bo30b2o3b2o2b2o34bo12bob2o$71bobobobo26b3o7b2o
80b3o43b2obo34bobo12bo$72b2obobo83b3o32bo31b2o15bo35b2o4b2o4b3o$76bo
24bo3bo57bo63bobo12b3o24bo17b2o3bo3b2o$100bob2obo56bo64bo13bo9b2o14b5o
20b4o2bo$34bo27b2o36bobo3b2o118b2o5bobo6b5o5bo13bo5bo5b2o15bob2o$34b3o
26bo8bo26b2obobobo2bo40bobo68bo11b2o11bo5bobo12b3o2bo4bobo12b3o2bo$37b
o25bobo5b2o27bo2b2ob4o40b2o69b3o10bo9bo8b2o15bob2o3bo13bo5bo$20bo15b2o
26b2o34bo4bo45bo72bo19b2o21b4o2bo2b2o14b5o$20b2o56bo22b3obo2b2o113b2o
37b2o3bo3b2o21bo$19bobo57bo23b2o3b2o11bo140b2o4b3o$25b2ob2o12bo34b3o
41b2o132b2o13bo$25b2obo13bobo75bobo53bobo75bobo13bob2o$28bo13b2o132b2o
41b3o34bo12b2ob2o$28b3o4b2o140bo11b2o3b2o23bo57bobo$4bo21b2o3bo3b2o37b
2o113b2o2bob3o22bo56b2o$2b5o14b2o2bo2b4o21b2o19bo72bo45bo4bo34b2o26b2o
15bo$bo5bo13bo3b2obo15b2o8bo9bo10b3o69b2o40b4ob2o2bo27b2o5bobo25bo$bo
2b3o12bobo4bo2b3o12bobo5bo11b2o11bo68bobo40bo2bobobob2o26bo8bo26b3o$2o
bo15b2o5bo5bo13bo5b5o6bobo5b2o118b2o3bobo36b2o27bo$o2b4o20b5o14b2o9bo
13bo64bo56bob2obo$b2o3bo3b2o17bo24b3o12bobo63bo57bo3bo24bo$3b3o4b2o4b
2o35bo15b2o31bo32b3o83bobob2o$3bo12bobo34bob2o43b3o80b2o7b3o26bobobobo
$2obo12bo34b2o2b2o3b2o30bo6bo84bo6bobobo24b2obo3bo2bo$2ob2o38bobo4bo2b
2o6bo31b2o4b2o5b2o76bobo8b2o24bo2b2ob4o$44b2o4b2obo6bo31b2o11bobo54bo
22b2o2bo5bo2bo22bo4bo13b2o$44bo8bo53bo53bo27bo3bo4bo23b3obo2b2o10b2o$
11b2o40b2o106b3o29bo4b2o24b2o3b2o9bo22bo$12bo177bo71bo$9b3o179bo2bo67b
3o$9bo51b2o9b2o58b2o59bo$62bo9bobo14b2o40bobo$59b3o10bo15bobo5b2o35bo
61b2o$59bo28bo7b2o97bo$87b2o33bo73b3o$120b2o76bo$31b2o68bo19b2o60b2o$
30b2o65b2obobo70bo10b2o35bo$32bo26bo36bobobobo68b5o7bo6b2o27b3o$60bo
32bo2bobobob2o66bo5bo13bo27bo$58b3o32b4ob2o2bo45bo21bo2b3o12bobo20bobo
4b2o5b3o$97bo4bo43b2o21b2obo15b2o22b2o13bo$93b2o2bob3o45b2o20bo2b4o36b
o13bo22bo$93b2o3b2o70b2o3bo3b2o66b2o$172b3o4b2o67b2o$87b2o28b2o53bo$
86b2o30b2o49b2obo$88bo28bo51b2ob2o34b2o$207bobo5b2o$106bo100bo7b2o$60b
o16b2o27bobo18b2o51b2o8b3o13b2o$45b3o12b3o14b2o27b2o19b2o52bo8bo$45bo
17bo114b3o10bo28bo$29b2o3b2o10bo15b2o9bo104bo37b2obobo$27b3obo2b2o38b
2o139bobobobo$26bo4bo35b3o3b2o12b3o26b3o13bo79bo2bobobobob2o$26bo2b2ob
4o30bo4bo13bo4bo24bo4bo11bobo77b4ob2o2bo2bo$25b2obobobo2bo96b2o7b2o73b
o4b2o10bo$26bobobobo29bobo2bo3bo13bo3bo2bobo16bobo2bo3bo20bo69bob2obo
16bobo$26bobob2o30bobo3b3o6b3o6b3o3bobo16bobo3b3o6b3o10bobo69b2o2bo17b
2o$27bo33bo15b3o15bo14bo15b3o10b2o73bo$61b2o15bo15b2o14b2o15bo65b2o14b
5o$40b2o19b3o14bo14b3o14b3o14bo15b2o7bo41bo13bo$40bo21b2o14bo14b2o16b
2o14bo15b2o5b3o41bobo12b3o$13bo24bobo18b2ob2o13bobo15bo14bo15bobo20bo
45b2o3bo11bo$13b3o22b2o20bobo81bo4b2o48bo2bo6b4o$16bo13b3o22b2o4bo81bo
bo53bo2bo6bo3b2o$15b2o39bo20bobo15bo14bo15bobo13b2ob2o53bobo7b3o2bo$
29bo2bo20b3o5b2o15bo14b2o16b2o14bo14b2o68bob2o$30b2o21bo7b2o15bo14b3o
14b3o14bo14b3o67bo$4b2ob2o69bo15b2o14b2o15bo15b2o66b2o$4b2obo10bo46b2o
10b3o15bo14bo15b3o15bo$7bo9bobo8b2o34bobo10b3o6b3o3bobo16bobo3b3o6b3o
6b3o3bobo74bobo$7b3o6bo3bo8bo34bo20bo3bo2bobo16bobo2bo3bo13bo3bo2bobo
59b2o13b2o$5b2o3bo5bo3bo5b3o34b2o7b2o129bo15bo$4bo2b4o5bo3bo5bo44bobo
11bo4bo24bo4bo13bo4bo64b3o$4b2obo9bobo3b2obo46bo13b3o26b3o12b2o3b3o67b
o$5bo2b3o7bo4bobob2o101b2o$5bo5bo13bo2bo103bo9b2o15bo27b2o$6b5o14b2o
115bo17bo25bobo$8bo34b3o31b2o48b2o14b3o12b3o27bo$43bo33b2o48b2o16bo$
44bo$175bo$88bo28bo55b3o$72bo13b2o30b2o52bo$72b3o12b2o28b2o53b2o30bo$
75bo94b3o30bo$74b2o93b3o31b3o$57b2o109b5o$28bobo27b2o107b2o3b2o$29b2o
26bo87b3o18b3o3b3o$29bo115bo21b2o3b2o$146bo15b2o4b5o$45bo13bo6bo94bobo
5b3o$43b3o12b2o6b3o92bo8bo$42bo15bobo8bo90b2o$43bo24b2o$39bo3bo130bo$
38bo33bo60bo36b2obobo$37bo5bo28bobo56bobo35bobobobo$36bo3bo3bo27b2o58b
2o32bo2bobobob2o13bo$36bo2bobo2bo121b4ob2o2bo12b2o$36bo3bo3bo125bo4bo
13b2o$32b2o3bo5bo34b2o86b2o2bob3o$31bobo4bo3bo28b2o5bobo80bo4b2o3b2o$
31bo7b3o29b2o7bo79b2o$30b2o48b2o78bobo$171bo$44bo22bo103b3o$40b2obobo
20bobob2o102bo$39bobobobo20bobobobo100b2o$36bo2bobobob2o18b2obobobo2bo
$36b4ob2o2bo20bo2b2ob4o$40bo4bo20bo4bo74bobo26bo$36b2o2bob3o22b3obo2b
2o71b2o26b2o$36b2o3b2o26b2o3b2o71bo26bob2o$176b2o$183b2o$183bobo$176b
2o7bo$185b2o2$172bo$171bobob2o$171bobobobo$170b2obobobo2bo$171bo2b2ob
4o$162bo8bo4bo$163bo8b3obo2b2o$161b3o10b2o3b2o!

User avatar
calcyman
Moderator
Posts: 2932
Joined: June 1st, 2009, 4:32 pm

Re: Pattern viewer for forum threads

Post by calcyman » October 16th, 2018, 9:55 am

I'm getting a WIDTH 640 argument out of range error with the following HTML:

Code: Select all

<div class="rle"><div style="display:none;"><code id="code2">
x = 9, y = 15, rule = b3s23
bo$obo$bo8$8bo$6bobo$5b2obo2$4b3o!
#C [[ THEME 6 GRID GRIDMAJOR 0 ]]
#C [[ WIDTH 640 HEIGHT 480 ]]
</code></div>
<canvas width="640" height="480" style="margin-left:1px;"></canvas></div>
<script type='text/javascript' src='http://www.conwaylife.com/js/lv-plugin.js'></script>
Is this due to my choice of canvas size (i.e. do I need to leave a boundary)?
What do you do with ill crystallographers? Take them to the mono-clinic!

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

Re: Pattern viewer for forum threads

Post by rowett » October 16th, 2018, 1:09 pm

calcyman wrote:I'm getting a WIDTH 640 argument out of range error...

Is this due to my choice of canvas size (i.e. do I need to leave a boundary)?
LifeViewer is attempting to limit the width of the Viewer (i.e. the <canvas> element) to the width of the element containing the RLE (the <code> element). See here for more details.

In your case the <code> element is hidden (the enclosing <div> has style="display:none;") which means it has width 0. LifeViewer then applied its minimum allowed width of 480 as the limit. You then had a script command [[ WIDTH 640 ]] which violated the limit.

You can suppress this behaviour by adding the following line to the HTML <head> section:

Code: Select all

<meta name="LifeViewer" content="rle code">
And no, you don't need to leave a boundary.

User avatar
Apple Bottom
Posts: 1034
Joined: July 27th, 2015, 2:06 pm
Contact:

Re: Pattern viewer for forum threads

Post by Apple Bottom » October 16th, 2018, 2:07 pm

rowett wrote:In your case the <code> element is hidden (the enclosing <div> has style="display:none;") which means it has width 0. LifeViewer then applied its minimum allowed width of 480 as the limit. You then had a script command [[ WIDTH 640 ]] which violated the limit.
This sort of thing has bitten us on the LifeWiki as well. Could I respectfully request that LifeViewer be made a little less smart, and a little more obedient? If the user says "do X", of course it would be best if LifeViewer did X --- but if there is a non-obvious reason why this can't work, it might be better to do it anyway. "This looks weird, I wonder what I did wrong" is better than "As far as I can tell this should be working, but I'm getting an arcane error for no apparent reason".

Thanks --- and thank you for your continued work on LifeViewer!
If you speak, your speech must be better than your silence would have been. — Arabian proverb

Catagolue: Apple Bottom • Life Wiki: Apple Bottom • Twitter: @_AppleBottom_

Proud member of the Pattern Raiders!

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

Re: Pattern viewer for forum threads

Post by rowett » October 17th, 2018, 12:41 am

Apple Bottom wrote: Could I respectfully request that LifeViewer be made a little less smart, and a little more obedient?
In this specific instance LifeViewer's default behaviour is counter-intuitive: It's being smart and disobedient because the default told it to be so. I agree it's annoying to get an error message telling you that a constraint (that you didn't explicitly set) has been violated.
It would have been better if I'd made the default the other way around. I could (and probably should) change the default it would just require Nathaniel to make a change to the Forum here.
Apple Bottom wrote: This sort of thing has bitten us on the LifeWiki as well.
Are there any outstanding issues for LifeViewer on LifeWiki?

User avatar
calcyman
Moderator
Posts: 2932
Joined: June 1st, 2009, 4:32 pm

Re: Pattern viewer for forum threads

Post by calcyman » October 21st, 2018, 5:24 am

rowett wrote:You can suppress this behaviour by adding the following line to the HTML <head> section:

Code: Select all

<meta name="LifeViewer" content="rle code">
And no, you don't need to leave a boundary.
Thanks! That works like a charm! Now I can do width=800 (for instance) without any errors, such as in the screenshot below.

Here's an example of using the Python lifelib (running in a Jupyter notebook) to replace all instances of the tub-with-tail eater in the p57 loop with Sokwe's p3 glider-releasing catalyst:
Automatically inserting Sokwe's p3 catalyst into a p57 loop
Automatically inserting Sokwe's p3 catalyst into a p57 loop
Screenshot from 2018-10-21 10-09-44.png (100.11 KiB) Viewed 10701 times
The important keyword arguments are:
  • n_phases=57: This replaces the catalysts in every phase, not just the current phase.
  • orientations=['identity', 'rot180']: This replaces the catalysts on both the top and bottom edge.
I imagine .replace() could be useful for monkey-patching guns with optimised versions of catalysts.
What do you do with ill crystallographers? Take them to the mono-clinic!

User avatar
Redstoneboi
Posts: 429
Joined: May 14th, 2018, 3:57 am

Re: Pattern viewer for forum threads

Post by Redstoneboi » October 22nd, 2018, 11:31 am

ios lifeviewer thinking that i’m tapping the stuff behind it, causing neither lifeviewer nor the stuff behind it to register the tap.
c(>^w^<c)~*
This is 「Fluffy」
「Fluffy」is my sutando.
「Fluffy」has the ability to engineer r e p l i c a t o r s.
「Fluffy」likes to watch spaceship guns in Golly.
「Fluffy」knows Natsuki best girl.

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

Re: Pattern viewer for forum threads

Post by rowett » October 22nd, 2018, 5:42 pm

Redstoneboi wrote:ios lifeviewer thinking that i’m tapping the stuff behind it, causing neither lifeviewer nor the stuff behind it to register the tap.
Please will you let me have some more details:
  • Which device are you using?
  • Which browser?
  • Which iOS version?

User avatar
Redstoneboi
Posts: 429
Joined: May 14th, 2018, 3:57 am

Re: Pattern viewer for forum threads

Post by Redstoneboi » October 27th, 2018, 4:07 am

rowett wrote:
Redstoneboi wrote:ios lifeviewer thinking that i’m tapping the stuff behind it, causing neither lifeviewer nor the stuff behind it to register the tap.
Please will you let me have some more details:
  • Which device are you using?
  • Which browser?
  • Which iOS version?
-iPad Air 2
-Safari
-doesn’t matter, it’s been bugging me since i started using lifeviewer til today
c(>^w^<c)~*
This is 「Fluffy」
「Fluffy」is my sutando.
「Fluffy」has the ability to engineer r e p l i c a t o r s.
「Fluffy」likes to watch spaceship guns in Golly.
「Fluffy」knows Natsuki best girl.

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

Re: Pattern viewer for forum threads

Post by rowett » October 27th, 2018, 5:14 pm

Redstoneboi wrote: -iPad Air 2
-Safari
-doesn’t matter, it’s been bugging me since i started using lifeviewer til today
Sorry I can't reproduce the problem. The only Apple device I have is an iPhone and it works OK on that.
Does anyone else see the same issue?

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

Re: Pattern viewer for forum threads

Post by muzik » November 3rd, 2018, 9:13 am

rowett wrote:
muzik wrote:Also, in the interests of mobile users, can things that require keybinds to work (such as switching hexagonal grids) also be made toggleable from inside the viewer as options?
Yes I could put them on the menu screen. Which did you have in mind?
Probably the hexagonal view switching option.

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

Re: Pattern viewer for forum threads

Post by muzik » December 4th, 2018, 3:27 pm

Will LifeViewer ever be able to support a true hexagonal grid?

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

Re: Pattern viewer for forum threads

Post by rowett » December 5th, 2018, 7:47 am

muzik wrote:Will LifeViewer ever be able to support a true hexagonal grid?
Not sure. I'll add it to the backlog but it won't be anytime soon.

Post Reply