Rockbox

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

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

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.

Justin Hannigan commented on 2010-08-06 19:39

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.

Justin Hannigan commented on 2010-08-06 20:12

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.

Justin Hannigan commented on 2010-08-09 06:08

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.

Justin Hannigan commented on 2010-08-09 06:23

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).

Justin Hannigan commented on 2010-08-19 02:36

I have found a couple of bugs. I’ll upload a new patch when I find some time.

Justin Hannigan commented on 2010-08-28 22:56

Here’s an updated patch that should open both types of .l files, Life 1.05 (.LIF, .LIFE) and RLE configurations.

Justin Hannigan commented on 2010-09-03 17:32

Just to clarify, with the newest patch Rocklife should open .cells, .l, .lif, .life, and .rle configurations.

Justin Hannigan commented on 2010-10-21 04:52

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.

Teruaki Kawashima commented on 2010-10-22 06:19

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.

Justin Hannigan commented on 2010-10-22 15:44

Thank you, teru!

Justin Hannigan commented on 2010-10-25 15:31

I will work on a patch for the manual to document the changes, should this patch be accepted.

Justin Hannigan commented on 2011-05-06 05:55

Here is a patch for the manual. It lists the supported file extensions and makes cursory mention of support for alternate rule sets.

Justin Hannigan commented on 2011-05-06 05:56

Forgot the patch.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing