Skip to content

Custom editor icons cannot normally be placed within an addon #1838

Description

@fifflesniffle

When adding a custom FGD for an addon I'm working on with its own icon, when specifying the icon file as editor/whatever.vmt, the file would still be missing in Hammer.
I ended up getting it to work by doing ../../p2ce/addons/addon-name/hammer/editor/whatever.vmt, but a dev advised I make an issue. Additionally, $basetexture in the VMT also had to be set to the same thing (minus the .vmt at the end). It works and can be shared to the GitHub Repo and still work for others, but it's honestly not ideal.
I'm like 98% sure that the FGD thing was that Source is just set to assume that the hammer folder will always be in the root game directory, but since addons and AngelScript are both main selling points for Strata, I feel like the engine should look for a hammer/ directory within addons too. I'm not sure why the VMT for an iconsprite is assuming the hammer/ folder is in the root directory though.
A dev advised me to make an issue suggesting to change this, so here I am.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugThis is a problem with something that should be working one way, but isn't.What: HammerHammer-specific issues

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions