BetterDeadThanZed Posted December 19, 2014 Report Share Posted December 19, 2014 On 12/19/2014 at 1:17 PM, This is WAR said: @ BDTZ if (_IntroMusic) then { playSound "Intro"; // This calls the code inside of description.ext // }; Thank you. I was looking for a new section. I missed that little snippet of code. Link to comment Share on other sites More sharing options...
Gr8 Posted December 19, 2014 Author Report Share Posted December 19, 2014 You will have to link the .ogg file from your Description.ext Link to comment Share on other sites More sharing options...
Tywin Posted December 20, 2014 Report Share Posted December 20, 2014 Where do I find init.sqf?? Do I need to unpack a PBO? Link to comment Share on other sites More sharing options...
Sid Posted December 20, 2014 Report Share Posted December 20, 2014 So i write this in my description.txt ? Quote 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 More sharing options...
EliteWarfare Posted December 20, 2014 Report Share Posted December 20, 2014 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 More sharing options...
Sid Posted December 20, 2014 Report Share Posted December 20, 2014 Thnx that was the mistake i did i didnt write it below class cfgremoteexeccommands Link to comment Share on other sites More sharing options...
Tywin Posted December 20, 2014 Report Share Posted December 20, 2014 ok i think i figured this out, but im getting kicked for script restriction 20, anyone know how to fix it? .. I have added the exceptions the same way op stated? Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted December 20, 2014 Report Share Posted December 20, 2014 On 12/20/2014 at 12:31 PM, Tywin said: ok i think i figured this out, but im getting kicked for script restriction 20, anyone know how to fix it? .. I have added the exceptions the same way op stated? Open your scripts.log and find out what you are being kicked for. Add an exception to line 20 of scripts.txt. Tywin 1 Link to comment Share on other sites More sharing options...
Tywin Posted December 20, 2014 Report Share Posted December 20, 2014 ok i've done that and am no longer getting kicked, but now it is just showing role1; 'Welcome to' , 'Admins' etc and not the text i edited my self into the rolenames, I have also tried it with the ['s removed and when I do that no credits appear at all. Link to comment Share on other sites More sharing options...
Tywin Posted December 20, 2014 Report Share Posted December 20, 2014 Ok i finally got it working, Ty OP and the guys that gave me advice. Link to comment Share on other sites More sharing options...
Gr8 Posted December 20, 2014 Author Report Share Posted December 20, 2014 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 More sharing options...
TittErS Posted December 20, 2014 Report Share Posted December 20, 2014 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 # infrontBy:_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 More sharing options...
Gr8 Posted December 20, 2014 Author Report Share Posted December 20, 2014 Hey, that for the corrections, Didnt notice that. And also thanks for sharing the variable i was looking for too. Link to comment Share on other sites More sharing options...
TittErS Posted December 21, 2014 Report Share Posted December 21, 2014 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: Reveal hidden contents - 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: Reveal hidden contents - 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 More sharing options...
Gr8 Posted December 21, 2014 Author Report Share Posted December 21, 2014 Ah, right thought both were the same lines of code. Notice the IsNull now. Thanks Alot. Link to comment Share on other sites More sharing options...
Gr8 Posted December 21, 2014 Author Report Share Posted December 21, 2014 OP Updated. Some Code/comment Cleanup Link to comment Share on other sites More sharing options...
L3uX Posted December 21, 2014 Report Share Posted December 21, 2014 This code is dirty. You can use such other methods to do this stuff and much cleaner code. Link to comment Share on other sites More sharing options...
Richie Posted December 21, 2014 Report Share Posted December 21, 2014 On 12/21/2014 at 3:54 PM, L3uX said: This code is dirty. You can use such other methods to do this stuff and much cleaner code. So post cleaner code and help the community, saying your way is better helps nobody :p At least Gr8Boi took the time to post, it's helped others :) Link to comment Share on other sites More sharing options...
Gr8 Posted December 21, 2014 Author Report Share Posted December 21, 2014 Currently working on a much better code, with Intro Music, Logo, and Easy configurations Link to comment Share on other sites More sharing options...
Gr8 Posted December 21, 2014 Author Report Share Posted December 21, 2014 v2.0 Released ! Thanks for your help @TittErS Link to comment Share on other sites More sharing options...
Tobias Solem Posted December 21, 2014 Report Share Posted December 21, 2014 Perhaps you should include the BEfilters-instructions in the OP as well? Link to comment Share on other sites More sharing options...
Gr8 Posted December 21, 2014 Author Report Share Posted December 21, 2014 On 12/21/2014 at 7:40 PM, Tobias Solem said: Perhaps you should include the BEfilters-instructions in the OP as well? what Restriction kicks are you experiencing ? Link to comment Share on other sites More sharing options...
Tobias Solem Posted December 21, 2014 Report Share Posted December 21, 2014 On 12/21/2014 at 8:51 PM, Gr8Boi said: what Restriction kicks are you experiencing ? I am not running this, but as I understood it from your first page, there were some who were kicked? Link to comment Share on other sites More sharing options...
Darth_Rogue Posted December 21, 2014 Report Share Posted December 21, 2014 Please change file permissions on Dropbox. Cannot download the ogg file. Link to comment Share on other sites More sharing options...
Gr8 Posted December 21, 2014 Author Report Share Posted December 21, 2014 On 12/21/2014 at 9:05 PM, Darth_Rogue said: Please change file permissions on Dropbox. Cannot download the ogg file. thanks for reporting, fixed Link to comment Share on other sites More sharing options...
Recommended Posts