Adding custom music

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

WeApOn

FNG / Fresh Meat
Apr 12, 2011
50
0
0
Hey,

I'm looking to add some more music to the game, and would like people who join my server to be able to hear that same music. Is there some sort of server ini file that chooses which songs are played? I'm assuming I would simply add more .ogg files to the music directory and then just update the list of songs that are randomly played?

Thanks in advance.
 

WeApOn

FNG / Fresh Meat
Apr 12, 2011
50
0
0
Ah I see. Well in that case if I want different music personally, can I just dump some .ogg files in the music folder, or is there a config file I will need to change? And what about maps with custom music? Wouldn't that get pushed to a user?

Thanks for the help.
 

Lucidius134

FNG / Fresh Meat
Jan 8, 2011
405
168
0
Ah I see. Well in that case if I want different music personally, can I just dump some .ogg files in the music folder, or is there a config file I will need to change? And what about maps with custom music? Wouldn't that get pushed to a user?

Thanks for the help.

Just replace the OGG files.

You shoulda just checked the sound section and see what has been offered already for ingame music. It woulda been self explanitory.
 

WeApOn

FNG / Fresh Meat
Apr 12, 2011
50
0
0
Just went through that area of the forum for awhile, didn't really get all the information I was looking for, but got a bit of it.

To put it plainly -- What I want to do is host my own server playing official maps, but have my own custom music playing for everyone in the server.

What I believe I learned -- I can replace the .ogg files locally, and those custom songs will play for ME, but will not be pushed to others. The only way for others to hear music I'd like would be to make my own map and in the editor, specify which songs will be used.

Please let me know if that is correct.
 

zYnthetic

FNG / Fresh Meat
Mar 20, 2009
1,071
168
0
Atlanta-ish
www.zynthetic.com
That is correct. On the technical level, the server is authority over delegating to clients what music to play but music playback is a client side process.
If the client has the file the server is requesting to be played it will play. Otherwise there will be silence.
Music is also non-conformed, meaning it is not verified in multiplayer. On the client it could be the same, modified, or not exist and there would be no ill effects for the client. If you were to modify playlists even using just retail music there would be no way to determine if clients are even hearing what you want them to.
 

Darkwave

FNG / Fresh Meat
Sep 4, 2010
457
158
0
26
Argentina
That is correct. On the technical level, the server is authority over delegating to clients what music to play but music playback is a client side process.
If the client has the file the server is requesting to be played it will play. Otherwise there will be silence.
Music is also non-conformed, meaning it is not verified in multiplayer. On the client it could be the same, modified, or not exist and there would be no ill effects for the client. If you were to modify playlists even using just retail music there would be no way to determine if clients are even hearing what you want them to.

And It will take a little more to connect to the server since it has to download the custom music , right?
 

Lucidius134

FNG / Fresh Meat
Jan 8, 2011
405
168
0
And It will take a little more to connect to the server since it has to download the custom music , right?

Did you not read his post?

KF has no way of ensuring any file is played at any time. It's all handeled client side, it just tells the game to play this sound file; it doesn't check to see if that sound file is the correct one, let alone if it exists.
 

WeApOn

FNG / Fresh Meat
Apr 12, 2011
50
0
0
That is correct. On the technical level, the server is authority over delegating to clients what music to play but music playback is a client side process.you want them to.

By what you said about the server, you mean the map itself will tell the clients which songs are capable of being played? Specifically, even if they did put custom music on their machine, that would not get played unless a custom map has, say..

KF-customsong.ogg

specified within the map properties as a song that can be played? That's how I'm understanding it.. is that right?
If so, doesn't look like I can achieve what I would like to, but at least I know.

Thanks either way.
 

Lucidius134

FNG / Fresh Meat
Jan 8, 2011
405
168
0
By what you said about the server, you mean the map itself will tell the clients which songs are capable of being played? Specifically, even if they did put custom music on their machine, that would not get played unless a custom map has, say..

KF-customsong.ogg

specified within the map properties as a song that can be played? That's how I'm understanding it.. is that right?
If so, doesn't look like I can achieve what I would like to, but at least I know.

Thanks either way.

Hope this clears up any confusion.

- Server loads map kf-Bedlam
- KF Bedlam tells the client to play this sound file from a list (ex. kf-MyAK)
- You replaced kf-MyAK with your own music
- Your own music would play instead of MyAK

The server just tells your client to play the sound file, so if everyone on a server has a different song in their music folder for MyAK, then everyone would be playing completely whatever was in their Music Folder.

In my case, I have a Higurashi sound set for all music in the game, so no matter what server or map I play on, if it uses default music files then my Higurashi music will play.
 

WeApOn

FNG / Fresh Meat
Apr 12, 2011
50
0
0
Exactly what I was thinking -- Thank you for the clarification.

Basically, the only way someone will hear your own custom music is if it's on a map that I create, which tells the user to play KF-MyCustomSong, which they would have downloaded along with my custom map.

Basically, there is no way to force custom music to play on official maps, since they are built in to the map themself.

My initial thought was that there was a "server.cfg" file or something, which had the song names that were to be played. But I have learned this is not the case.

Thank you!
 

mrblorx

FNG / Fresh Meat
Dec 28, 2010
267
130
0
Richmond, Virginia.
ACTUALLY,

There is a file (I forgot which) that you can edit to make your server download music. I already did it.

But my ports are not open D:
 

WeApOn

FNG / Fresh Meat
Apr 12, 2011
50
0
0
...But I wouldn't be able to force the client to play those songs, since I would be on official maps.. right?
 

Lucidius134

FNG / Fresh Meat
Jan 8, 2011
405
168
0
My initial thought was that there was a "server.cfg" file or something, which had the song names that were to be played. But I have learned this is not the case.

Nope. Not server config or anything. What plays is all handeled by "KF-mapname.int" in the system folder.

If there made a client download a modded version of that and the music it'de work in theory but that'de make the person's client play that music after they left the server and until they replace the file, which isn't good.

Only way I could think of it working really, albeit highly intrusive for the client connecting.
 

WeApOn

FNG / Fresh Meat
Apr 12, 2011
50
0
0
Nope. Not server config or anything. What plays is all handeled by "KF-mapname.int" in the system folder.

If there made a client download a modded version of that and the music it'de work in theory but that'de make the person's client play that music after they left the server and until they replace the file, which isn't good.

Only way I could think of it working really, albeit highly intrusive for the client connecting.

Agreed, a bit intrusive. But I would only be playing with my friends. :)

Technically, how could I go about forcing clients to download my version of these KF-<mapname> files? Technically, we might actually be able to do this... Many thanks for all the help thus far.
 

Lucidius134

FNG / Fresh Meat
Jan 8, 2011
405
168
0
Technically, how could I go about forcing clients to download my version of these KF-<mapname> files? Technically, we might actually be able to do this... Many thanks for all the help thus far.

Don't know, I have no UT anything experience. I just know what i've said.

If it's just friends you could just make a download thing.
 

WeApOn

FNG / Fresh Meat
Apr 12, 2011
50
0
0
No problem, thanks for all the help. I'll post in another section and see if I have any luck.
 

WeApOn

FNG / Fresh Meat
Apr 12, 2011
50
0
0
Started working on this, and it seems that the way the music is stored in the .int file is in order by wave, in parenthesis.

For example, it's:

CombatSong="DirgeDisunion1"
WaveBasedSongs=((CombatSong="KF_Hunger",CalmSong="KF_TheEdge"),(<repeated here 10 times, to account for every wave>)...)

So it looks like I would have to specify which song I want for each wave? I was hoping that it would choose from a selection of random songs.

Any idea what "CombatSong=" is for? Perhaps I can add in more songs there and make them random?