Diverse sounds

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
Chaky
Deadly
Deadly
Posts: 213
Joined: Sat Aug 15, 2009 6:15 am

Diverse sounds

Post by Chaky »

Here's some food for thought:


It's regarding sounds, shouldn't be too hard to implement and it should be backward-compatible, any yet contribute to immersion.

Here's the thing:
Let's take laser hit sound for an example. laserhits.ogg.
You can have 2 choices that the engine would decide automatically:
a) use the file "laserhits.ogg" (in absence of latter)
b) or use one of several sounds that would be inside folder named "laserhits.ogg" (or "laserhits") by random choice.
That way there could be several similar sounds that would IMO improve the gaming experience.

Actually, that is already proven concept by some other games.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Diverse sounds

Post by Eric Walch »

Chaky wrote:
a) use the file "laserhits.ogg" (in absence of latter)
b) or use one of several sounds that would be inside folder named "laserhits.ogg" (or "laserhits") by random choice.
That way there could be several similar sounds that would IMO improve the gaming experience.
Do people read the release notes? Why should we bother to add them?

From the last 1.73 release note:
* Customsounds.plist now accepts arrays, in a similar way to descriptions.plist.
That means that when you add a file "customsounds.plist" in your config folder with content:

Code: Select all

{
	"[player-laser-hit]" = (
		"laserhits.ogg",
		"myLaserhits1.ogg",
		"myLaserhits2.ogg",
		"myLaserhits3.ogg",
	);
}
It will choose a random one from it. (Never tested myself though.)

Edit: I mixed one as an example: Combined Murgh, Wiggy & Xaotik's sounds
This one needs Oolite 1.73. And when you look inside Oolites own customsounds.plist you see that several different actions currently lead to the same sound but it is possible differentiate the sounds further. e.g. differentiate between player or npc hit.
Chaky
Deadly
Deadly
Posts: 213
Joined: Sat Aug 15, 2009 6:15 am

Post by Chaky »

Damn, I missed that.. or cool, I missed that.
Post Reply