Author Topic: Sound addon packaging or something issues.  (Read 2495 times)

Im trying to make a morse code sound pack I made (mostly ripped off of badspots phone sounds since I dont know how to package) but it seems like it wont load ingame. Can you help?

Link to the morse code sound pack im trying to make:

https://www.dropbox.com/s/pi2y6m5jxn1l3wi/Sound_MorseCode.zip?dl=0

put it in dropbox you can welcome me later ;)
Hopefully you guys can figure it out, send me it back or tell me what I did wrong so I can make this.

You cant just throw your own sound files into a .zip and expect them to work unless renamed exactly as the old sound files: and even doing that you are overwriting default datablocks, which is bad.

You need to edit the server.cs and specify the datablock/name/filepath of said sounds.
If this all seems to confusing, just paste this into the server.cs
Code: [Select]
datablock AudioProfile(MorseCodeHoldSound)
{
filename = "./morseHold.wav";
description = AudioClosest3d;
preload = false;
};
datablock AudioProfile(MorseCodeTapSound : MorseCodeHoldSound)
{
filename = "./morseTap.wav";
};

Make sure you save the server.cs outside of the .zip, then cut and paste it into the .zip otherwise it will end up in a temporary data folder which you can access on windows by typing %temp% into start

a morse code sound pack already exists but ok




You cant just throw your own sound files into a .zip and expect them to work unless renamed exactly as the old sound files: and even doing that you are overwriting default datablocks, which is bad.

You need to edit the server.cs and specify the datablock/name/filepath of said sounds.
If this all seems to confusing, just paste this into the server.cs
Code: [Select]
datablock AudioProfile(MorseCodeHoldSound)
{
filename = "./morseHold.wav";
description = AudioClosest3d;
preload = false;
};
datablock AudioProfile(MorseCodeTapSound : MorseCodeHoldSound)
{
filename = "./morseTap.wav";
};

Make sure you save the server.cs outside of the .zip, then cut and paste it into the .zip otherwise it will end up in a temporary data folder which you can access on windows by typing %temp% into start

Thanks so much, I really appreciate it

Im having another issue. The game after I updated the code is now crashing repeatedly

Im having another issue. The game after I updated the code is now crashing repeatedly
post in modification help please so you can edit your topic and not post a ton of times

it's probably the code you updated
if you don't post it, it's a lot harder to guess what you wrote