Opened 3 months ago

Closed 3 months ago

#16699 closed defect (fixed)

Can't take the elevator down near the end of SQ6

Reported by: jschwartzenberg Owned by: sluicebox
Priority: normal Component: Engine: SCI
Version: Keywords: pathfinding
Cc: Game: Space Quest 6

Description

Near the end of the game, one has to take the elevator down inside the brain. This does not work however.

I tried it with both ScummVM 2.7.0 and 2026.2.0.

To reproduce, play through the game and reach the end (see attached save game) try to use the elevator.

I played the DOS/English language version of the game.
OS is Debian 12 Bookworm i686.

Attachments (1)

sq6.054 (59.6 KB ) - added by jschwartzenberg 3 months ago.

Download all attachments as: .zip

Change History (5)

by jschwartzenberg, 3 months ago

Attachment: sq6.054 added

comment:1 by sluicebox, 3 months ago

This is the result of known pathfinding bugs on this screen. You've skipped a puzzle by walking out of bounds, and now the game is in an invalid state.

Roger is supposed to solve a puzzle to get from the top part of the screen (the shuttle) to the bottom, but known pathfinding bugs let Roger walk out of bounds from the top to the bottom. This skips setting game flags, leaving the game in an invalid state. The elevator tests a flag that was supposed to be set when getting to the bottom the correct way. Since that was skipped, the elevator thinks Roger is still up top and ignores clicks.

This is a duplicate of #9589, as it's another consequence of walking through scenery.

comment:2 by sluicebox, 3 months ago

Keywords: pathfinding added

comment:3 by jschwartzenberg, 3 months ago

My bad! I should have found that other ticket. Many thanks for the explanation. Interestingly I could defeat those robot things without a problem.

Generally SQ6 seems to have some issues with regards to pathfinding, but others are not game-breaking.

comment:4 by sluicebox, 3 months ago

Owner: set to sluicebox
Resolution: fixed
Status: newclosed

Fixed in 46e9b94b3e2905d93918a9ab1848c619b0d81b05

Thanks for reporting, the save file was a big help. I tried coming up with workarounds for the SQ6 pathfinding bugs in 2019 and failed, and I think bluegr tried too. I made better tools this time and was able to come up with workarounds for the two worst ones. This patch looks simple (just change a polygon point) but lol a lot of work went into coming up with that point!

Existing saves in Stella's brain will be unaffected. The script patch takes affect when initializing the room, so if you're in the upper right area you can re-enter the ship and came back out, then you should no longer be able to walk out of bounds. I've done a lot of furious clicking and can no longer break out.

Note: See TracTickets for help on using tickets.