Opened 9 years ago

Closed 9 years ago

Last modified 12 months ago

#9237 closed patch

MMC64: save actor state

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

Description

At the moment the C64 specific status of an actor (ActorC64) is not stored in savegames. This state also contains the _miscflags variable which stores e.g. if a kid is dead, if it used the strong-o-mat, if a kid is Ed's enemy and similar things. So for instance if a kid used the strong-o-mat and the game was saved and loaded afterwards the kid is not strong anymore.

This patch adds all C64 specific state vars to the serializer so they will be saved. I don't know if all of these vars have to be saved. In addition I had to move all these vars from the ActorC64 to the Actor class as it did not seem to be possible to add the ActorC64 vars directly.

Ticket imported from: #3094717. Ticket imported from: patches/1342.

Attachments (1)

save_actorstate.patch (2.8 KB ) - added by SF/tobigun 9 years ago.
save C64 actor state

Download all attachments as: .zip

Change History (5)

by SF/tobigun, 9 years ago

Attachment: save_actorstate.patch added

save C64 actor state

comment:1 by Kirben, 9 years ago

Owner: set to Kirben

comment:2 by Kirben, 9 years ago

Thanks, I added an alternative version of the patch to ScummVM 1.3.0svn.

I kept the additional variables in ActorC64, by virtualizing the Actor::saveLoadWithSerializer() function.

comment:3 by Kirben, 9 years ago

Status: newclosed

comment:4 by digitall, 12 months ago

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