Forum Jump :

Author Message

izT-  



Posts: 1
Rank:


Level: Member

Country: dk
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2018-07-05 09:58        
     
here is what my logs say

11:44:31 Error in expression <missionsFolder, _x select 0];
} forEach _missionsArray;
>
11:44:31 Error position: <_missionsArray;
>
11:44:31 Error Undefined variable in expression: _missionsarray
11:44:31 File mpmissions\__cur_mp.Malden\server\missions\factoryMethods\attemptCompileMissions.sqf, line 15
11:44:31 Error in expression < %1, expected %2, on index %3, in %4", [_par] call _fnc_getTypeName, [_x] call _>
11:44:31 Error position: <_par] call _fnc_getTypeName, [_x] call _>
11:44:31 Error Undefined variable in expression: _par
11:44:31 File A3\functions_f\Debug\fn_errorParamsType.sqf [BIS_fnc_errorParamsType], line 146
11:44:31 Error in expression <extMission"} do
{
_availableMissions = [MainMissions, { !(_x select 2) }] call B>
11:44:31 Error position: <MainMissions, { !(_x select 2) }] call B>
11:44:31 Error Undefined variable in expression: mainmissions
11:44:31 File mpmissions\__cur_mp.Malden\server\missions\missionController.sqf, line 33
11:44:31 Error in expression <x];

_missionsFolder = "mainMissions";
[MainMissions, "mainMissions"] call attem>
11:44:31 Error position: <MainMissions, "mainMissions"] call attem>
11:44:31 Error Undefined variable in expression: mainmissions
11:44:31 File mpmissions\__cur_mp.Malden\server\missions\missionController.sqf, line 23
11:44:36 "WASTELAND SERVER - Started Money Mission Controller"
11:44:36 Error in expression <missionsFolder, _x select 0];
} forEach _missionsArray;
>
11:44:36 Error position: <_missionsArray;
>
11:44:36 Error Undefined variable in expression: _missionsarray
11:44:36 File mpmissions\__cur_mp.Malden\server\missions\factoryMethods\attemptCompileMissions.sqf, line 15
11:44:36 Error in expression < %1, expected %2, on index %3, in %4", [_par] call _fnc_getTypeName, [_x] call _>
11:44:36 Error position: <_par] call _fnc_getTypeName, [_x] call _>
11:44:36 Error Undefined variable in expression: _par
11:44:36 File A3\functions_f\Debug\fn_errorParamsType.sqf [BIS_fnc_errorParamsType], line 146
11:44:36 Error in expression <extMission"} do
{
_availableMissions = [MoneyMissions, { !(_x select 2) }] call >
11:44:36 Error position: <MoneyMissions, { !(_x select 2) }] call >
11:44:36 Error Undefined variable in expression: moneymissions
11:44:36 File mpmissions\__cur_mp.Malden\server\missions\missionController.sqf, line 33
11:44:36 Error in expression <];

_missionsFolder = "moneyMissions";
[MoneyMissions, "moneyMissions"] call att>
11:44:36 Error position: <MoneyMissions, "moneyMissions"] call att>
11:44:36 Error Undefined variable in expression: moneymissions
11:44:36 File mpmissions\__cur_mp.Malden\server\missions\missionController.sqf, line 23

What to doo?

Added 1 minute later:

attemptCompileMission:
// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
// @file Name: attemptCompileMissions.sqf
// @file Author: AgentRev

private ["_missionsArray", "_missionsFolder"];

_missionsArray = _this select 0;
_missionsFolder = _this select 1;

{
//Attempt to compile every mission for early bug detection
compile preprocessFileLineNumbers format ["server\missions\%1\%2.sqf", _missionsFolder, _x select 0];
} forEach _missionsArray;

Added 1 minute later:

missionController:
// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
// @file Name: missionController.sqf
// @file Author: AgentRev

if (!isServer) exitWith {};

private ["_controllerNum", "_tempController", "_controllerSuffix", "_missionsFolder", "_missionDelay", "_availableMissions", "_missionsList", "_nextMission"];

_controllerNum = param [0, 1, [0]];
_tempController = param [1, false, [false]];
_controllerSuffix = "";

if (_controllerNum > 1) then
{
_controllerSuffix = format [" %1", _controllerNum];
};

diag_log format ["WASTELAND SERVER - Started %1 Mission%2 Controller", MISSION_CTRL_TYPE_NAME, _controllerSuffix];

_missionsFolder = MISSION_CTRL_FOLDER;
[MISSION_CTRL_PVAR_LIST, MISSION_CTRL_FOLDER] call attemptCompileMissions;

_missionDelay = MISSION_CTRL_DELAY;

while {true} do
{
_nextMission = nil;

while {isNil "_nextMission"} do
{
_availableMissions = [MISSION_CTRL_PVAR_LIST, { !(_x select 2) }] call BIS_fnc_conditionalSelect;
// _availableMissions = MISSION_CTRL_PVAR_LIST; // If you want to allow multiple missions of the same type running along, uncomment this line and comment the one above

if (count _availableMissions > 0) then
{
_missionsList = _availableMissions call generateMissionWeights;
_nextMission = _missionsList call fn_selectRandomWeighted;
}
else
{
uiSleep 60;
};
};

[MISSION_CTRL_PVAR_LIST, _nextMission, true] call setMissionState;

diag_log format ["WASTELAND SERVER - %1 Mission%2 waiting to run: %3", MISSION_CTRL_TYPE_NAME, _controllerSuffix, _nextMission];

[
format
[
"<t color='%1' shadow='2' size='1.75'>%2 Objective%3</t><br/>" +
"<t color='%1'>------------------------------</t><br/>" +
"<t color='%4' size='1.0'>Starting in %5 minutes</t>",
MISSION_CTRL_COLOR_DEFINE,
MISSION_CTRL_TYPE_NAME,
_controllerSuffix,
subTextColor,
_missionDelay / 60
]
] call hintBroadcast;

uiSleep _missionDelay;

// these should be defined in the mission script
private ["_setupVars", "_setupObjects", "_waitUntilMarkerPos", "_waitUntilExec", "_waitUntilCondition", "_waitUntilSuccessCondition", "_ignoreAiDeaths", "_failedExec", "_successExec"];

[_controllerSuffix] call compile preprocessFileLineNumbers format ["server\missions\%1\%2.sqf", MISSION_CTRL_FOLDER, _nextMission];

[MISSION_CTRL_PVAR_LIST, _nextMission, false] call setMissionState;

if (_tempController) exitWith {};
uiSleep 5;
};