Saka wrote:I'm bored and my current Python script has one major glitch I can't seem to fix so I need some ideas for python scripts to make...
Would you consider branching out into Lua? There are all kinds of things to be tried with the
Golly 2.9 beta's new overlay functionality. Check out the new buttons, checkboxes and sliders in pop-plot.lua, for example. Some more controls will need to be invented, but eventually it should be possible to make better GUI front ends for various search utilities.
Maybe that's a bit ambitious for just starting out with Lua, but check out overlay-demo.lua -- see if any of the samples give you ideas for things to experiment with.
Seems to me we probably need to add a button in overlay-demo.lua to show how to use the "cellview" options to create animations of actual patterns, as opposed to the completely non-pattern-related animations we have so far. Oddly enough, there's not a single "cellview" in the current overlay-demo.lua; even the glider in the "Animation" demo is animated frame by frame with no use of Golly's simulation abilities (!). Here's a
sample use of cellview that I put together yesterday.
If you want to stick with Python, I've been thinking that there should be a few more tools that ship with Golly, to do things like change cell states in some organized way. I have one named "ToChangeColors.py", that expects you to pick a drawing color, then click on a cell in the current selection, and it will change all the cells of the clicked color to the current drawing color. That lets you get rid of all blue history cells in LifeHistory by changing them to state 0, for example, or mark all state-1 cells in a selection by changing them to state 3 or state 4.
What other tools along those lines would be useful to have as part of Golly's standard toolkit? Think of something that you wish Golly had available, and then implement it.
Alternatively, maybe code something from
your list in Python? A nice simple Python and/or Lua function can be written for a lot of those -- and then they might get included in the glife or gplus packages in some cases. It's unlikely that they'd be added to the list of native Golly script functions, unless the function has to do something that Python and Lua really can't do without a change to Golly's codebase.