Skip to content

Commit

Permalink
Misc fixes batch 2 (#3110)
Browse files Browse the repository at this point in the history
* initial commit (UNTESTED)

* second major commit (TESTED)

* hotfix by John

* Additional fixes, removed 2585

* Stringtable update (why github)

funny merge conflict

* Update Stringtable.xml

misc new line in stringtable, removed

* fixed patrol arm routine

* Minor updates (localization + john's comment)
  • Loading branch information
Tiny-DM authored Feb 8, 2024
1 parent f24ab7c commit d3ba88a
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 24 deletions.
10 changes: 5 additions & 5 deletions A3A/addons/core/Stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2284,7 +2284,7 @@
<Chinesesimp>弹药补给车队</Chinesesimp>
</Key>
<Key ID="STR_A3A_fn_convoy_craiact_armored_text">
<Original>A convoy from %1 is about to depart at %2. It will reinforce %3 with armored vehicles. Try to intercept it. Steal or destroy the armor before it reaches it's destination.</Original>
<Original>A convoy from %1 is about to depart at %2. It will reinforce %3 with armored vehicles. Try to intercept it. Steal or destroy the armor before it reaches its destination.</Original>
<Italian>Un convoglio da %1 è in procinto di partire alle %2. Rinforzerà %3 con veicoli corazzati. Prova ad intercettarlo. Ruba o distruggi i veicoli prima che raggiungano la destinazione.</Italian>
<Korean>%1에서 온 수송대가 %2에서 출발하려고 하며, 이는 %3의 기갑 차량을 증원할 것입니다. 수송을 방해하여 그것이 목적지에 도달하기 전에 훔치거나 파괴하십시오.</Korean>
<Czech>Konvoj z %1 bude odjíždět v %2. Posílí %3 obrněnými vozidly. Zkus ho zachytit. Ukradni nebo znič náklaďák než dosáhne cíle.</Czech>
Expand Down Expand Up @@ -6321,7 +6321,7 @@
<Chinesesimp>招募AI </Chinesesimp>
</Key>
<Key ID="STR_A3A_fn_reinf_spawnHCGro_atCommand">
<Original>Group %1 at your command.&lt;br/&gt;&lt;br/&gt;Groups are managed from the High Command bar (Default: CTRL+SPACE)&lt;br/&gt;&lt;br/&gt;If the group gets stuck, use the AI Control feature to make them start moving. Mounted Static teams tend to get stuck (solving this is WiP)&lt;br/&gt;&lt;br/&gt;To assign a vehicle for this group, look at some vehicle, and use Vehicle Squad Management option in Y menu.</Original>
<Original>Group %1 at your command.&lt;br/&gt;&lt;br/&gt;Groups are managed from the High Command bar (Default: CTRL+SPACE)&lt;br/&gt;&lt;br/&gt;If the group gets stuck, use the AI Control feature to make them start moving.&lt;br/&gt;&lt;br/&gt;To assign a vehicle for this group, look at a vehicle and use the Add Vehicle option in the Y menu.</Original>
<Italian>Gruppo %1 a rapporto.&lt;br/&gt;&lt;br/&gt;I gruppi sono gestiti dalla barra dell'Alto Comando (Default: CTRL+SPAZIO)&lt;br/&gt;&lt;br/&gt;Se il gruppo rimane bloccato, usa la funzione di Controllo IA per farli muovere. I team di Statiche tendono a bloccarsi (stiamo cercando di risolvere)&lt;br/&gt;&lt;br/&gt;Per assegnare un veicolo a questo gruppo, guarda un veicolo e usa l'opzione Gestione Veicolo di Squadra nel menù Y.</Italian>
<French>Groupe %1 à votre commandement.&lt;br/&gt;&lt;br/&gt;Les Groupes sont gérer depuis la barre HC (Par défaut: CTRL+ESPACE)&lt;br/&gt;&lt;br/&gt;Si le groupe est coincé, utilisez la fonction de Contrôle d'IA afin de les faire bouger. Les équipes d'armes statiques montés ont tendance à se bloquer (la résolution est en cours)&lt;br/&gt;&lt;br/&gt;Pour assigner un véhicule pour ce groupe, regardez un véhicule et utiliser l'option de Gestion de Véhicule d'Escouade dans le menu Y.</French>
<Korean>당신의 명령으로 %1 그룹을 생성하십시오.&lt;br/&gt;&lt;br/&gt;그룹은 하이 커맨드 표시줄(기본값: 컨트롤 + 스페이스 키)에서 관리됩니다.&lt;br/&lt;br/&gt;그룹이 끼었다면 AI 조종 기능을 사용하여 이동을 시작하십시오. 고정화기 탑승 팀은 자주 끼이는 경향이 있습니다 (아직 해결 중).&lt;br/&gt;&lt;br/&gt;그룹에 차량을 할당하려면 이 차량을 보고 Y 메뉴의 차량 분대 관리 옵션을 사용하십시오.</Korean>
Expand Down Expand Up @@ -7470,7 +7470,7 @@
<Chinesesimp>[ACE] 开局拥有可食用物品</Chinesesimp>
</Key>
<Key ID="STR_A3A_Params_allowFuturisticSupports_title">
<Original>Experimental] Allow futuristic supports to be used by the enemy</Original>
<Original>[Experimental] Allow futuristic supports to be used by the enemy</Original>
<Italian>Sperimentale] Permetti al nemico di usare supporti futuristici</Italian>
<Spanish> [Experimental] Permitir al enemigo usar apoyos futuristas</Spanish>
<French>&lt;br/&gt;[Expérimental] Autoriser des supports futuristes pour l'ennemi</French>
Expand Down Expand Up @@ -8798,7 +8798,7 @@
<Korean>%1 세력이 공습을 준비 중</Korean>
</Key>
<Key ID="STR_A3A_fn_support_showIntStpCll_arrivalTime">
<Original>%1. Estimated arrival in %2 minutes.</Original>
<Original>Estimated arrival in %1 minutes.</Original>
</Key>
<Key ID="STR_A3A_fn_support_showIntStpCll_ARTILLERY">
<Original>%1 is preparing a heavy artillery position.</Original>
Expand Down Expand Up @@ -8857,7 +8857,7 @@
<Korean>%1 세력이 지대공미사일 발사기를 준비 중</Korean>
</Key>
<Key ID="STR_A3A_fn_support_showIntStpCll_setupTime">
<Original>%1. Estimated setup: %2 minutes.</Original>
<Original>Estimated setup: %1 minutes.</Original>
</Key>
<Key ID="STR_A3A_fn_support_showIntStpCll_UAV">
<Original>%1 is sending a spotting UAV.</Original>
Expand Down
6 changes: 6 additions & 0 deletions A3A/addons/core/functions/Base/fn_garbageCleaner.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ private _fnc_distCheck = {
if (_rebelSpawners inAreaArray [getPosATL _object, _dist, _dist] isEqualTo []) then { deleteVehicle _object };
};

Debug("Moving dead solders out of vehicles...")
{
if !(isNull objectParent _x) then { moveOut _x };
} forEach allDeadMen;
Debug("Finished moving soldiers out of vehicles; executing garbage clean.")
sleep 0.5;

{ deleteVehicle _x } forEach allDead;
{ deleteVehicle _x } forEach (allMissionObjects "WeaponHolder");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//TODO: add header
private _autoSaveInterval = [false,str (autoSaveInterval/60)] select autoSave;
private _autoSaveInterval = [false,(autoSaveInterval/60)] select autoSave;
_autoSaveInterval = "<t color='#f0d498'>" + str _autoSaveInterval + "</t>";

private _saveString = (localize "STR_A3A_fn_dialogs_createDialog_SLPS_line1") + "<br/><br/>";
Expand Down
2 changes: 1 addition & 1 deletion A3A/addons/core/functions/Missions/fn_DES_Heli.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ while {true} do {
private _heliPool = (_faction get "vehiclesHelisLight") + (_faction get "vehiclesHelisTransport") + (_faction get "vehiclesHelisAttack") + (_faction get "vehiclesHelisLightAttack");
private _typeVehH = selectRandom (_heliPool select {_x isKindOf "Helicopter"});
if (isNil "_typeVehH") exitWith {
["DES"] remoteExecCall ["A3A_fnc_missionRequest",2];
Error("No aircrafts in arrays vehiclesHelisLight, vehiclesHelisTransport or vehiclesHelisAttack. Reselecting DES mission");
["DES"] remoteExec ["A3A_fnc_missionRequest",2];
};
private _isAttackHeli = _typeVehH in ((_faction get "vehiclesHelisAttack") + (_faction get "vehiclesHelisLightAttack"));

Expand Down
2 changes: 1 addition & 1 deletion A3A/addons/core/functions/OrgPlayers/fn_promotePlayer.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ private ["_puntMax","_textX","_multiplier","_newRank","_selectable","_disconnect
_puntMax = 0;
_multiplier = 1;

private _textX = localize "STR_A3A_fn_orgp_promotedPlayers" + ":<br/><br/>";
private _textX = localize "STR_A3A_fn_orgp_promotedPlayers" + "<br/><br/>";

_promoted = false;
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ if(_reveal >= 0.8) then
{
if(toupper _supportType in ["QRFLAND", "QRFAIR", "COUNTERATTACK", "MAJORATTACK"]) then
{
_text = format [localize "STR_A3A_fn_support_showIntStpCll_arrivalTime", _text, _timeStr];
_text = [_text,format[localize "STR_A3A_fn_support_showIntStpCll_arrivalTime",_timeStr]] joinString " ";
}
else
{
_text = format [localize "STR_A3A_fn_support_showIntStpCll_setupTime", _text, _timeStr];
_text = [_text,format[localize "STR_A3A_fn_support_showIntStpCll_setupTime",_timeStr]] joinString " ";
};
};

Expand Down
2 changes: 1 addition & 1 deletion A3A/addons/core/functions/init/fn_resourcecheck.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ while {true} do
_changingX = true;
destroyedSites = destroyedSites - [_x];
_nameX = [_x] call A3A_fnc_localizar;
["TaskSucceeded", ["", format [localize "STR_A3A_fn_init_resourceCheck_rebuilt",_nameX]]] remoteExec ["BIS_fnc_showNotification",[teamPlayer,civilian]];
["TaskSucceeded", ["", format [localize "STR_A3A_fn_base_rebasset_done_1",_nameX]]] remoteExec ["BIS_fnc_showNotification",[teamPlayer,civilian]];
sleep 2;
};
} forEach ((destroyedSites - citiesX) select {sidesX getVariable [_x,sideUnknown] != teamPlayer});
Expand Down
7 changes: 0 additions & 7 deletions A3A/addons/garage/Core/fn_onLoad.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,6 @@ HR_GRG_Cats = [HR_GRG_IDC_CatCar,HR_GRG_IDC_CatArmored,HR_GRG_IDC_CatAir,HR_GRG_
} forEach HR_GRG_Cats;
[0] call HR_GRG_fnc_switchCategory;

if !(call HR_GRG_Cnd_canAccessAir) then {
private _airBttn = _disp displayCtrl HR_GRG_IDC_BttnAir;
_airBttn ctrlEnable false;
_airBttn ctrlSetTextColor [0.7,0,0,1];
_airBttn ctrlSetTooltip localize "STR_HR_GRG_Generic_AirDisabled";
};

//extras list init
if (
!HR_GRG_Pylons_Enabled //Pylon editing disabled
Expand Down
2 changes: 2 additions & 0 deletions A3A/addons/garage/Core/fn_switchCategory.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ private _text = switch _index do {
};
_textCtrl = _disp displayCtrl HR_GRG_IDC_CatText;
_textCtrl ctrlSetStructuredText text _text;

[true] spawn HR_GRG_fnc_toggleConfirmBttn;
11 changes: 10 additions & 1 deletion A3A/addons/garage/Core/fn_toggleConfirmBttn.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,14 @@ private _disp = findDisplay HR_GRG_IDD_Garage;
private _ctrlCnfrm = _disp displayCtrl HR_GRG_IDC_Confirm;
private _ctrlLock = _disp displayCtrl HR_GRG_IDC_tLock;

_ctrlCnfrm ctrlEnable _enable;
_ctrlLock ctrlEnable _enable;
// first checks if the currently selected vehicle or category is air; then, checks if air is accessible, and toggles the button accordingly
if (((HR_GRG_Cats findIf {ctrlShown _x} == 2) || (HR_GRG_SelectedVehicles#0 == 2)) && {!(call HR_GRG_Cnd_canAccessAir)}) then {
_ctrlCnfrm ctrlEnable false;
_ctrlCnfrm ctrlSetTextColor [0.7,0,0,1];
_ctrlCnfrm ctrlSetTooltip localize "STR_HR_GRG_Generic_AirDisabled";
} else {
_ctrlCnfrm ctrlEnable _enable;
_ctrlCnfrm ctrlSetTextColor [1,1,1,1];
_ctrlCnfrm ctrlSetTooltip "";
};
4 changes: 2 additions & 2 deletions A3A/addons/jeroen_arsenal/JNA/fn_arsenal_loadInventory.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -473,11 +473,11 @@ _reportReplaced = "";
{
_nameNew = [_x select 0] call _lookupConfigName;
_nameOld = [_x select 1] call _lookupConfigName;
_reportReplaced = _reportReplaced + _nameOld + localize "STR_A3A_JNA_loadinventory_kept" + _nameNew + "\n";
_reportReplaced = _reportReplaced + _nameOld + localize "STR_A3A_JNA_loadinventory_kept" + "<br/>" + _nameNew + "\n";
} forEach _arrayReplaced;

if!(_reportReplaced isEqualTo "")then{
_reportTotal = (localize "STR_A3A_JNA_loadinventory_notin_kept" + _reportReplaced+"\n");
_reportTotal = (localize "STR_A3A_JNA_loadinventory_notin_kept" + "<br/>" + _reportReplaced +"\n");
};

_reportMissing = "";
Expand Down
4 changes: 2 additions & 2 deletions A3A/addons/jeroen_arsenal/Stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
<Chinesesimp>已经被保存,因为当前缺少</Chinesesimp>
</Key>
<Key ID="STR_A3A_JNA_loadinventory_notin">
<Original>These items were not in the Arsenal:&lt;br/&gt;</Original>
<Original>These items were not in the Arsenal:</Original>
<Italian>Questi oggetti non erano nell'Arsenale:&lt;br/&gt;</Italian>
<Spanish>Estos objetos no estaban en el Arsenal:&lt;br/&gt;</Spanish>
<French>Ces objets n'étaient pas dans l'Arsenal:&lt;br/&gt;</French>
Expand All @@ -237,7 +237,7 @@
<Chinesesimp>这些物品之前并不在武器库内:&lt;br/&gt;</Chinesesimp>
</Key>
<Key ID="STR_A3A_JNA_loadinventory_notin_kept">
<Original>These items were not in the Arsenal, so the originals have been kept:&lt;br/&gt;</Original>
<Original>These items were not in the Arsenal, so the originals have been kept:</Original>
<German>Diese Ausrüstungsgegenstände waren nicht im Arsenl, daher wurden die bereits ausgerüsteten Gegenstände beibehalten:</German>
<Italian>Questi oggetti non erano nell'Arsenale, quindi sono stati mantenuti gli originali:&lt;br/&gt;</Italian>
<Spanish>Estos objetos no estaban en el Arsenal, asi que se mantuvieron los originales:&lt;br/&gt;</Spanish>
Expand Down
7 changes: 6 additions & 1 deletion A3A/addons/patcom/functions/Patcom/fn_patrolArmStatics.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ _staticsNear = _staticsNear select {(crew _x) isequalto []};
// Only get statics which are not current assigned.
_staticsNear = _staticsNear select {(_x getVariable ["PATCOM_STATIC_ASSIGNED", false]) == false};

// Only get statics with no players nearby.
if (side _leader != teamPlayer) then {
_staticsNear = _staticsNear select {allPlayers inAreaArray [getPosATL _x, 50, 50] isEqualTo [];};
};

// Exit if no statics are near.
if (count _staticsNear == 0) exitWith {};

Expand Down Expand Up @@ -72,7 +77,7 @@ if (count _assignedPairs isEqualTo 0) exitWith {};
_x spawn {
params ["_unit", "_static", "_group"];
private _assignedGunner = assignedGunner _static;
if ((isNull _assignedGunner) && ((_static getVariable ["PATCOM_STATIC_ASSIGNED", false]) == false)) then {
if ((isNull _assignedGunner) && {(_static getVariable ["PATCOM_STATIC_ASSIGNED", false]) == false}) then {
[_unit] joinSilent grpnull;
_static setVariable ["PATCOM_STATIC_ASSIGNED", true];
_unit setCombatBehaviour "SAFE";
Expand Down

0 comments on commit d3ba88a

Please sign in to comment.