Asset GUIDs

Started by solwllms 8 posts 710 views

Reply on sbox.game
  1. #1
    solwllms Facepunch 685
    We're giving assets a stable GUID, and moving to use these for references instead of relying on paths. The goal is to let you freely move and rename the assets in your project without breaking existing references. This is a lot like how Unity and Godot do it. 

    As part of this, every asset in your project will now get a .meta file alongside it, e.g. citizen.vmdl.meta. A lot of asset types already had one of these, but now they each carry a per-asset GUID. It's important you include these in your source control. If you don't, everyone on your repo will end up with different GUIDs for the same asset, and that's not what you want. 

    The first part is live now on staging, but doesn't cover everywhere a resource can be referenced yet. The Scene system, Prefabs, and GameResources in general are furthest along. References from Valve's formats (such as .vmaps, .vmdls, .vmats, etc) are still to-do.

    We'll keep expanding support until it's complete. Just don't go restructuring your whole project just yet. 

    As always, if you have any issues, please report them on GitHub. Shout questions here or at me on discord. 

    Cheers x 

  2. #2
    ceitine 865
    sol be like: i'm gonna be awesome and cool
  3. #3
    matt Facepunch 2,045
  4. #4
    Daryl Winters 2,065
    When I close and re-open my project I have +3400 .meta files with GUID re-generating. I though GUID would only be generated once :')

    image.png 93.05 KB
  5. #5
    SuperCoolNinja 1,290
                                                                                                                       https://klipy.com/gifs/sol-fox-3
    image.png 186.57 KB
  6. #6
    LVJohnFreeman 660

    Daryl Winters posted:

    When I close and re-open my project I have +3400 .meta files with GUID re-generating. I though GUID would only be generated once :')


    image.png 93.05 KB

    Damn this needs to be looked at, because pushing this all the time is not a realistic ask when working with a team
  7. #7
    Titanovsky 3,958
    yeah
  8. #8
    darkfated 380
     Good