Rockbox

Tasklist

FS#11522 - Make Rockbox recognize Game of Life configurations with a .l extension

Attached to Project: Rockbox
Opened by Justin Hannigan (Chronon) - Friday, 06 August 2010, 16:54 GMT
Task Type Patches
Category Plugins
Status Unconfirmed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Some collections (such as ftp://sunsite.unc.edu/pub/Linux/games/amusements/life/dblifelib-2.tgz) use an extension of ".l" instead of ".cells" for what appears to be the same file format (same comment character and same characters for dead and live cell).

This patch just adds an entry to viewers.config so that Rockbox will treat .l files as supported and open them with Rocklife.
This task depends upon

Comment by Justin Hannigan (Chronon) - Friday, 06 August 2010, 19:39 GMT
I have discovered that some files with a .l extension do not have the same format. These don't pose a problem for rocklife, but will just appear as a blank starting configuration. I will see about adding support for these configs too.
Comment by Justin Hannigan (Chronon) - Friday, 06 August 2010, 20:12 GMT
I found a page that describes commonly used file formats here:
http://psoup.math.wisc.edu/mcell/ca_files_formats.html#Life%201.05

I will work on adding support for .LIF .RLE and .L formats.
Comment by Justin Hannigan (Chronon) - Monday, 09 August 2010, 06:08 GMT
This patch adds support for both varieties of .l files and should allow for relatively easy inclusion of new formats. Should support any of the files in the archive I linked in the task details.
Comment by Justin Hannigan (Chronon) - Monday, 09 August 2010, 06:23 GMT
From http://psoup.math.wisc.edu/mcell/ca_files_formats.html#Life%201.05
===========
dbLife (*.L)

Essentially the same format as RLE. David I. Bell used this format for his large collection dbLifeLib (http://canb.auug.org.au/~dbell/archive/c3.tar.gz). Some patterns in this format mix the Life 1.05 format with RLE.
===========

Time permitting I will next add support for the RLE and Life 1.05 with .rle and .lif extensions (respectively).
Comment by Justin Hannigan (Chronon) - Thursday, 19 August 2010, 02:36 GMT
I have found a couple of bugs. I'll upload a new patch when I find some time.
Comment by Justin Hannigan (Chronon) - Saturday, 28 August 2010, 22:56 GMT
Here's an updated patch that should open both types of .l files, Life 1.05 (.LIF, .LIFE) and RLE configurations.
Comment by Justin Hannigan (Chronon) - Friday, 03 September 2010, 17:32 GMT
Just to clarify, with the newest patch Rocklife should open .cells, .l, .lif, .life, and .rle configurations.
Comment by Justin Hannigan (Chronon) - Thursday, 21 October 2010, 04:52 GMT
This patch parses rules from RLE, Life 1.05 and .L files. Status screen now displays currently loaded rule.

For some reason, loading RLE (and RLE-type .L) files crashes the simulator but it seems to work fine on target (tested on Gigabeat F40).

I tested various configurations for some non-standard rule sets and they appear to be working properly. Any feedback would be welcome.
Comment by Teruaki Kawashima (teru) - Friday, 22 October 2010, 06:19 GMT
here is cleaned up version of the patch with error checks and centering input.
the cause of crash seems to lack of break statement for the case ext_c is b.
also, i think header[30] is a bit small.
Comment by Justin Hannigan (Chronon) - Friday, 22 October 2010, 15:44 GMT
Thank you, teru!
Comment by Justin Hannigan (Chronon) - Monday, 25 October 2010, 15:31 GMT
I will work on a patch for the manual to document the changes, should this patch be accepted.
Comment by Justin Hannigan (Chronon) - Friday, 06 May 2011, 05:55 GMT
Here is a patch for the manual. It lists the supported file extensions and makes cursory mention of support for alternate rule sets.
Comment by Justin Hannigan (Chronon) - Friday, 06 May 2011, 05:56 GMT
Forgot the patch.

Loading...