Opened 2 months ago

Last modified 2 months ago

#16563 new defect

DIRECTOR: The Dark Eye - (ORIGINAL BUG) Music issue on main menu screen

Reported by: antoniou79 Owned by:
Priority: normal Component: Engine: Director
Version: Keywords: Dark Eye, Search, Theme
Cc: Game:

Description

Tested with ScummVM 2026.1.0 and also recent build from master HEAD (2026.1.1git) on Windows 10.

Launching the game, the music on the main menu (MnTitle.aif in subfolder DKYDATA/NT/NA/) plays without issues.

But if you load or start a new a game, play for a bit (about a minute or so), and then return to the main menu, ScummVM won't play the music anymore and the console keeps outputting these warnings:

WARNING: Failed to open MnTitle.aif!
WARNING: stream is 0!

I didn't have time to properly debug this yet.

From a quick debug session though, it seems that, the first time, ScummVM is looking for the file in the correct place (after a few attempts, that are part of the "search for resources" code), but for the subsequent times, when it errors out, it does not look at the right place anymore.

At least part of the code used for resolving the path to the requested file is in engine/director/util.cpp (findPath(), resolvePath() and so on), so I'm looking into those first.

Change History (3)

comment:1 by antoniou79, 2 months ago

After a bit of investigating on how the _searchPath is changed during the game, I think that this is either an original bug, or the intended behavior.

Upon launching the game, at the main menu, _searchPath is an array of one value, "C:\DKYData\DirFiles\", which then changes to "C:\DKYData\XObjects\Win\", then back to "C:\DKYData\DirFiles" and finally to "C:\DKYData\NT\NA\". In all these changes, the first and only value of the _searchPath array is changed for the new one. It is not appended at the end of it (this is definitely intentional). The "C:\DKYData\NT\NA\" value loads the "MnTitle.aif" music file successfuly.

When playing the game, _searchPath can get another (first and only) value, eg. "C:\DKYData\ML\MA\", but returning to the main menu does not seem to trigger any change for this value to become "C:\DKYData\NT\NA\" again, and so the main menu music fails to load.

I've seen some footage of someone playing the original game on Windows 3.1 on Youtube, and indeed the menu theme music (for file "MnTitle.aif") is not playing when returning to the main menu after playing the game for a while.

comment:2 by antoniou79, 2 months ago

Summary: DIRECTOR: The Dark Eye - Music issue on main menu screenDIRECTOR: The Dark Eye - (ORIGINAL BUG) Music issue on main menu screen

comment:3 by antoniou79, 2 months ago

I suppose a workaround would be to copy (or move) the MnTitle.aif to the "root" folder of the game data, because then the engine would be able to find it before even searching through the folders in _searchPath

Note: See TracTickets for help on using tickets.