Dregek Posted October 12, 2013 Report Share Posted October 12, 2013 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" as far as i can tell it should be working as expected Link to comment Share on other sites More sharing options...
0 RAMBO Posted October 12, 2013 Report Share Posted October 12, 2013 I believe your addons should be at the bottom of your init. Give that a try, might make the difference? Link to comment Share on other sites More sharing options...
0 Dregek Posted October 12, 2013 Author Report Share Posted October 12, 2013 still not running the scripts here is the rpt i can upload files if needed http://pastebin.com/vGyY9nS4 Link to comment Share on other sites More sharing options...
0 Torndeco Posted October 12, 2013 Report Share Posted October 12, 2013 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 More sharing options...
0 Torndeco Posted October 12, 2013 Report Share Posted October 12, 2013 Your also have a typo in your init.sqf }; #include "\z\addons\dayz_code\system\REsec.sqf" Lose the bracket "};" Its an extra one, u have already have one for your if statement. + rpt logs are complaining about. Link to comment Share on other sites More sharing options...
0 RAMBO Posted October 12, 2013 Report Share Posted October 12, 2013 Comparing your init to my own... I also have this line: _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; Whereas yours is just: [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; Link to comment Share on other sites More sharing options...
0 Torndeco Posted October 12, 2013 Report Share Posted October 12, 2013 Don't worry about it, makes no odds really. The script is just returning a script handle, it doesn't get used so i just don't bother to assign it to any variable. http://community.bistudio.com/wiki/execVM Link to comment Share on other sites More sharing options...
0 RAMBO Posted October 12, 2013 Report Share Posted October 12, 2013 Listen to this guy ^^ knows more than I do :p Link to comment Share on other sites More sharing options...
Question
Dregek
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
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now