Hey morox can you check my ai they aren't spawning here is what i put in my init.sqf
http://pastebin.com/j2aXf4dz
http://pastebin.com/j2aXf4dz
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
// Mission Initialization
startLoadingScreen ["", "RscDisplayLoadCustom"];
cutText ["", "BLACK OUT"];
enableSaving [false, false];
// Variable Initialization
dayZ_instance = 1;
dayzHiveRequest = [];
initialized = false;
dayz_previousID = 0;
// Settings
player setVariable ["BIS_noCoreConversations", true]; // Disable greeting menu
//enableRadio false; // Disable global chat radio messages
// Compile and call important functions
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
progressLoadingScreen 1.0;
// Set Tonemapping
"Filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4];
setToneMapping "Filmic";
// Run the server monitor
if (isServer) then {
_serverMonitor = [] execVM "\z\addons\dayz_server\system\server_monitor.sqf";
};
if (!isServer && isNull player) then {
waitUntil { !isNull player };
waitUntil { time > 3 };
};
if (!isServer && player != player) then {
waitUntil { player == player };
waitUntil { time > 3 };
};
zombie_generate = compile preprocessFileLineNumbers "scripts\zombie_generate.sqf";
if (isServer) then {
//
_factions = [] execVM "scripts\set_unit_faction.sqf";
//diag_log format["Factions executed: %1",_factions];
//Array to pass to .sqf: [[<worldspace>],radius of waypoints (in metres),number of waypoints,number of ai units, group type [0:random unit, 1:sniper, 2:gunner, 3:militiaman, 4:squad], faction [0:hates everyone except survivors, 1:hates everyone]]
_aispawn = [[4648.7422,8.9400539,2553.0039],10,1,2,4,0] execVM "scripts\add_unit_server.sqf";
_aispawn = [[4726.9707,9,2508.1321],10,1,2,4,0] execVM "scripts\add_unit_server.sqf";
_aispawn = [[4784.3374,9,2472.6526],10,1,2,4,0] execVM "scripts\add_unit_server.sqf";
_aispawn = [[4850.0493,9,2432.9983],10,1,2,4,0] execVM "scripts\add_unit_server.sqf";
};
};
// Run the player monitor
if (!isDedicated) then {
0 fadeSound 0;
waitUntil { !isNil "dayz_loadScreenMsg" };
dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
_id = player addEventHandler ["Respawn", { _id = [] spawn player_death; }];
_playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
#include "gcam\gcam_config.hpp"
#include "gcam\gcam_functions.sqf"
#ifdef GCAM
waitUntil { alive Player };
waituntil { !(IsNull (findDisplay 46)) };
if (serverCommandAvailable "#kick") then { (findDisplay 46) displayAddEventHandler ["keyDown", "_this call fnc_keyDown"]; };
#endif
};
Upload your entire folder ill check itWhat am I doing wrong? I don't use a pbo file. It's a mission folder called dayz_1.chernarus.; From what I understand it's almost like an extracted pbo file. I have been trying to make this work for the past couple of weeks now(the A.I. will not spawn) . I have tried almost everything. As a last resort, I have come hear to seek help. I will post any needed info, please help meCode:// Mission Initialization startLoadingScreen ["", "RscDisplayLoadCustom"]; cutText ["", "BLACK OUT"]; enableSaving [false, false]; // Variable Initialization dayZ_instance = 1; dayzHiveRequest = []; initialized = false; dayz_previousID = 0; // Settings player setVariable ["BIS_noCoreConversations", true]; // Disable greeting menu //enableRadio false; // Disable global chat radio messages // Compile and call important functions call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; progressLoadingScreen 0.1; call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; progressLoadingScreen 0.2; call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; progressLoadingScreen 0.4; call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; progressLoadingScreen 1.0; // Set Tonemapping "Filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; // Run the server monitor if (isServer) then { _serverMonitor = [] execVM "\z\addons\dayz_server\system\server_monitor.sqf"; }; if (!isServer && isNull player) then { waitUntil { !isNull player }; waitUntil { time > 3 }; }; if (!isServer && player != player) then { waitUntil { player == player }; waitUntil { time > 3 }; }; zombie_generate = compile preprocessFileLineNumbers "scripts\zombie_generate.sqf"; if (isServer) then { // _factions = [] execVM "scripts\set_unit_faction.sqf"; //diag_log format["Factions executed: %1",_factions]; //Array to pass to .sqf: [[<worldspace>],radius of waypoints (in metres),number of waypoints,number of ai units, group type [0:random unit, 1:sniper, 2:gunner, 3:militiaman, 4:squad], faction [0:hates everyone except survivors, 1:hates everyone]] _aispawn = [[4648.7422,8.9400539,2553.0039],10,1,2,4,0] execVM "scripts\add_unit_server.sqf"; _aispawn = [[4726.9707,9,2508.1321],10,1,2,4,0] execVM "scripts\add_unit_server.sqf"; _aispawn = [[4784.3374,9,2472.6526],10,1,2,4,0] execVM "scripts\add_unit_server.sqf"; _aispawn = [[4850.0493,9,2432.9983],10,1,2,4,0] execVM "scripts\add_unit_server.sqf"; }; }; // Run the player monitor if (!isDedicated) then { 0 fadeSound 0; waitUntil { !isNil "dayz_loadScreenMsg" }; dayz_loadScreenMsg = (localize "STR_AUTHENTICATING"); _id = player addEventHandler ["Respawn", { _id = [] spawn player_death; }]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; #include "gcam\gcam_config.hpp" #include "gcam\gcam_functions.sqf" #ifdef GCAM waitUntil { alive Player }; waituntil { !(IsNull (findDisplay 46)) }; if (serverCommandAvailable "#kick") then { (findDisplay 46) displayAddEventHandler ["keyDown", "_this call fnc_keyDown"]; }; #endif };
![]()
_aispawn = [[4648.7422,8.9400539,2553.0039],10,1,2,4,0] execVM "scripts\add_unit_server.sqf";
_aispawn = [[6876.0,11165.0,0],300,100,1,4,0,3,10,1,900] execVM "Scripts\add_unit_server.sqf"; // Devils Castle
I'll give this a go, if not i'll post the file. ThanksBandit,
If you are using Sycosis's files then your _aispawn lines are missing variables
Code:_aispawn = [[4648.7422,8.9400539,2553.0039],10,1,2,4,0] execVM "scripts\add_unit_server.sqf";
You only have 10 (Radius) 1 (waypoints) 2 (num units) 4 (unit type) 0 (faction) you need baseskill, potential skill, gearset and respawn time.
Full one looks like
Code:_aispawn = [[6876.0,11165.0,0],300,100,1,4,0,3,10,1,900] execVM "Scripts\add_unit_server.sqf"; // Devils Castle
// Mission Initialization
startLoadingScreen ["", "RscDisplayLoadCustom"];
cutText ["", "BLACK OUT"];
enableSaving [false, false];
// Variable Initialization
dayZ_instance = 1;
dayzHiveRequest = [];
initialized = false;
dayz_previousID = 0;
// Settings
player setVariable ["BIS_noCoreConversations", true]; // Disable greeting menu
//enableRadio false; // Disable global chat radio messages
// Compile and call important functions
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
progressLoadingScreen 1.0;
// Set Tonemapping
"Filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4];
setToneMapping "Filmic";
// Run the server monitor
if (isServer) then {
_serverMonitor = [] execVM "\z\addons\dayz_server\system\server_monitor.sqf";
};
if (!isServer && isNull player) then {
waitUntil { !isNull player };
waitUntil { time > 3 };
};
if (!isServer && player != player) then {
waitUntil { player == player };
waitUntil { time > 3 };
};
zombie_generate = compile preprocessFileLineNumbers "scripts\zombie_generate.sqf";
if (isServer) then {
_factions = [] execVM "scripts\set_unit_faction.sqf";
//diag_log format["Factions executed: %1",_factions];
//Array to pass to .sqf: [[<worldspace>],radius of waypoints (in metres),number of waypoints,number of ai units]
_aispawn = [[136,37, 0],75,5,12,0,0,5,10,0,1800] execVM "scripts\add_unit_server.sqf";//Berezino Resistance
_aispawn = [[48,52, 0],250,14,12,0,1,5,10,1,1800] execVM "scripts\add_unit_server.sqf";//NorthEast Airfield East
};
// Run the player monitor
if (!isDedicated) then {
0 fadeSound 0;
waitUntil { !isNil "dayz_loadScreenMsg" };
dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
_id = player addEventHandler ["Respawn", { _id = [] spawn player_death; }];
_playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
#include "gcam\gcam_config.hpp"
#include "gcam\gcam_functions.sqf"
#ifdef GCAM
waitUntil { alive Player };
waituntil { !(IsNull (findDisplay 46)) };
if (serverCommandAvailable "#kick") then { (findDisplay 46) displayAddEventHandler ["keyDown", "_this call fnc_keyDown"]; };
#endif
};
If you post your updated code I'll edit it to work for a3 and send it back.I have not tested this in A3 yet good to know it works, I need to test my updated code with it as well as it solves many of the issues with Sycosis' original files.