#14046 closed defect (fixed)

FTA2 - Crash "Wrong spellID" when cursor is over certain spell icon

Reported by: HappyPrince81 Owned by: sev-
Priority: high Component: Engine: SAGA2
Version: Keywords:
Cc: Game: Faery Tale Adventure II

Description

Program crashes if cursor is placed over Julian's "Rejoin" spell icon. Message is "Wrong spellID: 127 > 112!". It doesn't matter actually what kind of spell is in that cell, it crashes anyway, just spellID is different - I've had loaded earlier save and studied other spells scrolls. The result always the same - crash. Both saves are attached. 003 - before learning the spell, 008 - after.

P.S. I've used "Ultimate cheat" item to give Julian all spells, in order to study the problem. Several other "bad" spell cells were found.

Attachments (2)

fta2.003 (353.1 KB ) - added by HappyPrince81 14 months ago.
fta2.008 (353.1 KB ) - added by HappyPrince81 14 months ago.

Download all attachments as: .zip

Change History (11)

by HappyPrince81, 14 months ago

Attachment: fta2.003 added

by HappyPrince81, 14 months ago

Attachment: fta2.008 added

comment:1 by HappyPrince81, 14 months ago

Summary: Crash "Wrong spellID" when cursor is over certain spell iconFTA2 - Crash "Wrong spellID" when cursor is over certain spell icon

comment:2 by sev-, 13 months ago

Could you please also attach a save with the Ultimate Cheat item?

in reply to:  2 comment:3 by HappyPrince81, 13 months ago

Replying to sev-:

Could you please also attach a save with the Ultimate Cheat item?

Already done. ) Both my attached saves contain "Ultimate Cheat". Julian holds it in the chest he carries. There is a sack inside it which contains the item.

comment:4 by hari01584, 12 months ago

Can you check and see if this solves your problem? -> https://github.com/scummvm/scummvm/pull/4751

in reply to:  4 comment:5 by HappyPrince81, 12 months ago

Replying to hari01584:

Can you check and see if this solves your problem? -> https://github.com/scummvm/scummvm/pull/4751

I'd like to, but I lack the skills to make modified ScummVM build. What needs to be done exactly?

comment:6 by hari01584, 12 months ago

hmm yea sure, the basic steps would be to clone the repository,

git clone https://github.com/hari01584/scummvm/tree/saga2_fta2_fix_spellid_crash

and then build scummvm -> https://wiki.scummvm.org/index.php/Compiling_ScummVM

in reply to:  6 comment:7 by HappyPrince81, 12 months ago

Replying to hari01584:

hmm yea sure, the basic steps would be to clone the repository,

git clone https://github.com/hari01584/scummvm/tree/saga2_fta2_fix_spellid_crash

and then build scummvm -> https://wiki.scummvm.org/index.php/Compiling_ScummVM

I've figured how to do it already. ) Yeah, can confirm that it did fix the bug for me. No more crashes! Thank you!

comment:8 by hari01584, 12 months ago

Great to hear it works, can you please check if everything else works fine, like the spells, etc are working, and if the patch breaks anything (although it shouldn't).

comment:9 by sev-, 12 months ago

Owner: set to sev-
Resolution: fixed
Status: newclosed

Yes, thank you!

Note: See TracTickets for help on using tickets.