Jump to content

Dedicated server deleted under development mod without permission


Gleenus
  • Pending

Hi everyone

Today I was developing an update for one of my mods, and when I opened my dedicated server, the mod as completely erased.
I don't why the dedicated server decided to delete folders, but it has done it

The logs from deleting are:

Caves:  [00:00:03]:  mModsPendingDelete 2379057452 because it is a UGC mod.
Caves:  [00:00:03]: ... File [postinit_clientside.lua]
Caves:  [00:00:03]: ... File [postinit_serverside.lua]
Caves:  [00:00:03]: ... Directory [sound]
Caves:  [00:00:03]: ... Directory [scripts]
Caves:  [00:00:03]: ... File [postinit_shared.lua]
Caves:  [00:00:03]: ... File [modmain.lua]
Caves:  [00:00:03]: ... File [modinfo.lua]
Caves:  [00:00:03]: ... File [tutilsound.fev]
Caves:  [00:00:03]: ... File [tutilsound.fsb]
Caves:  [00:00:03]: DelDirectory [../mods/workshop-2379057452/sound] 0: ok.
Caves:  [00:00:03]: ... Directory [components]
Caves:  [00:00:03]: ... Directory [widgets]
Caves:  [00:00:03]: ... File [tutil.lua]
Caves:  [00:00:03]: DelDirectory [../mods/workshop-2379057452/scripts/components] 0: ok.
Caves:  [00:00:03]: ... File [tutil_hud.lua]
Caves:  [00:00:03]: DelDirectory [../mods/workshop-2379057452/scripts/widgets] 0: ok.
Caves:  [00:00:03]: DelDirectory [../mods/workshop-2379057452/scripts] 0: ok.
Caves:  [00:00:03]: DelDirectory [../mods/workshop-2379057452] 0: ok.


I lost one day of mod coding
more folders being deleted...

Can someone explain why the folder was deleted and the dedicated server just refuse to download the older version from workshop?
No backups are made, since this the moment I was going to test my mod it was erased!


Steps to Reproduce

Open your dedicated server
Watch your files going into the void




User Feedback


All the workshop-<number> directories are game managed directories and have always been under the control of the game to update/remove. The reason you're not seeing the download in the mods folder is because newer UGC mods are managed by Steam itself, and we simply read the downloaded mod from Steam's directories (e.g. Steam\steamapps\workshop\content\322330\...). Unfortunately, working within "workshop named" directories is outside of the intended design, and mod development should happen in plain text named directories instead.

Share this comment


Link to comment
Share on other sites

15 minutes ago, PeterA said:

All the workshop-<number> directories are game managed directories and have always been under the control of the game to update/remove. The reason you're not seeing the download in the mods folder is because newer UGC mods are managed by Steam itself, and we simply read the downloaded mod from Steam's directories (e.g. Steam\steamapps\workshop\content\322330\...). Unfortunately, working within "workshop named" directories is outside of the intended design, and mod development should happen in plain text named directories instead.

I don't get it
Why the folder is deleted instead of moved?

And I'm in a dedicated server, so Steam is not responsible for downloading it I think

Edited by Gleenus

Share this comment


Link to comment
Share on other sites

13 minutes ago, Gleenus said:

And I'm in a dedicated server, so Steam is now responsible for downloading it I think

Yes, indirectly through dedicated_server_mods_setup.lua.

Share this comment


Link to comment
Share on other sites

1 minute ago, PeterA said:

Yes, indirectly through dedicated_server_mods_setup.lua.

But the dedicated mod setup is not downloading the mod
I really dont get it

Share this comment


Link to comment
Share on other sites

Note: My Dedicated server was installed with steamcmd

image.png.f0eeef800f85c9145f13a75cbd5a27ba.png

Mod Id: 2379057452

image.thumb.png.a015be7e566a21f16d42a9b6732f2643.png

image.thumb.png.31450027331c0fcf771aa5b043633d3a.png

All mods are downloaded, but this one, instead of being downloaded, it was deleted
 

Share this comment


Link to comment
Share on other sites

We think we know what's going on with that. If you run the server again without touching /mods it should download properly to the ugc directory. We'll be adding a fix for the original cause of why the ugc version didn't download.

Share this comment


Link to comment
Share on other sites

16 minutes ago, PeterA said:

We think we know what's going on with that. If you run the server again without touching /mods it should download properly to the ugc directory. We'll be adding a fix for the original cause of why the ugc version didn't download.

It didn't, I tried 4 times.

I tried to get the old version from the client side and put along the server mods, but it was deleted
The only way to make it don't be erased is by removing the ServerModSetup line

So I had to download it on the client, place it manually in the server and remove from dedicated_mod_setup

Share this comment


Link to comment
Share on other sites

Can you try remove the version in /mods and send us your server logs after dedicated_mod_setup fails to download it?

  • Thanks 1

Share this comment


Link to comment
Share on other sites

10 minutes ago, PeterA said:

Can you try remove the version in /mods and send us your server logs after dedicated_mod_setup fails to download it?

Ok, now it mysteriously downloaded the files to the UGC mod folder and the "Remove" command is not executed anymore

Thanks for your support

However, I sincerely want to ask:

I didn't updated the server, there is any reason for I can not reproduce what I've said before?
Why it delete the files when its in the mods folder instead to moving it?
And after deleting, it do not tries to download

@edit:
I have forgot the log, here is it
As you can see, its very different than the previous one that I have attached
This one works properly

(The errors in the end happens since this is the version of the mod in the workshop, and its outdated)
server_log.txt

Edited by Gleenus

Share this comment


Link to comment
Share on other sites

It's hard to say without knowing the exact state of your folders when the download wasn't happening. As for why the folder is deleted and not moved, the flow is that an updated version will be downloaded, so we need to remove the existing contents.

 

  • Thanks 3

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...