Sound Packaging

Author Topic: Sound Packaging  (Read 778 times)

/title
I have some .ogg sound clips ready to be posted on the forums, but I need help with things like: How do I package it, what files need to be packaged with it, and what file is needed to make it work in game and appear on the addons list.

Put a server.cs in the file with the .wav, and type this in
Code: [Select]
datablock AudioProfile("Name Goes Here")
{
filename = "./'file name.wav";
description = AudioClosest3d;
preload = false;
};

Then you can zip it and you should be set to go!

Put a server.cs in the file with the .wav, and type this in
-snip-
Then you can zip it and you should be set to go!
That's all? No description tags or anything like that?

That's all? No description tags or anything like that?
Lol I forgot the description. You need a description, and a namecheck file. I think I was thinking of main game sounds like admin sounds when someone is adminned. For example though


Namecheck:
Code: [Select]
Sound_(Soundname)


Description

Code: [Select]
Title: Testing Sound
Author: Name
This is a sound for testing


Namecheck.txt isn't ever required and you can only use .oggs for music.

Namecheck.txt isn't ever required and you can only use .oggs for music.
Not true.

Sorry, there is no-edit in help.
I thought you meant sounds not music

namecheck.txt still isn't ever required. It will run fine without it.

The only difference is that if you have a namecheck.txt and the name of the file isn't the same as the contents of the namecheck.txt, the file won't execute and it'll give an error in the console.