RHS Feedback - AFRF |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0002035 | AFRF | [All Projects] General | public | 2016-03-31 17:05 | 2016-04-01 22:09 |
|
Reporter | ruPaladin | |
Assigned To | reyhard | |
Priority | none | Severity | minor | Reproducibility | always |
Status | closed | Resolution | won't fix | |
Platform | | OS | | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Is it a wish/request? | No |
RHS version | |
Arma 3 version | 1.56 |
Did you used any other mod when the error occurred? | No |
Which mods? | |
|
Summary | 0002035: SPG9 class inheritance issue |
Description | Connected with: http://feedback.rhsmods.org/view.php?id=1662 [^]
Class rhs_SPG9_base inherited from AT_01_base_F but class Turrets (inside of class rhs_SPG9_base) inherited from class Turrets (inside of class StaticMGWeapon, not AT_01_base_F).
How is this possible?
I have tried to break inheritance with:
class rhs_SPG9_base: StaticMGWeapon { code here };
and that solved the issue in connected ticket. |
Steps To Reproduce | hint str inheritsFrom (configfile >> "CfgVehicles" >> "rhs_SPG9_base" >> "Turrets");
hint str inheritsFrom (configfile >> "CfgVehicles" >> "rhs_SPG9_base"); |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | 0001662 | closed | reyhard | [Question] Static weapons (SPG9 and Metis) with no zoom |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-03-31 17:05 | ruPaladin | New Issue | |
2016-03-31 17:05 | ruPaladin | Description Updated | bug_revision_view_page.php?rev_id=2500#r2500 |
2016-03-31 17:09 | ruPaladin | Description Updated | bug_revision_view_page.php?rev_id=2501#r2501 |
2016-03-31 17:24 | reyhard | Note Added: 0004168 | |
2016-03-31 17:30 | ruPaladin | Note Added: 0004169 | |
2016-03-31 17:34 | reyhard | Note Added: 0004170 | |
2016-03-31 17:46 | ruPaladin | Note Added: 0004171 | |
2016-03-31 17:46 | ruPaladin | Note Edited: 0004171 | bug_revision_view_page.php?bugnote_id=4171#r2503 |
2016-03-31 17:56 | ruPaladin | Note Edited: 0004171 | bug_revision_view_page.php?bugnote_id=4171#r2504 |
2016-03-31 18:11 | ruPaladin | Relationship added | related to 0001662 |
2016-03-31 18:47 | ruPaladin | Note Edited: 0004171 | bug_revision_view_page.php?bugnote_id=4171#r2505 |
2016-04-01 16:51 | ruPaladin | Summary | SPG9 class inheritance (Question) => SPG9 class inheritance issue |
2016-04-01 17:41 | reyhard | Note Added: 0004173 | |
2016-04-01 17:41 | reyhard | Status | new => closed |
2016-04-01 17:42 | reyhard | Assigned To | => reyhard |
2016-04-01 17:42 | reyhard | Resolution | open => won't fix |
2016-04-01 22:09 | ruPaladin | Note Added: 0004175 | |
Notes |
|
|
class AT_01_base_F : StaticMGWeapon {};
I don't call here turret because all data I got is already in StaticMGWeapon? Is it all you wanted to know? |
|
|
|
Isn't
hint str inheritsFrom (configfile >> "CfgVehicles" >> "rhs_SPG9_base" >> "Turrets");
should give "AT_01_base_F" instead of "StaticMGWeapon"? |
|
|
|
no, it shows correct value. class AT_01_base_F : StaticMGWeapon {}; - I only inheirt base value, not turret or thing like that because there is no thing like
class AT_01_base_F : StaticMGWeapon {
class Turrets: Turrets {};
}; |
|
|
(0004171)
|
ruPaladin
|
2016-03-31 17:46
(edited on: 2016-03-31 18:47) |
|
But there is no
class StaticMGWeapon: StaticWeapon {
class Turrets: Turrets {};
};
also.
The inheritance in that file:
class LandVehicle;
class StaticWeapon: LandVehicle
{
class Turrets;
class MainTurret;
};
class StaticMGWeapon: StaticWeapon {};
class AT_01_base_F: StaticMGWeapon {};
class rhs_SPG9_base: AT_01_base_F { code here };
Why it shows "StaticMGWeapon" instead of "StaticWeapon"?
IMO, something strange here. Looks like something breaks inheritance.
|
|
|
|
i have no idea what it might causing it. if you have any suggestion then feel free to post it |
|
|
|
I don't know. But I found that in RDS spg9 inherited from StaticATweapon. I tried it and it worked fine. Just a suggestion to inherit from that class. Btw, the same issue with metis. And it also inherited from AT_01_base_F. |
|