Opened 3 years ago

Closed 3 years ago

#13293 closed defect (fixed)

Swords of Xeen is crashing on new game with a assertion error

Reported by: i30817 Owned by: dreammaster
Priority: normal Component: --Unset--
Version: Keywords:
Cc: Game:

Description (last modified by i30817)

I'll admit i don't remember where this game came from.

Assertion:

 ../../../../engines/xeen/map.cpp:126: void Xeen::MonsterStruct::synchronize(Common::SeekableReadStream&): Assertion `_itemDrop >= 0 && _itemDrop <= 7' failed.

MD5s:

20ca449c70073afe7b8937cfc100b585  SWORDS.EXE
24221b40ad4c0b82c7d86dc1fd2b23ed  SWRD01.SAV
938e27ccafb9df3fbac06e0b4db74ec1  SWRD.CC
24221b40ad4c0b82c7d86dc1fd2b23ed  SWRD.CUR
94bbe30d585fb8e7abe683235ec6a5a1  XEEN.CFG
0680510c3883f92d2483d7fbfb7aa140  XEEN.DAT

Game entry:

[swordsofxeen]
description=Might and Magic: Swords of Xeen (DOS/English)
path=/media/i3/Mordred/Games/ScummVM/swords_of_xeen
engineid=xeen
gameid=swordsofxeen
language=en
platform=pc
guioptions=gameOption1 gameOption2 lang_English

edit: since i remembered that scummvm only md5s the first 5000 bytes of files, here is another done with 'find . -type f -exec bash -c 'head -c 5000 "{}" | md5sum' \; -print' and slightly edited for readability:

4b67b643d59ab7ebe9514d86385b3f4f  SWRD.CUR
94bbe30d585fb8e7abe683235ec6a5a1  XEEN.CFG
30985403114fe290cafce38d90db0afa  SWORDS.EXE
0d51c3457070cc7d1a596da9241924a5  SWRD.CC
95087fcfe0e81e13860081b3211bc605  XEEN.DAT
4b67b643d59ab7ebe9514d86385b3f4f  SWRD01.SAV

Change History (2)

comment:1 by i30817, 3 years ago

Description: modified (diff)

comment:2 by dreammaster, 3 years ago

Owner: set to dreammaster
Resolution: fixed
Status: newclosed

Fixed. Swords used a bigger range of item drop indexes into an array that lists the probabilities of the given monster type dropping an item. Which is ironic, because I just double-checked, and the actual array remained the same.

Note: See TracTickets for help on using tickets.