Page MenuHomeFeedback Tracker

hiddenSelectionTextures ignored with 1.60 on some vehicle
Closed, ResolvedPublic

Description

Some vehicles ignore the hiddenSelectionTextures[] entry when overwritten in a mod.

The vehicles I was able to find are:

  • O_Truck_03_xxx_F variants
  • O_APC_Wheeled_02_rcws_F

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Config
Steps To Reproduce
  • Create a new mod
  • Add the following to config.cpp (adjust as needed)
class CfgVehicles {
    // doesn't work anymore (since 1.60)
    class O_Truck_03_ammo_F;
    class mymod_main_myauto: O_Truck_03_ammo_F {
        displayName = "MY AUTO";
        hiddenSelectionsTextures[] = {
            "\mymod_main\textur\booniehat_croc_co.paa",
            "\mymod_main\textur\booniehat_croc_co.paa",
            "\mymod_main\textur\booniehat_croc_co.paa",
            "\mymod_main\textur\booniehat_croc_co.paa"
        };
    };

    // works fine
    class B_MRAP_01_F;
    class mymod_main_myauto2: B_MRAP_01_F {
        displayName = "MY AUTO 2";
        hiddenSelectionsTextures[] = {
            "\mymod_main\textur\booniehat_croc_co.paa",
            "\mymod_main\textur\booniehat_croc_co.paa"
        };
    };
};
  • Build the mod and start it
  • Observe that the new vehicle ignores the new textures

Event Timeline

bux578 created this task.Jun 2 2016, 6:38 AM

Can be closed.
Apparently you now have to overwrite the textureList property.

Setting

textureList[] = {"", 1};

fixed it.

Ref: https://community.bistudio.com/wiki/Vehicle_Customization_(VhC)

Can be closed.

LouMontana closed this task as Resolved.Nov 6 2020, 3:28 PM