dvgrn wrote: November 12th, 2020, 8:36 am
Separate question: is there a hotkey in LifeViewer that switches a pattern into "Super" mode, so that higher states can be added to it? I had thought based on Alt+H, Alt+J, Alt+K that you were supporting all the shortcut conventions from Golly, but Alt+G is a toggle for Kill Gliders.
Please confirm if these are the correct Golly key mappings:
- Alt+G toSuper.lua
- Alt+H toHistory.lua
- Alt+J toStandard.lua
In Golly those scripts actually change the current rule and the states in the pattern.
In LifeViewer the rule and the states do not change. LifeViewer simply changes how the cells are displayed (either in 2-state Standard, 7-state History or 26-state Super mode).
This means if you have a [Rule]History pattern and press Alt-J, you can still edit with all [Rule]History states, but they're just displayed as if it was a Standard 2-state pattern (plus LifeViewer's standard history). Also during playback all [Rule]History states are processed (including state 6), but you see the pattern as a Standard 2-state pattern.
If you copy the pattern to the external clipboard then LifeViewer will create a 2-state version or a multi-state [Rule]History version of the RLE depending on whether it's currently displaying Standard or [Rule]History.
This does mean that the original pattern has to be [Rule]History since no actual state conversion happens. So if you start with a Standard 2-state pattern Alt+H and Alt+J don't do anything.
Adding [Rule]Super into the mix would work in a similar fashion. Alt-G, Alt-H and Alt-J would just define how the states are displayed, but behind the scenes all states would be there. Likewise copying to the clipboard would create the appropriate 2, 7 or 26 state version of the RLE based on the current display mode (Standard, History or Super).
Now if you want to convert the actual states in the pattern you do that using
Settings->
Pattern->
Change Rule and adding or deleting the History or Super prefix. In this case the states are changed to match the new rule. Going from History or Super to Standard uses the odd/even rule to map the states. I'll need to add the case for going from Super to History so it correctly maps the extended states.
If you think it would be helpful and/or less confusing I could make it so Alt+H and Alt-J would actually do state conversion as needed when moving to a higher number of states (i.e. a 2-state pattern to History or Super, or a History pattern to Super).
Thoughts?