[ scummvm-Bugs-2826144 ] SAM: Game hangs when talking to bigfoot guard

SourceForge.net noreply at sourceforge.net
Thu Jul 23 20:50:20 CEST 2009


Bugs item #2826144, was opened at 2009-07-23 20:50
Message generated for change (Tracker Item Submitted) made by eriktorbjorn
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=2826144&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Script bugs
Group: Sam and Max
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Torbjörn Andersson (eriktorbjorn)
Assigned to: Nobody/Anonymous (nobody)
Summary: SAM: Game hangs when talking to bigfoot guard

Initial Comment:
English DOS CD version of the game
Current SVN snapshot (though it probably happens in any version)

If you talk to the guard at the bigfoot party, after he's let you inside, the game will hang if you press the stop (hand) conversation button.

I believe this is a bug in the game script. This is what that part of the script looks like:

[01C7] (BA)     talkActor(:sound:"Very much so.",5)
[01E9] (A9)     wait.waitForMessage()
[01EB] (73)     jump 9bd
[01EE] (5D)   } else if (dup[1] == 999) {
[01F9] (73)     /* jump 1fe; */
[01FD] (**)   }
[01FD] (**) }
[01FE] (5D) if (bitvar98) {
[0204] (5D)   if (ifClassOfIs(481,[134])) {

This is what a different part of the script, which doesn't hang, looks like:

[04B5] (BA)         talkActor(:sound:"Same old, same old.":wait:"My feet still hurt, and you two keep asking stupid questions.",5)
[051C] (A9)         wait.waitForMessage()
[051E] (**)       }
[051E] (5D)     } else if (dup[5] == 999) {
[0529] (73)       /* jump 52e; */
[052D] (**)     }
[052D] (73)     jump 9bd
[0531] (73)   } else {
[0534] (43)     var171 = 0
[053A] (43)     var169 = getRandomNumber(1)

I didn't see it at first, but the first case is missing the "jump 9bd" line. This jumps to the end of the script, which resumes the game. Without that, it probably falls into the next conversation case, where it waits for the player to click on of the conversation buttons. Which of course won't ever happen.

The following debugger command unlocks the game: scumm_vars[171] 999

But I don't know how to make this into a workaround.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=2826144&group_id=37116




More information about the Scummvm-tracker mailing list