Facepunch / garrysmod-issues

Garry's Mod issue tracker
144 stars 56 forks source link

steamworks.DownloadUGC currently not working? #4642

Closed X-Coder closed 4 years ago

X-Coder commented 4 years ago

Hi I tried to run https://wiki.facepunch.com/gmod/game.MountGMA

steamworks.DownloadUGC( 104548572, function( name ) game.MountGMA( name ) end)

But I get the following errors and I'm unable to solve it:

Playable Piano addon: steamworks.DownloadUGC: Failed to read addon file 'S:\Steam\steamapps\workshop\content\4000\104548572\938133153078523127_legacy.bin' for 104548572

With wiremod I get something similar: steamworks.DownloadUGC: Failed to get SteamUGC file for 160250458

I don't have a folder called S:\Steam\steamapps\workshop\content\4000\104548572 because I manually cleared the workshop\content folder a while ago because it was getting to big.

Could this have been the cause for the error? -is there any other file I need to clean to restore steamworks.DownloadUGC to a working state? Or is steamworks.DownloadUGC currently just broken for every one?

robotboy655 commented 4 years ago

I don't have a folder called S:\Steam\steamapps\workshop\content\4000\104548572 because I manually cleared the workshop\content folder a while ago because it was getting to big.

There's your problem. You deleted Steam files and you are now complaining that something doesn't work. Verify your game cache integrity, and DO NOT DELETE FILES OUTSIDE OF THE GAME'S DIRECTORY! (steamapps/GarrysMod/)

X-Coder commented 4 years ago

Instead of pointing fingers at me, please tell me what can be done to clean up the garrysmod steamworks cache folder without corrupting garrysmod steamworks implementation. If it is used as a cache, garrysmod should just redownload the file if its clearly missing in the steamworks cache folder, instead of crapping out with odd errors, so in my view it looks like a bug in your implementation.

The whole S:\Steam\steamapps\workshop\content\4000 was like ~90 GB with old data, the oldest one of 2015. If it's a cache (indirectly) owned by garrysmod, if I'm not allowed to cleanup a cache directory, you are responsible to clean up unused files regulary, so this problem would never happened in first place.

Btw: verifying game cache fixed the wiremod error, but not the piano one. I can live with that for now.

robotboy655 commented 4 years ago

The cache is not handled by Garry's Mod. Old files are being deleted after ~2weeks of not being used (I have tested this myself), if you have files from 2015 it means either it's a subscribed addon, or that file is being used on some server that you are playing on.

X-Coder commented 4 years ago

That could be the case, thank you for your help.