Thread for your script-related questions

For scripts to aid with computation or simulation in cellular automata.
Francisco
Posts: 26
Joined: March 9th, 2021, 4:53 pm

Re: Thread for your script-related questions

Post by Francisco » September 19th, 2021, 6:07 pm

What is the best way to terminate apgsearch on linux?

User avatar
creeperman7002
Posts: 299
Joined: December 4th, 2018, 11:52 pm

Re: Thread for your script-related questions

Post by creeperman7002 » September 19th, 2021, 7:19 pm

Is there a program that enumerates still lives in a given rule?
B2n3-jn/S1c23-y is an interesting rule. It has a replicator, a fake glider, an OMOS and SMOS, a wide variety of oscillators, and some signals. Also this rule is omniperiodic.
viewtopic.php?f=11&t=4856

Naszvadi
Posts: 1244
Joined: May 7th, 2016, 8:53 am
Contact:

Re: Thread for your script-related questions

Post by Naszvadi » October 22nd, 2021, 4:47 am

Suboptimal script to list known life-like rules with discovered gliders, strongly depends on gnuish tools, might not work on osx or bsd:

Code: Select all

awk -F: '/B.*S/&&$0=$3" "$4'   gliders.db.txt    \
| sort \
| uniq \
| tr / ' ' \
| awk '{for(x=0;x<2;x++){outB="";split($(3+x),a,//);for(n in a){ if($(1+x)~a[n]){outB=outB""a[n]}else{outB=outB"{,"a[n]"}"}};printf(outB);shift;if(x<1){printf("/");}}; print""}' \
| while read i;do eval printf '%s\\n' $i; done \
| sort \
| uniq
# end

erictom333
Posts: 171
Joined: January 9th, 2019, 2:44 am

Re: Thread for your script-related questions

Post by erictom333 » October 23rd, 2021, 9:16 pm

How do I apgsearch?

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

Re: Thread for your script-related questions

Post by dvgrn » October 23rd, 2021, 9:37 pm

erictom333 wrote:
October 23rd, 2021, 9:16 pm
How do I apgsearch?
Start here and follow the relevant instructions in the Installation section.

erictom333
Posts: 171
Joined: January 9th, 2019, 2:44 am

Re: Thread for your script-related questions

Post by erictom333 » October 28th, 2021, 3:50 am

dvgrn wrote:
October 23rd, 2021, 9:37 pm
erictom333 wrote:
October 23rd, 2021, 9:16 pm
How do I apgsearch?
Start here and follow the relevant instructions in the Installation section.
What's a WSL bash and how do I use it?

GUYTU6J
Posts: 2200
Joined: August 5th, 2016, 10:27 am
Location: 拆哪!I repeat, CHINA! (a.k.a. 种花家)
Contact:

Re: Thread for your script-related questions

Post by GUYTU6J » October 28th, 2021, 5:04 am

erictom333 wrote:
October 28th, 2021, 3:50 am
What's a WSL bash and how do I use it?
It is a Windows Subsystem for Linux in Win 10 requiring these supports:

Code: Select all

For x64 systems: Version 1903 or higher, with Build 18362 or higher.
For ARM64 systems: Version 2004 or higher, with Build 19041 or higher.
What is the Windows you are using and does it satisfy these? (You can check by entering systeminfo in command prompt.) If yes, later I will post a very brief walkthrough here.

erictom333
Posts: 171
Joined: January 9th, 2019, 2:44 am

Re: Thread for your script-related questions

Post by erictom333 » October 28th, 2021, 5:19 am

GUYTU6J wrote:
October 28th, 2021, 5:04 am
erictom333 wrote:
October 28th, 2021, 3:50 am
What's a WSL bash and how do I use it?
It is a Windows Subsystem for Linux in Win 10 requiring these supports:

Code: Select all

For x64 systems: Version 1903 or higher, with Build 18362 or higher.
For ARM64 systems: Version 2004 or higher, with Build 19041 or higher.
What is the Windows you are using and does it satisfy these? (You can check by entering systeminfo in command prompt.) If yes, later I will post a very brief walkthrough here.
Well, I have an x64 on build 17134. So can I still apgsearch?

GUYTU6J
Posts: 2200
Joined: August 5th, 2016, 10:27 am
Location: 拆哪!I repeat, CHINA! (a.k.a. 种花家)
Contact:

Re: Thread for your script-related questions

Post by GUYTU6J » October 28th, 2021, 5:39 am

erictom333 wrote:
October 28th, 2021, 5:19 am
GUYTU6J wrote:
October 28th, 2021, 5:04 am
erictom333 wrote:
October 28th, 2021, 3:50 am
What's a WSL bash and how do I use it?
It is a Windows Subsystem for Linux in Win 10 requiring these supports:

Code: Select all

For x64 systems: Version 1903 or higher, with Build 18362 or higher.
For ARM64 systems: Version 2004 or higher, with Build 19041 or higher.
What is the Windows you are using and does it satisfy these? (You can check by entering systeminfo in command prompt.) If yes, later I will post a very brief walkthrough here.
Well, I have an x64 on build 17134. So can I still apgsearch?
Not using WSL then, given that the build is a bit too old, although you can still use Cygwin as instructed here: Tutorials/Contributing_to_Catagolue#Soup-searching_using_apgluxe_5.x
Or maybe you would like to upgrade your Windows 10 ...?

erictom333
Posts: 171
Joined: January 9th, 2019, 2:44 am

Re: Thread for your script-related questions

Post by erictom333 » October 29th, 2021, 3:55 am

GUYTU6J wrote:
October 28th, 2021, 5:39 am
erictom333 wrote:
October 28th, 2021, 5:19 am
GUYTU6J wrote:
October 28th, 2021, 5:04 am

It is a Windows Subsystem for Linux in Win 10 requiring these supports:

Code: Select all

For x64 systems: Version 1903 or higher, with Build 18362 or higher.
For ARM64 systems: Version 2004 or higher, with Build 19041 or higher.
What is the Windows you are using and does it satisfy these? (You can check by entering systeminfo in command prompt.) If yes, later I will post a very brief walkthrough here.
Well, I have an x64 on build 17134. So can I still apgsearch?
Not using WSL then, given that the build is a bit too old, although you can still use Cygwin as instructed here: Tutorials/Contributing_to_Catagolue#Soup-searching_using_apgluxe_5.x
Or maybe you would like to upgrade your Windows 10 ...?
Is there an easier way to get apgsearch? Why can't it just be a downloadable file?

User avatar
C28
Posts: 724
Joined: December 8th, 2020, 12:23 pm
Location: WORLD -1

Re: Thread for your script-related questions

Post by C28 » November 2nd, 2021, 9:37 am

how do i use ptbsearch to find new u-turner conduits?
- Christopher D'Agostino

adopted father of the U-turner

Code: Select all

x = 11, y = 15, rule = B3/S23
9bo$8bobo$8bobo$9bo8$b3o$b3o$obo$2o!
the U-turner gallery
255P132
B3/S234z (Zlife)

erictom333
Posts: 171
Joined: January 9th, 2019, 2:44 am

Re: Thread for your script-related questions

Post by erictom333 » November 8th, 2021, 2:23 am

I can't run Python scripts on Golly because it couldn't load the Python library. I've downloaded the latest version of Python. What do I need to do?

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

Re: Thread for your script-related questions

Post by dvgrn » November 8th, 2021, 8:32 am

erictom333 wrote:
November 8th, 2021, 2:23 am
I can't run Python scripts on Golly because it couldn't load the Python library. I've downloaded the latest version of Python. What do I need to do?
Heh, there must be dozens of questions exactly like this on the forums by now. They're almost always missing some of the information that's needed to troubleshoot the problem.

"Latest version of Python" could be 32-bit or 64-bit, but only 64-bit will work with Golly 4.0. As part of a question like this, please mention the version of Golly (just for the record, no doubt it's Golly 4.0, but if you don't say it, nobody knows for sure), the exact name of the Python executable that you downloaded and installed, and what operating system you're doing all of this on.

Also try working through the instructions in the link above.

We've been hoping that simplifying things by only supporting 64-bit Python and 64-bit Golly as of 4.0, would reduce these kinds of problems to some extent -- but there are still definitely some mysterious things that can happen that are hard to troubleshoot. Mostly they involve different versions of Python getting installed on the same computer, with the wrong version getting added to the PATH environment variable. If something besides that can go wrong, I haven't figured out what it is yet.

erictom333
Posts: 171
Joined: January 9th, 2019, 2:44 am

Re: Thread for your script-related questions

Post by erictom333 » November 8th, 2021, 10:29 pm

dvgrn wrote:
November 8th, 2021, 8:32 am
erictom333 wrote:
November 8th, 2021, 2:23 am
I can't run Python scripts on Golly because it couldn't load the Python library. I've downloaded the latest version of Python. What do I need to do?
Heh, there must be dozens of questions exactly like this on the forums by now. They're almost always missing some of the information that's needed to troubleshoot the problem.

"Latest version of Python" could be 32-bit or 64-bit, but only 64-bit will work with Golly 4.0. As part of a question like this, please mention the version of Golly (just for the record, no doubt it's Golly 4.0, but if you don't say it, nobody knows for sure), the exact name of the Python executable that you downloaded and installed, and what operating system you're doing all of this on.

Also try working through the instructions in the link above.

We've been hoping that simplifying things by only supporting 64-bit Python and 64-bit Golly as of 4.0, would reduce these kinds of problems to some extent -- but there are still definitely some mysterious things that can happen that are hard to troubleshoot. Mostly they involve different versions of Python getting installed on the same computer, with the wrong version getting added to the PATH environment variable. If something besides that can go wrong, I haven't figured out what it is yet.
I managed to get it working following those instructions. However, there is an error in the apgsearch script I wanted to run (hacked apgsearch 1.0): "ModuleNotFoundError: No module named 'urllib2'".

User avatar
bubblegum
Posts: 959
Joined: August 25th, 2019, 11:59 pm
Location: click here to do nothing

Re: Thread for your script-related questions

Post by bubblegum » November 8th, 2021, 10:39 pm

erictom333 wrote:
November 8th, 2021, 10:29 pm
I managed to get it working following those instructions. However, there is an error in the apgsearch script I wanted to run (hacked apgsearch 1.0): "ModuleNotFoundError: No module named 'urllib2'".
apgsearch 0.x and 1.x are for Python 2.x and Golly 3.x only. Modern versions of apgsearch use C++ and Python in a command line however, and there have been no updates of the Golly scripts since.

What does the hack do, by the way?
Each day is a hidden opportunity, a frozen waterfall that's waiting to be realised, and one that I'll probably be ignoring
sonata wrote:
July 2nd, 2020, 8:33 pm
conwaylife signatures are amazing[citation needed]
anything

User avatar
pzq_alex
Posts: 792
Joined: May 1st, 2021, 9:00 pm
Location: tell me if you know

Re: Thread for your script-related questions

Post by pzq_alex » November 9th, 2021, 12:54 pm

What are the object seperation & stablization detection algorithms used in apgsearch?
\sum_{n=1}^\infty H_n/n^2 = \zeta(3)

How much of current CA technology can I redevelop "on a desert island"?

User avatar
LaundryPizza03
Posts: 2295
Joined: December 15th, 2017, 12:05 am
Location: Unidentified location "https://en.wikipedia.org/wiki/Texas"

Re: Thread for your script-related questions

Post by LaundryPizza03 » November 12th, 2021, 10:38 pm

bubblegum wrote:
November 8th, 2021, 10:39 pm
erictom333 wrote:
November 8th, 2021, 10:29 pm
I managed to get it working following those instructions. However, there is an error in the apgsearch script I wanted to run (hacked apgsearch 1.0): "ModuleNotFoundError: No module named 'urllib2'".
apgsearch 0.x and 1.x are for Python 2.x and Golly 3.x only. Modern versions of apgsearch use C++ and Python in a command line however, and there have been no updates of the Golly scripts since.

What does the hack do, by the way?
The hack allows searching of isotropic non-totalistic rules, which has been supported by apgmera since v4.2 in September 2017.

Code: Select all

x = 4, y = 3, rule = B3-q4z5y/S234k5j
2b2o$b2o$2o!
LaundryPizza03 at Wikipedia

erictom333
Posts: 171
Joined: January 9th, 2019, 2:44 am

Re: Thread for your script-related questions

Post by erictom333 » November 27th, 2021, 6:56 pm

Is there a script to enumerate all collisions of any spaceship and any stationary object in any INT rule?

Also, why is apgsearch so hard to download?

User avatar
Wyirm
Posts: 307
Joined: October 29th, 2021, 6:54 pm
Location: 30.541634, 47.825445 (on the boat)

Re: Thread for your script-related questions

Post by Wyirm » January 6th, 2022, 8:12 pm

Are there any good programs that can search for spaceships in OCA?

Code: Select all

x = 36, y = 28, rule = TripleLife
17.G$17.3G$20.G$19.2G11$9.EF$8.FG.GD$8.DGAGF$10.DGD5$2.2G$3.G30.2G$3G
25.2G5.G$G27.G.G.3G$21.2G7.G.G$21.2G7.2G!
Bow down to the Herschel

User avatar
yujh
Posts: 3066
Joined: February 27th, 2020, 11:23 pm
Location: I'm not sure where I am, so please tell me if you know
Contact:

Re: Thread for your script-related questions

Post by yujh » January 7th, 2022, 9:04 am

Wyirm wrote:
January 6th, 2022, 8:12 pm
Are there any good programs that can search for spaceships in OCA?
Qfind, ntzfind, rlifesrc, ikpx2, or even LSSS for OT rules
Rule modifier

B34kz5e7c8/S23-a4ityz5k
b2n3-q5y6cn7s23-k4c8
B3-kq6cn8/S2-i3-a4ciyz8
B3-kq4z5e7c8/S2-ci3-a4ciq5ek6eik7

Bored of Conway's Game of Life? Try Pedestrian Life -- not pedestrian at all!

User avatar
Wyirm
Posts: 307
Joined: October 29th, 2021, 6:54 pm
Location: 30.541634, 47.825445 (on the boat)

Re: Thread for your script-related questions

Post by Wyirm » January 11th, 2022, 8:46 pm

Thank you

Code: Select all

x = 36, y = 28, rule = TripleLife
17.G$17.3G$20.G$19.2G11$9.EF$8.FG.GD$8.DGAGF$10.DGD5$2.2G$3.G30.2G$3G
25.2G5.G$G27.G.G.3G$21.2G7.G.G$21.2G7.2G!
Bow down to the Herschel

User avatar
bibunsekibun
Posts: 345
Joined: April 17th, 2021, 7:58 pm
Location: Japan

Re: Thread for your script-related questions

Post by bibunsekibun » February 13th, 2022, 5:52 am

The Python 2.7.13 download file was msi instead of dll.
How can I load an msi file as Python Libraly?
sorry I can only speak Japanese, English is made by machine translation
I'm a fan of methuselahs

GUYTU6J
Posts: 2200
Joined: August 5th, 2016, 10:27 am
Location: 拆哪!I repeat, CHINA! (a.k.a. 种花家)
Contact:

Re: Thread for your script-related questions

Post by GUYTU6J » February 13th, 2022, 6:31 am

bibunsekibun wrote:
February 13th, 2022, 5:52 am
The Python 2.7.13 download file was msi instead of dll.
How can I load an msi file as Python Libraly?
Why Python 2.7 instead of the modern Python3, firstly?
The .msi file should be an installer for Python, so you will nead to execute it. More related advice can be found here.

User avatar
bibunsekibun
Posts: 345
Joined: April 17th, 2021, 7:58 pm
Location: Japan

Re: Thread for your script-related questions

Post by bibunsekibun » February 13th, 2022, 6:39 am

GUYTU6J wrote:
February 13th, 2022, 6:31 am
Why Python 2.7 instead of the modern Python3, firstly?
The .msi file should be an installer for Python, so you will nead to execute it. More related advice can be found here.
1. To run hacked apgsearch 0.54 + 0.23i.
2. I did install it, but the 2.7.13 dll wasn't in the location mentioned in that thread.
sorry I can only speak Japanese, English is made by machine translation
I'm a fan of methuselahs

GUYTU6J
Posts: 2200
Joined: August 5th, 2016, 10:27 am
Location: 拆哪!I repeat, CHINA! (a.k.a. 种花家)
Contact:

Re: Thread for your script-related questions

Post by GUYTU6J » February 13th, 2022, 7:31 am

bibunsekibun wrote:
February 13th, 2022, 6:39 am
GUYTU6J wrote:
February 13th, 2022, 6:31 am
Why Python 2.7 instead of the modern Python3, firstly?
The .msi file should be an installer for Python, so you will nead to execute it. More related advice can be found here.
1. To run hacked apgsearch 0.54 + 0.23i.
2. I did install it, but the 2.7.13 dll wasn't in the location mentioned in that thread.
2. The file should be python2.dll, and if it cannot be found, it may be that your python was installed on another disk or somewhere else, so try searching for it.
1. I remember having answered one of your questions that indicated you had Cygwin - is there something wrong with it, or the apgsearch within?

Post Reply