Author Topic: [FIXED] [BUG] [PLAYER] Falling OHNOER'S can direct drop into the exit  (Read 3632 times)

0 Members and 2 Guests are viewing this topic.

Offline IchoTolot

  • Global Moderator
  • Posts: 3688
    • View Profile
While watching Flopsy's latest Sublem's video I noticed this. Standing OHNOER'S should enter the exit yes, that's desireable, but they should not be able direct drop into it. They should still need solid ground under the exit and must not have previleges above normal fallers!

Around 14:15 is such a situation using the Nuke to create the OHNOER'S.  https://www.youtube.com/watch?v=MK7Ad-Dcs84

Reprodcable through:

 - Nuking and letting lemmings fall right above the exit.
 - Using an exploder right above the exit on solid ground ----> triggering the animation. Then remove the terrain and let him direct drop into the exit.
« Last Edit: October 12, 2016, 06:59:49 pm by Nepster »

Online namida

  • Administrator
  • Posts: 12515
    • View Profile
    • NeoLemmix Website
Re: [BUG][PLAYER] Falling OHNOER'S can direct drop into the exit
« Reply #1 on: October 05, 2016, 10:45:48 am »
This was discussed in IRC a while back, and I believe Nepster has already fixed this one.
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)

Online namida

  • Administrator
  • Posts: 12515
    • View Profile
    • NeoLemmix Website
Re: [BUG][PLAYER] Falling OHNOER'S can direct drop into the exit
« Reply #2 on: October 05, 2016, 11:04:33 am »
@Nepster: I made a slight change to your fix for this, I changed it to:

if     (not L.LemIsZombie)
     and ((L.LemAction in [baFloating, baGliding]) or HasPixelAt(L.LemX, L.LemY)) then
  begin


Instead of ruling out specific cases (no fallers, no splatters, no not-standing-on-ground ohnoers), it uses a positive test instead: Either the lemming must be floating or gliding (the only cases I can think of where a lemming is intentionally allowed to exit while not standing on anything), or have solid ground underneath it.

This is in commit 79EBC77. If there are issues with this that I've overlooked, or other cases exist that you can think of, modify or revert it as nessecary.
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)

Offline Nepster

  • Posts: 1829
    • View Profile
Re: [BUG][PLAYER] Falling OHNOER'S can direct drop into the exit
« Reply #3 on: October 05, 2016, 05:11:41 pm »
The big issue is, that direct drops are now possible again, if the exit is standing on the ground.

Reason: During the last frame before splatting, the following happens:
- First the faller determines his end position, which is within the terrain.
- The lemming position is set to this end position (so HasPixelAt(L.LemX, L.LemY) is true), the action is set to splatting and the explosion-timer is set to 0. But the lemming isn't removed yet, because he might collect pick-up skills during the intermediate frames.
- Now the intermediate frames are checked for trigger areas and the exit area is found. So the lemming hops in.

Actually, now that I think about it, setting the action to splatting before checking the trigger areas might create a few teleporter bugs in certain setups. I will have to do some more checking...

Online namida

  • Administrator
  • Posts: 12515
    • View Profile
    • NeoLemmix Website
Re: [BUG][PLAYER] Falling OHNOER'S can direct drop into the exit
« Reply #4 on: October 06, 2016, 02:29:18 am »
Good catch. For now it may be better to just revert this change (my one I mean, not yours).
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)

Offline Colorful Arty

  • Posts: 814
  • You are so loved!
    • View Profile
    • Colorful Arty's Youtube Page
Re: [BUG][PLAYER] Falling OHNOER'S can direct drop into the exit
« Reply #5 on: October 06, 2016, 06:23:00 pm »
What language is that? It looks a bit like Java.
My Youtube channel where I let's play games with family-friendly commentary:
https://www.youtube.com/channel/UCiRPZ5j87ft_clSRLFCESQA

My Twitch channel: https://www.twitch.tv/colorfularty

My levelpack: SubLems
For New formats NeoLemmix: https://www.lemmingsforums.net/index.php?topic=4942.0
For Old formats NeoLemmix: http://www.lemmingsforums.net/index.php?topic=2787.0
For SuperLemmini: http://www.lemmingsforums.net/index.php?topic=2704.0

My levelpack: ArtLems
For New formats NeoLemmix: https://www.lemmingsforums.net/index.php?topic=4583.0

Offline Nepster

  • Posts: 1829
    • View Profile
Re: [BUG][PLAYER] Falling OHNOER'S can direct drop into the exit
« Reply #6 on: October 06, 2016, 06:39:16 pm »
Delphi