Page 1 of 2

Using customsounds.plist

Posted: Sat May 06, 2006 10:42 am
by aegidian
customsounds.plist looks like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<!-- list all possible custom sounds here -->
	<!-- implemented: just the test sound -->
	<key>[test]</key>
	<string>buy.ogg</string>
	<!-- unimplmented:
	<key>[witch-blocked-by-@]</key>
	<string>buy.ogg</string>
	<key>[witch-no-fuel]</key>
	<string>buy.ogg</string>
	<key>[witch-no-target]</key>
	<string>buy.ogg</string>
	<key>[incoming-missile]</key>
	<string>buy.ogg</string>
	<key>[energy-low]</key>
	<string>buy.ogg</string>
	<key>[autopilot-on]</key>
	<string>buy.ogg</string>
	<key>[autopilot-off]</key>
	<string>buy.ogg</string>
	<key>[autopilot-cannot-dock-with-target]</key>
	<string>buy.ogg</string>
	<key>[autopilot-denied]</key>
	<string>buy.ogg</string>
	<key>[autopilot-out-of-range]</key>
	<string>buy.ogg</string>
	<key>[aegis-planet]</key>
	<string>buy.ogg</string>
	<key>[aegis-station]</key>
	<string>buy.ogg</string>
	<key>[mine-launched]</key>
	<string>buy.ogg</string>
	<key>[missile-armed]</key>
	<string>buy.ogg</string>
	<key>[missile-locked-on]</key>
	<string>buy.ogg</string>
	<key>[missile-launched]</key>
	<string>buy.ogg</string>
	<key>[missile-safe]</key>
	<string>buy.ogg</string>
	<key>[weapon-overheat]</key>
	<string>buy.ogg</string>
	<key>[game-over]</key>
	<string>buy.ogg</string>
	<key>[witchdrive-malfunction]</key>
	<string>buy.ogg</string>
	<key>[ident-on]</key>
	<string>buy.ogg</string>
	<key>[ident-off]</key>
	<string>buy.ogg</string>
	<key>[ident-locked-on]</key>
	<string>buy.ogg</string>
	<key>[no-target-in-memory]</key>
	<string>buy.ogg</string>
	<key>[target-lost]</key>
	<string>buy.ogg</string>
	<key>[hold-full]</key>
	<string>buy.ogg</string>
	<key>[cargo-jettisoned]</key>
	<string>buy.ogg</string>
	<key>[hyperspace-countdown-begun]</key>
	<string>buy.ogg</string>
	<key>[galactic-hyperspace-countdown-begun]</key>
	<string>buy.ogg</string>
	<key>[hyperspace-countdown-aborted]</key>
	<string>buy.ogg</string>
	<key>[cloaking-device-on]</key>
	<string>buy.ogg</string>
	<key>[cloaking-device-off]</key>
	<string>buy.ogg</string>
	<key>[jump-mass-locked]</key>
	<string>buy.ogg</string>
	<key>[wormhole-created]</key>
	<string>buy.ogg</string>
	-->
</dict>
</plist>
Each entry, including those in the commented out 'unimplemented' section is an event that can have a custom sound attached. In this case 'unimplemented' means simply that this event will play a custom sound but as yet no custom sound has been defined for these events. If you want a custom sound used, you can copy the particular entry into your own customsounds.plist.

So, say you want a custom sound to play when the identification system is turned on. Create your sound (say my-ident-sound.ogg) and then create your own copy of customsounds.plist and place it at AddOns/Config/customsounds.plist

Your customsounds.plist should look like this:-

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>[ident-on]</key>
	<string>my-ident-sound.ogg</string>
</dict>
</plist>
A complete 'sound mod' expansion pack would have sounds for all the events.

Posted: Sat May 06, 2006 11:18 am
by Rxke
:D Wow! now *that* is quite an exhaustive list, almost feels like work to make a cutomsound.oxp :lol:

Posted: Sun May 07, 2006 12:50 am
by milinks
Been working on a Customsounds.oxp today, my wife got fed up with hearing "hyperspace sequence...." etc etc :) . Just a thought before i throw it to Oosat, it is late and i am shattered in my defence if the answer is obvious, can i link customsounds to other things such as government rating etc, so that i can have some different sounds ( voice synths basically ) for different systems? I'm re hashing my planetview.oxp and was wondering if i can direct, say the planetinfo.plist to a given customsounds.plist? Sorry if this doesnt make sense but I'm off to bed :oops:

Posted: Sun May 07, 2006 8:03 am
by aegidian
I understand, no that's not possible at the moment.

I'll bear the idea in mind though.

Posted: Sun May 07, 2006 8:32 am
by milinks
Thanks for that Giles, it was just a thought, muddled with lack of sleep lol.

Posted: Sun May 07, 2006 8:33 am
by Flying_Circus
Excellent: truely excellent - and very typical of your approach, Aegidian.


Leading on from this, maybe: Custom docking music, for all the budding carrier builders? (not that I have any docking music in mind, mind you, but it is a step towards completeness of customisability).

Posted: Mon May 08, 2006 9:14 am
by Murgh
Jonnycuba and I were wishing, and I thought we might as well wish aloud..

any possibility of adding a "close proximity warning" event? for those moments there is imminent danger due to your 'personal space' being breached by another object/surface..? :shock:

Posted: Mon May 08, 2006 9:38 am
by Star Gazer
..oh, no... ..not 'Bitching Betty', I hope!!! :roll:

Posted: Tue May 09, 2006 5:23 am
by Wolfwood
Star Gazer wrote:
..oh, no... ..not 'Bitching Betty', I hope!!! :roll:
No, don't worry. Since we are in Europe, and you in the UK, she's called 'Nagging Nora'. 'Bitching Betty' is for the Americans... :wink:

And since studies apparently say that pilots are more likely to listen to a resonant woman's voice than a man's (in western culture anyway), who are we to say differently?

Posted: Tue May 09, 2006 11:46 am
by Selezen
I always heard that the reason a woman's voice is used is because it is easier to hear above noise due to the higher pitch and tone.

Posted: Tue May 09, 2006 12:25 pm
by Wolfwood
Selezen wrote:
I always heard that the reason a woman's voice is used is because it is easier to hear above noise due to the higher pitch and tone.
I read an article on this (cannot remember where) and I seem to remember that this only holds true for European and African women. Somehow, our women in this part of the globe have voices that are more easily heard than in some other cultures (e.g. Asian). On the other hand, our men tend to have lower, deeper voices than men in some other cultures (e.g. Asian) and thus they are more difficult to hear...

Strange stuff, all of that... :?

Posted: Wed Mar 21, 2007 3:04 pm
by JensAyton
Don’t think so.

Posted: Wed Mar 21, 2007 3:10 pm
by TGHC
I think the most recent one was Amiga replacement sounds

Posted: Thu May 15, 2008 8:54 pm
by JensAyton
Since a thread linking to this one was just bumped, I’ll point out that list of possible sound effects now has increased since last year, as can be seen by looking in the customsounds.plist in 1.71.x.

Posted: Thu May 15, 2008 10:16 pm
by Ace Garp
Cool!
I'll have a look as I'm still working on a custom sounds OXP.
(Easier than learning javascript for the time being ;-) )