Facepunch / sbox-issues

177 stars 12 forks source link

FileSystem.Data not working #5706

Open SwagAccount opened 5 months ago

SwagAccount commented 5 months ago

Describe the bug

Whenever I try to use any filesystem.data thing it doesn't work at all. It returns no errors and logs return that I place after it. This is a problem unique to my project and I have no clue what could possibly be happening.

I have tried:

The script + project: https://github.com/SwagAccount/Todd_Howard_Simulator/blob/main/code/EntitySaver.cs

To Reproduce

  1. Use filesystem.data function
  2. Watch as nothing happens

Expected behavior

Making directories, creating files and just working.

Media/Files

No response

Additional context

No response

MD485 commented 5 months ago

If I copy the repo it saves fine on my machine. Scene.json That's the file made.

Are you sure you don't have permissions issues for accessing your steam folders? If you make a new project do you have the same issue? If you play any games with the sbox client, not the editor, does the game successfully make new files in sbox/data?

SwagAccount commented 5 months ago

I'm running in administrator mode. Not working with other projects. Yes.

What on earth is happening?

SwagAccount commented 5 months ago

Win 11. 3080 Ryzen 7 5700g 16gb ram.

Maybe windows or my cpu are culprit

SwagAccount commented 5 months ago

E:\SteamLibrary\steamapps\common\sbox\data is my data folder

SwagAccount commented 5 months ago

Found problem. It no longer saves to the drive that sbox is actually in, instead it's always saving to the same path in the ROOT directory

garrynewman commented 5 months ago

So it's saving in C:\SteamLibrary\steamapps\common\sbox\data?

SwagAccount commented 5 months ago

yes

MD485 commented 5 months ago

I tried installing sbox on a different drive and didn't get this issue, is it still happening to you? Have you tried making a new project to see if this issue happens on a fresh project?