[BUG][PLAYER] Levels sometimes don't preview

Started by Proxima, November 19, 2022, 04:33:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Proxima

In the level select menu, clicking on a level sometimes doesn't display its preview, but continues to show the preview of the old level.

I observed this with the pack BadLems, and it might be because some of the levels have the same ID. I spent some time clicking on levels in Lemmings Redux and they all previewed correctly.

If it's decided that this won't be fixed because having levels with the same ID is just something you should not do, then I would suggest that packs on the NeoLemmix Levels board should be fixed to avoid this issue.

namida

Packs should be fixed to avoid ID collisions regardless, but (if that is the cause) it should nonetheless be fixed. In particular, physics / bug test levels that aren't intended to be played seriously, I wouldn't necesserially expect the same efforts to avoid ID collisions to be made for those (and indeed, I don't always do so myself), but preview differences could still be important to see. I vaguely recall writing code to cache level previews; it's very possible that it identifies the level based on level ID (and if so, it can probably be changed to instead rely on file path).

Beyond that, I'd have to look into it to say if that is indeed the cause (and if not, what is).
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)

kaywhyn

I can confirm that this happens with levels having the same level ID. I observed this on both Amiga 6 and Amiga 7 of Zemmings Complete at the beginning of this year in my outros video of my LP of the pack. The preview picture in the level select menu is the same, but the skillsets for each level are different and correct when switching between the two levels. At the time, I didn't know what caused that.
https://www.youtube.com/channel/UCPMqwuqZ206rBWJrUC6wkrA - My YouTube channel and you can also find my playlists of Lemmings level packs that I have LPed
kaywhyn's blog: https://www.lemmingsforums.net/index.php?topic=5363.0

namida

Okay, so it doesn't seem to outright cache them; it just doesn't regenerate it if the previously-rendered preview was for a level with the same ID as the current one. It should be easy enough to change this to use another factor (I believe performance reasons is why this happens at all; so not going to remove the check altogether).
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

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)