[Scummvm-tracker] [ScummVM :: Bugs] #14353: AGS: Unavowed - Game crashes at the Staten Island stage.
ScummVM :: Bugs
trac at scummvm.org
Mon Mar 27 01:07:22 UTC 2023
#14353: AGS: Unavowed - Game crashes at the Staten Island stage.
--------------------+--------------------------
Reporter: Hukadan | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Engine: AGS
Version: | Resolution:
Keywords: | Game:
--------------------+--------------------------
Comment (by criezy):
Another way to fix the crash is by changing this line:
https://github.com/scummvm/scummvm/blob/10a5566dab986315037da8da2fbf968901f7bee9/engines/ags/engine/ac/system.cpp#L169
from:
`if ((index < 0) || (index >= _GP(game).numGameChannels))`
to:
`if ((index < 0) || (index >= _GP(game).numCompatGameChannels))`
The number of channels was increased from 8 to 16 in AGS 3.6, but in
previous version, there was actually a 9th special channel (at index 8)
for crossfade. The `numCompatGameChannels` includes that channel.
I think this might be a more logical change than the one proposed above,
but I would like to check that with upstream developers.
And by the way the version of the game I have has the same crash, but is
detected as
{{{
Game data version: 49
Compiled with: 3.4.1.14
}}}
so the fix proposed in the previous comment would not even work for it,
and I would need to use `kGameVersion_341_2`.
--
Ticket URL: <https://bugs.scummvm.org/ticket/14353#comment:4>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list