Questions about making an audio OXP

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
Corny
---- E L I T E ----
---- E L I T E ----
Posts: 363
Joined: Sun Dec 20, 2009 11:50 am
Location: (northern) Germany

Re: Questions about making an audio OXP

Post by Corny »

I see, thanks :)
User avatar
Corny
---- E L I T E ----
---- E L I T E ----
Posts: 363
Joined: Sun Dec 20, 2009 11:50 am
Location: (northern) Germany

Re: Questions about making an audio OXP

Post by Corny »

So, if I wanted to use different intervals or even more sounds - like start, loop and end - , do I get that right that I had to mute the core sound by providing a mute replacement, and then trigger my own using the script handlers shipScoopedFuel and shipScoopedOther?
Sorry if I ask every little step, but I'm not very good at JS, so I'd try to implement all that after I'm done with the sounds (or find someone who's more proficient and willing to do it). And I guess I won't be able to tell the difference between "I'm doing it wrong" and "It's not possible". :(
(Thanks wkmanire for the suggestion!)

Edit: Well, I guess that wouldn't work when the scoop sound is called in an interval - the fuel scoop sound is called for every 0.1LY afaik, so that would leave the clip with a fixed interval again.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Questions about making an audio OXP

Post by Svengali »

Corny wrote:
E.g. I noticed that there's the clip in the BGS that says "scoop active", but it would always start the next loop after "scoop" already, so you hear the "...active" only when the scoop is actually no longer active.
This behaviour has been changed after v1.76 (v1.76.1).
User avatar
Corny
---- E L I T E ----
---- E L I T E ----
Posts: 363
Joined: Sun Dec 20, 2009 11:50 am
Location: (northern) Germany

Re: Questions about making an audio OXP

Post by Corny »

Oh, sorry. I'm flying an Adder since 1.77, so I didn't really scoop anything. What has changed in the code?
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Questions about making an audio OXP

Post by Svengali »

Corny wrote:
Oh, sorry. I'm flying an Adder since 1.77, so I didn't really scoop anything. What has changed in the code?
The clip is played in full length. The interval is still the same, but Oolite checks if the sound is currently playing. If its not playing it replays it.
User avatar
Corny
---- E L I T E ----
---- E L I T E ----
Posts: 363
Joined: Sun Dec 20, 2009 11:50 am
Location: (northern) Germany

Re: Questions about making an audio OXP

Post by Corny »

Okay, then it's a bug on my side. I don't get any sound while scooping, for cargo at least.
Good to know that this bug isn't happening anymore, though :) Thanks for the update.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: Questions about making an audio OXP

Post by Svengali »

Corny wrote:
Good to know that this bug isn't happening anymore, though :)
Yes, it feels a bit more natural this way - although I don't think that it was a bug, just a different way .-)
Post Reply