[SUGGESTION] [PLAYER] Configuration option for error of missing music file

Started by Wafflem, March 25, 2016, 04:56:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Wafflem

I don't like how recent updates have removed the error, that I am missing a music file and I am informed that it will stay silent instead.

It doesn't make sense for me. I don't want the level to just play the level with the Amiga/current Global Music Pack. I want to know exactly what music file I am missing first, before the level plays the Amiga/current Global Music Pack.

A configuration option for warning me of a missing music file is the best solution.
YouTube: www.tinyurl.com/YTWafflem
Twitch: www.twitch.tv/Wafflem467

Have level designer's block right now? Have some of my incomplete levels for LOTS of ideas!

namida

I think there's some misconceptions going around about how exactly NeoLemmix picks a music file, and how the fallback-if-not-found works.

Let me clear up exactly what happens (or at least what should be happening; any deviation from this is a bug).

Once a suitable file is found, use it, do not look any further.
When multiple musics with the right filename exist in the same place, but with different extensions, the order of priority (highest to lowest) is: OGG, WAV, AIFF, AIF, MP3, MO3, IT, MOD, XM, S3M, MTM, UMX.


1. If the level specifies a music file, look for that specific track.
>> Check in the game-specific music pack for that track, if there is one
>> Check in the "music" folder
>> Check in the NXP
>> Check in NeoLemmix.exe

2. If the level doesn't specify a music file, or if it did but the music file cannot be found; use the general rotation specified for the current pack (or if it's a single level, pick a random track from the Orig and OhNo tracks).
>> Check in the same order as in step 1

3. If the appropriate track based on the rotation can't be found either, do not play music.


There is no intermediate step of "If the track according to the pack's specified rotation isn't found, use the track according to the default rotation."

Therefore, it is quite simple to find out which track is missing:
- If the level does not specify a music, and the result is silence, the missing track is whatever the pack in question's rotation should play at this point.
- If the level does specify a music, and the result is a track based on the rotation, the missing track is the specified one.
- If the levle does specify a music, and the result is silence, both the specified music and the track that should play from the rotation are missing.

Additionally, the Issue Checker in the Flexi Toolkit should detect these problems.

In regards to changing back to the old behaviour, or adding a config option, I don't see this as very worthwhile - indeed, the removal of the warning was quite strongly requested.
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)