Jump to content

Torndeco Mission System - DZAI AI


Torndeco

Recommended Posts

Updated Readme... instructions abit more clear..

There is also a fix for killing off the second group of AI's + Helis when mission is over..

 

@Lightstylez

Sound like u dont have your mission file running the custom publicEH.sqf..

That calls the sqf to create the map markers for players + update thier debug monitor basicly

 

Note u will need to alter your custom debug monitor to disable the mission notices.. Look @ the one provided in the files as an example

Link to comment
Share on other sites

so my init should look like this

 

step 1 edits:

	//Run the player monitor
	_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
	_playerMonitor = 	[] execVM "\z\addons\dayz_code\system\player_monitor.sqf";	
	_void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf";
	// Custom Debug
[] execVM "extras\debug_monitor\debug_monitor.sqf";

step 2 edits:

	_serverMonitor = 	[] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
	// Mission System
		// Mission
	[] execVM "\z\addons\dayz_server\missions\mission_deamon.sqf";

and this code to execute the missions at the end of my init.sqf:

//Missions
call compile preprocessFileLineNumbers "fixes\init\publicEH.sqf";

because even after all of this , no success. also i dont know how to edit the debug monitor :(

Link to comment
Share on other sites

Thank you for the updated readme, but no success on the debug monitor.

 

The mission system works, I found it on RPT logs but no marks on the map, the provided debug monitor doesn't show up. My previous custom monitor work, but when I try to merge the mission part of yours it stop working. The provided debug monitor doesn't work at all for me.

 

@darkfall211

 

You can try to change

 

call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";

 

by

 

call compile preprocessFileLineNumbers "fixes\init\publicEH.sqf";

 

instead of adding it at the end of init.sqf

Link to comment
Share on other sites

Thank you for the updated readme, but no success on the debug monitor.

 

The mission system works, I found it on RPT logs but no marks on the map, the provided debug monitor doesn't show up. My previous custom monitor work, but when I try to merge the mission part of yours it stop working. The provided debug monitor doesn't work at all for me.

 

@darkfall211

 

You can try to change

 

call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";

 

by

 

call compile preprocessFileLineNumbers "fixes\init\publicEH.sqf";

 

instead of adding it at the end of init.sqf

so put the 

call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";

after 

call compile preprocessFileLineNumbers "fixes\init\publicEH.sqf";

in the init file or just change it to the other 1?

Link to comment
Share on other sites

I re-downloaded the new files since you update them a lot, and followed the new more in-depth guide. but SOON as i add 

[] execVM "\z\addons\dayz_server\missions\mission_deamon.sqf";

I get requesting authentication for 30 secs (usually instant) then it logs me in and im stuck in debug with nothing in my inventory. Im guessing i have some scripts that are conflicting, i have quite a few. Any idea what is causing the problem, or if i send you my files could you help? My RPT logs do show 

 3:00:32 "DEBUG: Mission Code: Start......."
 3:00:32 "DEBUG: Mission Code: Loading Mission Functions......."
 3:00:32 "DEBUG: Mission Code: Waiting...."

and i am getting a lot of these errors spammed in the same time-frame  

 3:00:32 Error in expression <_done = true;
publicVariable "sm_done";
};>
 3:00:32   Error position: <};>
 3:00:32   Error Missing {
 3:00:32 File z\addons\dayz_server\system\server_monitor.sqf, line 406
 3:00:32 Error in expression <_done = true;
publicVariable "sm_done";
};>
Link to comment
Share on other sites

 For me using only the files on github give me a working Mission System without Debug monitor and map markers on a clean install of DayZ Epoch 1.0.2.4 with Sarge AI 1.5.2 without any other scripts.

 

In your example on github I see

_playerMonitor =    [] execVM "fixes\system\player_monitor.sqf";

where mine is

 

_playerMonitor =     [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";

 

The change I made on init.sqf are :

 

 

call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";                //Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
//call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";                //Initilize the publicVariable event handlers
call compile preprocessFileLineNumbers "fixes\init\publicEH.sqf";
progressLoadingScreen 0.2;

....

if (isServer) then {
    call compile preprocessFileLineNumbers "dynamic_vehicle.sqf";                //Compile vehicle configs
    
    // Add trader citys
    _nil = [] execVM "mission.sqf";
    _serverMonitor =     [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";

    // Mission System
    // Mission
    [] execVM "\z\addons\dayz_server\missions\mission_deamon.sqf";

};

....

    //Run the player monitor
    _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
    _playerMonitor =     [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";    
    _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf";
    // Mission System
    // Debug Monitor
    [] execVM "extras\debug_monitor\debug_monitor.sqf";

 

 

Thanks for your help

Link to comment
Share on other sites

In the RPT logs, the following error appear only between two missions, 6-8min after the cleanup, but doesn't seem to break anything

 

20:08:04 Error in expression <index)} do
{
_group = mission_ai_groups select _index;
if (count units (_group s>
20:08:04   Error position: <select _index;
if (count units (_group s>
20:08:04   Error Diviseur nul
20:08:04 File z\addons\dayz_server\missions\mission_functions.sqf, line 11

Link to comment
Share on other sites

After the update I get this error in RPT logs :

 

 0:48:58 Error in expression < ("DEBUG: Mission Code: Waiting....");

sleep [1500,650] call fnc_hTime;

{
if (>
 0:48:58   Error position: <sleep [1500,650] call fnc_hTime;

{
if (>
 0:48:58   Error sleep: Type Tableau, Nombre attendu
 0:48:58 File z\addons\dayz_server\missions\mission_deamon.sqf, line 25
 

Only one mission launch, after the cleanup there are no missions following during 2h of testing.

 

I use the default files except for the debug monitor. On the debug monitor, I can't get missions alerts/ timer, can you tell me where I've to look for that please.

 

Here is my modded debug monitor

 

Thanks for this awesome mod !

 

 

debug_monitor.zip

Link to comment
Share on other sites

Evening All, 

 

mission files install great and it fired up first time... However (and I might be doing something stupid here), the first 2 missions run... then they de-spawn regardless if players have completed them or not (after a period of time) and then there are no more missions until next restart, at which time the cycle restarts..

 

Have a missed a step some where?

 

Thanks for great mod.. my server players will love it.

Link to comment
Share on other sites

Thank you ! That works very well =) I managed to have alerts on custom missions on the debug monitor, the last trouble I have is with two elements that didn't display. I get file %11 not found ( "extras\debug_monitor\pirates.paa") and the second one ( _combatlogger ) is showed as %12 in the debug monitor.

 

I don't understand why, the path are good and if I'm right the client retrieve the files from the mission folder, so the client have the files (for the image). If you have any hints you're welcome !

 

Thanks

 

 

Edit : Just find where the problem was, I'll post my edited debug monitor later ...

Link to comment
Share on other sites

Latest updates were me just tidyin up the debug monitor examples code + have rewrote the loot code for crates to use epoch loot tables...

And just replacing instances of spawning objects i.e like jerrycans with gold / silver bars..

 

Still needs afew tweaks to get a nice balance of loot spawning

 

Note:

If u are using custom loot tables

dayz_server\missions\misc\fillBoxes-customloot.sqf  rename to  dayz_server\missions\misc\fillBoxes.sqf

 

Next on todo list is to customize the debug alert to inform players if there is a vechicle spawned @ the mission...

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...