Page 1 of 1

How do I add new sounds to the game?

Posted: Thu Aug 25, 2016 11:55 am
by AveryLP
I have a question regarding modding, how do I add new sounds to the game? (Not replacing them)

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

Posted: Thu Aug 25, 2016 12:08 pm
by diszxchat
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?

Posted: Thu Aug 25, 2016 12:11 pm
by AveryLP
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?

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

Posted: Thu Aug 25, 2016 12:17 pm
by diszxchat
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?

Posted: Thu Aug 25, 2016 12:30 pm
by diszxchat
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?

Posted: Thu Aug 25, 2016 1:06 pm
by AveryLP
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.

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

Posted: Tue Jul 28, 2020 3:17 am
by General Ryan
Do you just put "PlaySound_Strict LoadTempSound("sound")" into UpdateEvents.bb? How do you specify the room? I'm trying to add a radio broadcast in room4info kinda like what Ultimate Edition did. How do I go about doing that?