| Anonymous | Login | 2025-12-08 16:04 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 | ||||||||
| 0002808 | AFRF | [All Projects] General | public | 2016-12-17 19:48 | 2016-12-19 09:47 | ||||||||
| Reporter | Dystopian | ||||||||||||
| Assigned To | PuFu | ||||||||||||
| Priority | none | Severity | minor | Reproducibility | always | ||||||||
| Status | resolved | Resolution | fixed | ||||||||||
| Platform | OS | OS Version | |||||||||||
| Product Version | |||||||||||||
| Target Version | Fixed in Version | ||||||||||||
| Summary | 0002808: 2DP doesn't work with ACE map [patch] | ||||||||||||
| Description | There is a feature in ACE to light on map at night with a flashlight. It works with vanilla acc_flashlight class but doesn't work with rhs_acc_2dpZenit. If you do correct class inheritance it works. In rhs_c_weapons: class acc_flashlight: ItemCore { class ItemInfo: InventoryFlashlightItem_Base_F { class FlashLight; }; }; class rhs_acc_2dpZenit: acc_flashlight { ... class ItemInfo: ItemInfo { ... class FlashLight: FlashLight ... | ||||||||||||
| Steps To Reproduce | http://ace3mod.com/wiki/feature/flashlights.html#turning-the-flashlights-onoff [^] | ||||||||||||
| Tags | No tags attached. | ||||||||||||
| Is it a wish/request? | No | ||||||||||||
| RHS version | |||||||||||||
| Arma 3 version | 1.66 | ||||||||||||
| Did you used any other mod when the error occurred? | Yes | ||||||||||||
| Which mods? | ACE | ||||||||||||
| Attached Files | |||||||||||||
Notes |
|
|
(0005622) PuFu (administrator) 2016-12-18 16:49 |
you cannot have circular inheritance. if it works with acc_flashlight, it should work with rhs_acc_2dpZenit as well since class rhs_acc_2dpZenit : acc_flashlight |
|
(0005624) Dystopian (reporter) 2016-12-18 20:15 |
ACE configs are in Flashlight subclass which you DON'T inherit: class rhs_acc_2dpZenit: acc_flashlight { dlc = "RHS_AFRF"; author = "$STR_RHS_AUTHOR_FULL"; scope = 2; displayName = "$STR_RHS_ACC_2DPZENIT"; descriptionShort = "$STR_RHS_ACC_2DPZENIT_SD"; picture = "\rhsafrf\addons\rhs_weapons2\icons\rhs_2dpZenit_inventory_ca.paa"; model = "\rhsafrf\addons\rhs_weapons2\acc\flashlights\2dpZenit\rhs_2dpZenit.p3d"; class ItemInfo: InventoryFlashLightItem_Base_F { mass = 2; class Pointer{}; class FlashLight { It WOULD work if you DO inherit FlashLight class. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2016-12-17 19:48 | Dystopian | New Issue | |
| 2016-12-18 01:28 | Dystopian | Steps to Reproduce Updated | View Revisions |
| 2016-12-18 01:29 | Dystopian | Steps to Reproduce Updated | View Revisions |
| 2016-12-18 16:49 | PuFu | Note Added: 0005622 | |
| 2016-12-18 16:49 | PuFu | Status | new => closed |
| 2016-12-18 16:49 | PuFu | Assigned To | => PuFu |
| 2016-12-18 16:49 | PuFu | Resolution | open => no change required |
| 2016-12-18 20:15 | Dystopian | Note Added: 0005624 | |
| 2016-12-18 20:15 | Dystopian | Status | closed => new |
| 2016-12-18 20:15 | Dystopian | Resolution | no change required => reopened |
| 2016-12-19 09:46 | PuFu | Status | new => closed |
| 2016-12-19 09:46 | PuFu | Resolution | reopened => fixed |
| 2016-12-19 09:47 | PuFu | Status | closed => resolved |
| Copyright © 2000 - 2025 MantisBT Team |