ConwayLife.com - A community for Conway's Game of Life and related cellular automata
Home  •  LifeWiki  •  Forums  •  Download Golly

Pattern viewer for forum threads

For discussion directly related to ConwayLife.com, such as requesting changes to how the forums or wiki function.

Re: Pattern viewer for forum threads

Postby 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?
Gamedziner
 
Posts: 454
Joined: May 30th, 2016, 8:47 pm
Location: Milky Way Galaxy: Planet Earth

Re: Pattern viewer for forum threads

Postby 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
Cclee
 
Posts: 56
Joined: October 5th, 2017, 9:51 pm
Location: de internet

Re: Pattern viewer for forum threads

Postby rowett » October 26th, 2017, 11:16 am

Hopefully in a few weeks. I've been busy.
rowett
Moderator
 
Posts: 856
Joined: January 31st, 2013, 2:34 am
Location: UK

Re: Pattern viewer for forum threads

Postby 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
Cclee
 
Posts: 56
Joined: October 5th, 2017, 9:51 pm
Location: de internet

Re: Pattern viewer for forum threads

Postby 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:

.......*.
.**..*.*.
*..*..**.
.*.*.....
..*......
........*
......***
.....*...
.....**..

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:

.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 ]]
User avatar
dvgrn
Moderator
 
Posts: 4568
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI

Re: Pattern viewer for forum threads

Postby 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,
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?
Electro_blob
 
Posts: 16
Joined: October 13th, 2017, 8:46 pm

Re: Pattern viewer for forum threads

Postby 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.
User avatar
dvgrn
Moderator
 
Posts: 4568
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI

Re: Pattern viewer for forum threads

Postby 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,
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.
Electro_blob
 
Posts: 16
Joined: October 13th, 2017, 8:46 pm

Re: Pattern viewer for forum threads

Postby lifeisawesome » December 23rd, 2017, 5:17 pm

11-59 fps is actually 10 fps, slowly increasing to 20 fps.
--Szymon Bartosiewicz
favorite pattern:
x = 2, y = 2, rule = B25/S3a
2o$2o!
User avatar
lifeisawesome
 
Posts: 86
Joined: April 22nd, 2016, 1:55 pm
Location: poland

Re: Pattern viewer for forum threads

Postby 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.
rowett
Moderator
 
Posts: 856
Joined: January 31st, 2013, 2:34 am
Location: UK

Re: Pattern viewer for forum threads

Postby 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.
wildmyron
 
Posts: 761
Joined: August 9th, 2013, 12:45 am

Re: Pattern viewer for forum threads

Postby 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.
rowett
Moderator
 
Posts: 856
Joined: January 31st, 2013, 2:34 am
Location: UK

Re: Pattern viewer for forum threads

Postby wildmyron » January 19th, 2018, 11:21 pm

@rowett: that's great, thank you very much.
wildmyron
 
Posts: 761
Joined: August 9th, 2013, 12:45 am

Re: Pattern viewer for forum threads

Postby 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
77topaz
 
Posts: 599
Joined: January 12th, 2018, 9:19 pm

Re: Pattern viewer for forum threads

Postby 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.
rowett
Moderator
 
Posts: 856
Joined: January 31st, 2013, 2:34 am
Location: UK

Re: Pattern viewer for forum threads

Postby 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!
rowett
Moderator
 
Posts: 856
Joined: January 31st, 2013, 2:34 am
Location: UK

Re: Pattern viewer for forum threads

Postby Saka » March 3rd, 2018, 2:47 am

So no LTL yet?
Proud owner and founder of Sakagolue
x = 17, y = 10, rule = B3/S23
b2ob2obo5b2o$11b4obo$2bob3o2bo2b3o$bo3b2o4b2o$o2bo2bob2o3b4o$bob2obo5b
o2b2o$2b2o4bobo2b3o$bo3b5ob2obobo$2bo5bob2o$4bob2o2bobobo!

(Check gen 2)
User avatar
Saka
 
Posts: 2481
Joined: June 19th, 2015, 8:50 pm
Location: In the kingdom of Sultan Hamengkubuwono X

Re: Pattern viewer for forum threads

Postby 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 :)
rowett
Moderator
 
Posts: 856
Joined: January 31st, 2013, 2:34 am
Location: UK

Re: Pattern viewer for forum threads

Postby 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
Cclee
 
Posts: 56
Joined: October 5th, 2017, 9:51 pm
Location: de internet

Re: Pattern viewer for forum threads

Postby 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!
rowett
Moderator
 
Posts: 856
Joined: January 31st, 2013, 2:34 am
Location: UK

Re: Pattern viewer for forum threads

Postby 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
77topaz
 
Posts: 599
Joined: January 12th, 2018, 9:19 pm

Re: Pattern viewer for forum threads

Postby 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.
rowett
Moderator
 
Posts: 856
Joined: January 31st, 2013, 2:34 am
Location: UK

Re: Pattern viewer for forum threads

Postby 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
User avatar
77topaz
 
Posts: 599
Joined: January 12th, 2018, 9:19 pm

Re: Pattern viewer for forum threads

Postby fluffykitty » March 14th, 2018, 7:19 pm

Bug: 60gps is a lot faster than 59gps.
I like making rules
fluffykitty
 
Posts: 326
Joined: June 14th, 2014, 5:03 pm

Re: Pattern viewer for forum threads

Postby rowett » March 15th, 2018, 3:59 am

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

Thanks for reporting!
rowett
Moderator
 
Posts: 856
Joined: January 31st, 2013, 2:34 am
Location: UK

PreviousNext

Return to Website Discussion

Who is online

Users browsing this forum: No registered users and 1 guest