RHS Feedback - AFRF
View Issue Details
0002808AFRF[All Projects] Generalpublic2016-12-17 19:482016-12-19 09:47
Dystopian 
PuFu 
noneminoralways
resolvedfixed 
 
 
No
1.66
Yes
ACE
0002808: 2DP doesn't work with ACE map [patch]
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
            ...
http://ace3mod.com/wiki/feature/flashlights.html#turning-the-flashlights-onoff [^]
No tags attached.
Issue History
2016-12-17 19:48DystopianNew Issue
2016-12-18 01:28DystopianSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=3692#r3692
2016-12-18 01:29DystopianSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=3693#r3693
2016-12-18 16:49PuFuNote Added: 0005622
2016-12-18 16:49PuFuStatusnew => closed
2016-12-18 16:49PuFuAssigned To => PuFu
2016-12-18 16:49PuFuResolutionopen => no change required
2016-12-18 20:15DystopianNote Added: 0005624
2016-12-18 20:15DystopianStatusclosed => new
2016-12-18 20:15DystopianResolutionno change required => reopened
2016-12-19 09:46PuFuStatusnew => closed
2016-12-19 09:46PuFuResolutionreopened => fixed
2016-12-19 09:47PuFuStatusclosed => resolved

Notes
(0005622)
PuFu   
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   
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.