Anonymous | Login | 2024-11-21 13:05 CET |
My View | View Issues | Change Log | Roadmap | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
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 | ||||||||
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"); | ||||||||
Tags | No tags attached. | ||||||||
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? | |||||||||
Attached Files | |||||||||
Relationships | ||||||
|
Notes | |
(0004168) reyhard (administrator) 2016-03-31 17:24 |
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? |
(0004169) ruPaladin (reporter) 2016-03-31 17:30 |
Isn't hint str inheritsFrom (configfile >> "CfgVehicles" >> "rhs_SPG9_base" >> "Turrets"); should give "AT_01_base_F" instead of "StaticMGWeapon"? |
(0004170) reyhard (administrator) 2016-03-31 17:34 |
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 (reporter) 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. |
(0004173) reyhard (administrator) 2016-04-01 17:41 |
i have no idea what it might causing it. if you have any suggestion then feel free to post it |
(0004175) ruPaladin (reporter) 2016-04-01 22:09 |
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. |
Issue History | |||
Date Modified | Username | Field | Change |
2016-03-31 17:05 | ruPaladin | New Issue | |
2016-03-31 17:05 | ruPaladin | Description Updated | View Revisions |
2016-03-31 17:09 | ruPaladin | Description Updated | View Revisions |
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 | View Revisions |
2016-03-31 17:56 | ruPaladin | Note Edited: 0004171 | View Revisions |
2016-03-31 18:11 | ruPaladin | Relationship added | related to 0001662 |
2016-03-31 18:47 | ruPaladin | Note Edited: 0004171 | View Revisions |
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 |
Copyright © 2000 - 2024 MantisBT Team |