Pattern viewer for forum threads

For discussion directly related to ConwayLife.com, such as requesting changes to how the forums or wiki function.
User avatar
gmc_nxtman
Posts: 1147
Joined: May 26th, 2015, 7:20 pm

Re: Pattern viewer for forum threads

Post by gmc_nxtman » May 30th, 2017, 3:53 pm

fluffykitty wrote:I think what gmc_nxtman wants is a way to track all non-state-0 cells.
I don't really request for that to be necessarily added at the moment, the current function seems adequate for me, I was just noting the cause of the phenomenon drc described.

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

Re: Pattern viewer for forum threads

Post by rowett » June 19th, 2017, 3:41 pm

Build 231 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:
  • added [[ NOGUI ]] to disable menus and hotkeys - test
    x = 9, y = 5, rule = B3/S23
    $bo3b3o$b3o2bo$2bo!
    [[ NOGUI THEME 6 GRID WIDTH 96 HEIGHT 96 ]]
    • when you mouse over a [[ NOGUI ]] Viewer an RLE link appears which when clicked will copy the pattern's RLE into the Clipboard on modern browsers
    • reduces [[ WIDTH ]] and [[ HEIGHT ]] minimum limit to 64
    • silently disables the following if specified:
      • [[ GRAPH ]], [[ SHOWGENSTATS ]], [[ SHOWINFOBAR ]], [[ SHOWTIMING ]], [[ THUMB ]] and [[ THUMBLAUNCH ]]
    • Viewers that have [[ NOGUI ]] specified with script errors will not enforce [[ NOGUI ]] so errors can be seen
  • added [[ NORLE ]] which disables the "RLE" link when you mouse over a [[ NOGUI ]] Viewer
  • hotkey control and "c" will copy pattern source to the clipboard (on modern browsers)
  • added [[ COLOR ERROR R G B ]] to set colour for error messages (default is red)
  • generation statistics tooltips for alive, births and deaths shows full value (rather than abbreviated)
  • variable substitutions can now be used in waypoint messages
    • #B the LifeViewer build number
    • #N the pattern name (if defined)
    • #O the pattern originator (if defined)
    • #R the pattern rule name
    • #A the pattern alias name
    • #T the program title ("LifeViewer")
    • ## the # symbol
Fixes since the last released build:
  • Generations rules containing B0 are now reported as an error - test
  • rule decoder was failing on totalistic rules with no slash and only one of B or S - test
  • fixed an issue with Torus bounded grids with Y shift - test
Comments, feedback, suggestions and bug reports welcome!

fluffykitty
Posts: 638
Joined: June 14th, 2014, 5:03 pm

Re: Pattern viewer for forum threads

Post by fluffykitty » June 21st, 2017, 6:56 pm

How do I use Lifeviewer scripts and are they Turing Complete?
I like making rules

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

Re: Pattern viewer for forum threads

Post by dvgrn » June 21st, 2017, 8:20 pm

fluffykitty wrote:How do I use Lifeviewer scripts and are they Turing Complete?
Read the first post in this thread for starters. Hit 'H' for help in LifeViewer to see a list of all the supported commands. For examples of syntax in specific cases, follow Chris's handy "test" links for the build in which the feature appeared.

No, LifeViewer script commands are not a programming language, just a control mechanism and a way to set up animation sequences.

AforAmpere
Posts: 1049
Joined: July 1st, 2016, 3:58 pm

Re: Pattern viewer for forum threads

Post by AforAmpere » June 21st, 2017, 8:29 pm

Wouldn't they technically be Turing Complete, as they can simulate Turing Complete rules like W110? Maybe I am confusing this with something else. I thought I saw that as a proof for the Turing Completeness of some programming language
I and wildmyron manage the 5S project, which collects all known spaceship speeds in Isotropic Non-totalistic rules.

Things to work on:
- Find a (7,1)c/8 ship in a Non-totalistic rule
- Finish a rule with ships with period >= f_e_0(n) (in progress)

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

Re: Pattern viewer for forum threads

Post by dvgrn » June 21st, 2017, 8:57 pm

AforAmpere wrote:Wouldn't they technically be Turing Complete, as they can simulate Turing Complete rules like W110? Maybe I am confusing this with something else. I thought I saw that as a proof for the Turing Completeness of some programming language
I thought about that briefly before answering... but it's really not the scripting commands that are Turing-complete, it's the set of possible patterns that LifeViewer can simulate. And for the most part, LifeViewer can do those simulations equally well with or without the scripting commands.

User avatar
gmc_nxtman
Posts: 1147
Joined: May 26th, 2015, 7:20 pm

Re: Pattern viewer for forum threads

Post by gmc_nxtman » June 26th, 2017, 2:01 am

gmc-alpha-v0.02a wrote:I also think you should implement ability to read pattern comments, associate lines #O #N etc. with discoverer, name, and associate hotkey "I" with this feature if implemented...
Bringing this back up because there's currently no feature to read pattern comments (unless I somehow missed it in the help menu), although it seems that key "I' has been used already. I think N might be suitable, but I'm not sure.

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

Re: Pattern viewer for forum threads

Post by rowett » June 26th, 2017, 4:40 am

This was partially implemented in build 182 which was released to the forum on April 8th, 2016:
  • help information now includes pattern name and originator if specified in the RLE using #N and #O

Code: Select all

#N Acorn
#O Charles Corderman
#C A methuselah with lifespan 5206.
x = 7, y = 3, rule = B3/S23
bo5b$3bo3b$2o2b3o!
If you click "SHOW IN VIEWER" above and then use hotkey "i" for information you'll see the Name and Originator in the "Pattern:" section of the Help Information.

You can also use them as a window title:

Code: Select all

#C [[ TITLE "#N by #O" ]]
#N Acorn
#O Charles Corderman
#C A methuselah with lifespan 5206.
x = 7, y = 3, rule = B3/S23
bo5b$3bo3b$2o2b3o!
Or as a waypoint message:

Code: Select all

#C [[ "Name: #N\nOriginator: #O" ]]
#N Acorn
#O Charles Corderman
#C A methuselah with lifespan 5206.
x = 7, y = 3, rule = B3/S23
bo5b$3bo3b$2o2b3o!

User avatar
gmc_nxtman
Posts: 1147
Joined: May 26th, 2015, 7:20 pm

Re: Pattern viewer for forum threads

Post by gmc_nxtman » June 26th, 2017, 12:46 pm

rowett wrote:This was partially implemented in build 182 which was released to the forum on April 8th, 2016:
  • help information now includes pattern name and originator if specified in the RLE using #N and #O

Code: Select all

#N Acorn
#O Charles Corderman
#C A methuselah with lifespan 5206.
x = 7, y = 3, rule = B3/S23
bo5b$3bo3b$2o2b3o!
If you click "SHOW IN VIEWER" above and then use hotkey "i" for information you'll see the Name and Originator in the "Pattern:" section of the Help Information.
I wasn't aware of this feature! I guess I didn't look too far into the changelog to notice that. Looks good. :)

User avatar
drc
Posts: 1664
Joined: December 3rd, 2015, 4:11 pm
Location: creating useless things in OCA

Re: Pattern viewer for forum threads

Post by drc » July 3rd, 2017, 11:23 pm

The code box with 15c/15 above it uses a torus too big for LifeViewer to handle. Maybe a limit should be imposed so that a black box doesn't appear?
This post was brought to you by the letter D, for dishes that Andrew J. Wade won't do. (Also Daniel, which happens to be me.)
Current rule interest: B2ce3-ir4a5y/S2-c3-y

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

Re: Pattern viewer for forum threads

Post by rowett » July 4th, 2017, 2:20 am

drc wrote:The code box with 15c/15 above it uses a torus too big for LifeViewer to handle. Maybe a limit should be imposed so that a black box doesn't appear?
Thanks for reporting! This has been fixed and will be in the next released build. Test case is here.

User avatar
gameoflifeboy
Posts: 474
Joined: January 15th, 2015, 2:08 am

Re: Pattern viewer for forum threads

Post by gameoflifeboy » July 7th, 2017, 2:34 am

I already posted this somewhere else, but I'm reposting it because I think it deserves attention. My apologies if this issue is already known:
gameoflifeboy, in the LtL thread wrote:nless the extended RLE [of a bounded-grid pattern] gives the pattern's coordinates, LifeViewer places the pattern in the upper left of the torus but Golly places it in the middle. This isn't a problem for tori, but the same thing also happens on a bounded grid, which causes some patterns to run differently. Fortunately this can be avoided by explicitly specifying the coordinates [with #CXRLE].

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

Re: Pattern viewer for forum threads

Post by rowett » July 7th, 2017, 5:07 pm

gameoflifeboy wrote:nless the extended RLE [of a bounded-grid pattern] gives the pattern's coordinates, LifeViewer places the pattern in the upper left of the torus but Golly places it in the middle.

Noted. It's on the backlog for LifeViewer. Thanks for reporting!

User avatar
gameoflifeboy
Posts: 474
Joined: January 15th, 2015, 2:08 am

Re: Pattern viewer for forum threads

Post by gameoflifeboy » July 15th, 2017, 12:46 am

When using AutoFit on this pattern, a lightspeed spaceship in a cylinder, LifeViewer zooms out despite the bounding box of the spaceship not growing:

Code: Select all

x = 11, y = 12, rule = B3/S23:T0,12
2bo7bo$2bo7bo$2bo7bo$2bo7bo$2bo7bo$2bo7bo$o9bo$o9bo$o9bo$2bo7bo$2bo7bo
$2bo7bo!
[[ AUTOFIT AUTOSTART ]]

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

Re: Pattern viewer for forum threads

Post by rowett » July 15th, 2017, 8:58 am

gameoflifeboy wrote:When using AutoFit on this pattern, a lightspeed spaceship in a cylinder, LifeViewer zooms out despite the bounding box of the spaceship not growing
With Bounded Grids (and LifeHistory patterns too) LifeViewer uses the initial bounding box as the minimum size for AutoFit. I may make this an option in a future build.

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

Re: Pattern viewer for forum threads

Post by rowett » August 15th, 2017, 4:12 pm

Build 233 is now live on the Forums and LifeWiki

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

LifeViewer can now be used to display static images with the [[ NOGUI ]] script command. You can save the image by right clicking on it and "Save image as..." (depending on your browser). You can copy the pattern's source RLE the clipboard by mousing over the image and clicking on it when "Copy" appears.
b2o2b2o$3b2o$3b2o$obo2bobo$o6bo2$o6bo$b2o2b2o$2b4o2$3b2o$3b2o! [[ NOGUI THEME 6 GRID HEIGHT 200 WIDTH 200 ]]
Images can be as small as 64x64 pixels:
b2o2b2o$3b2o$3b2o$obo2bobo$o6bo2$o6bo$b2o2b2o$2b4o2$3b2o$3b2o! [[ NOGUI THEME 6 GRID HEIGHT 64 WIDTH 64 ]]
You can disable the copy functionality by using the [[ NOCOPY ]] script command:
b2o2b2o$3b2o$3b2o$obo2bobo$o6bo2$o6bo$b2o2b2o$2b4o2$3b2o$3b2o! [[ NOGUI NOCOPY THEME 6 GRID HEIGHT 64 WIDTH 64 ]]
Enhancements since the last released build:
  • improved compatibility of copy pattern source
  • renamed [[ NORLE ]] to [[ NOCOPY ]] and then link from "RLE" to "Copy"
  • added [[ NOSOURCE ]] which hides the pattern source textbox
  • help information now shows MAP rules on multiple lines
Fixes since the last released build:
  • the RLE reader could skip rule definition if previous line was just a # character
  • bounded grids are now checked to make sure they fit - test
  • canonical MAP rule is now correct
Comments, feedback, suggestions and bug reports welcome!

User avatar
gameoflifemaniac
Posts: 774
Joined: January 22nd, 2017, 11:17 am
Location: There too

Re: Pattern viewer for forum threads

Post by gameoflifemaniac » August 15th, 2017, 4:31 pm

LtL rules are not simulated correctly in LifeViewer. The patterns are just stationary.
https://www.youtube.com/watch?v=q6EoRBvdVPQ
One big dirty Oro. Yeeeeeeeeee...

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

Re: Pattern viewer for forum threads

Post by muzik » August 15th, 2017, 4:40 pm

gameoflifemaniac wrote:LtL rules are not simulated correctly in LifeViewer. The patterns are just stationary.
That's because LifeViewer currently doesn't attempt to simulate them at all right now.

On that note, I wonder how development on just that is getting on.
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

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

Re: Pattern viewer for forum threads

Post by rowett » August 15th, 2017, 5:08 pm

muzik wrote:
gameoflifemaniac wrote:LtL rules are not simulated correctly in LifeViewer. The patterns are just stationary.
That's because LifeViewer currently doesn't attempt to simulate them at all right now.

On that note, I wonder how development on just that is getting on.
Correct, LtL is not yet complete in LifeViewer.

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

Re: Pattern viewer for forum threads

Post by muzik » August 15th, 2017, 5:17 pm

What will the limits (for range) be, if any?
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

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

Re: Pattern viewer for forum threads

Post by rowett » August 15th, 2017, 5:34 pm

muzik wrote:What will the limits (for range) be, if any?
Same as Golly.

User avatar
gameoflifemaniac
Posts: 774
Joined: January 22nd, 2017, 11:17 am
Location: There too

Re: Pattern viewer for forum threads

Post by gameoflifemaniac » August 16th, 2017, 6:15 am

rowett wrote:
muzik wrote:What will the limits (for range) be, if any?
Same as Golly.
So you are the creator of LifeViewer?
https://www.youtube.com/watch?v=q6EoRBvdVPQ
One big dirty Oro. Yeeeeeeeeee...

Saka
Posts: 3138
Joined: June 19th, 2015, 8:50 pm
Location: In the kingdom of Sultan Hamengkubuwono X

Re: Pattern viewer for forum threads

Post by Saka » August 16th, 2017, 6:16 am

gameoflifemaniac wrote: Same as Golly.
So you are the creator of LifeViewer?[/quote]
Yes if you cant tell already.
Airy Clave White It Nay

Code: Select all

x = 17, y = 10, rule = B3/S23
b2ob2obo5b2o$11b4obo$2bob3o2bo2b3o$bo3b2o4b2o$o2bo2bob2o3b4o$bob2obo5b
o2b2o$2b2o4bobo2b3o$bo3b5ob2obobo$2bo5bob2o$4bob2o2bobobo!
(Check gen 2)

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

Re: Pattern viewer for forum threads

Post by muzik » September 5th, 2017, 7:57 pm

Is there/could there be a way to switch between displaying hexagonal rules on a regular square lattice (as in golly), a brick square lattice (like lifeviewer currently), and a true hexagonal grid?
Bored of using the Moore neighbourhood for everything? Introducing the Range-2 von Neumann isotropic non-totalistic rulespace!

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

Re: Pattern viewer for forum threads

Post by rowett » September 5th, 2017, 11:06 pm

muzik wrote:Is there/could there be a way to switch between displaying hexagonal rules on a regular square lattice (as in golly), a brick square lattice (like lifeviewer currently), and a true hexagonal grid?
You can switch between the first two (hotkey '/'). LifeViewer does not support a true hexagonal grid.

Post Reply