Jump to content

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


Gr8

Recommended Posts

Cant make music play!   :unsure:

 

End of decriptions i add 

class cfgMusic
{
    class intro
    {
        name = "intro";
        sound[] = {"custom\IntroSong.ogg", db+1,1};
    };
};

welcome.sqf

 

 

if(isDedicated) exitWith {};

_sizeTitle             = 0.55; // Font Size of the Title Messages
_sizeSubText         = 0.45;  // Font Size of the SubTitle Messages
_colorTitle         = "#0969ee"; // HTML Color Code of the Title Messages (must start with '#' )
_colorSubText         = "#1cee09"; // HTML Color Code of the SubTitle Messages (must start with '#' )
_alignTitle         = "left"; // Alignment of the Title Message (right or left)
_alignSubText         = "right"; // Alignment of the SubTitle Message (right or left)
_fontTitle             = "PuristaSemibold"; // Font Type Of Title Messages
_fontSubText        = "PuristaLight"; // Font Type Of SubTitle Messages

_Delay                = 10; // Wait in seconds before the credits start after player IS ingame
_FadeIn             = 3; //how long one role should stay on screen. Use value from 0 to 10 where 0 is almost instant transition to next role

_IntroMusic            = true; // Welcome Intro Song During the credits (true or false)

_posDefault         = [0.3,0.55,0.5]; // Defualt Positions of all Credits


_title             = "Добро Пожаловать!";
_shorttext         = "Сервер Stay Alive Ru";
_posText        = [0.8,0.5,0.4];

_title2         = "Группа";
_shorttext2     = "vk.com/stay_alive_rus";
_posText2        = [0.8,0.5,0.25];

_title3            = "Teamspeak 3";
_shorttext3     = "ruts1.gameservers.com:9244 ";
_posText3        = [0.8,0.5,0.25];

_title4         = "Донат";
_shorttext4     = "В разработке";
_posText4        = [0.8,0.5,0.28];

_title5         = "Скрипты";
_shorttext5     = "Миссии с Ботами <br />Статус Бар<br />Infistar Anti Hack<br /> ";
_posText5        = [0.8,0.5,0.335];

_title6         = "Админы Сервера";
_shorttext6     = "M_E_D <br />F_R_O_S_T<br />";
_posText6        = [0.8,0.5,0.4];














/***********************************************************************************************************************************************/
/***********************************************************************************************************************************************/
/*                                        /!\ DO NOT EDIT BELOW THIS LINE. DO NOT REMOVE CREDITS /!\
/*
/*                                            SCRIPTING BY:        GR8 [GhostzGamerz.com]
/*                                            VERSION:            2.1
/*                                            DATE:            21 December 2014
/*
/***********************************************************************************************************************************************/
/***********************************************************************************************************************************************/
_ms = [];
for "_i" from 1 to 50 do
{
    _t = if (_i!=1) then { format["_title%1",_i] } else { "_title" };
    _s = if (_i!=1) then { format["_shorttext%1",_i] } else { "_shorttext" };
    _p = if (_i!=1) then { format["_postext%1",_i] } else { "_postext" };
    if (!isNil _t or !isNil _s) then
    {
        _at = if (!isNil _t) then { call compile _t } else { "" };
        _as = if (!isNil _s) then { call compile _s } else { "" };
        _ap = if (!isNil _p) then { call compile _p } else { _posDefault };
        _ms = _ms + [[_at,_as,_ap]];
    }
};
waitUntil {!isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};
waitUntil {isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};
sleep _Delay;
if (_IntroMusic) then { playMusic "intro";};
player enableSimulation true;
{
    _t = _x select 0;
    _s = _x select 1;
    _pX = _x select 2 select 0;
    _pY = _x select 2 select 1;
    _pW = _x select 2 select 2;
    _m = format ["<t size='%1' color='%2' align='%3' font='%4'>%5<br /></t>", _sizeTitle, _colorTitle, _alignTitle, _fontTitle, _t];
    _m = _m + format ["<t size='%1' color='%2' align='%3' font='%4'>%5<br /></t>", _sizeSubText, _colorSubText, _alignSubText, _fontSubText, _s];
    _tm = round (count toArray (_t+_s) / 6 / 2) + 3;
    [ _m, [_pX * safeZoneW + safeZoneX, _pW], [_pY * safezoneH + safezoneY, 1 * safezoneH + safezoneY], _tm, _FadeIn ] spawn BIS_fnc_dynamicText;
    sleep (_tm+_FadeIn+4);
} forEach _ms; 

 

IntroSong.ogg and welcome.sqf  inside my custom folder.
Cant understand why intro not playing, All works only dont have music sound.

Link to comment
Share on other sites

I've followed all above suggestions but I keep getting  kicked by BattlEye: CreateVehicle Restriction #0 for the damn seagull error. Not sure why this is happening. Prior to installing the welcome script I installed the A3EAI roaming AI script, the Simple Epoch Missions Script and the Player Status Bar script. All of which work fine. But then I add the welcome script and it kicks me for being a SeaGull. Any suggestions would be appreciated.

Link to comment
Share on other sites

I've followed all above suggestions but I keep getting  kicked by BattlEye: CreateVehicle Restriction #0 for the damn seagull error. Not sure why this is happening. Prior to installing the welcome script I installed the A3EAI roaming AI script, the Simple Epoch Missions Script and the Player Status Bar script. All of which work fine. But then I add the welcome script and it kicks me for being a SeaGull. Any suggestions would be appreciated.

My createvehicle.txt

5 "" !"CargoNet_01_box_F" !"C_Offroad_01_repair_F" !"B_Heli_Light_01_EPOCH" !"O_MRAP_02_F" !"O_MRAP_02_hmg_F" !"I_MRAP_03_hmg_F" !"Box_NATO_Wps_F" !"O_Truck_02_transport_EPOCH" !"B_Parachute" !="R_PG32V_F" !="R_TBG32V_F" !="I_UAV_01_F" !="I_UAV_AI" !"_EPOCH" !="B_65x39_Minigun_Caseless_Red_splash" !="B_762x51_Minigun_Tracer_Yellow_splash" !="B_Swing" !"^SmokeShell" !"^G_40mm_" !"^F_40mm_" !"Sub_F_" !"^F_Signal_" !="mini_Grenade" !="GrenadeHand" !="LaserTarget(C|W|E)" !"^Chemlight_" !="(ClaymoreDirectionalMine|DemoCharge|SatchelCharge)_Remote_Ammo" !="SLAMDirectionalMine_Wire_Ammo"  !="(CMflare_Chaff|Sapper_Charge|ATMine_Range)_Ammo" !="APERS(TripMine_Wire|BoundingMine_Range|Mine_Range)_Ammo" !="Epoch_(Sapper|Cloak)_F" !="GreatWhite_F" !="groundWeaponHolder" !="WeaponHolderSimulated" !="Epoch_(Male|Female)_F" !"Supply[0-9]" !"Steerable_Parachute_F" !"Carryall" !="B_Parachute_02_F" !"Tarp_EPOCH" !"M_Scalpel_AT" !"R_80mm_HE" !"O_Heli_Attack_02_black_F"
5 "_EPOCH" !"ChairRed_EPOCH" !"Freezer_EPOCH" !"Pelican_EPOCH" !"Filing_EPOCH"  " " !"O_Truck_02_transport_EPOCH" !="(SapperHead|Jack)_SIM_EPOCH" !="(Tipi|StorageShelf)_Ghost_EPOCH" !="(Tipi|StorageShelf|LockBox|FirePlace|PlotPole|I_Soldier|Jack)_EPOCH" !="(Bed|locker|Filing|Chair|ChairRed|wardrobe|cooker|Couch|Table|Pelican|Fridge|Shelf|ToolRack|Shoebox|Bunk|Rabbit)_EPOCH"  !="(Sheep|Goat|Snake|Hen|Cock|Fin|Alsatian)_random_EPOCH" !="LockBox_(Ghost|SIM)_EPOCH" !="CinderWallHalf_(Ghost|SIM)_EPOCH" !="(CinderWall|CinderWallGarage|PlotPole|Tipi|StorageShelf)_SIM_EPOCH" !="Wood(Floor|LargeWall|LargeWallCor|LargeWallDoor|LargeWallDoorL|LargeWallDoorway|Stairs|Stairs2|Ramp)_(Ghost|SIM)_EPOCH" !="Foundation_Ghost_EPOCH" !="Foundation_EPOCH" !"Carryall" !"Tarp_EPOCH"
5 SeaGull !"Tarp_EPOCH"
1 ""
Link to comment
Share on other sites

Im not idiot lol =)

i have music volume set to 100%

Anyway thanks for try to help

 

Not Calling you an idiot, just making sure, becuase you didnt specify what volume you turned up.

 

Try CfgSound instead and let me know what happens

Link to comment
Share on other sites

 

My createvehicle.txt

5 "" !"CargoNet_01_box_F" !"C_Offroad_01_repair_F" !"B_Heli_Light_01_EPOCH" !"O_MRAP_02_F" !"O_MRAP_02_hmg_F" !"I_MRAP_03_hmg_F" !"Box_NATO_Wps_F" !"O_Truck_02_transport_EPOCH" !"B_Parachute" !="R_PG32V_F" !="R_TBG32V_F" !="I_UAV_01_F" !="I_UAV_AI" !"_EPOCH" !="B_65x39_Minigun_Caseless_Red_splash" !="B_762x51_Minigun_Tracer_Yellow_splash" !="B_Swing" !"^SmokeShell" !"^G_40mm_" !"^F_40mm_" !"Sub_F_" !"^F_Signal_" !="mini_Grenade" !="GrenadeHand" !="LaserTarget(C|W|E)" !"^Chemlight_" !="(ClaymoreDirectionalMine|DemoCharge|SatchelCharge)_Remote_Ammo" !="SLAMDirectionalMine_Wire_Ammo"  !="(CMflare_Chaff|Sapper_Charge|ATMine_Range)_Ammo" !="APERS(TripMine_Wire|BoundingMine_Range|Mine_Range)_Ammo" !="Epoch_(Sapper|Cloak)_F" !="GreatWhite_F" !="groundWeaponHolder" !="WeaponHolderSimulated" !="Epoch_(Male|Female)_F" !"Supply[0-9]" !"Steerable_Parachute_F" !"Carryall" !="B_Parachute_02_F" !"Tarp_EPOCH" !"M_Scalpel_AT" !"R_80mm_HE" !"O_Heli_Attack_02_black_F"
5 "_EPOCH" !"ChairRed_EPOCH" !"Freezer_EPOCH" !"Pelican_EPOCH" !"Filing_EPOCH"  " " !"O_Truck_02_transport_EPOCH" !="(SapperHead|Jack)_SIM_EPOCH" !="(Tipi|StorageShelf)_Ghost_EPOCH" !="(Tipi|StorageShelf|LockBox|FirePlace|PlotPole|I_Soldier|Jack)_EPOCH" !="(Bed|locker|Filing|Chair|ChairRed|wardrobe|cooker|Couch|Table|Pelican|Fridge|Shelf|ToolRack|Shoebox|Bunk|Rabbit)_EPOCH"  !="(Sheep|Goat|Snake|Hen|Cock|Fin|Alsatian)_random_EPOCH" !="LockBox_(Ghost|SIM)_EPOCH" !="CinderWallHalf_(Ghost|SIM)_EPOCH" !="(CinderWall|CinderWallGarage|PlotPole|Tipi|StorageShelf)_SIM_EPOCH" !="Wood(Floor|LargeWall|LargeWallCor|LargeWallDoor|LargeWallDoorL|LargeWallDoorway|Stairs|Stairs2|Ramp)_(Ghost|SIM)_EPOCH" !="Foundation_Ghost_EPOCH" !="Foundation_EPOCH" !"Carryall" !"Tarp_EPOCH"
5 SeaGull !"Tarp_EPOCH"
1 ""

I see you have multiple references to !"Tarp_EPOCH", what is that?

Link to comment
Share on other sites

Hey again...

 

the messages works fine but the sound did not play..

I got this after spawn on my server "Sound intro not found"

 my description.ext looks like this

 

 

 
wreckManagerMode = 1;
wreckLimit = 2;
wreckRemovalMinTime = 60;
wreckRemovalMaxTime = 360;
 
class CfgRemoteExecCommands {};
 
class cfgSound
{
    class intro
    {
        name = "intro";
        sound[] = {"custom\intro.ogg", db+1,1};
    };
};
 

 

 

and my welcome.sqf

playSound "intro"; // This calls the code inside of description.ext //

 

 

 

i have put my intro.ogg into the custom folder.

Whats wrong?

i plus one you my friend, changing the playMusic and CfgMusic to playSound and CfgSound gives you this error.

how do i know this? it happened to me i dont know why tho so that i know only cfgmusic works

Link to comment
Share on other sites

I just made a fresh install of this script.

 

made a folder called custom in my epoch.altis.pbo, added "Welcome.sqf" and copy/pasted the lines from this post into it. Editted the info i want to be shown.

 

Downloaded added my own IntroSong.ogg that i converted and made 32 seconds long, pasted that file in my custom folder.

 

downloaded new mission file when joining server, but nothing shows. Im not getting any errors either upon joining server.

 

Heres my init and description files:

description.txt

init.txt

Link to comment
Share on other sites

I just made a fresh install of this script.

 

made a folder called custom in my epoch.altis.pbo, added "Welcome.sqf" and copy/pasted the lines from this post into it. Editted the info i want to be shown.

 

Downloaded added my own IntroSong.ogg that i converted and made 32 seconds long, pasted that file in my custom folder.

 

downloaded new mission file when joining server, but nothing shows. Im not getting any errors either upon joining server.

 

Heres my init and description files:

try this please

So basically i tried all sorts of things.. so there wasnt just one thing i tried

so start off  by putting your BE Filters in (even tho you dont get kicked)

Second, Some addons/scripts you have might be blocking it as i had a mission system that i think was the problem!

I also tried moving the execute path to the top of the init.sqf

Link to comment
Share on other sites

try this please

So basically i tried all sorts of things.. so there wasnt just one thing i tried

so start off  by putting your BE Filters in (even tho you dont get kicked)

Second, Some addons/scripts you have might be blocking it as i had a mission system that i think was the problem!

I also tried moving the execute path to the top of the init.sqf

Where can i find these filters i need to add? They are not in the OP(?)

Link to comment
Share on other sites

I just made a fresh install of this script.

 

made a folder called custom in my epoch.altis.pbo, added "Welcome.sqf" and copy/pasted the lines from this post into it. Editted the info i want to be shown.

 

Downloaded added my own IntroSong.ogg that i converted and made 32 seconds long, pasted that file in my custom folder.

 

downloaded new mission file when joining server, but nothing shows. Im not getting any errors either upon joining server.

 

Heres my init and description files:

Does it work if you move

// Welcome Credits
[] execVM "custom\welcome.sqf";
to the top of your init.sqf?
Link to comment
Share on other sites

Check the entire thread, there are some BE-related posts.

I found this, and i dont have it in my BE filter. But it doesnt look alright, i feel something is wrong.?

 

!="execVM "MPMissions\epoch.Altis\scripts\fn_statusBar.sqf"; !="<execute expression=" !"RscDebugConsole_execute" !=execVM "custom\Welcome.sqf";"

 

Somehow i feel the ; and " are mixed and not at the correct place.

 

Can anyone verify?

Cheers!

Link to comment
Share on other sites

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