[BUG][PLAYER] Auto-generated rank graphics broken?

Started by namida, November 03, 2022, 09:18:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

namida

Haven't looked into the cause at all, so not sure if it's a bug, an edge case, or just something weird in the particular setup, but in this screenshot posted on Discord by GigaLem, the rank graphic has a "Rank graphic not found" image instead of generating a placeholder.

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

Found the cause of this, and fixed in commit ff3a702.

If you are experiencing this bug, go into your NL installation's "gfx/menu/" subfolder and delete any file named "rank_graphic.png" or "group_graphic.png". This file may exist from older versions of NL; and the way NL handles loading menu screen graphics is "attempt to load graphic file from pack, if this fails, fall back to gfx/menu/ directory". It was only if this too failed, it would fall back to auto-generating it (which on a clean install, this would fail). I've now made some changes so that these two files would only be loaded from the pack, not from the default graphics.
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)