Jump to content

Recommended Posts

Thanks for reporting this guys. Please send me any VEMF related logs because if I can not find the cause, I will not be able to reproduce and fix ;)

I have never experienced this on my own server.

 

EDIT: Teaser :D :D :D

http://i.imgur.com/78jsfEt.jpg

Only logs I got so far on this restart are below. Kinda weird that it spawns a random number of ai from the 3 groups with 5 in them.

13:01:40 "[VEMF] 0.0472a booting... loading config..."
13:01:40 "[VEMF] Config loaded!"
13:01:40 "[VEMF] addonLoader booted!"
13:01:40 "[VEMF] Watchdog booted!"
13:01:40 "[VEMF] missionTimer booted!"
-
13:02:50 "[VEMF] Mission 'Dynamic Town Invasion' started!"
13:02:50 "[VEMF] DTI: Trying to find an empty town..."
13:02:50 "[VEMF] VEMF_fnc_fidnTown DATA: ["Zaros",[9091.81,11961.9,0]]"
13:02:50 "[VEMF] DTI: Zaros has no players! Invading..."
13:03:00 "[VEMF] genWeapons was true, booted!"
-
13:12:47 "[VEMF] DTI: player is nearby! Spawning AI..."
-
13:13:00 "[VEMF] (VEMFDynInv) Waiting for 0/18 Units or Less to be Alive and a Player to be Near the Objective."
-
13:54:10 "[VEMF] WaitMissComp: Waiting Over. VEMFDynInv Completed."
13:54:11 "[VEMF] DynTownInv: Crate Spawned At: [9094.22,11956.4,149.175] / Grid: 090119"
-
Link to comment
Share on other sites

I had mine set at 3 groups of 3 and it spawned 11. 

 

DynamicTownInvasion.sqf says

// We Found a Town with No Players. Let's Invade.
_housePos = [(_town select 1), VEMF_groupCount] call VEMF_fnc_findHouses;
_sqdPos = [];
{
	// 4 Units to a Squad. One Squad Leader.
	if (!(count _x <= 4)) then
	{
		_x resize 4;
		_sqdPos = _sqdPos + _x;
	} else
	{
		_sqdPos = _sqdPos + _x;
	};
	uiSleep 0.05;
} forEach _housePos;

so while _housePos is derived from VEMF_groupCount  the script uses a fixed squad size of 4 instead of honoring VEMF_groupSize.

 

I'm not sure what happens when the nested array _housePos has fewer than 4 valid positions, so in Zed's case, one could indeed get (3 groups = 3 houses) * 4 group members = 12 AI - 1 invalid pos?

Link to comment
Share on other sites

@Ganja: haha I knew someone would mention that xD

My answer to that is: it is another way of making the missions more difficult and more random. Hint: Helicopter, lift.

Lol, you'll notice I never asked for a fix for this   8>). Any Unique challenge is still a challenge.

Link to comment
Share on other sites

I have this Error

 

bPos = _x buildingPos _bNum;
if (str(_bPos) == >
17:20:49   Error position: <_x buildingPos _bNum;
if (str(_bPos) == >
17:20:49   Error Undefined variable in expression: _x
17:20:49 File VEMF\functions_VEMF\fn_findHouses.sqf, line 51
17:20:49 Error in expression <pArr = [];
while { _loop } do
{
_bPos = _x buildingPos _bNum;
if (str(_bPos) == >
17:20:49   Error position: <_x buildingPos _bNum;
if (str(_bPos) == >
17:20:49   Error Undefined variable in expression: _x
17:20:49 File VEMF\functions_VEMF\fn_findHouses.sqf, line 51
17:20:49 Error in expression <pArr = [];
while { _loop } do
{
Link to comment
Share on other sites

 

I have this Error

 

bPos = _x buildingPos _bNum;
if (str(_bPos) == >
17:20:49   Error position: <_x buildingPos _bNum;
if (str(_bPos) == >
17:20:49   Error Undefined variable in expression: _x
17:20:49 File VEMF\functions_VEMF\fn_findHouses.sqf, line 51
17:20:49 Error in expression <pArr = [];
while { _loop } do
{
_bPos = _x buildingPos _bNum;
if (str(_bPos) == >
17:20:49   Error position: <_x buildingPos _bNum;
if (str(_bPos) == >
17:20:49   Error Undefined variable in expression: _x
17:20:49 File VEMF\functions_VEMF\fn_findHouses.sqf, line 51
17:20:49 Error in expression <pArr = [];
while { _loop } do
{

 

 

Are you able to post the city that the AI was spawning in? The error might only be showing in certain villages because the error is random and not always there.

Link to comment
Share on other sites

Urgh something went wrong...

Literally like over 100 just spawned randomly.

Reverting back to old save until fix.

 

 

UPDATE!

Trashed that lagging findHouses function  :) AI will now just spawn normally in a city.

 

 

I also just figured out - that there are some guns from the crates that you cannot sell to the traders. 

I thought it was my trader configuration but I spawned some of the same guns - and they trade.

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
  • Advertisement
×
×
  • Create New...