Thread for your script-related questions

For scripts to aid with computation or simulation in cellular automata.
AlbertArmStain
Posts: 1476
Joined: January 28th, 2022, 7:18 pm
Location: Planet Z

Re: Thread for your script-related questions

Post by AlbertArmStain » July 7th, 2024, 4:17 pm

Out of curiosity, does there exist a GPU accelerated version of catforce, I’m assuming not because there is currently not mention of such a script. Is someone willing to make one if necessary?

User avatar
Banananananan
Posts: 175
Joined: May 5th, 2024, 8:52 pm

Re: Thread for your script-related questions

Post by Banananananan » July 21st, 2024, 7:54 pm

is there a python script of hacked apgsearch 1.x i can use in replit?

User avatar
Vort
Posts: 132
Joined: May 14th, 2024, 6:35 am

Re: Thread for your script-related questions

Post by Vort » August 10th, 2024, 7:21 am

I want to know, which guns in collection (in directory full of rle files) contain specific object (Rich's p16 for example).
Is there a program that allows to do such search?
If not, I plan to make one.

upd: Done.
Last edited by Vort on August 10th, 2024, 3:11 pm, edited 1 time in total.

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

Re: Thread for your script-related questions

Post by dvgrn » August 10th, 2024, 7:35 am

Vort wrote:
August 10th, 2024, 7:21 am
I want to know, which guns in collection (in directory full of rle files) contain specific object (Rich's p16 for example).
Is there a program that allows to do such search?
If not, I plan to make one.
There's some Python code in this "recognizer" folder that could be adapted to do that task fairly well -- but not particularly quickly.

A much more efficient option would be lifelib's pattern-matching functionality. Documentation for some lifelib functions is still somewhat sparse and potentially puzzling, but there are code snippets like this one available that show how it works.

User avatar
aFewTrafficLights
Posts: 5
Joined: August 7th, 2024, 2:55 pm

Re: Thread for your script-related questions

Post by aFewTrafficLights » September 14th, 2024, 7:27 pm

for whatever reason, my ikpx2 script that i downloaded keeps outputting this error when i try to run "./recompile.sh" it outputs this error message:

Code: Select all

grep: warning: stray \ before -
Rule unspecified; assuming b3s23.
Updating submodules...
./recompile.sh: line 15: git: command not found
any help on this?
well i do not know what to put here so i guess i could put this here

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

Re: Thread for your script-related questions

Post by dvgrn » September 15th, 2024, 6:35 am

aFewTrafficLights wrote:
September 14th, 2024, 7:27 pm
for whatever reason, my ikpx2 script that i downloaded keeps outputting this error when i try to run "./recompile.sh" it outputs this error message:

Code: Select all

grep: warning: stray \ before -
Rule unspecified; assuming b3s23.
Updating submodules...
./recompile.sh: line 15: git: command not found
any help on this?
The last line says that you don't have 'git' installed. Do you have git installed? If not, how did you download ikpx2?

If you downloaded ikpx2 by any other method than cloning the ikpx2 repository, then I'd recommend deleting everything and starting over and doing that. There isn't a specific LifeWiki tutorial on using Git to clone ikpx2, but it's the same process for any Git repo. See the notes in Tutorials/LLS but substitute the ikpx2 repository for the LLS one.

The ikpx2 quick start guide is maybe a little _too_ quick, since it doesn't mention starting by cloning the repo.

You'll need to have git and (based on a quick review of this thread) g++ installed, and then I think the submodule install will grab the rest of what you need. I haven't tried this recently, so maybe someone else can correct me. Really maybe the thing that will solve the most problems is

sudo apt-get install build-essential

... but you'll need to be able to follow the first few steps in the LSS tutorial before you'll have a Cygwin or WSL2 or other Linux-ish window open where that command will work.

User avatar
Vort
Posts: 132
Joined: May 14th, 2024, 6:35 am

Re: Thread for your script-related questions

Post by Vort » September 15th, 2024, 12:43 pm

confocaloid wrote:
September 15th, 2024, 11:25 am
... Please check Catagolue first, before posting, to see if the gun would be a bounding box area reduction. ...
It would be nice to press hotkey in Golly and after automatic gun verification, normalization and comparison with Catagolue, have option to upload result with one click.

However, I'm not sure if Python and Lua plugins in Golly have restrictions preventing contacting Catagolue.

User avatar
aFewTrafficLights
Posts: 5
Joined: August 7th, 2024, 2:55 pm

Re: Thread for your script-related questions

Post by aFewTrafficLights » September 15th, 2024, 3:13 pm

dvgrn wrote:
September 15th, 2024, 6:35 am
aFewTrafficLights wrote:
September 14th, 2024, 7:27 pm
for whatever reason, my ikpx2 script that i downloaded keeps outputting this error when i try to run "./recompile.sh" it outputs this error message:

Code: Select all

grep: warning: stray \ before -
Rule unspecified; assuming b3s23.
Updating submodules...
./recompile.sh: line 15: git: command not found
any help on this?
The last line says that you don't have 'git' installed. Do you have git installed? If not, how did you download ikpx2?

If you downloaded ikpx2 by any other method than cloning the ikpx2 repository, then I'd recommend deleting everything and starting over and doing that. There isn't a specific LifeWiki tutorial on using Git to clone ikpx2, but it's the same process for any Git repo. See the notes in Tutorials/LLS but substitute the ikpx2 repository for the LLS one.

The ikpx2 quick start guide is maybe a little _too_ quick, since it doesn't mention starting by cloning the repo.

You'll need to have git and (based on a quick review of this thread) g++ installed, and then I think the submodule install will grab the rest of what you need. I haven't tried this recently, so maybe someone else can correct me. Really maybe the thing that will solve the most problems is

sudo apt-get install build-essential

... but you'll need to be able to follow the first few steps in the LSS tutorial before you'll have a Cygwin or WSL2 or other Linux-ish window open where that command will work.
I already had cygwin installed but i am missing many directories, such as sudo and git (look i did not think i needed them since I only wanted to use gfind and its variations). does running the "setup-x64_64" folder replace the cygwin I already installed or does it add on to the cygwin I already installed?
well i do not know what to put here so i guess i could put this here

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

Re: Thread for your script-related questions

Post by dvgrn » September 15th, 2024, 7:37 pm

aFewTrafficLights wrote:
September 15th, 2024, 3:13 pm
I already had cygwin installed but i am missing many directories, such as sudo and git (look i did not think i needed them since I only wanted to use gfind and its variations). does running the "setup-x64_64" folder replace the cygwin I already installed or does it add on to the cygwin I already installed?
It adds on. At least in my experience, when you run the installer you'll see things checked off if they're already installed, and the option to change what's checked and unchecked so the installer can do the relevant new installs/uninstalls.

User avatar
TigerCub414
Posts: 15
Joined: March 25th, 2024, 9:51 pm

Re: Thread for your script-related questions

Post by TigerCub414 » September 28th, 2024, 4:36 pm

How can gnf2seed.py be modified to remove separation of stages and have one stage that can be wider than 160 cells? I tried modifying it manually, but it doesn't work.

Post Reply