Steps to reproduce:
1. Make an installation of the game with attached mods (truncated for size) and save.
2. Start the game, ensure that all mods are disabled. Sync mods with save.
3. Observe that Factory Planner isn't loaded.
4. Sync mods with save again. Note that it offers to download Factory Planner.
5. Observe that Factory Planner still isn't loaded.
I believe, this happens because Factory Planner started requiring flib, which I already have in my mods disabled. The game enables Factory Planner, but doesn't check any dependencies. You can see that the mod is red in the mod manager.
I would have expected the game to enable any required dependencies when enabling mods, same as it happens when you enable a mod manually.
[1.0.0] Mod doesn't sync with save properly if the mod acquired new dependencies
[1.0.0] Mod doesn't sync with save properly if the mod acquired new dependencies
- Attachments
-
- mods.zip
- (601.27 KiB) Downloaded 150 times
-
- seablock.zip
- (5.24 MiB) Downloaded 136 times
Re: [1.0.0] Mod doesn't sync with save properly if the mod acquired new dependencies
I just ran into the same issue and can confirm it.
I may have easier steps to reproduce:
1. Make a new savegame with mod "Picker Dollies" and mod "Factorio Standard Library" enabled.
2. Disable mod "Factorio Standard Library" -> Restart
3. Click sync mods with save on the created savegame.
Notice that mod "Picker Dollies" is listed as "Ready to download", although what it needs is it's dependency, mod "Factorio Standard Library", to be met by activating it.
I may have easier steps to reproduce:
1. Make a new savegame with mod "Picker Dollies" and mod "Factorio Standard Library" enabled.
2. Disable mod "Factorio Standard Library" -> Restart
3. Click sync mods with save on the created savegame.
Notice that mod "Picker Dollies" is listed as "Ready to download", although what it needs is it's dependency, mod "Factorio Standard Library", to be met by activating it.
Re: [1.0.0] Mod doesn't sync with save properly if the mod acquired new dependencies
I know why this happens but "solving" it is one of the biggest annoyances in the downloading mods logic. It basically has to recursively download info about each mod and its dependencies until it stops having more or it recourses back onto an already downloaded mod. If the 2nd happens then the whole thing just blows up and fails.
There's no nice solution to it. Maybe making sync-mods-with-save download the specific version that was in the save to prevent it...
There's no nice solution to it. Maybe making sync-mods-with-save download the specific version that was in the save to prevent it...
If you want to get ahold of me I'm almost always on Discord.
Re: [1.0.0] Mod doesn't sync with save properly if the mod acquired new dependencies
Could this be mitigated by setting a (very low) maximum recursion depth? Like 2 or 3.
Re: [1.0.0] Mod doesn't sync with save properly if the mod acquired new dependencies
i don't see how there's no nice solution to this. surely you're aware that things like Portage for Gentoo Linux have dependency tracking, and that it's considered a solved problem?Rseding91 wrote: Wed Oct 21, 2020 8:16 pm It basically has to recursively download info about each mod and its dependencies until it stops having more or it recourses back onto an already downloaded mod. If the 2nd happens then the whole thing just blows up and fails.
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: [1.0.0] Mod doesn't sync with save properly if the mod acquired new dependencies
That would generally be a benefitial feature.Rseding91 wrote: Wed Oct 21, 2020 8:16 pm Maybe making sync-mods-with-save download the specific version that was in the save
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: [1.0.0] Mod doesn't sync with save properly if the mod acquired new dependencies
I just thought of an issue with this. Some authors absolutely love to delete old versions, so the version may not exist and then you are back to square one.Rseding91 wrote: Wed Oct 21, 2020 8:16 pm Maybe making sync-mods-with-save download the specific version that was in the save to prevent it...
Re: [1.0.0] Mod doesn't sync with save properly if the mod acquired new dependencies
This would be ideal for Sea Block! Would make it much easier to switch back to it after playing with other modsRseding91 wrote: Wed Oct 21, 2020 8:16 pm Maybe making sync-mods-with-save download the specific version that was in the save to prevent it...
Dev for Bob's mods, Angel's mods, Helmod, Sea Block, Circuit Processing, Science Cost Tweaker.
Buy me a coffee
Buy me a coffee