Jump to content

[RELEASE] Welcome Messages v2.1 | Intro Music | Easy Config


Gr8

Recommended Posts

So i write this in my description.txt ?

 

 

 

class CfgMusic
{
    tracks[]={};

    class Intro
    {
        name = "";
        sound[] = {"\sounds\intro.ogg", db+0, 1.0};
    };  
};

 

 

and where do i put the soundfiles to MPmissions or just in root ?

 

it doesnt work for me always getting the error "Sound file not found"

 

I have put them to root and mpmissions both times it didnt work out for me.

Link to comment
Share on other sites

This is a easy way of adding a Intro song

 

Create a folder in the PBO called music then add your song name it intro.ogg

 

Then in your init.sqf

playMusic "intro";

After doing that go into your description.ext Make sure its below class CfgRemoteExecCommands {};

class cfgMusic
{
   class intro
   {
        name = "intro";
        sound[] = {"music\intro.ogg", db+1,1}; 
    };
};
Link to comment
Share on other sites

cfgMusic will sound depending on what the user Put their Music Level Settings to. Most of them have them all the way down,

cfgSound will be the best thing to do if you want all your client to listen to the amazing music you provide

Link to comment
Share on other sites

Hello,

 

I did a script almost identical for our server.

Here are corrections that i propose you :

 

 

Correction Line:

_size1 = 0.70; // size for each sub Credit
_color1 = "#FFFFFF"; // #FFFFFF is HTML Code. change it to whatever you want. make sure its a valid HTML code with # infront
By:

_size2 = 0.70; // size for each sub Credit
_color2 = "#FFFFFF"; // #FFFFFF is HTML Code. change it to whatever you want. make sure its a valid HTML code with # infront
 

 

 

Find Line:

sleep _Delay;
Add:

waitUntil {!isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};
waitUntil {isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};
sleep _Delay;
Enjoy ...
Link to comment
Share on other sites

You're welcome! but ...
 
The first "WaitUntil" wait that dialog "EPOCH_loadingScreen" is open
The second "WaitUntil" wait that dialog "EPOCH_loadingScreen" is closed
with only 1 "WaitUntil" this has no effect.
 
Progress script with 2 WaitUntil:

- Launch script epoch


- Launch script welcome.sqf
- - First WaitUntil ... return (false) ... wait open "EPOCH_loadingScreen"
- player spawn & open dialog "EPOCH_loadingScreen" : First WaitUntil return true
- - Second WaitUntil ... return (false) ... wait close "EPOCH_loadingScreen"
- close dialog "EPOCH_loadingScreen" & Second WaitUntil return true
- - Sleep _Delay
- - Messages ...

 

Progress script with welcome.sqf actual:

- Launch script epoch


- Launch script welcome.sqf
- - WaitUntil ... return (true) ... "EPOCH_loadingScreen" not yet open

- - Sleep _Delay
- player spawn & open dialog "EPOCH_loadingScreen" & Welcome Messages 1 (if _Delay is short)
- close dialog "EPOCH_loadingScreen" & Welcome Messages 2 (if _Delay is short)

- - Welcome Messages 3

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Advertisement
×
×
  • Create New...