Search found 875 matches

by Andrew
October 21st, 2011, 7:10 pm
Forum: General Discussion
Topic: What I'd like to see in Golly
Replies: 71
Views: 53010

Re: What I'd like to see in Golly

If there's one thing I miss from the old LifeLab, it's a quick "shift selection" command. Yes, there's a script for this, but really this is so basic that I'd love to have single-key "shift one cell N/E/W/S" commands available. Below is a simplified version of shift.py that moves the selection nort...
by Andrew
October 21st, 2011, 6:49 pm
Forum: General Discussion
Topic: What I'd like to see in Golly
Replies: 71
Views: 53010

Re: What I'd like to see in Golly

Unfortunately, this might require new algorithms altogether... Not necessarily new algorithms, but certainly a lot of new code. Golly's current support for bounded grids is just a quick hack (all done in the GUI code). I've always seen this as just a temporary solution until someone implements "nat...
by Andrew
October 19th, 2011, 6:20 am
Forum: General Discussion
Topic: XLife updated
Replies: 10
Views: 8260

Re: XLife updated

I've just performed several experiments. It is surprize that Jon Bennet 1989 code only slightly modified shows the best speed for the exploding and chaotic patterns. All tests use only two adjacent cells (brick) at state 1. XLife shows the speed of the evolution about 100% and 50% faster than Golly...
by Andrew
October 18th, 2011, 8:52 pm
Forum: Patterns
Topic: Fun With the stairstep hexomino
Replies: 5
Views: 4292

Re: Fun With the stairstep hexomino

If LumpsOfMuck is running Golly on Linux then lifehistory.table won't be found because the file is called LifeHistory.table and Linux (normally) uses a case-sensitive file system. Always best to use exactly the right case for rules when sharing patterns. Similarly, best to avoid using "life" -- B3/S...
by Andrew
October 18th, 2011, 4:34 pm
Forum: General Discussion
Topic: Hexagonal Life
Replies: 28
Views: 21877

Re: Hexagonal Life

I think the answer is to create a python transition function which can use golly.getgen(), and then use make-ruletree.py instead of using a rule table. That won't work I'm afraid. The transition function is not dynamically called every gen -- it is only interpreted *once* to make the .tree file, so...
by Andrew
October 18th, 2011, 6:43 am
Forum: General Discussion
Topic: Hexagonal Life
Replies: 28
Views: 21877

Re: Hexagonal Life

... have you considered giving Golly built-in support for alternating rules? I think it's unlikely, for a couple of reasons: 1. It looks quite easy to create rule tables for exploring these rules. (I tested yours and it seems to work fine.) In fact, it should be possible to create a script that cou...
by Andrew
October 17th, 2011, 6:43 pm
Forum: General Discussion
Topic: Hexagonal Life
Replies: 28
Views: 21877

Re: Hexagonal Life

The good news is we've fixed the bug with B0-and-H rules, so Golly 2.3 will do the right thing (we hope to release it in a few weeks). The bad news is that ALL the B0-and-H patterns found by EricG and Tropylium are not really spaceships etc, so apologies for wasting your time. (I did warn you that t...
by Andrew
October 14th, 2011, 9:39 pm
Forum: General Discussion
Topic: Hexagonal Life
Replies: 28
Views: 21877

Re: Hexagonal Life

Is there a way to correctly rotate and flip patterns created for a hexagonal neighborhood in Golly? Here's a Python script that does rotation by 60 degrees (save it as something like hexrot.py): # Rotate hexagonal neighborhood pattern clockwise by 60 degrees. # Author: Andrew Trevorrow (andrew@trev...
by Andrew
October 13th, 2011, 3:21 am
Forum: General Discussion
Topic: XLife updated
Replies: 10
Views: 8260

Re: XLife updated

The history mode maybe toggled by @ keypress. Will Golly team add this feature to the next release? If by history you mean the ability to show all cells that were alive, then Golly already supports this via the LifeHistory rule, or for all other rules you can use envelope.py. Although this script i...
by Andrew
October 10th, 2011, 6:18 pm
Forum: Scripts
Topic: Problem with Python/Golly
Replies: 6
Views: 6236

Re: Problem with Python/Golly

I have folder Python27 in C: but I still don't know where is python*.dll file! ... First thing: did you download the 32-bit version of Python? Golly is a 32-bit app so it won't work with a 64-bit Python. After some googling it appears that in Windows 7 python27.dll should be located in C:\Windows\S...
by Andrew
October 9th, 2011, 6:15 pm
Forum: Scripts
Topic: Problem with Python/Golly
Replies: 6
Views: 6236

Re: Problem with Python/Golly

On my Windows XP system python27.dll is in C:\WINDOWS\system32. If the dll is not in that location on your system then I'm guessing you're using a newer version of Windows (7?) and the Python installer puts the dll in a different location. Use Windows Explorer to do an advanced search for python*.dl...
by Andrew
September 17th, 2011, 11:31 pm
Forum: General Discussion
Topic: Does Conway's Game of Life has a license?
Replies: 2
Views: 2544

Re: Does Conway's Game of Life has a license?

Fastas wrote:I would like to create a variation on the game, is it under some license?
No. Just don't call it "The Game of Life" because there is a commercial board game with that name.
by Andrew
September 2nd, 2011, 5:49 pm
Forum: Bugs & Errors
Topic: Unable to run clipboard
Replies: 4
Views: 6333

Re: Unable to run clipboard

Which version of Perl do you have installed? Golly 2.2 requires 5.10 or later, and it has to be a 32-bit Perl. Did you download the ActiveState installer as recommended in Help > Perl Scripting? If all those conditions are true and Golly still can't run Perl scripts then what exactly is the *full* p...
by Andrew
August 30th, 2011, 5:20 pm
Forum: Bugs & Errors
Topic: Unable to run clipboard
Replies: 4
Views: 6333

Re: Unable to run clipboard

It sounds like you have a pattern in the clipboard and have then selected File > Run Clipboard, but that menu item assumes the clipboard contains a *script*. Use File > Open Clipboard for pattern data.

If I'm wrong about this then show me what's in the clipboard (just the first few lines should do).
by Andrew
August 26th, 2011, 6:44 pm
Forum: Scripts
Topic: Life 1.05 to RLE - Help!
Replies: 15
Views: 12598

Re: Life 1.05 to RLE - Help!

It also happens when the pattern is pasted into Golly, and therefore has no original filename or extension. Again, the "Save extended RLE" option must be unticked. ... I can't reproduce this. None of the steps I tried resulted in a "#Life 1.05" line being copied into the rle. Can you describe in mo...
by Andrew
August 26th, 2011, 6:38 pm
Forum: Scripts
Topic: Life 1.05 to RLE - Help!
Replies: 15
Views: 12598

Re: Life 1.05 to RLE - Help!

Saving #CXRLE is the recommended setting? Yep (it's ticked when you first start up Golly). It's needed if you want to save positioning info or a non-zero gen count. I thought that it was deprecated; at least, someone spent a long time "removing useless #CXRLE comment lines" from the Golly CVS archi...
by Andrew
August 25th, 2011, 7:58 pm
Forum: Scripts
Topic: Randomness distribution
Replies: 2
Views: 3893

Re: Randomness distribution

The above ideas should be reasonably easy to implement by making appropriate changes to the random-fill.py script available at the Golly Scripts Database . Python is an easy language to learn, and you don't need to learn a lot of its advanced features to be able to write scripts for Golly because a ...
by Andrew
August 25th, 2011, 7:38 pm
Forum: Scripts
Topic: Life 1.05 to RLE - Help!
Replies: 15
Views: 12598

Re: Life 1.05 to RLE - Help!

Golly uses the info on the first (non-empty) line to determine the file format, so Life 1.05 files must begin with "#Life 1.05". Golly seems perfectly happy with the pattern posted above when this line is present. It does do something strange though: it retains this line when saving the pattern as R...
by Andrew
August 24th, 2011, 4:46 am
Forum: Scripts
Topic: Life 1.05 to RLE - Help!
Replies: 15
Views: 12598

Re: Life 1.05 to RLE - Help!

Sorry, but I don't follow you. Are you saying you have a .lif file that Golly can't load?
If so I suspect it isn't really a legal Life 1.05 file. Please post the file (or zip and attach it if really big) and I'll see what's going wrong.
by Andrew
August 22nd, 2011, 11:59 pm
Forum: Scripts
Topic: Life 1.05 to RLE - Help!
Replies: 15
Views: 12598

Re: Life 1.05 to RLE - Help!

Why restrict yourself to C++? Here's a simple Python script you can run from Golly to do the job: # Load a given .lif file and create a .rle file. # Author: Andrew Trevorrow (andrew@trevorrow.com), Aug 2011. import golly as g # prompt for .lif file and load it in lifname = g.opendialog("Open .lif fi...
by Andrew
August 21st, 2011, 1:27 am
Forum: Scripts
Topic: Problem with gfind
Replies: 2
Views: 4094

Re: Problem with gfind

Try compiling a 32-bit version: cc -o gfind -m32 gfind.c Now I get correct results on my 10.6 system. EDIT: I reported the problem to David Eppstein and he has fixed the code so that a 64-bit gfind also works correctly. You can get version 4.9 of gfind from his site (you might need to clear your bro...
by Andrew
June 13th, 2011, 7:51 pm
Forum: Scripts
Topic: debugging python scripts
Replies: 1
Views: 3254

Re: debugging python scripts

I don't think it makes sense to use pdb with Golly because you won't be able to enter any pdb commands (you don't have access to a command line). If you want to see a call trace at a particular point in your script code, insert a line like this: raise RuntimeError("foo") If you want to see the trace...
by Andrew
April 7th, 2011, 1:26 am
Forum: General Discussion
Topic: Golly for IPAD !?!
Replies: 4
Views: 3421

Re: Golly for IPAD !?!

I haven't looked at Golly to see how separate the interface is from the Life engine. If the latter is written in C or C++ ... The latter is written in C++ and is quite separate from the GUI code. All the GUI code is contained in wx* files (where wx is short for wxWidgets), so it should be reasonabl...
by Andrew
April 3rd, 2011, 7:25 pm
Forum: General Discussion
Topic: The CA community annoys me
Replies: 36
Views: 24155

Re: The CA community annoys me

Also I have trouble even motivating myself to learn Golly in the first place since MCell is so much easier to use. You keep saying that but apart from MCell's GUI for rule creation you don't give any concrete examples. There's not a lot of incentive to add such a GUI to Golly -- it would have to be...
by Andrew
April 3rd, 2011, 6:25 pm
Forum: General Discussion
Topic: The Online Life-Like CA Soup Search
Replies: 173
Views: 143202

Re: The Online Life-Like CA Soup Search

If the script is using getdir("data") to specify the location then the files should be here:

C:\Documents and Settings\your-user-name\Application Data\Golly\

I think this is normally a hidden folder so you need to turn on the appropriate Windows option to see/search those folders.