Skip to content
Merged
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
14 changes: 12 additions & 2 deletions addons/realisticnames/CfgWeapons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ class Mode_SemiAuto;
class Mode_FullAuto;

class CfgWeapons {
class Rifle_Base_F;
class UGL_F;
#include "CfgWeaponsAttachments.hpp"

// Assault rifles
Expand Down Expand Up @@ -899,7 +901,11 @@ class CfgWeapons {
class arifle_MSBS65_sand_F: arifle_MSBS65_base_sand_F {
displayName = CSTRING(arifle_MSBS65_sand);
};
class arifle_MSBS65_GL_base_F;
class arifle_MSBS65_GL_base_F: arifle_MSBS65_base_F {
class UGL: UGL_F {
displayName = CSTRING(arifle_MSBS65_GL_muzzleGPBO40);
};
};
class arifle_MSBS65_GL_F: arifle_MSBS65_GL_base_F {
displayName = CSTRING(arifle_MSBS65_GL);
};
Expand Down Expand Up @@ -931,7 +937,11 @@ class CfgWeapons {
class arifle_MSBS65_Mark_sand_F: arifle_MSBS65_Mark_base_sand_F {
displayName = CSTRING(arifle_MSBS65_Mark_sand);
};
class arifle_MSBS65_UBS_base_F;
class arifle_MSBS65_UBS_base_F: arifle_MSBS65_base_F {
class UBS_F: Rifle_Base_F {
displayName = CSTRING(arifle_MSBS65_UBS_muzzleSix12);
};
};
class arifle_MSBS65_UBS_F: arifle_MSBS65_UBS_base_F {
displayName = CSTRING(arifle_MSBS65_UBS);
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// [] execVM "z\ace\addons\realisticnames\dev_dumpPylon.sqf";
// [] execVM "z\ace\addons\realisticnames\dev\dumpPylon.sqf";

private _justLog = true;

Expand Down
19 changes: 19 additions & 0 deletions addons/realisticnames/dev/findInherited.inc.sqf
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Causes HEMTT warnings about non-existing stringtable entries. Any way we can turn the warnings off?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed
I wrote this because I thought the problem was with the cfgWeapon variants not the muzzle at first

NVGogglesB_gry_F // about 7 different nvgs
O_NVGoggles_grn_F
ACE_SPIR
class acc_flashlight: ItemCore {
    displayName = CSTRING(flashlight_Name);

class ACE_SPIR: acc_flashlight {
    displayName = "SPIR";

Just because we don't stringtable it
we rename the NVGoggle but don't touch some of recolors
both don't seem like real problems but I'll leave the script if it helps

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// [] execVM "z\ace\addons\realisticnames\dev\findInherited.inc.sqf";

private _weapAndVic =
("(getNumber (_x >> 'scope')) == 2" configClasses (configFile >> "CfgWeapons"))
+ ("(getNumber (_x >> 'scope')) == 2" configClasses (configFile >> "CfgVehicles"));
{
private _name = getTextRaw (_x >> "displayName");
if ((_name select [0, 8]) == "$str_ace") then { continue };
private _config = _x;
while {
private _name = getTextRaw (_config >> "displayName");
if ((_name select [0, 8]) == "$str_ace") exitWith {
diag_log text format [" subvarient with non-ACE name found: %1", configName _x];
systemChat format [" subvarient with non-ACE name found: %1", configName _x];
};
_config = inheritsFrom _config;
_name != ""
} do {};
} forEach _weapAndVic;
6 changes: 6 additions & 0 deletions addons/realisticnames/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3084,6 +3084,9 @@
<Hungarian>MSBS Grot GL (Terepmintás)</Hungarian>
<Ukrainian>MSBS Grot GL (камуфляжний)</Ukrainian>
</Key>
<Key ID="STR_ACE_RealisticNames_arifle_MSBS65_GL_muzzleGPBO40">
<English>GPBO-40</English>
</Key>
<Key ID="STR_ACE_RealisticNames_arifle_MSBS65_GL_sand">
<English>MSBS Grot GL (Sand)</English>
<Czech>MSBS Grot GL (Písková)</Czech>
Expand Down Expand Up @@ -3228,6 +3231,9 @@
<Hungarian>MSBS Grot SG (Terepmintás)</Hungarian>
<Ukrainian>MSBS Grot SG (камуфляжний)</Ukrainian>
</Key>
<Key ID="STR_ACE_RealisticNames_arifle_MSBS65_UBS_muzzleSix12">
<English>SIX-12</English>
</Key>
<Key ID="STR_ACE_RealisticNames_arifle_MSBS65_UBS_sand">
<English>MSBS Grot SG (Sand)</English>
<Czech>MSBS Grot SG (Písková)</Czech>
Expand Down
Loading