Facepunch / sbox-issues

176 stars 12 forks source link

UI Textures don't sync when launching a multiplayer instance #6602

Open Remscar opened 2 days ago

Remscar commented 2 days ago

Describe the bug

I have a project with some ui textures in my assets folder, for instance:

Assets/ui/icons/thing.png

I have included this folder in my game resource list, however when I launch a new multiplayer instance from the editor, the UI textures aren't sent to the instance, or at the very least are inaccessible to the razor.

To Reproduce

Create a project. Create a razor panel that has a background image; ie background-image: url(ui/icons/thing.png); Launch the game in editor, you will see the image. Launch a new multiplayer instance, the image is not there.

Expected behavior

Images should sync.

Media/Files

No response

Additional context

No response

bub-bl commented 2 days ago

I think its because you need to publish your gamemode changes on s&box to see updated changes in new multiplayer instance

matekdev commented 2 days ago

I'm assuming they are aware of this, it seems like UI textures are the only assets not being sent automatically to the secondary client though.

Remscar commented 2 days ago

@bub-bl Other assets work fine. As @matekdev said, this only happens for UI textures

bub-bl commented 2 days ago

The issue are happening with .png and .jpg ? Try to see with one of both formats works I think i already see a similare thing with this and only works with .jpg