Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hammer] Dependencies of GameObjects are not uploaded when vmap is published as a map #6839

Open
chrisspieler opened this issue Nov 7, 2024 · 0 comments

Comments

@chrisspieler
Copy link

Describe the bug

When a map in Hammer contains GameObjects whose components reference an asset, that asset is not listed as dependency of the .vmap/.vpk

As an example, let's look at a Hammer map whose GameObject's reference duck and crate models:
Image

These models are not listed in the inspector as dependencies of the .vmap/.vpk:
Image

After uploading the map to sbox.game, the .vmdl and .vmat files for the models within the map are not included in the files of the map package:
https://sbox.game/duccsoft/ducc_room/version/76447

To Reproduce

  1. Open the attached project in the s&box editor
  2. Open maps/ducc_room.scene
  3. See that the map loaded in the Map Instance has a duck and a crate model
  4. Click once on maps/ducc_room.vmap in the Asset Browser
  5. See that under the Dependencies tab of the Inspector, "Is Using" doesn't show the duck or crate models.
  6. Publish maps/ducc_room.vmap
  7. Play the map in-game
  8. See that instead of a duck or a create, you just see a couple ERROR models.

Expected behavior

Assets referenced by the GameObjects in a vmap should:

  1. Be shown as dependencies of the vmap in the Inspector
  2. Be uploaded alongside the map when the map is published

Media/Files

repro.zip

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To triage
Development

No branches or pull requests

1 participant