Custom resource files

Started by Lacartesim 1 post 159 views

Reply on sbox.game
  1. edited Mar 2026 #1
    Lacartesim 165
    Hello!
    So I'm on S&box editor trying to make a game.
    Yesterday it was working percfectly fine and this morning not anymore.

    I made (with gemini's help) this custom recource for a weapon:
    image.png 126.39 KB
    The I was able to make my own little file with all those setting to tweak and make bunch of stat for future weapon, link with a model and name, an icon etc... (sorry for the french commetn and few french word here and there)

    But suddenly this morning I open my project and I can't anymore create those .item or .weapon file I had.
    Also the edito does not recognise them, file exist, but just like a random one not usable.

    Could it be link with the last update? I might have miss a news the patch.
    edited:
    Anyway, I found out I removed an important line :

    https://sbox.game/dev/doc/systems/assetsresources/custom-assets/
    [AssetType( Name = "Clothing Definition", Extension = "clothing", Category = "citizen" )]