Debriefing > Questions, Help, & How To's
Custom level music on dedicated server?
Marnes:
Heya. I looked around on the wiki, google and in the server's files, but I can't get this to work.
I have a dedicated server set up, it works fine and people can connect. What I want to do next is put in custom music that should play while we fight, to replace the default soundtrack. It'll probably need to download around the time they connect.
I've put my custom music (mp3 and ogg versions of each, low bitrate) into the music dir with plain filenames. I've removed all txt files from /scripts/music, except for the default and menu ones. Both menu and default point to my custom filenames. When it didn't work, I added the txt file for the specific map back in and also made it point to my custom music, that didn't help.
In server_cfg, download is allowed and consistency is checked. In my client, the dropdown is set to "allow all custom files from server". I've restarted the server.
When I connect via LAN, I still don't hear my custom music, just the default.
What am I missing? I've messed around with all combinations of things, of course.
Thanks for any help!
soupcan:
No. The server can't overwrite files the client already has.
Marnes:
--- Quote from: soupcan on November 29, 2014, 04:57:22 pm ---No. The server can't overwrite files the client already has.
--- End quote ---
And the server also can't tell the client to use a stream instead of local files? I could swear I was on a server once where they played custom music... :( At the very least I remember sound files downloading and custom SFX to announce stuff.
Edit: does that imply that if I rename the map to make it look like a new one, it and its related files will be downloaded though?
soupcan:
--- Quote from: Marnes on November 29, 2014, 05:29:46 pm ---And the server also can't tell the client to use a stream instead of local files? I could swear I was on a server once where they played custom music... :(
--- End quote ---
With a server plugin, yes, you can do that. However, there is no way to have the server silence the client's music.
--- Quote ---does that imply that if I rename the map to make it look like a new one, it and its related files will be downloaded though?
--- End quote ---
You technically can do that, but ultimately, the question is... why?
There is no reason the server should be overriding assets like music. If a player wants to listen to something else, they will. The server shouldn't be deciding what they listen to, especially when that means downloading the map and music all over again.
Marnes:
--- Quote from: soupcan on November 29, 2014, 05:39:00 pm ---With a server plugin, yes, you can do that. However, there is no way to have the server silence the client's music.
You technically can do that, but ultimately, the question is... why?
There is no reason the server should be overriding assets like music. If a player wants to listen to something else, they will. The server shouldn't be deciding what they listen to, especially when that means downloading the map and music all over again.
--- End quote ---
I agree with your objection of course, but the why would be because I want that particular music to play when someone's on my server, as a sort of identity thing, and because I can (not).
Oh well, thanks for clearing that up.
Navigation
[0] Message Index
[#] Next page
Go to full version