[Scummvm-tracker] [ScummVM :: Bugs] #15514: SCI: KQ5CD Issue with the audio when adding text dialogues multilingual
ScummVM :: Bugs
trac at scummvm.org
Tue Nov 19 21:23:33 UTC 2024
#15514: SCI: KQ5CD Issue with the audio when adding text dialogues multilingual
--------------------+-----------------------------
Reporter: LaZar00 | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Engine: SCI
Version: | Resolution:
Keywords: | Game: King's Quest 5
--------------------+-----------------------------
Comment (by LaZar00):
Hi sluicebox,
It is a pleasure to know you. I looked a LOT of your KQ5 CD source code in
github to understand SCI. I'm very beginner in it. This is a sample of the
intro with dialogue boxes:
[https://youtu.be/8ghh08towI0?feature=shared Youtube KQ5 CD Intro with
speech+text]
I have even rm001 stage done and part of the menu. I programmed two or
three functions that help me to show message boxes like DLetter.sc and
Printf. Only with procedures, I have not defined new classes. I try to
left it all centralized in 2-3 scripts, but I have to do some minor
changes.
Ok, about our issue in question.
I have finally made possible the change of the language in game, but in
scummVM does not work the lang property in the .ini file. This is my
Main.sc source code:
{{{
(instance KQ5 of Game
(properties
parseLang 34
printLang 34
)
(method (init &tmp [temp0 270] temp270 [temp271 19] temp290)
(= global394 1)
;(DoAudio audLANGUAGE 1) ; for English
(DoAudio audLANGUAGE 34) ; for Spanish
(DoAudio audRATE 11025)
(if (and (>= (= global105 (Graph grGET_COLOURS)) 2) (<=
global105 16))
(= global159 0)
else
(= global159 1)
)
}}}
And I needed to copy AUDIO001.MAP to AUDIO034.MAP and the file
AUDIO001.002 to AUDIO034.002. This has helped and has made the subtitles
with printLang 34 available. But the thing is that in DosBox I DON'T NEED
to do this. It seems Scumm does not defaults to the english audio when it
has not the files with the voices. I checked the code in github and seen
that this is the issue, that's why I have copied the files of the audio
with the number/code of the language.
In DosBox it works directly, without the files for the language (it gets
by default the English one XXXXX001) and I don't need either to use the
"DoAudio audLANGUAGE 34". It seems only needs the printLang and parseLang
code of the spanish language.
--
Ticket URL: <https://bugs.scummvm.org/ticket/15514#comment:4>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list