Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion A3A/addons/core/functions/AI/fn_artySupportFire.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private _ang = if (_strikeType == "barrage") then {_startPos getDir _detail} els
waitUntil { sleep 0.1; !(_piece isNil "A3A_artyFired") or time > _timeout };
if (_piece isNil "A3A_artyFired") exitWith {
private _weaponState = weaponState [_piece, [0]];
Error_2("Arty failed to fire round #%1; order %2; state %3", _r, _this, _weaponState);
Error_3("Arty failed to fire round #%1; order %2; state %3", _r, _this, _weaponState);
};
waitUntil {
sleep 0.1;
Expand Down
2 changes: 1 addition & 1 deletion A3A/addons/core/functions/Base/fn_chooseAttack.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ if (_isCity and sidesX getVariable _targetMrk == teamPlayer) exitWith {
};

if (_targetMrk == "Synd_HQ") exitWith {
Info_2("Starting HQ attack from %1", _originMrk);
Info_1("Starting HQ attack from %1", _originMrk);
[-400, _side, "attack"] call A3A_fnc_addEnemyResources;
bigAttackInProgress = true; publicVariable "bigAttackInProgress";
[_side, _originMrk] spawn A3A_fnc_attackHQ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private _fnc_onAutoGC = {

private _timeSinceLastGC = [[serverTime-A3A_lastGarbageCleanTime] call A3A_fnc_secondsToTimeSpan,0,0,false,2] call A3A_fnc_timeSpan_format;

Debug_2("Garbage Cleaner Tracker has ran a gc as players reached threshold, time since last gc: %1", _timeSinceLastGC);
Debug_1("Garbage Cleaner Tracker has ran a gc as players reached threshold, time since last gc: %1", _timeSinceLastGC);
};

// Noop function just to be safe and to not break the Context Queue format.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (!alive _unit) exitWith {};
private _pool = _unit getVariable ["A3A_resPool", "legacy"];
private _side = _unit getVariable ["originalSide", sideUnknown];
if (_side != Occupants and _side != Invaders) then {
Error_2("Wrong unit had delete handler, side %1, type %2, pool %3", _side, _unit getVariable "UnitType", _pool);
Error_3("Wrong unit had delete handler: side %1 type %2 pool %3", _side, _unit getVariable "UnitType", _pool);
};

//Debug_3("Enemy delete handler called with side %1, type %2, pool %3", _side, _unit getVariable "UnitType", _pool)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private _vehicles = [];
continue;
};
if (_policeCarPos isEqualType [] and {_policeCarPos distance2d _pos < 10}) then {
Debug_1("Spawn of %1 in %2 blocked by police", _class, _spawnKey);
Debug_2("Spawn of %1 in %2 blocked by police", _class, _spawnKey);
continue;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private _vehActions = _garrison get "vehActions";
private _index = _vehActions findIf { _x#0 == _vehID };
if (_index == -1) then {
// Normal error because support might be terminated locally and then externally
Trace_1("Vehicle ID %1 not found in active supports");
Trace_1("Vehicle ID %1 not found in active supports", _vehID);
};
_vehActions deleteAt _index params ["", "_vehicle", "_crewGroup", "_scriptHandle"];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ while {true} do
_nextOp params ["_opType", "_params"];

if (_opType in _updateOps and {_nextOp in A3A_garrisonOps}) then {
Debug_1("Skipping %1 (%2) due to duplicates", _opType, _params);
Debug_2("Skipping %1 (%2) due to duplicates", _opType, _params);
continue;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private _troops = _activeGarrison get "troops";
// No patrols if there are enemy markers nearby (TODO: should be size-dependent?)
private _indexes = markersX inAreaArrayIndexes [markerPos _marker, 300, 300] select { sidesX getVariable markersX#_x != _side };
if (_type != "city" and _indexes isNotEqualTo []) exitWith {
Debug_2("Not spawning patrols for %1 due to enemy sites nearby");
Debug_1("Not spawning patrols for %1 due to enemy sites nearby", _marker);
};

private _numPatrols = call {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if ("_civ" in _marker) exitWith

// Shouldn't trigger now that save is checked
if (_slotNum isEqualType 0 and { _slotNum >= count _places }) then {
Error_1("Slot number above slot count for %1 in %2", _x, _marker);
Error_2("Slot number above slot count for %1 in %2", _x, _marker);
_vehicles deleteAt _forEachIndex;
continue;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ private _supportsBusy = false;

// If all the support vehicles are inactive then we can clear the machine ID
if (!_supportsBusy) then {
Trace_1("Clearing machine ID for %1");
Trace_1("Clearing machine ID for %1", _marker);
A3A_garrisonMachine deleteAt _marker; // clear machine ID
};
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ if !(_vehID in _supportVehicles) then {
// If all support vehicles are ready, and garrison isn't spawned, then we can drop the machine ID
if (spawner getVariable _marker != 2) exitWith {};
if (values _supportVehicles findIf { _x#0 != "ready" } == -1) then {
Trace_1("Clearing machine ID for %1");
Trace_1("Clearing machine ID for %1", _marker);
A3A_garrisonMachine deleteAt _marker; // clear machine ID
};
2 changes: 1 addition & 1 deletion A3A/addons/core/functions/REINF/fn_vehiclePrice.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ private _costs = 0;

if (isNil "_typeX") then
{
Error_1("Vehicle does not exist.");
Error("Vehicle does not exist.");
_costs = 0;
}
else
Expand Down
2 changes: 1 addition & 1 deletion A3A/addons/core/functions/Supports/fn_addSupportTarget.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (_activeSupport isEqualType "") exitWith { Error_1("Support name %1 not in ac

_activeSupport params ["_suppName", "_suppSide", "_suppType", "_center", "_radius", "_suppTarget"];
// Shouldn't really need these checks but whatever
if (_radius == 0 or _suppTarget isNotEqualTo []) exitWith { Error_2("No remaining targets for support %1", _suppName) };
if (_radius == 0 or _suppTarget isNotEqualTo []) exitWith { Error_1("No remaining targets for support %1", _suppName) };

_suppTarget append [_target, _targPos]; // target list may need both
Info_3("Added target %1 (position %2) to support %3", _target, _targPos, _suppName);
Expand Down
15 changes: 9 additions & 6 deletions A3A/addons/core/functions/init/fn_initZones.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -248,17 +248,20 @@ private _fuelStationTypes = getArray (_mapInfo/"fuelStationTypes");
if( _fuelStationTypes isEqualTo [] ) then {_fuelStationTypes = ["Land_FuelStation_Feed_F","Land_fs_feed_F","Land_FuelStation_01_pump_malevil_F","Land_FuelStation_01_pump_F","Land_FuelStation_02_pump_F","Land_FuelStation_03_pump_F","Land_A_FuelStation_Feed","Land_Ind_FuelStation_Feed_EP1","Land_FuelStation_Feed_PMC","Land_Fuelstation","Land_Fuelstation_army","Land_Benzina_schnell","Land_vn_b_prop_fueldrum_01","Land_vn_usaf_fueltank_75_01","Land_vn_fuelstation_feed_f","Land_vn_fuelstation_01_pump_f","Land_vn_fuelstation_02_pump_f"]};
A3A_fuelStationTypes = _fuelStationTypes;
A3A_fuelStations = nearestObjects [[worldSize/2, worldSize/2], _fuelStationTypes, worldSize];
A3A_fuelStations apply {
_mrkFinalFuel = createMarkerLocal [format ["Fuel%1", mapGridPosition _x], position _x];
{
if(A3A_hasACE) then {
[_x, 250] call ace_refuel_fnc_setFuel; // only call on fuels that are not blacklisted and first zone init.
};

private _mrkFinalFuel = format ["Fuel%1", mapGridPosition _x];
if (markerShape _mrkFinalFuel != "") then {continue}; // Might have multiple pumps on same map grid
createMarkerLocal [_mrkFinalFuel, getPosATL _x];
_mrkFinalFuel setMarkerShapeLocal "ICON";
_mrkFinalFuel setMarkerTypeLocal "loc_Fuelstation";
_mrkFinalFuel setMarkerColorLocal "ColorWhite";
_mrkFinalFuel setMarkerTextLocal "Fuel station";
_mrkFinalFuel setMarkerAlpha 0.75;
if(A3A_hasACE) then {
[_x, 250] call ace_refuel_fnc_setFuel; // only call on fuels that are not blacklisted and first zone init.
};
};
} forEach A3A_fuelStations;

// Generate rebel resource multipliers based on the map
private _reqGarrison = 0;
Expand Down
2 changes: 1 addition & 1 deletion A3A/addons/garage/Core/fn_sellVehGRG.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if (!isServer) exitWith {Error("Not server executed")};
if !(_player call HR_GRG_canSell) exitWith {["STR_HR_GRG_Feedback_sellVehicle_comOnly"] remoteExecCall ["HR_GRG_fnc_hint", _player];};
_selectedVehicle params [["_catIndex", -1], ["_vehUID", -1], ["_class", ""]];
if ( (_catIndex isEqualTo -1) || (_vehUID isEqualTo -1) ) exitWith {};
Trace_2("Attempting to sell vehicle at cat: %1 | Vehicle ID: %2 | Classname: %3", _catIndex, _vehUID, _class);
Trace_3("Attempting to sell vehicle at cat: %1 | Vehicle ID: %2 | Classname: %3", _catIndex, _vehUID, _class);

private _refund = [_class] call HR_GRG_getVehicleSellPrice;
if (_refund == 0) exitWith {["STR_HR_GRG_Feedback_sellVehicle_noPrice"] remoteExecCall ["HR_GRG_fnc_hint", _player];};
Expand Down
2 changes: 1 addition & 1 deletion A3A/addons/gui/functions/GUI/fn_buyVehicleDialog.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ switch (_mode) do
};

if (_selectedTabIDC == -1) exitWith {
Error("Attempted to access tab without permission : %1", _selectedTab);
Error_1("Attempted to access tab without permission : %1", _selectedTab);
};

private _allTabs = [
Expand Down
2 changes: 1 addition & 1 deletion A3A/addons/gui/functions/GUI/fn_hqDialog.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ switch (_mode) do

// Log attempt at accessing tab without permission
if (_selectedTabIDC == -1) exitWith {
Error("Attempted to access non-existant tab: %1", _selectedTab);
Error_1("Attempted to access non-existant tab: %1", _selectedTab);
};

// Array of IDCs for all the tabs, including subtabs (like AI & player management)
Expand Down
2 changes: 1 addition & 1 deletion A3A/addons/gui/functions/GUI/fn_mainDialog.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ switch (_mode) do

// Log attempt at accessing tab without permission
if (_selectedTabIDC == -1) exitWith {
Error("Attempted to access tab without permission : %1", _selectedTab);
Error_1("Attempted to access tab without permission : %1", _selectedTab);
};

// Array of IDCs for all the tabs, including subtabs (like AI & player management)
Expand Down
2 changes: 1 addition & 1 deletion A3A/addons/gui/functions/GUI/fn_requestMissionDialog.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ switch (_mode) do
};

// Check param count
if (count _params != 1) exitWith {Error("Invalid parameter count for missionButtonClicked. Got %1, expected 1", count _params)};
if (count _params != 1) exitWith {Error_1("Invalid parameter count for missionButtonClicked. Got %1; expected 1", count _params)};
private _missionType = _params select 0;

// Check if mission type exists
Expand Down
2 changes: 1 addition & 1 deletion A3A/addons/gui/functions/SetupGUI/fn_setupParamsTab.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ FIX_LINE_NUMBERS()

params["_mode", "_params"];

Debug("Params dialog called with mode %1", _mode);
Debug_1("Params dialog called with mode %1", _mode);

// Get display
private _display = findDisplay A3A_IDD_SETUPDIALOG;
Expand Down
4 changes: 2 additions & 2 deletions A3A/addons/gui/functions/gunShop/fn_createGunShopTab.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ switch(_selectedTab) do


if (_selectedTabIDC == -1) ExitWith {
Error("Tried to access a tab, might not exist: %1",_selectedTab);
Error_1("Tried to access a tab that might not exist: %1",_selectedTab);
};
if (_selectedTabCtrl == -1) ExitWith {
Error("Tried to assign a ctrl group, might not exist: %1",_selectedTab);
Error_1("Tried to assign a ctrl group that might not exist: %1",_selectedTab);
};

private _controlsGroup = _display displayCtrl _selectedTabCtrl;
Expand Down
4 changes: 2 additions & 2 deletions A3A/addons/gui/functions/gunShop/fn_gunShop.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ switch (_mode) do
};

if (_selectedTabIDC == -1) ExitWith {
Error("Tried to access a tab, might not exist: %1", _selectedTab);
Error_1("Tried to access a tab that might not exist: %1", _selectedTab);
};

private _allTabs = [
Expand Down Expand Up @@ -127,7 +127,7 @@ switch (_mode) do
};

if (_selectedTabIDC == -1) ExitWith {
Error("Tried to access a tab, might not exist: %1", _selectedTab);
Error_1("Tried to access a tab that might not exist: %1", _selectedTab);
};

private _allTabs = [
Expand Down
2 changes: 1 addition & 1 deletion A3A/addons/tasks/Tasks/fn_city_hostage.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ _task set ["_fnc_getOut", {
_task set ["state", "s_waitForPickup"];
_task set ["interval", 1];

Trace_1("Initial data: %1" _task);
Trace_1("Initial data: %1", _task);

_task set ["s_waitForPickup", {
private _hostage = _this get "_hostage";
Expand Down
2 changes: 1 addition & 1 deletion A3A/addons/tasks/Tasks/fn_city_killcop.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ _task set ["_taskId", _taskId];
_task set ["state", "s_waitForKill"];
_task set ["interval", 1];

Trace_1("Initial data: %1" _task);
Trace_1("Initial data: %1", _task);

_task set ["s_waitForKill", {
private _target = _this get "_target";
Expand Down
2 changes: 1 addition & 1 deletion A3A/addons/tasks/Tasks/fn_city_taxi.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ _task set ["_fnc_getOut", {
_task set ["state", "s_waitForPickup"];
_task set ["interval", 1];

Trace_1("Initial data: %1" _task);
Trace_1("Initial data: %1", _task);

/////////////////////
// State functions //
Expand Down