Page 1 of 1

[0.18.17] Update mods ingame doesn't remove old versions

Posted: Sun Mar 29, 2020 3:20 pm
by steinio
Hi,

if i update mods via the ingame updater, the old mod versions don't get deleted anymore.

Cu, steinio.

Re: [0.18.17] Update mods ingame doesn't remove old versions

Posted: Sun Mar 29, 2020 4:04 pm
by Rseding91
Thanks for the report however yes they do.

If they don't get deleted it means something on your system is keeping locks on them. The game tells the operating system "delete this when you can" when it restarts to finish installing the mod(s).

The only time mods get kept in multiple versions is when you sync-mods-with-server since you require an exact version to join the server and deleting other versions isn't helpful.

Re: [0.18.17] Update mods ingame doesn't remove old versions

Posted: Sun Mar 29, 2020 4:06 pm
by Rseding91
You can see in the log file at the end:
23.737 Error FileUtil.cpp:403: Can't remove D:\SteamLibrary\steamapps\common\Factorio\mods\creative-mod_1.2.0.zip: Falscher Parameter.
Which means the operating system failed the request to delete the file.

Re: [0.18.17] Update mods ingame doesn't remove old versions

Posted: Sun Mar 29, 2020 5:07 pm
by steinio
Rseding91 wrote: Sun Mar 29, 2020 4:06 pm You can see in the log file at the end:
23.737 Error FileUtil.cpp:403: Can't remove D:\SteamLibrary\steamapps\common\Factorio\mods\creative-mod_1.2.0.zip: Falscher Parameter.
Which means the operating system failed the request to delete the file.
Maybe the game itself is locking it as the mod is loaded on startup?

Re: [0.18.17] Update mods ingame doesn't remove old versions

Posted: Sun Mar 29, 2020 9:07 pm
by Rseding91
steinio wrote: Sun Mar 29, 2020 5:07 pm
Rseding91 wrote: Sun Mar 29, 2020 4:06 pm You can see in the log file at the end:
23.737 Error FileUtil.cpp:403: Can't remove D:\SteamLibrary\steamapps\common\Factorio\mods\creative-mod_1.2.0.zip: Falscher Parameter.
Which means the operating system failed the request to delete the file.
Maybe the game itself is locking it as the mod is loaded on startup?
It's not. That logic specifically runs after the games file locks have been released.