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

Thread for basic questions

For general discussion about Conway's Game of Life.

Re: Thread for basic questions

Postby gameoflifemaniac » November 29th, 2017, 10:04 am

dvgrn wrote:
gameoflifemaniac wrote:My keyboard shortcuts are completely messed up. How to reset all shortcuts?
If I delete Golly, the keyboard shortcuts won't reset?

You might not have to delete Golly, but you do have to search for your "GollyPrefs" file, and not just in the Golly folder -- there is probably one in your user directory that's storing keyboard shortcuts.

If you remove all GollyPrefs files that the Golly executable might be able to locate, it will write out a new GollyPrefs file for you with default settings.

So, can you post the default GollyPrefs on this thread?
https://www.youtube.com/watch?v=q6EoRBvdVPQ
One big dirty Oro. Yeeeeeeeeee...
User avatar
gameoflifemaniac
 
Posts: 415
Joined: January 22nd, 2017, 11:17 am
Location: 54°00'39.4"N 21°43'50.5"E

Re: Thread for basic questions

Postby Macbi » November 29th, 2017, 10:10 am

Earlier in the thread I asked if we could write a program that rules out the existence of interesting patterns that spend their entire life in a strip of width 3 or 4. This would be useful because when we were searching for patterns we would only need to check bounding boxes of size 5 or larger in each direction.

I wrote such a program (not in fact using the method I described earlier) and it found an interesting pattern in a strip of width 3! Well, perhaps not so interesting. It's a burning fuse:
x = 90, y = 3, rule = B3/S23
2o2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2b
o2bo2bo2bo2bo2bo2b2o$5o2b4o2b4o2b4o2b4o2b4o2b4o2b4o2b4o2b4o2b4o2b4o2b
4o2b4o2b5o$2o2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo2bo
2bo2bo2bo2bo2bo2bo2bo2bo2bo2b2o!


Although it does eventually burn down to nothing, it shows that patterns that spend their entire lives in a strip of width 3 can still take arbitrarily long to stabilise.
User avatar
Macbi
 
Posts: 170
Joined: March 29th, 2009, 4:58 am

Re: Thread for basic questions

Postby gameoflifemaniac » November 29th, 2017, 12:47 pm

gameoflifemaniac wrote:
dvgrn wrote:
gameoflifemaniac wrote:My keyboard shortcuts are completely messed up. How to reset all shortcuts?
If I delete Golly, the keyboard shortcuts won't reset?

You might not have to delete Golly, but you do have to search for your "GollyPrefs" file, and not just in the Golly folder -- there is probably one in your user directory that's storing keyboard shortcuts.

If you remove all GollyPrefs files that the Golly executable might be able to locate, it will write out a new GollyPrefs file for you with default settings.

So, can you post the default GollyPrefs on this thread?

Plzzzzzzzzzzzzzzz
https://www.youtube.com/watch?v=q6EoRBvdVPQ
One big dirty Oro. Yeeeeeeeeee...
User avatar
gameoflifemaniac
 
Posts: 415
Joined: January 22nd, 2017, 11:17 am
Location: 54°00'39.4"N 21°43'50.5"E

Re: Thread for basic questions

Postby M. I. Wright » November 29th, 2017, 5:06 pm

gameoflifemaniac wrote:So, can you post the default GollyPrefs on this thread?
Read again --
dvgrn wrote:If you remove all GollyPrefs files that the Golly executable might be able to locate, it will write out a new GollyPrefs file for you with default settings.
M. I. Wright
 
Posts: 315
Joined: June 13th, 2015, 12:04 pm

Re: Thread for basic questions

Postby gameoflifemaniac » November 30th, 2017, 1:15 pm

Yee! It works!
EDIT: It didn't reset the keyboard shortcuts! It doesn't work!!!
What else files should I reset?
https://www.youtube.com/watch?v=q6EoRBvdVPQ
One big dirty Oro. Yeeeeeeeeee...
User avatar
gameoflifemaniac
 
Posts: 415
Joined: January 22nd, 2017, 11:17 am
Location: 54°00'39.4"N 21°43'50.5"E

Re: Thread for basic questions

Postby dvgrn » November 30th, 2017, 2:37 pm

gameoflifemaniac wrote:Yee! It works!
EDIT: It didn't reset the keyboard shortcuts! It doesn't work!!!
What else files should I reset?

In Golly Help, someone wrote:Preferences...

Opens the Preferences dialog so you can change various settings. All your settings are stored in a file called GollyPrefs. This file is initially saved in a user-specific data directory:

On Linux: ~/.golly/
On Mac: ~/Library/Application Support/Golly/
On Windows XP: C:\Documents and Settings\username\Application Data\Golly\
On Windows 7+: C:\Users\username\AppData\Roaming\Golly\
You might prefer to move GollyPrefs into the same folder as the application. This allows multiple copies of Golly to have their own set of preferences.

There's no keyboard shortcut information stored outside of GollyPrefs files, so depending on your OS (see above) you'll just need to find and remove another GollyPrefs file somewhere.
dvgrn
Moderator
 
Posts: 4019
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI

Re: Thread for basic questions

Postby gameoflifemaniac » November 30th, 2017, 4:10 pm

Damn! I haven't found any other GollyPrefs file, but I STILL CAN'T RESET THE KEYBOARD SHORTCUTS!!!!!
EDIT: Oh, I copied the GollyPrefs file in the Golly folder and everything reseted!
https://www.youtube.com/watch?v=q6EoRBvdVPQ
One big dirty Oro. Yeeeeeeeeee...
User avatar
gameoflifemaniac
 
Posts: 415
Joined: January 22nd, 2017, 11:17 am
Location: 54°00'39.4"N 21°43'50.5"E

Re: Thread for basic questions

Postby gameoflifemaniac » December 1st, 2017, 9:48 am

Why can this script be used only once?
local g = golly()
g.reset()
g.randfill(50)
g.copy()
g.flip(0)
g.paste(8, 0, "or")
g.run(10000)
g.setmag(1)

At the first time of it works, but then it says: 'Sorry, but Perl scripting is no longer supported.'. What's happening?
https://www.youtube.com/watch?v=q6EoRBvdVPQ
One big dirty Oro. Yeeeeeeeeee...
User avatar
gameoflifemaniac
 
Posts: 415
Joined: January 22nd, 2017, 11:17 am
Location: 54°00'39.4"N 21°43'50.5"E

Re: Thread for basic questions

Postby wildmyron » December 1st, 2017, 10:45 am

gameoflifemaniac wrote:Why can this script be used only once?
local g = golly()
g.reset()
g.randfill(50)
g.copy()
g.flip(0)
g.paste(8, 0, "or")
g.run(10000)
g.setmag(1)

At the first time of it works, but then it says: 'Sorry, but Perl scripting is no longer supported.'. What's happening?

You are running the script from the clipboard. It works fine, but it is copying the patterm to the clipboard. Then when you try running it again Golly fails to run it as a Lua or python script, assumes it's a Perl script and gives you the error message.
wildmyron
 
Posts: 596
Joined: August 9th, 2013, 12:45 am

Re: Thread for basic questions

Postby dvgrn » December 1st, 2017, 11:05 am

gameoflifemaniac wrote:Why can this script be used only once?
local g = golly()
g.reset()
g.randfill(50)
g.copy()
g.flip(0)
g.paste(8, 0, "or")
g.run(10000)
g.setmag(1)

At the first time of it works, but then it says: 'Sorry, but Perl scripting is no longer supported.'. What's happening?

In part, this is a fine example of why g.copy() and g.paste() should be used sparingly, if at all. It causes a lot less trouble to use listofcells = g.getcells(g.getselrect()) and then g.putcells(listofcells). If you're running the script from the clipboard, on the second round you'll get the Perl scripting support error because you're trying to run a chunk of RLE as a script. EDIT: fixed [b]g.getcells(...) reference above.

I did once see a different error message than the Perl support one -- a syntax error on the first line. That would happen if Golly was insisting on interpreting the script as Python for some reason. The first line is the Lua way to initialize references to "g.", instead of "import golly as g". Now it seems to be working fine for me on multiple runs, either run from clipboard or run from a saved file on my desktop.
dvgrn
Moderator
 
Posts: 4019
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI

Re: Thread for basic questions

Postby gameoflifemaniac » December 1st, 2017, 11:24 am

Ok, I understand.
https://www.youtube.com/watch?v=q6EoRBvdVPQ
One big dirty Oro. Yeeeeeeeeee...
User avatar
gameoflifemaniac
 
Posts: 415
Joined: January 22nd, 2017, 11:17 am
Location: 54°00'39.4"N 21°43'50.5"E

Re: Thread for basic questions

Postby gameoflifemaniac » December 1st, 2017, 4:32 pm

What's the apgcode for ship-tie-ship-tie-ship?
https://www.youtube.com/watch?v=q6EoRBvdVPQ
One big dirty Oro. Yeeeeeeeeee...
User avatar
gameoflifemaniac
 
Posts: 415
Joined: January 22nd, 2017, 11:17 am
Location: 54°00'39.4"N 21°43'50.5"E

Re: Thread for basic questions

Postby Apple Bottom » December 1st, 2017, 4:55 pm

gameoflifemaniac wrote:What's the apgcode for ship-tie-ship-tie-ship?


xs18_xg8o653zca611
User avatar
Apple Bottom
 
Posts: 761
Joined: July 27th, 2015, 2:06 pm

Re: Thread for basic questions

Postby gameoflifemaniac » December 9th, 2017, 7:51 am

The rarest objects that I have ever found in random soups of size 16x16 are cis-boat and cap and para-loaf and cap.
Soups:
Cis-boat and cap:
x = 16, y = 16, rule = B3/S23
3o7b2o$2b3o4b4o$ob2obobo7bo$2ob3o4bo3bo$ob2obobo3b3obo$ob3obobo2bob3o$
o3b2o4bo$3b2o2b2ob2o2bo$2ob4o3b5o$bo3b4obo$b3ob4o3b2obo$2b2o2bob2o2b3o
$bob2ob3o4b3o$2obo2b2o6b2o$ob2o5bob2o$b6ob2ob2ob2o!

Para-loaf and cap:
x = 16, y = 16, rule = B3/S23
o7b2obobo$2b2ob2obob2o3bo$4bob3o4bo$2obobob4obo$2bo2bobo3b5o$ob2ob3obo
b3o$2bobob2o4b4o$2ob2o5b2o2bo$3bob3ob4o2bo$2bob3o3bob2obo$o2b2ob4obo3b
o$b2o2b2o2b2o$2bo3b2ob7o$ob4ob2o5bo$4o2bo2b2o$2b3obo2b2o2bobo!

What place would they have on the most naturally occuring objects list? I'm really curious!
https://www.youtube.com/watch?v=q6EoRBvdVPQ
One big dirty Oro. Yeeeeeeeeee...
User avatar
gameoflifemaniac
 
Posts: 415
Joined: January 22nd, 2017, 11:17 am
Location: 54°00'39.4"N 21°43'50.5"E

Re: Thread for basic questions

Postby dvgrn » December 9th, 2017, 8:32 am

gameoflifemaniac wrote:The rarest objects that I have ever found in random soups of size 16x16 are cis-boat and cap and para-loaf and cap...
What place would they have on the most naturally occuring objects list? I'm really curious!

The first one is not quite in the top hundred, but fairly close: cis-boat and cap currently has 19,531,516 occurrences in Catagolue, where the 100th most common still life has 20,416,178 occurrences. Looks like it was actually in the top hundred in Nathaniel's previous soup search -- "up boat on cap" is #98.

Para-loaf and cap is a lot less common, with only 2,403,852 occurrences.

Now I don't remember -- is anyone regularly extracting complete statistics from Catagolue these days? The information is all available to be downloaded, but it would take a little work to get all 118K objects ordered by frequency of occurrence.
dvgrn
Moderator
 
Posts: 4019
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI

Re: Thread for basic questions

Postby calcyman » December 9th, 2017, 9:39 am

dvgrn wrote:Now I don't remember -- is anyone regularly extracting complete statistics from Catagolue these days? The information is all available to be downloaded, but it would take a little work to get all 118K objects ordered by frequency of occurrence.


It's always been possible to get the sorted census from the textcensus endpoint:

server="https://catagolue.appspot.com"
curl "$server/textcensus/b3s23/C1/sorted"


Although, in the interests of not going over quota, it's preferable to curl without the /sorted and do the sorting yourself offline.
What do you do with ill crystallographers? Take them to the mono-clinic!
User avatar
calcyman
 
Posts: 1366
Joined: June 1st, 2009, 4:32 pm

Re: Thread for basic questions

Postby gameoflifemaniac » December 9th, 2017, 9:51 am

calcyman wrote:
dvgrn wrote:Now I don't remember -- is anyone regularly extracting complete statistics from Catagolue these days? The information is all available to be downloaded, but it would take a little work to get all 118K objects ordered by frequency of occurrence.


It's always been possible to get the sorted census from the textcensus endpoint:

server="https://catagolue.appspot.com"
curl "$server/textcensus/b3s23/C1/sorted"


Although, in the interests of not going over quota, it's preferable to curl without the /sorted and do the sorting yourself offline.

So, what should I do with this code in the code tag?
https://www.youtube.com/watch?v=q6EoRBvdVPQ
One big dirty Oro. Yeeeeeeeeee...
User avatar
gameoflifemaniac
 
Posts: 415
Joined: January 22nd, 2017, 11:17 am
Location: 54°00'39.4"N 21°43'50.5"E

Re: Thread for basic questions

Postby dvgrn » December 9th, 2017, 12:38 pm

gameoflifemaniac wrote:So, what should I do with this code in the code tag?

First you'd look up "curl" on Google and find out how you can use it. On this laptop I don't have Cygwin installed, but I do have a Git Bash link, and that supports curl. So then you type in

server="https://catagolue.appspot.com"
curl "$server/textcensus/b3s23/C1" > output.txt

and then sort the resulting output.txt file and clean it up a bit, and you get something like this:
Attachments
sorted-Catagolue-output.txt
natural objects in frequency order as of 9 Dec 2017
(8.82 MiB) Downloaded 4 times
dvgrn
Moderator
 
Posts: 4019
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI

Re: Thread for basic questions

Postby gameoflifemaniac » December 9th, 2017, 3:20 pm

dvgrn wrote:
gameoflifemaniac wrote:So, what should I do with this code in the code tag?

First you'd look up "curl" on Google and find out how you can use it. On this laptop I don't have Cygwin installed, but I do have a Git Bash link, and that supports curl. So then you type in

server="https://catagolue.appspot.com"
curl "$server/textcensus/b3s23/C1" > output.txt

and then sort the resulting output.txt file and clean it up a bit, and you get something like this:

Thanks, but it doesn't show the ranks...
https://www.youtube.com/watch?v=q6EoRBvdVPQ
One big dirty Oro. Yeeeeeeeeee...
User avatar
gameoflifemaniac
 
Posts: 415
Joined: January 22nd, 2017, 11:17 am
Location: 54°00'39.4"N 21°43'50.5"E

Re: Thread for basic questions

Postby dvgrn » December 9th, 2017, 3:59 pm

gameoflifemaniac wrote:
dvgrn wrote:
gameoflifemaniac wrote:So, what should I do with this code in the code tag?

Thanks, but it doesn't show the ranks...

Depends on how you look at it.

Any decent text editor has an option to turn on line numbers, and there are plenty of other tools like Google Sheets that you could use to find out that xs13_2530f96 is rank 103 on this list, and xs15_25960uic is rank 218.
dvgrn
Moderator
 
Posts: 4019
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 4 guests