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.
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.