Facepunch / sbox-issues

175 stars 12 forks source link

Downloaded scss files override current project's #5292

Open MrBrax opened 5 months ago

MrBrax commented 5 months ago

Describe the bug

A scss file in .source2/cloud/ will override the one you're working on in your local project regardless of what package it belongs to if it has the same path and name. I think it overrides razor files too.

To Reproduce

  1. Download package that has scss file uploaded
  2. Use the same path and filename in local project
  3. Local file won't be used

Expected behavior

Cloud files should not override anything.

Media/Files

1711617169187

1711616467471

i don't have a menu.razor.scss file, when i remove it from cloud, i get this error:

1711617479330

Additional context

No response

MrBrax commented 1 month ago

i don't believe this is happening anymore

MrBrax commented 1 week ago

this is apparently happening to prefabs and scene files

garrynewman commented 1 week ago

Should be better now?

FlooferLand commented 1 week ago

I've had this issue as well but I haven't been able to reproduce it. Made a thread at #6408 (I will close it when this closes) discussing the issue more thoroughly as I tested it before eventually fixing it.

Removing sbox/.source2/, sbox/download/, and recompiling assets solved it on my end. I think I triggered the bug by dragging assets from one game into another using the OS file manager, and it might require the game the assets originated from having been previously built. Again, guesses