[Support] DZMS DayZ Mission System

Inkko

Valued Member!
Well I'm working on fixing my shore mission and i had it set to skill 0 and they wouldn't spawn in with weapons, changed it to 2 and they now spawn with weapons. It looks like its referencing a non existent weapon array so they never receive any weapons.

Weapons truck and medical outpost use 0 skill as well so i'll check that out to see what they look like.

EDIT:

Both of those missions didn't spawn ai with weapons either. So its skill 0 that causes it.
 
Last edited:
Still getting killed when entering a mission vehicle.

* posted that after I read your post to make that change, standby...

*2 Ok so yea im still getting killed, here is the RPT log Vampire.

http://pastebin.com/BC5cDx6W
There are two lines in the server functions after the killing a hacker thing....one sets vehicle damage to 1, the other sets another value to 1, I commented those lines out (which fix the problem) So after you do that you wont have the problem anymore like us.

in server_functions.sqf

//
if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
diag_log ("CLEANUP: KILLING A HACKER " + (name _x) + " " + str(_x) + " IN " + (typeOf vehicle _x));
// (vehicle _x) setDamage 1;
// _x setDamage 1;
sleep 0.25;


and in the compile folder, server_updateObject.sqf

I commented this out

// if (_isNotOk) exitWith { deleteVehicle _object; diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",typeOf _object,_object_position select 0,_object_position select 1, _object_position select 2]); };

notice the // you add that.
 
Use this in your code:
Code:
_hint = parseText format["<t align='center' color='#ff0000' shadow='2' size='1.75'>DEATH VALLEY!</t><br/><t  align='center' color='#ffffff'>Legion is gathering forces in a valley, team up and go wipe out them out! </t>"];
customRemoteMessage = ['hint', _hint];
publicVariable "customRemoteMessage";
Just null out the announcement line in your code and use this instead. It's really clean and neat and you can configure the colors. For instance this is green:
Code:
_hint = parseText format["<t align='center' color='#00FF11' shadow='2' size='1.75'>SUCCESS!</t><br/><t  align='center' color='#ffffff'>Survivors have taken Death Valley!</t>"];
  customRemoteMessage = ['hint', _hint];
  publicVariable "customRemoteMessage";
while this is red:
Code:
_hint = parseText format["<t align='center' color='#ff1133' shadow='2' size='1.75'>FAILED</t><br/><t  align='center' color='#ffffff'>Survivors did not secure Death Valley!</t>"];
    customRemoteMessage = ['hint', _hint];
    publicVariable "customRemoteMessage";



Hey gopostal
cheers for the reply, so I tried the coding you supplied, and my server just sits at authenticating, here is what I have after commenting out the original line, any ideas, have I entered it in the wrong place, the only addition I did was put the "CALL RE;" at the end as per the original line.!

//[nil,nil,rTitleText,"A C130 Carrying Supplies has Crashed!\nBandits are Securing the Cargo!", "PLAIN",10] call RE;
_hint = parseText format["<t align='Right' color='#009FCF' shadow='2' size='0.40'>A C130!</t><br/><t align='Right' color='#ffffff'>Carrying Supplies has Crashed!\nBandits are Securing the Cargo! </t>"];
customRemoteMessage = ['hint', _hint]
publicVariable "customRemoteMessage" call RE;
//DZMSAddMajMarker is a simple script that adds a marker to the location
[_coords,_missname] ExecVM DZMSAddMajMarker;
 
Was wondering something. I added more gear possibility to the AI so now I have DZMSGear0 to DZMSGear9 in the DZMSAIConfig but most of the time on the AI spawn with the DZMSGear0 to DZMSGear4. Its getting very annoying players want variety. I added it to DZMSAISpawn as well. I was planing to add like 20 different possible gear to make them happy, wonder if its really possible.

Also the Minor SM9 hilbillies doesn't end even if you kill them don,t know whats wrong with it.
 

Vampire

OpenDayZ Rockstar!
There are two lines in the server functions after the killing a hacker thing....one sets vehicle damage to 1, the other sets another value to 1, I commented those lines out (which fix the problem) So after you do that you wont have the problem anymore like us.

in server_functions.sqf

//
if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
diag_log ("CLEANUP: KILLING A HACKER " + (name _x) + " " + str(_x) + " IN " + (typeOf vehicle _x));
// (vehicle _x) setDamage 1;
// _x setDamage 1;
sleep 0.25;


and in the compile folder, server_updateObject.sqf

I commented this out

// if (_isNotOk) exitWith { deleteVehicle _object; diag_log(format["Deleting object %1 with invalid ID at pos [%2,%3,%4]",typeOf _object,_object_position select 0,_object_position select 1, _object_position select 2]); };

notice the // you add that.
DZMS adds all its vehicles to the object monitor so they are not caught by the cleanup. This edit is not necessary for DZMS. The post you quoted was already fixed.

Was wondering something. I added more gear possibility to the AI so now I have DZMSGear0 to DZMSGear9 in the DZMSAIConfig but most of the time on the AI spawn with the DZMSGear0 to DZMSGear4. Its getting very annoying players want variety. I added it to DZMSAISpawn as well. I was planing to add like 20 different possible gear to make them happy, wonder if its really possible.

Also the Minor SM9 hilbillies doesn't end even if you kill them don,t know whats wrong with it.
You need to edit DZMSAISpawn to account for all the new gear choices.
However DZMS does not have a SM9 mission, so assuming you are using EMS, you need to go post in the correct forum on Epochmod.com.
DZMS is not EMS.
 
DZMS is not meant to run the mission side as this will cause missions to run per every client online if it even works, which would mean there would be 2 missions per player, and each mission would have the amount of AI multiplied by the amount of players on.
Because of this catastrophic meltdown it would cause, many scripts actually check if they are being ran by something other than the server and exit themselves.
.
Hello Vampire, I got it working now. I ve downloaded the latest dayz_server pbo and added the script. The server pbo i ve used before must be broken because of my trials.
 

gopostal

Valued Member!
Hey gopostal
cheers for the reply, so I tried the coding you supplied, and my server just sits at authenticating, here is what I have after commenting out the original line, any ideas, have I entered it in the wrong place, the only addition I did was put the "CALL RE;" at the end as per the original line.!

//[nil,nil,rTitleText,"A C130 Carrying Supplies has Crashed!\nBandits are Securing the Cargo!", "PLAIN",10] call RE;
_hint = parseText format["<t align='Right' color='#009FCF' shadow='2' size='0.40'>A C130!</t><br/><t align='Right' color='#ffffff'>Carrying Supplies has Crashed!\nBandits are Securing the Cargo! </t>"];
customRemoteMessage = ['hint', _hint]
publicVariable "customRemoteMessage" call RE;
//DZMSAddMajMarker is a simple script that adds a marker to the location
[_coords,_missname] ExecVM DZMSAddMajMarker;
You probably need to add Maca's message system if you don't have it installed. PM me and I'll get with you on TS and chat it out.
 
Vampire:
Hello, partly solve the problem, not to be taken as read that an update had not installed the previous version. Now missions are generated but not shown on the map.
Sorry for my English, hope you understand me Thanks

Edit:
He added of the RPT file. You can see it starts but with these errors ..
http://up.ht/NZ5OrA
 
Last edited:

muggerfugger

Well-Known Member
im having a huge problem for like the last week. Some players on my server reported this a few days ago, but i've only now witnessed it.

Usually happens with the NATO camp weapons, but it just happened to me with the Medical Camp.

Kill all the bandits, goto the mission, SURVIVORS CAPTURED message. and then server crash. The no message recieved error.

this happens too often now, and my players don't even want to bother with the missions anymore. And it only happens when someone goes to the mission.

This is on normal dayz with dayz.st

RPT
http://pastebin.com/gN3qRvhC


edit, restarted server, went to another mission
here is the video of it crashing the server
this has only been happening the last week or so, so something in the code must've changed.
here is the rpt for the crash in the video:
http://pastebin.com/zfy5Uajx
 
Last edited:
Here's my RPT. Anyone have any suggestions as to why AI do NOT spawn at missions for Epidemic mod?

_unit = _unitGroup createUnit [_aiskin, [(_position select >
13:11:32 Error position: <createUnit [_aiskin, [(_position select >
13:11:32 Error Type Any, expected String
13:11:32 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 33
13:11:32 [DZMS]: (DZMSUnitsMinor) 0 AI Spawned, 0 units in mission.
13:11:33 [DZMS]: (DZMSUnitsMinor) Waiting for 0/0 Units or Less to be Alive and a Player to be Near the Objective.
13:11:55 "CLEANUP:TOTAL 129 LOOT BAGS"
13:11:55 "CLEANUP: DELETED 3 LOOT BAGS"
13:11:56 [DZMS]: Running Major Mission SM4.
13:11:56 Error in expression <_fnc_selectRandom;


_unit = _unitGroup createUnit [_aiskin, [(_position select >
13:11:56 Error position: <createUnit [_aiskin, [(_position select >
13:11:56 Error Type Any, expected String
13:11:56 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 33
13:11:56 Error in expression <_fnc_selectRandom;


_unit = _unitGroup createUnit [_aiskin, [(_position select >
13:11:56 Error position: <createUnit [_aiskin, [(_position select >
13:11:56 Error Type Any, expected String
13:11:56 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 33
13:11:56 Error in expression <_fnc_selectRandom;


_unit = _unitGroup createUnit [_aiskin, [(_position select >
13:11:56 Error position: <createUnit [_aiskin, [(_position select >
13:11:56 Error Type Any, expected String
13:11:56 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 33
13:11:56 Error in expression <_fnc_selectRandom;


_unit = _unitGroup createUnit [_aiskin, [(_position select >
13:11:56 Error position: <createUnit [_aiskin, [(_position select >
13:11:56 Error Type Any, expected String
13:11:56 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 33
13:11:56 Error in expression <_fnc_selectRandom;


_unit = _unitGroup createUnit [_aiskin, [(_position select >
13:11:56 Error position: <createUnit [_aiskin, [(_position select >
13:11:56 Error Type Any, expected String
13:11:56 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 33
13:11:56 Error in expression <_fnc_selectRandom;


_unit = _unitGroup createUnit [_aiskin, [(_position select >
13:11:56 Error position: <createUnit [_aiskin, [(_position select >
13:11:56 Error Type Any, expected String
13:11:56 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 33
13:11:56 [DZMS]: (DZMSUnitsMajor) 0 AI Spawned, 0 units in mission.

Nevermind, found the issue, and fixed.
 
Last edited:

Vampire

OpenDayZ Rockstar!
Vampire:
Hello, partly solve the problem, not to be taken as read that an update had not installed the previous version. Now missions are generated but not shown on the map.
Sorry for my English, hope you understand me Thanks

Edit:
He added of the RPT file. You can see it starts but with these errors ..
http://up.ht/NZ5OrA
Those errors are from the DayZ Chernarus Mission System, not DZMS.
im having a huge problem for like the last week. Some players on my server reported this a few days ago, but i've only now witnessed it.

Usually happens with the NATO camp weapons, but it just happened to me with the Medical Camp.

Kill all the bandits, goto the mission, SURVIVORS CAPTURED message. and then server crash. The no message recieved error.

this happens too often now, and my players don't even want to bother with the missions anymore. And it only happens when someone goes to the mission.

This is on normal dayz with dayz.st

RPT
http://pastebin.com/gN3qRvhC


edit, restarted server, went to another mission
here is the video of it crashing the server
this has only been happening the last week or so, so something in the code must've changed.
here is the rpt for the crash in the video:
http://pastebin.com/zfy5Uajx
Your RPT is too short. Doesn't even list DZMS starting in it. Pastebin may have limited your paste, try uploading one to uppit.
 

muggerfugger

Well-Known Member
After the server crashes it seems to erase almost everything from the RPT log. probably from an auto restart.

i'll just remove this since its causing problems for now.
 
Use Dayz Epoch 1.0.4.1 Sauerland. In a log file permanently and because of this log file is constantly quickly becomes large.
Sorry for my English.
RPT log:

12:18:12 [DZMS]: Running Minor Mission SM1.
12:18:12 Error in expression <or Mission %1.",_varName];

waitUntil {DZMSMinDone};
DZMSMinDone = nil;
};>
12:18:12 Error position: <DZMSMinDone};
DZMSMinDone = nil;
};>
12:18:12 Error Undefined variable in expression: dzmsmindone
12:18:12 File z\addons\dayz_server\DZMS\Scripts\DZMSMinTimer.sqf, line 42
12:18:12 Error in expression <or Mission %1.",_varName];

waitUntil {DZMSMinDone};
DZMSMinDone = nil;
};>
12:18:12 Error position: <DZMSMinDone};
DZMSMinDone = nil;
};>
12:18:12 Error Undefined variable in expression: dzmsmindone
12:18:12 File z\addons\dayz_server\DZMS\Scripts\DZMSMinTimer.sqf, line 42
12:18:12 Error in expression <{
_findRun = false;
};
if (_isTavi AND (_tavHeight <= 185)) then {
_findRun = fa>
12:18:12 Error position: <_tavHeight <= 185)) then {
_findRun = fa>
12:18:12 Error Undefined variable in expression: _tavheight
12:18:12 File z\addons\dayz_server\DZMS\DZMSFunctions.sqf, line 106
12:18:12 Error in expression <or Mission %1.",_varName];

waitUntil {DZMSMinDone};
DZMSMinDone = nil;
};>
12:18:12 Error position: <DZMSMinDone};
DZMSMinDone = nil;
};>
12:18:12 Error Undefined variable in expression: dzmsmindone
12:18:12 File z\addons\dayz_server\DZMS\Scripts\DZMSMinTimer.sqf, line 42
12:18:12 Error in expression <or Mission %1.",_varName];

waitUntil {DZMSMinDone};
DZMSMinDone = nil;
};>
12:18:12 Error position: <DZMSMinDone};
DZMSMinDone = nil;
};>
12:18:12 Error Undefined variable in expression: dzmsmindone
12:18:12 File z\addons\dayz_server\DZMS\Scripts\DZMSMinTimer.sqf, line 42
12:18:12 Error in expression <or Mission %1.",_varName];

waitUntil {DZMSMinDone};
DZMSMinDone = nil;
};>
12:18:12 Error position: <DZMSMinDone};
DZMSMinDone = nil;
};>
12:18:12 Error Undefined variable in expression: dzmsmindone
12:18:12 File z\addons\dayz_server\DZMS\Scripts\DZMSMinTimer.sqf, line 42

etc...
 
22:40:43 "EPOCH SERVERTRADE: Player: ASAP (9943492) bought a PartFueltank in/at Unknown Trader City for 2x ItemGoldBar"
22:40:43 Error in expression <{
_findRun = false;
};
if (_isTavi AND (_tavHeight <= 185)) then {
_findRun = fa>
22:40:43 Error position: <_tavHeight <= 185)) then {
_findRun = fa>
22:40:43 Error Undefined variable in expression: _tavheight
22:40:43 File z\addons\dayz_server\DZMS\DZMSFunctions.sqf, line 106
22:40:45 Error in expression <[(_x select 0),(_x select 1)]
} forEach _aicskill;


_unit addEventHandler ["Kil>
22:40:45 Error position: <_aicskill;


_unit addEventHandler ["Kil>
22:40:45 Error Undefined variable in expression: _aicskill
22:40:45 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 101
22:40:45 Error in expression <[(_x select 0),(_x select 1)]
} forEach _aicskill;


_unit addEventHandler ["Kil>
22:40:45 Error position: <_aicskill;


_unit addEventHandler ["Kil>
22:40:45 Error Undefined variable in expression: _aicskill
22:40:45 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 101
22:40:45 [DZMS]: (DZMSUnitsMinor) 2 AI Spawned, 2 units in mission.
22:40:50 Error in expression <[(_x select 0),(_x select 1)]
} forEach _aicskill;


_unit addEventHandler ["Kil>
22:40:50 Error position: <_aicskill;


_unit addEventHandler ["Kil>
22:40:50 Error Undefined variable in expression: _aicskill
22:40:50 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 101
22:40:50 Error in expression <[(_x select 0),(_x select 1)]
} forEach _aicskill;


_unit addEventHandler ["Kil>
22:40:50 Error position: <_aicskill;


_unit addEventHandler ["Kil>
22:40:50 Error Undefined variable in expression: _aicskill
22:40:50 File z\addons\dayz_server\DZMS\Scripts\DZMSAISpawn.sqf, line 101
22:40:50 [DZMS]: (DZMSUnitsMinor) 2 AI Spawned, 4 units in mission.
 
Top