[Scummvm-tracker] [ScummVM] #6736: TSAGE: R2R - Crash on exit Vampire Lair

Paul Gilbert trac at scummvm.org
Mon Nov 20 23:52:58 CET 2017


#6736: TSAGE: R2R - Crash on exit Vampire Lair
----------------------------------+---------------------------
  Reporter:  SF/alien-grey        |      Owner:  csnover
      Type:  defect               |     Status:  new
  Priority:  blocker              |  Component:  Engine: TsAGE
Resolution:                       |   Keywords:  has-save-game
      Game:  Return to Ringworld  |
----------------------------------+---------------------------

Comment (by dreammaster):

 From memory, the savegame code for the TsAGE engine is somewhat different
 to how the original did things.. it simply dumped the area of memory that
 contained all the data for game objects. So, in the absense of that, I
 introduced a new mechanism where all the game objects derived from a
 common "saveable object" base class, that registers each object into a
 list. This list needs to remain constant, so that when loading a savegame,
 the correct data for each object can be loaded into that object.

 However, there are some areas where temporary objects are created, such as
 "ScenePalette" objects used during the intro sequence. These need to be
 ensured to be freed after the sequence/cutscene is done, or else they'd
 permanently remain in the object list, and any save made could no longer
 be restored in your next play session. Hence the assert in the scenes.cpp
 was to ensure I'd correctly freed any temporary object I'd created.. scene
 transitions are a good point where any scene specific code should have
 already have been cleaned up and destroyed.

--
Ticket URL: <https://bugs.scummvm.org/ticket/6736#comment:15>
ScummVM <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list