Jump to content

[Release] DayZ Mission System


TheVampire

Recommended Posts

I would really like the AI spawn rate to increase. Doesn't feel like a challenge.

 

You can go into each mission file and adjust the amount of AI that spawn.

The "Usage" is still correct that's noted right above them, just ignore the last number.

 

 

I'm getting this:

12:36:30 Error in expression <on "RPG7V";
{
_unit removeMagazine _x
} forEach "PG7V" in (magazines _unit);
};
>
12:36:30   Error position: <forEach "PG7V" in (magazines _unit);
};
>
12:36:30   Error foreach: Type String, expected Array
12:36:30 File z\addons\dayz_server\DZMS\Scripts\DZMSAIKilled.sqf, line 69

 

Can you post your full RPT to pastebin? I'll try to recreate this myself for now.

Link to comment
Share on other sites

 

Yup, that fixed it. I haven't seen this before in my .rpt log. Might not be related to this mission system tho.

19:32:13 Bad conversion: array
19:32:13 Error in expression <r"] call server_updateObject;
} forEach nearestObjects [_pos, dayz_updateObjects>
19:32:13   Error position: <nearestObjects [_pos, dayz_updateObjects>
19:32:13   Error 0 elements provided, 3 expected
19:32:13 File z\addons\dayz_server\compile\server_playerSync.sqf, line 209
Link to comment
Share on other sites

Is this line what controls the loot quantity?

	for "_x" from 0 to 2 do {

I'm trying to spawn an exact number of random guns in each box.

 

Thats how many items it chooses from the array. They may be the same or different because its random.

Some below also have a round(random(#)) which is how many of the item chosen this time through it adds to the crate. It can be from 0 to the max number.

Link to comment
Share on other sites

 

Yup, that fixed it. I haven't seen this before in my .rpt log. Might not be related to this mission system tho.

19:32:13 Bad conversion: array
19:32:13 Error in expression <r"] call server_updateObject;
} forEach nearestObjects [_pos, dayz_updateObjects>
19:32:13   Error position: <nearestObjects [_pos, dayz_updateObjects>
19:32:13   Error 0 elements provided, 3 expected
19:32:13 File z\addons\dayz_server\compile\server_playerSync.sqf, line 209

 

I don't think that's related to DZMS. In that case it looks like _pos returned null.

Link to comment
Share on other sites

Thats how many items it chooses from the array. They may be the same or different because its random.

Some below also have a round(random(#)) which is how many of the item chosen this time through it adds to the crate. It can be from 0 to the max number.

 

So if I use :

for "_x" from 20 to 20 do {

That will give me 20 guns in a crate?

Link to comment
Share on other sites

I've added @mudzereli to the Github because of the great additions he is making.

 

AI that are at a completed mission location will now get cleaned up when a new mission of the same type spawns to prevent lag.

 

There is now also configurable blacklist areas in the config.

You simply enter the coordinates and the radius.

If you are running static coordinates, then this will of course have no effect.

 

I also fixed a few positioning issues with the items at missions.

Link to comment
Share on other sites

I set my blacklist like this:

 

 
But in the log I get this:

-snip-

 
Are the commas supposed to be semicolons?

 

*edit* I have two servers and I uploaded the dzmsconfig.sqf for my Chernarus server to my Napf server so the coordinates in the error are different from what the coordinates are in the blacklist code I posted because the blacklist code I posted is what was supposed to be uploaded to the Napf server, but that shouldn't affect the blacklist. If the blacklist was working, then they'd simply be in the wrong place for the Napf server. In any case, the formating of the Blacklist is what I am questioning. Hopefully I just didn't format it correctly. :)

 

You formatted all of them except the first one incorrectly.

 

Here's the list you posted formatted correctly.

DZMSBlacklistZones = [
[[8246.3184,15485.867,0],300],
[[15506.952,13229.368,0],300],
[[12399.751,5074.5273,0],300],
[[10398.626,8279.4619,0],300],
[[5149.9814,4864.1191,0],300],
[[2122.7954,7807.9878,0],300],
[[5379.0342,16103.187,0],300],
[[6772.8877,16983.27,0],300],
[[16839.973,5264.0566,0],300],
[[15128.379,16421.879,0],300],
[[16857.543,1,0],300]
];
Link to comment
Share on other sites

Enabling this is causing the missions not to clear for me:

DZMSRequiredKillPercent = 80;

Edit: Nevermind it works. I just had to change it to 0.8 instead.

 

That setting just so everyone know is the percentage of AI that must be killed for the mission to be completed. 0 being 0%, 1 being 100%.

Link to comment
Share on other sites

I'm still getting an error:

 

 9:06:17 Error in expression <867,0],300],
[15506.952,13229.368,0],300],
[12399.751,5074.5273,0],300],
[10398.>
 9:06:17   Error position: <],
[12399.751,5074.5273,0],300],
[10398.>
 9:06:17   Error Missing ;
 9:06:17 File z\addons\dayz_server\DZMS\DZMSConfig.sqf, line 94
 9:06:17 Error in expression <867,0],300],
[15506.952,13229.368,0],300],
[12399.751,5074.5273,0],300],
[10398.>
 9:06:17   Error position: <],
[12399.751,5074.5273,0],300],
[10398.>
 9:06:17   Error Missing ;
 9:06:17 File z\addons\dayz_server\DZMS\DZMSConfig.sqf, line 94
 
Here's my blacklist:
 
DZMSBlacklistZones = [
[8246.3184,15485.867,0],300],
[15506.952,13229.368,0],300],
[12399.751,5074.5273,0],300],
[10398.626,8279.4619,0],300],
[5149.9814,4864.1191,0],300],
[2122.7954,7807.9878,0],300],
[5379.0342,16103.187,0],300],
[6772.8877,16983.27,0],300],
[16839.973,5264.0566,0],300],
[15128.379,16421.879,0],300],
[16857.543,1,0],300]
];
Line 94 is this:
 
[15506.952,13229.368,0],300],
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
×
×
  • Create New...