ConwayLife.com - A community for Conway's Game of Life and related cellular automata
Home  •  LifeWiki  •  Forums  •  Download Golly

The RLE documentation is wrong

Has something gone haywire? Let us know about it!

The RLE documentation is wrong

Postby blah » May 23rd, 2017, 3:07 am

The documentation on the RLE format states that values for many-state rules should start with '.' for 0, 'A' for 1, and go up to 'X' for 24. Then they count up from 'pA' for 25 to 'pX' for 48, 'qA'=49, 'qZ'=72. Wait, 'qZ'? If it gets to Z, it would have to be state 74. And this is incongruent with what golly produces:
x = 256, y = 1, rule = 2/2/256
.ABCDEFGHIJKLMNOPQRSTUVWXpApBpCpDpEpFpGpHpIpJpKpLpMpNpOpPpQpRpSpTpUpV
pWpXqAqBqCqDqEqFqGqHqIqJqKqLqMqNqOqPqQqRqSqTqUqVqWqXrArBrCrDrErFrGrHrI
rJrKrLrMrNrOrPrQrRrSrTrUrVrWrXsAsBsCsDsEsFsGsHsIsJsKsLsMsNsOsPsQsRsSsT
sUsVsWsXtAtBtCtDtEtFtGtHtItJtKtLtMtNtOtPtQtRtStTtUtVtWtXuAuBuCuDuEuFuG
uHuIuJuKuLuMuNuOuPuQuRuSuTuUuVuWuXvAvBvCvDvEvFvGvHvIvJvKvLvMvNvOvPvQvR
vSvTvUvVvWvXwAwBwCwDwEwFwGwHwIwJwKwLwMwNwOwPwQwRwSwTwUwVwWwXxAxBxCxDxE
xFxGxHxIxJxKxLxMxNxOxPxQxRxSxTxUxVxWxXyAyByCyDyEyFyGyHyIyJyKyLyMyNyO!

"qWqXrArB". There is no 'qY' or 'qZ'. That's a simple typo though, I'm more interested in knowing why it only counts up to X instead of Z in the first place. That seems pointless; you're just wasting two good letters (not that we don't already have more than enough combinations for all the states), and why start at 'p'?
succ
User avatar
blah
 
Posts: 228
Joined: April 9th, 2016, 7:22 pm

Re: The RLE documentation is wrong

Postby rowett » May 23rd, 2017, 4:29 am

blah wrote:There is no 'qY' or 'qZ'. That's a simple typo though.

True, thanks for reporting. I've fixed it in the Golly docs.
rowett
Moderator
 
Posts: 875
Joined: January 31st, 2013, 2:34 am
Location: UK

Re: The RLE documentation is wrong

Postby dvgrn » May 23rd, 2017, 8:15 am

blah wrote:I'm more interested in knowing why it only counts up to X instead of Z in the first place. That seems pointless; you're just wasting two good letters (not that we don't already have more than enough combinations for all the states), and why start at 'p'?

Was looking at that recently. I don't have an answer on the decision to start with 'p' instead of 'a' as the old MCell multi-state RLE format does... except that it prevents 'b' or 'o' from being used, which might make it easier for Golly to guess correctly what format a random chunk of text might be in. (Technically you don't get to 'o' if you start with 'a' anyway, though.) MCell had an "#L" prefix to make things pretty clear, but Golly has to work with just the encoding itself.

As far as skipping 'Y' and 'Z', well, MCell format does the same thing for whatever reason. Maybe having the base be a multiple of 8 just looked a little cleaner somehow. A 16-letter subset could have been a contender, but I suppose that would have been just a weird nonstandard hexadecimal.
User avatar
dvgrn
Moderator
 
Posts: 4845
Joined: May 17th, 2009, 11:00 pm
Location: Madison, WI

Re: The RLE documentation is wrong

Postby wwei23 » May 29th, 2017, 1:03 pm

And when I paste an RLE into Golly from Lifewiki, I get an empty rectangle! Please change it back!
User avatar
wwei23
 
Posts: 864
Joined: May 22nd, 2017, 6:14 pm
Location: The (Life?) Universe

Re: The RLE documentation is wrong

Postby blah » May 29th, 2017, 1:59 pm

wwei23 wrote:And when I paste an RLE into Golly from Lifewiki, I get an empty rectangle! Please change it back!

What RLE? It's far more likely you got something wrong.
succ
User avatar
blah
 
Posts: 228
Joined: April 9th, 2016, 7:22 pm

Re: The RLE documentation is wrong

Postby fluffykitty » May 30th, 2017, 3:41 pm

Golly's RLE parser has not changed, only the documentation. Please post the broken RLE here and a link to where you got it.
I like making rules
fluffykitty
 
Posts: 332
Joined: June 14th, 2014, 5:03 pm

Re: The RLE documentation is wrong

Postby wwei23 » June 23rd, 2017, 12:06 pm

There's a space after the rule is stated and it confuses Golly.
User avatar
wwei23
 
Posts: 864
Joined: May 22nd, 2017, 6:14 pm
Location: The (Life?) Universe


Return to Bugs & Errors

Who is online

Users browsing this forum: No registered users and 1 guest