Jump to content
  • 0

custom scripts not starting


Dregek

Question

Hi all.

 

im having issues with some custom scripts ive put in my mission folder

 

my init.sqf doesnt seem to be starting the scripts

if (!isDedicated) then {
	//Conduct map operations
	0 fadeSound 0;
	waitUntil {!isNil "dayz_loadScreenMsg"};
	dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
	
	//Run the player monitor
	_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
	_playerMonitor = 	[] execVM "\z\addons\dayz_code\system\player_monitor.sqf";	
	[] execVM "R3F_Realism\R3F_Realism_Init.sqf";
	[] execVM "safezone.sqf";
	[] execVM "antibrute.sqf";
	[] execVM "skacast.sqf";
	[] execVM "excbridge.sqf";
};
	
	//Lights
	//[17,6,true,false,true,true,72,242,600,10,[0.698, 0.556, 0.419],"Generator_DZ",208,"",0.5] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
};
#include "\z\addons\dayz_code\system\REsec.sqf"

geagnpszhD.png
 

as far as i can tell it should be working as expected

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Look @ you rpt logs for errors and warnings (u will just get a warning if it can't find a script)

 

Also load your maps serverside, so if u do add ai they will know about the buildings.

Plus afterward u got everything working u can move the files serverside and reduce the size of your missionfile.

 

i.e

if (isServer) then {
    call compile preprocessFileLineNumbers "dynamic_vehicle.sqf";                //Compile vehicle configs
    
    // Add trader citys
    _nil = [] execVM "mission.sqf";
    
    ExecVM "\z\addons\dayz_server\maps\Airtrip_Camp.sqf";
    ExecVM "\z\addons\dayz_server\maps\Barrage_Dan.sqf";
    ExecVM "\z\addons\dayz_server\maps\BlackLac_Dan.sqf";
    ExecVM "\z\addons\dayz_server\maps\Bois1_Dan.sqf";

edit:

Edit your mission.sqm file add "map_eu" to it

Here is an code snippet of mine with map_eu

version=11;
class Mission
{
    addOns[]=
    {
        "chernarus",
        "ca_modules_animals",
        "dayz_code",
        "dayz_communityassets",
        "dayz_weapons",
        "dayz_equip",
        "dayz_epoch",
        "dayz_vehicles",
        "cacharacters_pmc",
        "ca_modules_functions",
        "glt_m300t",
        "sigisolda",
        "suv_col",
        "csj_gyroac",
        "map_eu",
        "jetskiyanahuiaddon"
    };
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...