rpt error causing lag :(

MikeTheMike

Well-Known Member
Hi, I am running DayZ epoch, and I get the following error in the rpt file, which I believe is the cause of the lag I see once I added Sarge AI. Likely I have missed something, however I have gone over the cleanup file carefully, and don't think so?:


Code:
_npc setVehicleVarname _leadername;
_npc setVariable ["SAR_lead>
 7:15:10   Error position: <_leadername;
_npc setVariable ["SAR_lead>
 7:15:10   Error Undefined variable in expression: _leadername
 7:15:10 File mpmissions\DayZ_Epoch_11.Chernarus\addons\UPSMON\scripts\UPSMON\common\MON_functions.sqf, line 2063
 7:15:10 Cannot use magazine 30Rnd_556x45_Stanag in muzzle BAF_ied_v1_muzzle
 7:15:10 Cannot use magazine 30Rnd_556x45_Stanag in muzzle BAF_ied_v2_muzzle
 7:15:10 Cannot use magazine 1Rnd_HE_M203 in muzzle BAF_ied_v3_muzzle
 7:15:10 Cannot use magazine 1Rnd_HE_M203 in muzzle BAF_ied_v4_muzzle
 7:15:10 Cannot use magazine ItemBandage in muzzle PMC_ied_v2_muzzle
 7:15:14 Error in expression <R_AI_debug;
};
 
_npc setVehicleVarname _leadername;
_npc setVariable ["SAR_lead>
 7:15:14   Error position: <_leadername;
_npc setVariable ["SAR_lead>
 7:15:14   Error Undefined variable in expression: _leadername
 7:15:14 File mpmissions\DayZ_Epoch_11.Chernarus\addons\UPSMON\scripts\UPSMON\common\MON_functions.sqf, line 2063
 7:15:14 Error in expression <R_AI_debug;
};

I have NOT edited any files in the UPSMON directory at all :p

Any ideas anyone?
 
which Arma 2 patch version are you running ? and post your sar_config and your grps_cfg file.

Sarge
 
Hey Sarge :)

Epoch v: 1.0.1.1
Arma Beta v: 103419

SAR config file: http://pastebin.com/PpQMDzda
Grps file: http://pastebin.com/tzuAspxm

Error again today (re-did some stuff to try to fix - still getting rpt spam & lag, although the AI DO spawn!!!)

Code:
9:26:55 Error in expression <R_AI_debug;
};
 
 
_npc setVehicleVarname _leadername;
_npc setVariable ["SAR_lead>
 9:26:55   Error position: <_leadername;
_npc setVariable ["SAR_lead>
 9:26:55   Error Undefined variable in expression: _leadername
 9:26:55 File mpmissions\DayZ_Epoch_11.Chernarus\addons\UPSMON\scripts\UPSMON\common\MON_functions.sqf, line 2063
 9:26:56 Error in expression <KRON_UPS_>
 9:26:56   Error position: <KRON_UPS_>
 9:26:56   Error Undefined variable in expression: kron_ups_
 9:26:56 Error in expression <ormat ["KRON_UPS_%1",_npcname]];};
 
if (_cont==0) then { 
_exit=true;
};
 
if ((_>
 9:26:56   Error position: <_cont==0) then { 
_exit=true;
};
 
if ((_>
 9:26:56   Error Undefined variable in expression: _cont
 9:26:56 File mpmissions\DayZ_Epoch_11.Chernarus\addons\UPSMON\scripts\upsmon.sqf, line 2496
 9:26:59 Cannot use magazine 30Rnd_762x39_AK47 in muzzle BAF_ied_v1_muzzle
 9:26:59 Cannot use magazine 30Rnd_762x39_AK47 in muzzle BAF_ied_v2_muzzle
 9:26:59 Cannot use magazine 30Rnd_762x39_AK47 in muzzle BAF_ied_v3_muzzle
 9:26:59 Cannot use magazine 7Rnd_45ACP_1911 in muzzle BAF_ied_v4_muzzle
 9:26:59 Cannot use magazine ItemBandage in muzzle PMC_ied_v1_muzzle
 9:27:00 Error in expression <R_AI_debug;
};
 
 
_npc setVehicleVarname _leadername;
_npc setVariable ["SAR_lead>
 9:27:00   Error position: <_leadername;
_npc setVariable ["SAR_lead>
 9:27:00   Error Undefined variable in expression: _leadername
 9:27:00 File mpmissions\DayZ_Epoch_11.Chernarus\addons\UPSMON\scripts\UPSMON\common\MON_functions.sqf, line 2063
 9:27:00 Error in expression <R_AI_debug;
};

And it goes on... :D

Any ideas welcome :)

which Arma 2 patch version are you running ? and post your sar_config and your grps_cfg file.

Sarge
 
your names for the areas are wrong. Look at this (as it is in your file):

Code:
// Stary
_this = createMarker ["SAR_marker_trader_stary", [6367.4131, 7768.8262, 0.001];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [10, 10];
SAR_marker_DEBUG_devilscastle = _this;
 
// Black Market
_this = createMarker ["SAR_marker_trader_black_market", [12949.467, 12766.486, 0.001];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [10, 10];
SAR_marker_DEBUG_devilscastle = _this;


it should be:

Code:
// Stary
_this = createMarker ["SAR_marker_trader_stary", [6367.4131, 7768.8262, 0.001];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [10, 10];
SAR_marker_trader_stary = _this;
 
// Black Market
_this = createMarker ["SAR_marker_trader_black_market", [12949.467, 12766.486, 0.001];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [10, 10];
SAR_marker_trader_black_market = _this;

That is one error i found with a quick glance.

next question would be if the m107 is an allowed weapon on epoch, saw you configured it twice in the cfg file.

rest looks ok to me. Are you sure about the patchlevel ? Is that the server or client patchlevel ?

Sarge
 
Hey Sarge :)

Hmmm, I read the beta version from the gametracker banner :S - What's the best way to check?

Re: names, Looking at the two code snippets you put above, I see what you mean! Doh! I used the debug one as a base, and forgot to rename the last one (_this) at the end of each area's config :S

I'll fix those names now, shut server down, wipe rpt file, and restart to see if errors are still there :D

Thanks for your help so far, sorry to be dumb, but what's the best way to check the server's beta?


your names for the areas are wrong. Look at this (as it is in your file):

Code:
// Stary
_this = createMarker ["SAR_marker_trader_stary", [6367.4131, 7768.8262, 0.001];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [10, 10];
SAR_marker_DEBUG_devilscastle = _this;
 
// Black Market
_this = createMarker ["SAR_marker_trader_black_market", [12949.467, 12766.486, 0.001];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [10, 10];
SAR_marker_DEBUG_devilscastle = _this;


it should be:

Code:
// Stary
_this = createMarker ["SAR_marker_trader_stary", [6367.4131, 7768.8262, 0.001];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [10, 10];
SAR_marker_trader_stary = _this;
 
// Black Market
_this = createMarker ["SAR_marker_trader_black_market", [12949.467, 12766.486, 0.001];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [10, 10];
SAR_marker_trader_black_market = _this;

That is one error i found with a quick glance.

next question would be if the m107 is an allowed weapon on epoch, saw you configured it twice in the cfg file.

rest looks ok to me. Are you sure about the patchlevel ? Is that the server or client patchlevel ?

Sarge
 
Hey Sarge :)

Hmmm, I read the beta version from the gametracker banner :S - What's the best way to check?

Re: names, Looking at the two code snippets you put above, I see what you mean! Doh! I used the debug one as a base, and forgot to rename the last one (_this) at the end of each area's config :S

I'll fix those names now, shut server down, wipe rpt file, and restart to see if errors are still there :D

Thanks for your help so far, sorry to be dumb, but what's the best way to check the server's beta?

Oh, and re: m107 - 99% sure it is allowed, as it's in the list of weapons that the traders sell by default :)

I'll check the classname, but pretty sure it's fine
 
Okay Sarge, I fixed those names but now I am getting a LOT of object not found's, and also:

Code:
23:34:21 Server: Object 2:2 not found (message 103)
23:34:21 Server: Object 2:1 not found (message 103)
23:34:21 Server: Object 2:0 not found (message 104)
23:34:23 Error in expression <KRON_UPS_>
23:34:23   Error position: <KRON_UPS_>
23:34:23   Error Undefined variable in expression: kron_ups_
23:34:23 Error in expression <ormat ["KRON_UPS_%1",_npcname]];};
 
if (_cont==0) then { 
_exit=true;
};
 
if ((_>
23:34:23   Error position: <_cont==0) then { 
_exit=true;
};
 
if ((_>
23:34:23   Error Undefined variable in expression: _cont
23:34:23 File mpmissions\__cur_mp.chernarus\addons\UPSMON\scripts\upsmon.sqf, line 2496
23:34:28 Server: Object 2:4631 not found (message 105)
23:34:28 Server: Object 2:4632 not found (message 105)
23:34:28 Server: Object 2:4630 not found (message 70)

Any ideas?
 
Also Sarge, in this code:

Code:
The order for these numbers is[COLOR=#ff0000] always [BANDIT, SURVIVOR, SOLDIER][/COLOR]
 
Lets take an example for Chernarus
 
// Kamenka, 0 bandit groups, 0 soldier groups, 1 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
_check = [["max_grps","rnd_grps","max_p_grp"],[[0,0,1],[0,85,100],[0,4,3]],"SAR_area_0_0"] call SAR_AI_mon_upd; 
  
 [[0,1,2],[0,75,100],[0,4,3]]
 
the first set of numbers : 0,1,2
stands for
0 bandit groups
[COLOR=#ff0000]1 soldier group[/COLOR]
[COLOR=#ff0000]2 surivors groups[/COLOR]
thats the max that can spawn in this grid

Which of the above (in red) is correct?

Thanks :D
 
order is bandit, soldier, survivor. The first line is an ancient typo.

do a restart of your server, and post the full rpt of that restart on dropbox / wherever so i can have a look.

Sarge
 
Hey Sarge,

Sorry for the delayed reply - I'll do this later today and post the rpt to dropbox :D

Another quick question though, I've tuned down the AI spawns a LOT in the Chernarus map config, however a LOT of bandits keep spawning (one of my admins battled 3 groups of 7 bandits one after the other, even though they are set to max 1 group of 2 with a 15min respawn!).

I did note that in the main config file (not in maps folder), I had the max bandits in a group set to 7... in theory, if the main config file is set to max 7, but the town/grid based ones are set to lower, is it still possible that more will spawn, up to the 7 max?

Another possibility is my making a mistake when adding static spawns. I tried to spawn survivors, but maybe something went wrong? - I'm a little confused with which are friendly and which are bandits, as they are different on each section it seems - is that right?

For example:

in SAR_cfg_grps_[map].sqf for dynamic spawning
Code:
the first set of numbers : 0,1,2
stands for x bandit groups, x soldier group, x surivors groups
in SAR_cfg_grps_[map].sqf -- for static spawns
Code:
type_of_group      : 1 = military, 2 = survivors, 3 = bandits
So in dynamic the order is bandits, soldiers, survivors, but in static its military, survivors, bandits - is that right? - Just checking in case I got this wrong :D

I also checked the SAR init file (didn't change anything!) and it says something different again there:

Code:
  // standard grid definition - maxgroups (ba,so,su) - probability (ba,so,su) - max group members (ba,so,su)

Just trying to figure out if I accidentally added static bandits instead of survivors :D

Thanks in advance!

- I'll do a reboot and post the rpt later today! Thanks for being willing to look at this!
 
for dynamic spawning you define an array

[5,3,7] that defines the number of AI groups for each type. (5 bandit groups, 3 soldier groups and 7 survivor groups)

for static spawning you define the type of the group you want to spawn with a parameter.

If you see more groups than you expect, make sure that the grids they are spawning in are covered in cfg_grps_map. If they are not, the default values from SAR_config are taken. Or you null out all values in SAR_config, that has the same effect.

Sarge
 
Back
Top