Finally finished the updates!
It's been 19 hours since I last reported, and I have been on these 95% of that time. Part of one bug was very elusive, and I had to track down some information which wasn't easy to find.
All scripts are fixed. This is the release notes from the Lyle varient, and all of the same information (except the bug issue) applies to all of the scripts. (different version numbers though.
Release Notes wrote:
Bug Fix in response to issue reported by Kimba on gimpchat.com forums.
When executed from within an image with many layers, the resultant image was wildly off.
While this was not a true bug, as the original code was never intended to be used on an image where layers were expected to be retained, I foresaw others reporting this as an issue as well, so modified the code in advance.
Modified format of the layer merging operation in the ancillary plugin. Plugin now uses a parasite to carry in a prefix code to apply to the layer names. Parasite is removed on successful completion, and through gimp undo operation.
Modified the main plugin to use this parasitic data for layer name prefixes. This makes null and void the changes in 1.1.1 to the layer names.
Cleaned up the code somewhat.
Modified the primary plugin to work on a new image, instead of in place. (Speed / memory optimization)
Transfer layers back to source image upon completion ensuring mode transfers as well; then adjust their parent and location as needed. Flattening occurs before transfer.
Requirement of having the mod_LCS plugin by DIEGO has been
modified. The source code for that script has been merged into these files. The plugin will look for an installed version of the other plugin, and if it fails to find it, will then call on the source code version in here. Preference is always given to separate installation of mod_LCS so that if DIEGO updates it, it will trump the version coded in.
The file for the Garagecoder_II variant includes the Gold_322.pat file, which belongs in Your patterns directory.
Tested against: (All Tests Passed)
- Image with one layer, no groups.
- Image with many layers, no groups, top layer selected.
- Image with many layers, no groups, bottom layer selected.
- Image with many layers, no groups, intermediate layer selected.
- All above tests inside a group, in an image with many groups.
Using:
A 66MB image, and a 2.4 GB image.
The scripts may now be safely used in any image environment.
With or without layer groups;
With or without other layers present;
In any position within a stack of layers (inside or outside a layer group).
The original source layer is unmodified.
New layers appear above the source layer.
If using one of the alternate forms of the script (Auto Collapsing) the WORK LAYERS only will be auto collapsed. All other layers in the image will remain untouched. The scripts will silently ignore orders to
Flatten when used in this mode.
Scaling of the layers is done so that the end result returns to image size.
_________________
The answer was 42. The question is long forgotten. The computer that solved it is now destroyed.
The MK-2 has been built. Should this be the next question?
(Solve if you can ...
)