Community

SCI Programming => SCI Development Tools => Topic started by: ZvikaZ on February 20, 2020, 10:32:20 AM

Title: SCICompanion: Can't find an audio resource (opening theme) in GK1CD
Post by: ZvikaZ on February 20, 2020, 10:32:20 AM
Hi.
I'm trying to see the GK1CD starting theme.
It's activated at titleRoom.sc - script #375, with this code:

Code: [Select]
(gGkMusic1
number:
(cond
((proc13_0 470) 370)
((DoSound sndGET_AUDIO_CAPABILITY) 5)
(else 370)
)
setLoop: -1
play:
setVol: (gGkMusic1 musicVolume?)
)

In SCICompanion, under "Sounds" tab, #370 seems to be correct. However, Sound #5 is irrelevant - some short sound effect.
When run with ScummVM debugger, I see that it's indeed playing #5, which is digital, audio #5.

Returning to SCICompanion, under "Audio" tab, there is no #5 !

So, two questions:
1. By reading the code I've pasted above, from titleRoom.sc - is there a way to know that #5 is referring to audio and not to sound?
2. Where is this digitized opening theme audio #5 hiding? How can I see it in SCICompanion?

Thanks
Title: Re: SCICompanion: Can't find an audio resource (opening theme) in GK1CD
Post by: Kawa on February 20, 2020, 04:56:08 PM
It's in the SFX directory as a plain ol' WAV file.
Title: Re: SCICompanion: Can't find an audio resource (opening theme) in GK1CD
Post by: ZvikaZ on February 21, 2020, 05:58:59 AM
Well, that was unexpected..
Thanks.

Is SCICompanion still developed?
Maybe it can reference these SFX/*.wav files from one if its tabs.
Title: Re: SCICompanion: Can't find an audio resource (opening theme) in GK1CD
Post by: OmerMor on February 21, 2020, 11:53:46 AM
Is SCICompanion still developed?
Maybe it can reference these SFX/*.wav files from one if its tabs.

SCICompanion is no longer developed. You can open a new issue for the project over github, but I wouldn't expect a fix: https://github.com/icefallgames/SCICompanion (https://github.com/icefallgames/SCICompanion).
There's a fork by Kawa which got some love - maybe he'll be willing to implement it. The fork is here: https://github.com/Kawa-oneechan/SCICompanion (https://github.com/Kawa-oneechan/SCICompanion).

On an unrelated note: thanks for your latest SCI contributions to ScummVM, ZvikaZ!
Title: Re: SCICompanion: Can't find an audio resource (opening theme) in GK1CD
Post by: Kawa on February 23, 2020, 04:13:00 AM
Oh, that's a hard "unlikely" from me, friend. The very idea of such a change gives me chills.
Title: Re: SCICompanion: Can't find an audio resource (opening theme) in GK1CD
Post by: ZvikaZ on February 24, 2020, 11:37:21 AM
@OmerMor, thanks...
@Kawa, no problem, just a suggestion. I think it'll improve usability, but of course, do you as you wish.

What's the status of Kawa's fork?
Is it preferred to the "regular" SCICompanion?
(Can someone give few examples of improvements?)
Title: Re: SCICompanion: Can't find an audio resource (opening theme) in GK1CD
Post by: Kawa on February 24, 2020, 01:31:11 PM
(Can someone give few examples of improvements?)
It copies a few things from Phil's own unreleased work, from bugfixes to certain extra features, and then adds some of my own. To quote the readme:

Unlisted in the readme:

Verbs and getpoly example:
Code: [Select]
(instance aPuddle of cdFeature
(properties
noun N_PUDDLE
doNotFace true
)

(method (init)
(super init:)
(self setOnMeCheck: omcPOLYGON (&getpoly "Puddle"))
; (&getpoly "") would be the default one, as in (gRoom addObstacle: (&getpoly "")).
)

(verbs
(V_LOOK
(gMessager say: N_PUDDLE V_LOOK (if (Btest fDayOnePuddleChecked) C_CHECKEDPUDDLE else 0) 1 0 scriptNumber)
)
(V_DO
(Bset fDayOneHinted)
(if (Btest fDayOnePuddleChecked)
(gMessager say: N_PUDDLE V_LOOK C_CHECKEDPUDDLE 1 0 scriptNumber)
else
(Bset fDayOnePuddleChecked)
(gRoom setScript: InspectPuddleScript)
)
)
)
)