Jump to content
  • 0

Audio intro help


LawlessBaron

Question

Hey guys i have an audio intro running seamlessly but the file size of the audio file is 8MB without users having to download it is there anyway to run it in the mission file but run it server side?

for example

#include "dayz_server\custom\broadcast.ogg"

 

and execute the code for example

class CfgSounds
{
    sounds[] =
    {
    introSong
    };
    class introSong
    {
    name="introSong";
    sound[]={broadcast.ogg,0.9,1};
    titles[] = {};
    };
};
 
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

If you tried to run the intro song server side (which idk if is possible) it would require you to stream that song to each client when it is triggered, because of the bandwidth on the upstream channel being consumed it would cause a massive desync problem for all players. The only real option with intro songs is to compress them as best you can before turning them into their required .ogg file type, which is a large file type anyway.

 

Honestly I had intro music in my server and I had gotten it down to 1 meg but it was a short piece, just long enough to last until they were done with the halo jump spawn. Bottom line I removed it since I have allot of scripts that are in the mission file and didn't want to end up bloating users, but every time you add a large file to the mission folder you have to consider is the file size worth the end result.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...