Re: How do I add new sounds to the game?

#2
AveryLP wrote:I have a question regarding modding, how do I add new sounds to the game? (Not replacing them)
To add new sounds,

You need main.bb and rooms.ini to add the sounds.

For event, it's called event sound (in updateevent.bb)

For a short time, it's called temp sound (Main.bb)

For the music to play in the game the whole time, it's ambient. (Rooms.ini and main.bb)

Re: How do I add new sounds to the game?

#3
diszxchat wrote:
AveryLP wrote:I have a question regarding modding, how do I add new sounds to the game? (Not replacing them)
To add new sounds,

You need main.bb and rooms.ini to add the sounds.

For event, it's called event sound (in updateevent.bb)

For a short time, it's called temp sound (Main.bb)

For the music to play in the game the whole time, it's ambient. (Rooms.ini and main.bb)
So for short ambient sounds, I use Main.bb?
Also, how do I add these sounds into Main.bb?
Playing SCP : Containment Breach since v0.6.5.

My favorite SCP's: Pretty much all of them

Image

Re: How do I add new sounds to the game?

#4
AveryLP wrote:
diszxchat wrote:
AveryLP wrote:I have a question regarding modding, how do I add new sounds to the game? (Not replacing them)
To add new sounds,

You need main.bb and rooms.ini to add the sounds.

For event, it's called event sound (in updateevent.bb)

For a short time, it's called temp sound (Main.bb)

For the music to play in the game the whole time, it's ambient. (Rooms.ini and main.bb)
So for short ambient sounds, I use Main.bb?
Also, how do I add these sounds into Main.bb?
Look into the format.

Just copy the format and paste it then rename into the sounds you want.

Re: How do I add new sounds to the game?

#5
Main.bb/UpdateEvent.bb

You want to add more sounds so just put this:

Ambient:

Code: Select all

Dim Music%(any number)
Music(any number) = LoadSound_Strict("Where the sound file is located at")
TempSound (Plays for a short while):

Code: Select all

PlaySound_Strict  LoadTempSound("Where the sound file is located at")
EventSound:

Code: Select all

LoadEventSound(e,"Where the sound file is located at")
There's ton of sound format so I don't want to go through this.

Re: How do I add new sounds to the game?

#6
diszxchat wrote:Main.bb/UpdateEvent.bb

You want to add more sounds so just put this:

Ambient:

Code: Select all

Dim Music%(any number)
Music(any number) = LoadSound_Strict("Where the sound file is located at")
TempSound (Plays for a short while):

Code: Select all

PlaySound_Strict  LoadTempSound("Where the sound file is located at")
EventSound:

Code: Select all

LoadEventSound(e,"Where the sound file is located at")
There's ton of sound format so I don't want to go through this.
Thanks for the advice.
Playing SCP : Containment Breach since v0.6.5.

My favorite SCP's: Pretty much all of them

Image