Here's another weird three-part bug I came across. Like the previous magic bug, it requires three different and rather random elements in order to work. Why do I keep finding these? :P
Summary:
Two objects are in a family. They both have Wrap behavior and GridMovement behavior. When you create an action to tell the Grid behavior to move manually, the .cap will crash on startup. (Note that is on startup... not when the event executes.)
If you do just one of the following (and leave the other two) then the .cap will not crash:
- Don't pick by Family
- Remove the Wrap behavior
- Do not have an action that tells the Grid behavior to move
How to recreate:
Open the attached "wrapgridfamilybug.cap" and run it. The .cap will crash immediately. There are extensive notes and comments accompanying the .cap to the point of being annoyingly redundant.
Wrap Grid Family Bug example
Looks like the IDE is exporting the action incorrectly. It is exporting the "Move 1 horizontally" action as an action in the Wrap behavior, and since Wrap doesn't have that action, kablooie.
Assigning to Davo because of exporter problem.