Golly bugs

Has something gone haywire? Let us know about it!
User avatar
eRroR_6o6
Posts: 320
Joined: August 15th, 2023, 1:24 am
Location: somewhere over the rainbow

Re: Golly bugs

Post by eRroR_6o6 » December 16th, 2024, 10:00 pm

confocaloid wrote:
December 16th, 2024, 9:58 pm
Can you explain the details of how to reproduce the bug? I can't seem to reproduce it either in 4.3b2 or 4.3.
The bug only seems to happen when you reset the pattern while you're drawing the cell.

Code: Select all

x = 19, y = 37, rule = B3/S23
13b3o$12b4o$11b2obobo$13bobo$15bo12$10b2o$bobo7bobo$o7b2o3b2o$o3bo2b3o
3bo$o6b4obo$o2bo7bo$3o12bobo$18bo$14bo3bo$14bo3bo$18bo$9bo5bo2bo$8b3o
5b3o2$10bo$2bobo4b2o$5bo2b3o$5bo2b3o$2bo2bo2b2obo$3b3o3b3o$10bo!

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

Re: Golly bugs

Post by fluffykitty » December 24th, 2024, 10:12 pm

In Golly 4.3 icons in the state selector are off-center, and the icons in the file selector are different (and IMO worse). In the screenshot, top is 4.2b1, bottom is 4.3. I'm using MacOS 14.1.
Screenshot 2024-12-24 at 6.07.42 PM.png
Screenshot 2024-12-24 at 6.07.42 PM.png (223.97 KiB) Viewed 3992 times

User avatar
PiSpaceships
Posts: 57
Joined: January 17th, 2025, 12:20 pm

Re: Golly bugs

Post by PiSpaceships » January 13th, 2025, 2:58 pm

I tried to run the following rule with 3 states (air, ice, water) in Golly 4.3:
-If air is adjacent to 3 ice cells except the a3 configurations, then it will be an ice in next generation.
-If ice is adjacent to 2 or 3 ice cells, then it stays being ice.
-If water has at least 1 ice neighbor on west, south or east, it will be an ice.
-If non-ice has water on north and non-ice in both upper corners, it will be a water.
-Ice turn into a water which turns into an air by default.

Rule table:

Code: Select all

@RULE Ice

@TABLE
n_states:3
neighborhood:Moore
symmetries:reflect_horizontally

var a={0,1,2}
var b=a
var c=a
var d=a
var e=a
var f=a
var g=a
var h=a
var i={0,2}
var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d,1,e,f,g,1
2,a,b,c,d,e,f,1,g,1

#gravity
i,2,j,a,b,c,d,e,k,2

#defaults
i,a,b,c,d,e,f,g,h,0
1,a,b,c,d,e,f,g,h,2
For some reason it doesn't work. The invalid behavour of Golly is presented in the video below. It works in LifeViewer, so I don't know what's going on.
video
Pi Spaceship and wanderer:

Code: Select all

x=14, y=4, rule=B2e3ei/S2-a34a
7bo$3o3b3o$obo4b2o$obo5bo!

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

Re: Golly bugs

Post by rowett » January 13th, 2025, 5:08 pm

TBPO wrote:
January 13th, 2025, 2:58 pm
I tried to run the following rule with 3 states (air, ice, water) in Golly 4.3:

Code: Select all

@RULE Ice

@TABLE
n_states:3
neighborhood:Moore
symmetries:reflect_horizontally
...
For some reason it doesn't work.
symmetries:reflect_horizontally is invalid. it should be reflect_horizontal.

User avatar
PiSpaceships
Posts: 57
Joined: January 17th, 2025, 12:20 pm

Re: Golly bugs

Post by PiSpaceships » January 14th, 2025, 11:57 am

rowett wrote:
January 13th, 2025, 5:08 pm
TBPO wrote:
January 13th, 2025, 2:58 pm
I tried to run the following rule with 3 states (air, ice, water) in Golly 4.3:

Code: Select all

rule table
For some reason it doesn't work.
symmetries:reflect_horizontally is invalid. it should be reflect_horizontal.
I fixed it and it still doesn't work.
Pi Spaceship and wanderer:

Code: Select all

x=14, y=4, rule=B2e3ei/S2-a34a
7bo$3o3b3o$obo4b2o$obo5bo!

User avatar
confocaloid
Posts: 5572
Joined: February 8th, 2022, 3:15 pm
Location: learn to protect yourself against stray gliders and sparks and self-destruct mechanisms

Re: Golly bugs

Post by confocaloid » January 14th, 2025, 12:08 pm

TBPO wrote:
January 14th, 2025, 11:57 am
I fixed it and it still doesn't work.
Can you provide more details on which patterns don't appear to evolve correctly?

I tested the following pattern in Golly 4.3 and in LifeViewer build 1226. It appears to work the same way in both cases. In particular generation 100 shows population 476 and bounding box 27-by-112. Is that as expected, or it is supposed to evolve differently?

Code: Select all

x = 10, y = 10, rule = Ice
A2.A2.2B.B$.2B.A.A.BA$BA3.B.A2B$3A2.A2BA$.A2.BA$.BA2.2A2B$B.A2.A.A$A.
AB2.B3A$2.BA.A.A.B$A5.BABA!

@RULE Ice

@TABLE
n_states:3
neighborhood:Moore
symmetries:reflect_horizontal

var a={0,1,2}
var b=a
var c=a
var d=a
var e=a
var f=a
var g=a
var h=a
var i={0,2}
var j=i
var k=i
var l=i
var m=i
var n=i
var o={0,1}

#B3-a & S3-a
o,1,1,i,1,j,k,l,m,1
o,1,1,i,j,1,k,l,m,1
o,1,1,i,j,k,1,l,m,1
o,1,1,i,j,k,l,1,m,1
o,1,1,i,j,k,l,m,1,1
o,1,i,1,1,j,k,l,m,1
o,1,i,1,j,1,k,l,m,1
o,1,i,1,j,k,1,l,m,1
o,1,i,1,j,k,l,1,m,1
o,1,i,j,1,1,k,l,m,1
o,1,i,j,1,k,1,l,m,1
o,i,1,1,1,j,k,l,m,1
o,i,1,1,j,1,k,l,m,1
o,i,1,1,j,k,1,l,m,1
o,i,1,1,j,k,l,1,m,1
o,i,1,1,j,k,l,m,1,1
o,i,1,j,1,1,k,l,m,1
o,i,1,j,1,k,1,l,m,1
o,i,1,j,1,k,l,1,m,1
o,i,1,j,1,k,l,m,1,1
o,i,1,j,k,1,1,l,m,1
o,i,1,j,k,1,l,1,m,1
o,i,1,j,k,1,l,m,1,1
o,i,1,j,k,1,1,l,m,1
o,i,j,1,1,k,1,l,m,1
o,i,j,1,1,k,l,1,m,1
o,i,j,1,k,1,1,l,m,1
o,i,j,1,k,1,l,1,m,1
o,i,j,k,1,1,1,l,m,1

#S23a
1,1,1,1,i,j,k,l,m,1
1,i,j,1,1,1,k,l,m,1
1,1,1,i,j,k,l,m,n,1
1,1,i,1,j,k,l,m,n,1
1,1,i,j,1,k,l,m,n,1
1,1,i,j,k,1,l,m,n,1
1,i,1,1,j,k,l,m,n,1
1,i,1,j,1,k,l,m,n,1
1,i,1,j,k,1,l,m,n,1
1,i,1,j,k,l,1,m,n,1
1,i,1,j,k,l,m,1,n,1
1,i,1,j,k,l,m,n,1,1
1,i,j,1,1,k,l,m,n,1
1,i,j,1,k,1,l,m,n,1
1,i,j,1,k,l,1,m,n,1
1,i,j,1,k,l,m,1,n,1
1,i,j,k,1,1,l,m,n,1
1,i,j,k,1,l,1,m,n,1

#Water->Ice
2,a,b,1,c,d,e,f,g,1
2,a,b,c,d,1,e,f,g,1
2,a,b,c,d,e,f,1,g,1

#gravity
i,2,j,a,b,c,d,e,k,2

#defaults
i,a,b,c,d,e,f,g,h,0
1,a,b,c,d,e,f,g,h,2
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
PiSpaceships
Posts: 57
Joined: January 17th, 2025, 12:20 pm

Re: Golly bugs

Post by PiSpaceships » January 15th, 2025, 1:22 pm

confocaloid wrote:
January 14th, 2025, 12:08 pm
I tested the following pattern in Golly 4.3 and in LifeViewer build 1226. It appears to work the same way in both cases. In particular generation 100 shows population 476 and bounding box 27-by-112. Is that as expected, or it is supposed to evolve differently?

Code: Select all

x = 10, y = 10, rule = Ice
A2.A2.2B.B$.2B.A.A.BA$BA3.B.A2B$3A2.A2BA$.A2.BA$.BA2.2A2B$B.A2.A.A$A.
AB2.B3A$2.BA.A.A.B$A5.BABA!

...
In LifeViewer it evolves exactly as I wanted, but it still doesn't evolve correctly in Golly.

EDIT: I changed the name of the rule to IceB and it works! I think that Golly behaved incorrectly because first version of this rule was incorrect and Golly 'remembered' it, unaware that meanwhile the rule changed. It's still an error to fix.
Pi Spaceship and wanderer:

Code: Select all

x=14, y=4, rule=B2e3ei/S2-a34a
7bo$3o3b3o$obo4b2o$obo5bo!

User avatar
confocaloid
Posts: 5572
Joined: February 8th, 2022, 3:15 pm
Location: learn to protect yourself against stray gliders and sparks and self-destruct mechanisms

Re: Golly bugs

Post by confocaloid » January 15th, 2025, 1:29 pm

TBPO wrote:
January 15th, 2025, 1:22 pm
[...] In LifeViewer it evolves exactly as I wanted, but it still doesn't evolve correctly in Golly. [...]
Which version of Golly you are using?
TBPO wrote:
January 15th, 2025, 1:22 pm
[...] It's still an error to fix.
I think this isn't an error. To replace the existing copy of a .rule file, you can simply copy the new version into clipboard and do Ctrl+Shift+O ("Open Clipboard"). It should ask for confirmation before overwriting the existing file.
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
PiSpaceships
Posts: 57
Joined: January 17th, 2025, 12:20 pm

Re: Golly bugs

Post by PiSpaceships » January 15th, 2025, 1:45 pm

confocaloid wrote:
January 15th, 2025, 1:29 pm
Which version of Golly you are using?
Golly 4.3.
confocaloid wrote:
January 15th, 2025, 1:29 pm
I think this isn't an error. To replace the existing copy of a .rule file, you can simply copy the new version into clipboard and do Ctrl+Shift+O ("Open Clipboard"). It should ask for confirmation before overwriting the existing file.
I didn't know that... :shock: Sorry for wasting your time...
Pi Spaceship and wanderer:

Code: Select all

x=14, y=4, rule=B2e3ei/S2-a34a
7bo$3o3b3o$obo4b2o$obo5bo!

User avatar
confocaloid
Posts: 5572
Joined: February 8th, 2022, 3:15 pm
Location: learn to protect yourself against stray gliders and sparks and self-destruct mechanisms

Re: Golly bugs

Post by confocaloid » January 15th, 2025, 1:49 pm

That feature could be more visible than it is, but then probably some other feature would become less visible/less discoverable.

Some features can be found by looking through the supplied documentation, or looking through the menu items, or looking through the "File -> Preferences" dialog (and asking on the forums or reading an earlier discussion).
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
PiSpaceships
Posts: 57
Joined: January 17th, 2025, 12:20 pm

Re: Golly bugs

Post by PiSpaceships » January 15th, 2025, 1:49 pm

confocaloid wrote:
January 15th, 2025, 1:49 pm
That feature could be more visible than it is, but then probably some other feature would become less visible/less discoverable.

Some features can be found by looking through the supplied documentation, or looking through the menu items, or looking through the "File -> Preferences" dialog (and asking on the forums or reading an earlier discussion).
Thank you.
Pi Spaceship and wanderer:

Code: Select all

x=14, y=4, rule=B2e3ei/S2-a34a
7bo$3o3b3o$obo4b2o$obo5bo!

User avatar
Andrew
Moderator
Posts: 991
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Golly bugs

Post by Andrew » January 28th, 2025, 6:40 am

fluffykitty wrote:
December 24th, 2024, 10:12 pm
In Golly 4.3 icons in the state selector are off-center, and the icons in the file selector are different (and IMO worse).
Yep, I see the same issue on my Mac. It looks like a regression due to building Golly with a newer version of wxWidgets, so I'll try to fix it for the next release (probably much later this year).
Use Glu or Glui to explore CA rules on non-periodic tilings: DominoLife and HatLife

Post Reply