Runners Bypass Exit, Walkers Exit (Weird Lix Physics)

Started by Blitz, November 13, 2024, 10:32:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Blitz

Today I was scrolling through my replays and found very weird physics like the lix that is walking is allowed but the lixes that were running were not allowed and that was a close game my brother would have won if the lixes werent running
Tom Wolf :lix-evil:
 https://youtube.com/@blitzlix?si=EE0pCPusomuqjkRp. My Youtube channel

Simon

Excellent find, thanks!

I agree that, yes, these runners should exit.

Explanation: Runners run by performing twice per tick what a walker does once per tick. The bug is now: We look for exits only at the start and at the end of a physics update, not during the skill performances. Normally, that's not a big problem because fast-moving skills (faller, tumbler, ...) can't exit anyway. But runners move fast and can exit.

-- Simon

Ramon

This would have been a nice entry in my "unintuitive and obscure Lix tricks waiting to be culled by Simon" level series  :P

Simon

Indeed, it's the same conceptual roblem as in:
github #132: Walker bypasses trap, faller is killed

... which Ramond reported for C++ Lix around 2014.

Walker-to-faller covers more than one pixel per tick, too. Traps (one-lix-at-a-time-eating traps, not fire nor water) collide with lix only at the end of a tick. The lix knows about the trap collision, but doesn't know which trap or exit it was.

-- Simon

namida

Quote from: Simon on November 14, 2024, 09:49:21 PMIndeed, it's the same conceptual roblem as in:
github #132: Walker bypasses trap, faller is killed

... which Ramond reported for C++ Lix around 2014.

Walker-to-faller covers more than one pixel per tick, too. Traps (one-lix-at-a-time-eating traps, not fire nor water) collide with lix only at the end of a tick. The lix knows about the trap collision, but doesn't know which trap or exit it was.

-- Simon

NeoLemmix handles this by comparing the lemming's position at the start and at the end of each update, and checking for interactive objects along the entire path between those points (I'm not 100% sure of the exact rules it uses to determine when to move horizontal vs vertical, Nepster wrote that part, though some skills - most notably the Jumper - have overrides from the default behavior, and of course a special case exists for teleporting where it specifically does not check the inbetween points, not that Lix needs to worry about that one) when it does the object checks.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)