A3Antistasi / A3-Antistasi

A3-Antistasi is the new official Antistasi version
https://a3antistasi.enjin.com/
MIT License
78 stars 331 forks source link

Civilian vehicle spawner not functioning when using headless clients on chernarus_summer #195

Open sicsix opened 5 years ago

sicsix commented 5 years ago

Version: 1.4.0.1

Mods: A bunch (not relevant)

Environment: MP dedi.

.rpt attatched? No

have you edited the missionfile?: Some edits

Issue:

Civ vehicles no longer spawn in on 1.4.0.1 when connecting headless clients. When running no HC it works fine.

Headless client server logs show the following:

19:27:26 Error in expression < and (_cuenta < _numVeh) and (_cuenta < _max)} do
{
_p1 = _roads select _cuenta;>
19:27:26   Error position: <_max)} do
{
_p1 = _roads select _cuenta;>
19:27:26   Error Undefined variable in expression: _max
19:27:26 File CREATE\createCIV.sqf [A3A_fnc_createCIV], line 48
19:27:26 a3\characters_f_gamma\heads\glasses\g_aviators.p3d: No geometry and no visual shape
19:27:26 Error in expression <dor] call A3A_fnc_sizeMarker;

_roads = _roads call BIS_fnc_arrayShuffle;

_numV>
19:27:26   Error position: <_roads call BIS_fnc_arrayShuffle;

_numV>
19:27:26   Error Undefined variable in expression: _roads
19:27:26 File CREATE\createCIV.sqf [A3A_fnc_createCIV], line 37
19:27:26 Error in expression <unt _patrolCiudades - 1) and (_cuenta < _max))} do
{

_p1 = _roads select _cuent>
19:27:26   Error position: <_max))} do
{

_p1 = _roads select _cuent>
19:27:26   Error Undefined variable in expression: _max
19:27:26 File CREATE\createCIV.sqf [A3A_fnc_createCIV], line 125
19:27:27 CWeaponSlotsManager::DeleteWeapon: wrong weaponID!
19:27:37 Warn: Shape '???' contains water texture however it does not carry a property "class=pond". Consider creating one to speed up the detection!
19:27:56 Error in expression < and (_cuenta < _numVeh) and (_cuenta < _max)} do
{
_p1 = _roads select _cuenta;>
19:27:56   Error position: <_max)} do
{
_p1 = _roads select _cuenta;>
19:27:56   Error Undefined variable in expression: _max
19:27:56 File CREATE\createCIV.sqf [A3A_fnc_createCIV], line 48
19:27:56 Error in expression <dor] call A3A_fnc_sizeMarker;

_roads = _roads call BIS_fnc_arrayShuffle;

_numV>
19:27:56   Error position: <_roads call BIS_fnc_arrayShuffle;

_numV>
19:27:56   Error Undefined variable in expression: _roads
19:27:56 File CREATE\createCIV.sqf [A3A_fnc_createCIV], line 37
19:27:56 Error in expression <unt _patrolCiudades - 1) and (_cuenta < _max))} do
{

_p1 = _roads select _cuent>
19:27:56   Error position: <_max))} do
{

_p1 = _roads select _cuent>
19:27:56   Error Undefined variable in expression: _max
19:27:56 File CREATE\createCIV.sqf [A3A_fnc_createCIV], line 125
19:28:12 CWeaponSlotsManager::DeleteWeapon: wrong weaponID!
19:28:40 CWeaponSlotsManager::DeleteWeapon: wrong weaponID!
19:28:58 CWeaponSlotsManager::DeleteWeapon: wrong weaponID!
19:29:15 Error in expression < and (_cuenta < _numVeh) and (_cuenta < _max)} do
{
_p1 = _roads select _cuenta;>
19:29:15   Error position: <_max)} do
{
_p1 = _roads select _cuenta;>
19:29:15   Error Undefined variable in expression: _max
19:29:15 File CREATE\createCIV.sqf [A3A_fnc_createCIV], line 48
19:29:15 Error in expression <unt _patrolCiudades - 1) and (_cuenta < _max))} do
{

_p1 = _roads select _cuent>
19:29:15   Error position: <_max))} do
{

_p1 = _roads select _cuent>
19:29:15   Error Undefined variable in expression: _max
19:29:15 File CREATE\createCIV.sqf [A3A_fnc_createCIV], line 125
19:29:15 Error in expression <dor] call A3A_fnc_sizeMarker;

_roads = _roads call BIS_fnc_arrayShuffle;

_numV>
19:29:15   Error position: <_roads call BIS_fnc_arrayShuffle;

_numV>
19:29:15   Error Undefined variable in expression: _roads
19:29:15 File CREATE\createCIV.sqf [A3A_fnc_createCIV], line 37
19:29:19 Loading movesType CfgMovesDog_F
19:29:19 Reading cached action map data
19:29:19 MovesType CfgMovesDog_F load time 12 ms
19:30:12 CWeaponSlotsManager::DeleteWeapon: wrong weaponID!
19:30:49 Error in expression < and (_cuenta < _numVeh) and (_cuenta < _max)} do
{
_p1 = _roads select _cuenta;>
19:30:49   Error position: <_max)} do
{
_p1 = _roads select _cuenta;>
19:30:49   Error Undefined variable in expression: _max
19:30:49 File CREATE\createCIV.sqf [A3A_fnc_createCIV], line 48
19:30:49 Error in expression <unt _patrolCiudades - 1) and (_cuenta < _max))} do
{

_p1 = _roads select _cuent>
19:30:49   Error position: <_max))} do
{

_p1 = _roads select _cuent>
19:30:49   Error Undefined variable in expression: _max
19:30:49 File CREATE\createCIV.sqf [A3A_fnc_createCIV], line 125
19:30:49 Error in expression <dor] call A3A_fnc_sizeMarker;

_roads = _roads call BIS_fnc_arrayShuffle;

_numV>
19:30:49   Error position: <_roads call BIS_fnc_arrayShuffle;

_numV>
19:30:49   Error Undefined variable in expression: _roads
19:30:49 File CREATE\createCIV.sqf [A3A_fnc_createCIV], line 37
newboerg commented 5 years ago

This is interesting, As i am using 1.4.0.1 WITH 3 HCs. And everything works like a charm.

sicsix commented 5 years ago

This is on the WW2 version by the way.

Downloaded a fresh copy from github, cut back to bare minimum mods: "-mod=@IFA3_AIO_LITE;@CUP Terrains - Core;@CUP Terrains - Maps;@CBA_A3"

Issue seems to persist.

sicsix commented 5 years ago

Interestingly there are no problems with headless clients and civilian vehicles spawning in the Altis version of Antistasi.

newboerg commented 5 years ago

Tried it with a MALDEN Port from workshop and got no Vehicles too :-) Which map did you try? Maybe its a problem with map != Altis

sicsix commented 5 years ago

Running chernarus_summer with the built in WW2 version. Thought I was onto something when I found a ; missing at the end of the roadsDBcherna.sqf file but that wasn't it...

sicsix commented 5 years ago

Figured it out, will submit a pull request with the fix tomorrow.

sicsix commented 5 years ago

Pull request #199 has the fix in it.