[Scummvm-devel] Maniac Mansion (few fix's and the game is kinda completable)

Robert Crossfield segra at iprimus.com.au
Thu May 22 23:59:09 CEST 2003


actually, i should of been a little more specific sorry,
i meant add in something along the lines of

if (_features & GF_AFTER_V2)
    return x/8;
else
    return x;


You just have too walk into the kitchen right at the start of the game.

Script 153 executes when you walk into the kitchen,
this is a descumm of the first part

[0000] (80) breakHere()
[0001] (66) Var[1] = getClosestObjActor(10)
[0005] (48) if (Var[1] == 255) {
[000B] (62)   stopScript(0)
[000D] (**) }
[000D] (38) unless (VAR_CAMERA_POS_X >= 47) goto 0000;


with the current code (no /8 in getObjAct....) Var[1] gets set to 255, the
script then aborts and doesnt start again.
With /8, Var[1] gets set to 3, which is what the original interpreter did (i
checked it with the debug mode).

Maybe I just dont have a clue what im talking about hehe i dunno ;0
This is just a result of some playing around and reading over the scripts
watching what is happening and comparing it to what would happen if VAR's
were set differently.

I can't remember the other script which executes when your trying to get
past green tentacle, but it uses GetDist (which also uses getObjAct...) and
without a /8 in getObjAct..., or in GetDist. You can't get close enough to
him.

Hope this helps,

segra


----- Original Message ----- 
From: "J.Brown (Ender)" <ender at scummvm.org>
To: "Robert Crossfield" <segra at iprimus.com.au>
Cc: "scummvm-devel" <scummvm-devel at lists.sourceforge.net>
Sent: Friday, May 23, 2003 4:44 PM
Subject: Re: [Scummvm-devel] Maniac Mansion (few fix's and the game is kinda
completable)


> > but in object.cpp in int Scumm::getObjActToObjActDist(int a, int b) {
(line253)
> >
> > if you change
> > return x;
> > to
> > return x/8;
>
> Hm, I don't believe that's correct, as it would completely break
> o5_getClosestObjActor.
>
> That could mean we are missing a *8 in some object position setting
> function, of course... can you send a save near that point?
>
>  - Ender
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: ObjectStore.
> If flattening out C++ or Java code to make your application fit in a
> relational database is painful, don't do it! Check out ObjectStore.
> Now part of Progress Software. http://www.objectstore.net/sourceforge
> _______________________________________________
> Scummvm-devel mailing list
> Scummvm-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scummvm-devel





More information about the Scummvm-devel mailing list