Lemmings Forums

Other Lemmings Projects => RetroLemmini => Topic started by: WillLem on October 09, 2026, 02:15:39 AM

Title: [✓][BUG] Disallow flipping/rotating of force-fields
Post by: WillLem on October 09, 2026, 02:15:39 AM
From ericderkovits on Discord:

Quote from: ericderkovitsI noticed the force fields can be rotated, inverted or flipped in the editor, thus making the force fields NOT work correctly. (ie flipping a left force field only flips the graphic but not the way it works, so a flipped left force graphic faces right but still acts as a left force field (Wrong), as the .ini file still says it acts whichever direction (left or right) even when the graphic is flipped.

I think force fields should NOT be allowed to be rotated, inverted or flipped just like the OWW's
Title: Re: [BUG] Disallow flipping/rotating of force-fields
Post by: WillLem on October 09, 2026, 02:15:55 AM
Agreed. I'll fix this for the next update.
Title: Re: [+][BUG] Disallow flipping/rotating of force-fields
Post by: WillLem on October 11, 2026, 03:10:07 AM
Force-fields can no longer be rotated, flipped or inverted in either RL Editor or RetroLemmini itself.

Fixed in RLPlayer dc52107, with Editor support in RLEditor c7717e5.
Title: Re: [✓][BUG] Disallow flipping/rotating of force-fields
Post by: Simon on October 11, 2026, 09:15:05 AM
Makes me wonder how you're going to load from file a previously-rotated forcefield.

Load it rotated (as it was saved), and you can then rotate the tile to default rotation via UI, but then not re-rotate via UI? That would bring small extra concerns like how an undo stack must support undoing the rotate-to-normal, which is a re-rotation, even if manual re-rotation is forbidden.

Load it unrotated (enforce the default rotation of the tile-from-tileset on the tile-in-map)? Then load-then-save will gain a new side effect, it will now normalize according to a new rule. But level maintainers rely on load-then-save for some other normalization anyway.

Load it rotated (as it was saved) and then forbid all rotation: That would be contrary to what the bugfix intends.

NL 12.14's format is going to support these rotations whether we like it or not. Ah, this is RetroLemmini, not NL, and you have the luxury of purging it from the future format, too. Then it's mainly an issue for how you'll load old levels.

-- Simon
Title: Re: [✓][BUG] Disallow flipping/rotating of force-fields
Post by: WillLem on October 12, 2026, 03:42:52 AM
Quote from: Simon on October 11, 2026, 09:15:05 AMMakes me wonder how you're going to load from file a previously-rotated forcefield.

Load it untransformed. The point of this fix is to have these objects behave consistently between levels; previous levels that used transformed force-fields are no longer supported, then (but there are most likely 0 such levels anyway).