Pattern viewer for forum threads

For discussion directly related to ConwayLife.com, such as requesting changes to how the forums or home page function.
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 » September 10th, 2017, 7:27 am

rowett wrote:Correct, LtL is not yet complete in LifeViewer.
Any estimate as to how long that will take?

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!

User avatar
Cclee
Posts: 56
Joined: October 5th, 2017, 9:51 pm
Location: de internet

Re: Pattern viewer for forum threads

Post by Cclee » October 26th, 2017, 9:57 am

how close are we to getting LtL in life viewer. it has been over a year since it was first asked
^
What ever up there likely useless

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 26th, 2017, 11:16 am

Hopefully in a few weeks. I've been busy.

User avatar
Cclee
Posts: 56
Joined: October 5th, 2017, 9:51 pm
Location: de internet

Re: Pattern viewer for forum threads

Post by Cclee » October 26th, 2017, 1:47 pm

rowett wrote:Hopefully in a few weeks. I've been busy.
YOY. Can’t wait
^
What ever up there likely useless

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

Re: Pattern viewer for forum threads

Post by dvgrn » November 16th, 2017, 2:38 pm

Electro_blob wrote:How exactly do you make patterns in this thing?
Probably start by creating a pattern in Golly, or editing an existing one. Select and copy (Ctrl+C) the pattern. Or do anything that will produce RLE text or ASCII picture-format text.

For the ASCII case, here's an example: let's see if I can build a loafer pattern freehand from memory. Here's how I remember it -- a loaf, a glider, and an eater:

Code: Select all

.......*.
.**..*.*.
*..*..**.
.*.*.....
..*......
........*
......***
.....*...
.....**..
Then I move the tail end of the glider one cell diagonally, and adjust the mouth of the eater a little bit, et voilà! (Or "and viola!", as they say on the Intertubes... I've also seen "wa-la" and "wah-lah". But I digress.)

You can build your own patterns with periods and asterisks (or O's), the same way. Paste your pattern into a message, select it, and click the "Code" or "viewer" button at the top of the message text field, to tell lv-plugin.js to display your pattern appropriately:

Code: Select all

.OO..O.OO
O..O..OO.
.O.O.....
..O......
........O
......OOO
.....O...
......O..
.......OO
If you use RLE format copied from Golly, you can add scripting commands. Type H in LifeViewer for a summary of the available commands (you have to scroll down a bit). Or hit Reply to this message to see the exact text that produces what you see here:

Code: Select all

x = 9, y = 9, rule = B3/S23
b2o2bob2o$o2bo2b2o$bobo$2bo$8bo$6b3o$5bo$6bo$7b2o!
#C [[ AUTOSTART GPS 7 TRACK -1/7 0 THUMBNAIL GRID THEME 4 ]]

Electro_blob
Posts: 25
Joined: October 13th, 2017, 8:46 pm

Re: Pattern viewer for forum threads

Post by Electro_blob » November 16th, 2017, 2:59 pm

Thank you allot. I think I'm starting to understand. Why are there $'s and numbers? For example in,

Code: Select all

x = 9, y = 9, rule = B3/S23
b2o2bob2o$o2bo2b2o$bobo$2bo$8bo$6b3o$5bo$6bo$7b2o!
#C [[ AUTOSTART GPS 7 TRACK -1/7 0 THUMBNAIL GRID THEME 4 ]]
if it is just binary?

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

Re: Pattern viewer for forum threads

Post by dvgrn » November 16th, 2017, 3:04 pm

Electro_blob wrote:Thank you allot. I think I'm starting to understand. Why are there $'s and numbers... if it is just binary?
Unlike the simple ASCII format with periods and asterisks, RLE format is not just binary ON/OFF -- or rather, it's a moderately compressed encoding of it. See Run Length Encoded.

Electro_blob
Posts: 25
Joined: October 13th, 2017, 8:46 pm

Re: Pattern viewer for forum threads

Post by Electro_blob » November 16th, 2017, 3:07 pm

Electro_blob wrote:Thank you allot. I think I'm starting to understand. Why are there $'s and numbers? For example in,

Code: Select all

x = 9, y = 9, rule = B3/S23
b2o2bob2o$o2bo2b2o$bobo$2bo$8bo$6b3o$5bo$6bo$7b2o!
#C [[ AUTOSTART GPS 7 TRACK -1/7 0 THUMBNAIL GRID THEME 4 ]]
if it is just binary?
Never mind. I just read an article on how this works and it makes sense now. Here's the article if anyone else wants to use it
http://golly.sourceforge.net/Help/formats.html
Thank you allot for suffering through my ignorance.

User avatar
lifeisawesome
Posts: 86
Joined: April 22nd, 2016, 1:55 pm
Location: poland

Re: Pattern viewer for forum threads

Post by lifeisawesome » December 23rd, 2017, 5:17 pm

11-59 fps is actually 10 fps, slowly increasing to 20 fps.
--Szymon Bartosiewicz
favorite pattern:

Code: Select all

x = 2, y = 2, rule = B25/S3a
2o$2o!

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 23rd, 2017, 6:02 pm

lifeisawesome wrote:11-59 fps is actually 10 fps, slowly increasing to 20 fps.
When you set the fps you are setting the target fps. The actual fps will depend on the power of your computer and the complexity and size of the pattern. If LifeViewer can't meet the target it will draw the fps background in red.

wildmyron
Posts: 1542
Joined: August 9th, 2013, 12:45 am
Location: Western Australia

Re: Pattern viewer for forum threads

Post by wildmyron » January 18th, 2018, 4:06 am

There's a bug in LifeViewer's handling of negative coord values in #CXRLE lines for rules on bounded grids. See here for test case and details.

I'd also like to mention that there's a little quirk in the panning behaviour which is a bit frustrating, but not enough for me to have reported it before now. It seems that the step for panning is independent of the zoom, so even for very large patterns and -ve Zoom values the view only shifts by one cell in response to the arrow keys. Panning would be much more useful if the step was zoom dependent.
The 5S project (Smallest Spaceships Supporting Specific Speeds) is now maintained by AforAmpere. The latest collection is hosted on GitHub and contains well over 1,000,000 spaceships.

Semi-active here - recovering from a severe case of LWTDS.

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 » January 19th, 2018, 11:08 pm

wildmyron wrote:There's a bug in LifeViewer's handling of negative coord values in #CXRLE lines for rules on bounded grids.
Thanks for reporting! I'll take a look.
wildmyron wrote:Panning would be much more useful if the step was zoom dependent.
This is fixed and will be in the next released build.

wildmyron
Posts: 1542
Joined: August 9th, 2013, 12:45 am
Location: Western Australia

Re: Pattern viewer for forum threads

Post by wildmyron » January 19th, 2018, 11:21 pm

@rowett: that's great, thank you very much.
The 5S project (Smallest Spaceships Supporting Specific Speeds) is now maintained by AforAmpere. The latest collection is hosted on GitHub and contains well over 1,000,000 spaceships.

Semi-active here - recovering from a severe case of LWTDS.

User avatar
77topaz
Posts: 1496
Joined: January 12th, 2018, 9:19 pm

Re: Pattern viewer for forum threads

Post by 77topaz » January 24th, 2018, 11:42 pm

rowett wrote:When you set the fps you are setting the target fps. The actual fps will depend on the power of your computer and the complexity and size of the pattern. If LifeViewer can't meet the target it will draw the fps background in red.
When I use LifeViewer, it behaves slightly differently: the background of the FPS box is always red when a pattern is running, even at just 1 FPS. However, at large step sizes for complex patterns that the system can't seem to keep up with, I see the background of the step size box flashing.

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 » January 25th, 2018, 2:11 am

77topaz wrote:
rowett wrote:When you set the fps you are setting the target fps. The actual fps will depend on the power of your computer and the complexity and size of the pattern. If LifeViewer can't meet the target it will draw the fps background in red.
When I use LifeViewer, it behaves slightly differently: the background of the FPS box is always red when a pattern is running, even at just 1 FPS. However, at large step sizes for complex patterns that the system can't seem to keep up with, I see the background of the step size box flashing.
To keep the UI responsive LifeViewer has a maximum time it will allow between updates. If STEP is flashing it means LifeViewer performed less generations than set in the STEP box to keep up.

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 » March 3rd, 2018, 2:07 am

Build 238 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:
  • improved POI capability
    • you can now specify any of the following settings at each POI
      • [[ X Y ZOOM ANGLE LAYERS DEPTH GPS STEP THEME LOOP STOP ]]
    • you can also specify actions at each POI
      • [[ POIRESET ]] - reset playback to T = 0
      • [[ POIPLAY ]] - continue playback from current generation
      • [[ POISTOP ]] - pause playback
      • [[ POIT <generation> ]] - skip to defined generation
    • [[ POITRANS 0..200 ]] specifies the transition speed to the POI in frames (1/60ths of a second)
      • 0 means instantaneous transition
      • if not specified then the default is 12
    • a POI will only change the settings that are defined and other settings are left unmodified
    • the initial settings are the default settings for LifeViewer and can be overridden with script commands before any POI definition
    • added script keyword [[ INITIAL ]] that can be used in a POI definition
      • [[ ALL INITIAL ]] makes all settings for the POI the same as the initial settings
        • the required settings can then be overridden e.g. [[ POI ALL INITIAL ZOOM 4 ]] copies all and overrides ZOOM
      • [[ X|Y|ZOOM|ANGLE|LAYERS|DEPTH|GPS|STEP|THEME|LOOP|STOP INITIAL ]] copies the initial setting of the defined parameter into the POI
        • [[ POI X INITIAL Y INITIAL ]] sets X and Y from the initial and leaves everything else unchanged
      • [[ POI INITIAL ]] makes the defined POI the default on pattern load rather than the initial settings (note this does not change the initial settings for copying)
  • Pattern decoders
    • added support for Hex and von Neumann neighbourhoods to MAP rules
    • MAP rules now allow base64 padding
    • Life 1.05 format patterns now support all rules including bounded grids
  • Script commands
    • new script command [[ SUPPRESS ]] which suppresses overwrite error message for duplicate definitions once
    • [[ WIDTH ]] and [[ HEIGHT ]] are now checked for duplicate definitions
    • [[ STOP ]] and [[ LOOP ]] can now take the parameter [[ OFF ]] to disable them (useful for POI definitions)
    • [[ STOP ]] and [[ LOOP ]] tooltips now show generation
    • [[ NOSOURCE ]] now also hides the "CODE : SELECT ALL" line on the forum
  • UI
    • hotkeys alt and "1" to alt and "9" will switch to respective POIs (if defined)
    • hotkey shift and "c" now cycles backwards through colour Themes
    • hotkey alt and "c" selects the default Theme
    • panning with the cursor keys is faster when zoomed out
    • hotkey shift and "l" will toggle LOOP mode if defined
    • help information now marks current POI with *
  • General
    • whitespace at the beginning of lines is now removed before copying patterns to the clipboard
Fixes since the last released build:
  • Pattern decoders
    • rules in the format SnnBnn were being decoded with S and B transposed
    • non-totalistic rules with repeated neighbour counts were decoded incorrectly
    • bounded grids were not working correctly with CXRLE POS
  • UI
    • copy pattern source (hotkey "c") was not working correctly in the standalone Viewer
    • LifeHistory patterns were not respecting Themes at generation 0
    • updated event handling for the UI to handle spurious mouseleave events posted when both mouseup and mousedown happen between updates
    • if there were more script errors than could fit on one page of the Viewer then the last error could not be scrolled to
    • LOOP was performing a camera reset when LOOP enabled after the LOOP generation
  • General
    • Waypoint error messages were showing incorrect sign when overwriting X or Y camera positions
    • an error could be generated about XOFFSET and YOFFSET when they weren't specified
The updated hotkey map detailing the LifeViewer keyboard controls is here.

Comments, feedback, suggestions and bug reports welcome!

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

Re: Pattern viewer for forum threads

Post by Saka » March 3rd, 2018, 2:47 am

So no LTL yet?

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 » March 3rd, 2018, 3:21 am

Saka wrote:So no LTL yet?
No, it's not finished yet. LTL patterns get successfully decoded and validated. I just haven't finished the runtime. And no, I'm not sure how long that will take.

Thanks for asking :)

User avatar
Cclee
Posts: 56
Joined: October 5th, 2017, 9:51 pm
Location: de internet

Re: Pattern viewer for forum threads

Post by Cclee » March 3rd, 2018, 2:55 pm

rowett wrote:
Saka wrote:So no LTL yet?
No, it's not finished yet. LTL patterns get successfully decoded and validated. I just haven't finished the runtime. And no, I'm not sure how long that will take.

Thanks for asking :)
well closer than before so yay
^
What ever up there likely useless

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 » March 3rd, 2018, 3:56 pm

Build 239 is now live on the Forums and LifeWiki

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

Fixes since the last released build:
  • fixed LifeHistory states 2 and 6 that were broken by the previous release
Comments, feedback, suggestions and bug reports welcome!

User avatar
77topaz
Posts: 1496
Joined: January 12th, 2018, 9:19 pm

Re: Pattern viewer for forum threads

Post by 77topaz » March 3rd, 2018, 5:01 pm

rowett wrote:Build 239 is now live on the Forums and LifeWiki

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

Fixes since the last released build:
  • fixed LifeHistory states 2 and 6 that were broken by the previous release
Comments, feedback, suggestions and bug reports welcome!
I'm getting some slightly annoying behaviour that I didn't get previously: when I drag the GPS or x sliders, and I drag one all the way to the end so my mouse cursor ends up above the other slider, it automatically selects that slider when I release my mouse, which means I keep adjusting the GPS unintentionally while changing the x, and vice versa.

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 » March 3rd, 2018, 5:31 pm

77topaz wrote:I'm getting some slightly annoying behaviour that I didn't get previously: when I drag the GPS or x sliders, and I drag one all the way to the end so my mouse cursor ends up above the other slider, it automatically selects that slider when I release my mouse, which means I keep adjusting the GPS unintentionally while changing the x, and vice versa.
Thanks for reporting!

I believe I have fixed the issue.

Please test it here and let me know if it's working as you expect.
You may need to refresh your browser on the test page to get the new build. Click the Help button on the Viewer and it should say Build 240.

User avatar
77topaz
Posts: 1496
Joined: January 12th, 2018, 9:19 pm

Re: Pattern viewer for forum threads

Post by 77topaz » March 3rd, 2018, 6:39 pm

rowett wrote:Thanks for reporting!

I believe I have fixed the issue.

Please test it here and let me know if it's working as you expect.
You may need to refresh your browser on the test page to get the new build. Click the Help button on the Viewer and it should say Build 240.
Yep, it's working correctly now. Thanks! :D

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

Re: Pattern viewer for forum threads

Post by fluffykitty » March 14th, 2018, 7:19 pm

Bug: 60gps is a lot faster than 59gps.

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 » March 15th, 2018, 3:59 am

fluffykitty wrote:Bug: 60gps is a lot faster than 59gps.
Thanks for reporting!

Post Reply