Author Topic: [BUG][PLAYER] Positioning issue when loading state with projectiles?  (Read 790 times)

0 Members and 1 Guest are viewing this topic.

Offline namida

  • Administrator
  • Posts: 12398
    • View Profile
    • NeoLemmix Website
https://www.lemmingsforums.net/index.php?topic=5215.msg88978#msg88978

Haven't looked into this at all yet - my guess that it's to do with loading state is purely based on (a) the circumstances in which the bug is described as occurring; and (b) that there was an earlier, similar bug arising from a similar situation (I suspect this is a case of "not quite 100% fixed, I only made it less common/severe").
My Lemmings 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)

Offline namida

  • Administrator
  • Posts: 12398
    • View Profile
    • NeoLemmix Website
Re: [BUG][PLAYER] Positioning issue when loading state with projectiles?
« Reply #1 on: December 28, 2020, 12:34:48 AM »
It seems the key to making this happen is to make the assignment 4 frames before a state is saved. (Manual states aside, this would mean assigning it on a frame where the frame number mod 170 is equal to 166.) I set up a level where I could assign a spearer to a different lemming on each consecutive frame, and the bug did not occur with assignments on frame 165 or 167, so it really is a "must be on the exact correct frame" bug. The effect seems to be that the spear is moved down by one pixel. Most interestingly, this bug does not appear to affect grenaders.
My Lemmings 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)

Offline namida

  • Administrator
  • Posts: 12398
    • View Profile
    • NeoLemmix Website
Re: [BUG][PLAYER] Positioning issue when loading state with projectiles?
« Reply #2 on: December 28, 2020, 12:49:02 AM »
Fixed, as is a similar bug involving cloned or blockered throwers, in commit e138f38.
My Lemmings 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)