Opened 6 years ago
Closed 4 years ago
#10907 closed defect (fixed)
SCI: Wrong music when restoring games
Reported by: | sluicebox | Owned by: | ZvikaZ |
---|---|---|---|
Priority: | normal | Component: | Engine: SCI |
Version: | Keywords: | midi | |
Cc: | Game: |
Description
ScummVM plays the wrong music when restoring SCI games in certain rooms. I have a reproducible test case in SQ4 but I've also seen this recently in LB2 and possibly ECO1.
To reproduce using any DOS version of SQ4:
- Warp to room 305. You'll exit the timepod on Estros.
- Go to room 320 down by the water (left, down, down)
- Save game
- Load game
- The music is now the ambush/submarine music
Win7x64, all audio settings are defaults. Occurs with latest code, but I tested as far back as 1.8 and it did the same.
Change History (4)
comment:1 by , 5 years ago
Keywords: | midi added |
---|
comment:2 by , 5 years ago
comment:3 by , 5 years ago
I was wrong, and @sluicebox' report is correct ;-)
The situation is like this:
When we enter room 320, longSong
is still playing resource id 18, and prepares resource id 57 to be later played - that's the init
line I've pasted.
Upon restoring, we think that 18 should be already replaced with the newer 57.
comment:4 by , 4 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Thanks for your work! The relevant fix has been committed, so this can be closed now
If I understand this correctly, the problem isn't on restore, but rather with regular game play...
When restoring, and running 'songlib' on debugger, we get:
And when getting there during game play, from room 310:
i.e., the problem is that on restore we get resource id 57 (is that what you call
ambush/submarine music
music?), and on regular game play we get resource id 18.However, according to SCICompanion, it seems that it should be 57 (from
rm320:init
):(gLongSong number: 57 flags: 1 loop: -1)
Therefore, the question is not why we get 57 on restore, but why we don't get it on regular game play.
If anyone thinks I'm wrong, I'd be glad to hear :-)