Opened 6 years ago
Closed 4 years ago
Last modified 11 months ago
#9870 closed defect (fixed)
SCI: LB1: Game hangs when opening passage if walking in wrong spot
|Reported by:||sluicebox||Owned by:||sluicebox|
|Cc:||Game:||Laura Bow 1: The Colonel's Bequest|
Opening secret passages in the upstairs hall will freeze the game depending on your location and if you're walking. This is a bug in the original game that also occurs in ScummVM. It's similar to #7119 in that Laura starts to walk to where she's supposed to stand but then stops and the game freezes. I once saw an ancient walkthrough that recommended saving before every attempt because of this. I used to get bit by this one a lot.
This occurs on both the left and right passages in the upstairs hall, room 43.
It's easy to reproduce if you turn the game speed all the way down. The bug happens at all speeds, it's just easier to get the timing right when slow.
To reproduce with the right passage, stand at (250, 164) facing right. This puts you up against the closet and is as far right as you can go. Press the right key to start walking and then immediately press a letter key to bring up the input box. The goal is to bring up the input box while Laura has switched to a walking frame. If this is done then she is in motion and the bug can be triggered with "move closet". If she already made it back to a standing frame then try again.
To reproduce with the left passage, stand at (73, 164) and do the same thing in the opposite direction.
It's not just these positions, if you stand most anywhere up against the closets and try this it will trigger the bug.
In real life what tends to happen is that you exit one of the passages and walk straight across the screen to the other one, go to open it, and get unlucky. When exiting a passage your y position starts out in the danger zone, and "move closet" only works when you're close to the closet, so it's a roll of the dice each time.
I'm weirdly confident that this only occurs when the player is in motion. A while back I tried to flush out this bug with a program that brute forced "move closet" from every position but none of them caused a freeze so I ruled out standing.
This occurs in DOS, Amiga, and Atari versions.
I've attached a ScummVM save game of the DOS version using the nightly build.
Change History (7)
by , 6 years ago
by , 6 years ago
comment:1 by , 5 years ago
comment:2 by , 4 years ago
This is a symptom of a larger bug I've since written up and fixed: #10733
comment:3 by , 4 years ago
comment:4 by , 4 years ago
|Status:||new → closed|
Since https://github.com/scummvm/scummvm/pull/1353 has been merged, this can now be closed.
Closing as fixed.
comment:5 by , 11 months ago
If the game is stopped in debug at CB1::doit script 0 room 43 address 0001:06e5 then a send 04 call is performed which will force a jump to address 06f2 if laura is not moving or 001:06ea if she is and then it gets stuck in this endless loop. Even if I force the code to jump to 06f2 in the bug state laura will still try to walk the way she is facing while staying in place and still stays in the loop.