Opened 10 years ago

Closed 10 years ago

Last modified 13 months ago

#9052 closed patch

MM C64 Objects / Verb fixes

Reported by: SF/segra Owned by: Kirben
Priority: normal Component: Engine: SCUMM
Keywords: Cc:
Game: Maniac Mansion

Description

Hey guys,

This patch makes the game almost completable, but there still exists one issue with the walkboxes. Ive ran out of time to clean this up any better so im posting as-is. ive only just realized my other patch contains the rest of the actor names (patch #2816140), this is required for the "GIVE to" sentence formation to work correctly.

the verbs are loosely based on the original, most seem to work correctly (i was able to play to the end, with room skipping for walkbox issue). Actors will walk to objects before using them now, and you can execute a multiple such as "use key in front door" while the key is on the ground (will walk to, pickup, walk to next target, use)

other engine changes include,
added currentmode/light variables to savegames (not sure on the savegame version stuff tho)

V0 Games can use a single "object number" twice, this causes issues with various internal SCUMM functions

kitchen: "Can of Pepsi" is object 0x3C.
library: "Lamp" also has object of 0x3C.

meaning once you've picked up the pepsi, the internal engine uses the can of pepsi.. as the inventory is checked first (getOBCDFromObject(), etc)
also weird eds room, has multiple objects with the same number... meaning the door/hamster/piggy bank couldn't be touched.

rather than replacing all functions, added a simple switch for V0 to enable force inventory check,
and another to force the use of object indexs (instead of using object number) for lookup or return of object pointers.

Ticket imported from: #2821100. Ticket imported from: patches/1157.

Attachments (1)

v0_mm_verb.patch (29.2 KB ) - added by SF/segra 10 years ago.

Download all attachments as: .zip

Change History (5)

by SF/segra, 10 years ago

Attachment: v0_mm_verb.patch added

comment:1 by Kirben, 10 years ago

Owner: set to Kirben

comment:2 by Kirben, 10 years ago

Status: newclosed

comment:3 by Kirben, 10 years ago

Thanks, I fixed save game changes, and added the patch to ScummVM SVN.

Great work, on getting Apple II/Commodore 64 versions of Maniac Mansion working so much better!

comment:4 by digitall, 13 months ago

Component: Engine: SCUMM
Game: Maniac Mansion
Note: See TracTickets for help on using tickets.