Skip to content

Workbench - Missing and Invisible Components #33

@wickedwalruss

Description

@wickedwalruss

There are a number of components that are missing. In most cases, simply entering the component details into wepcomps.json will solve the issue.

However, there are some 'stock' components such as "COMPONENT_REVOLVER_NAVY_GRIP" (name: 962241027, model: 1408137441) which are supposed to be on the weapon by default that are not - leading to an invisible handle (as well as the barrel) on the model.

The issue exists also for the Elephant Rifle, where most of the DEFAULT objects (only in the crafting bench) are invisible.
I can add these stock component to wepcomps.json to make it a selectable option and get it to apply successfully. However I want these to be on the weapon by default as intended, Sadly I have not solved this problem.
ie. 'COMPONENT_RIFLE_ELEPHANT_BARREL_SHORT' (name: -811893005, model: 102948813) does not show by default in the weapon modifications table. Applying the long barrel works as intended and then any subsequent material changes apply as you would expect.

I am pretty sure that the issue of "stock" components not loading is NOT to do with the wepcomps.json but rather somewhere else - perhaps to do with the SQL querying or native weapons files in RDR2. I note that function 'createobject' details adding the comps to the weapon but it isn't specified or clear what it does when the array for comps is empty ( ie. {} ).
It also looks like it might remove components from the weapon by 'name' before looping over each component and adding the model & name. Then dropping the model if the component had a model number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions