[BUG][PLAYER] Positioning issue when loading state with projectiles?

Started by namida, December 26, 2020, 11:18:14 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

namida

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 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)

namida

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 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)

namida

Fixed, as is a similar bug involving cloned or blockered throwers, in commit e138f38.
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)