Opened 3 months ago

Last modified 3 months ago

#10933 new defect

SCUMM: [Pajama Sam 2, English GB] Crash/Exit upon launching game, "failed to read MAXS data"

Reported by: Retrodude94 Owned by:
Priority: normal Component: Engine: SCUMM
Keywords: Cc:
Game: Pajama Sam 2

Description

  • ScummVM version 2.0.0 Windows x86
  • Windows 7 Professional 64-bit OS
  • Pajama Sam: Thunder and Lightning Aren't So Frightening (UK/GB English CD-ROM)

Game datafiles are recognized but fails to launch. Upon pressing Start in ScummVM UI main windows goes black for a split second before closing both main and console windows.
Output from scummvm.log shows the following:
--
readMAXS(52) failed to read MAXS data!
[2019-04-11 19:28:43] --- Log closed successfully.
--

Let me know if any additional information is needed.

Change History (5)

comment:1 Changed 3 months ago by Retrodude94

Component: --Unset----Other--

comment:2 Changed 3 months ago by digitall

Component: --Other--Engine: SCUMM
Keywords: Crash removed
Summary: [Pajama Sam 2, English GB] Crash/Exit upon launching game, "failed to read MAXS data"SCUMM: [Pajama Sam 2, English GB] Crash/Exit upon launching game, "failed to read MAXS data"

comment:3 Changed 3 months ago by digitall

In your case, it is a blocksize of 52 which is not valid for v6 MAXS.

I think this is called as the blocksize is not equal to 40 which would indicate a HE v7.2 engine:
https://github.com/scummvm/scummvm/blob/master/engines/scumm/he/resource_he.cpp#L318

comment:4 Changed 3 months ago by digitall

Aha... This looks like it should be detected as a HE v9.9 game as per:
https://github.com/scummvm/scummvm/blob/master/engines/scumm/he/resource_he.cpp#L254

comment:5 Changed 3 months ago by digitall

I think the root cause is this line here which indentifies pajama2 as a HE v6 95 rather than 99 game:
https://github.com/scummvm/scummvm/blob/master/engines/scumm/detection_tables.h#L348

Changing that line from 95 to 99 would probably fix the issue, but not sure how many copies of the game are different versions...

Note: See TracTickets for help on using tickets.