-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating mods will update mods to a version no longer compatible with current Factorio version. #468
Comments
Not sure how this issue can be solved here, maybe adress Wube directly via their forum? |
Was thinking about something like checking the version of the |
This sounds like a good suggestion to me. But, correct me if I'm wrong, the whole mod management is done directly from within factorio, isn't it? And therefore https://forums.factorio.com/viewforum.php?f=6 might be a good place to start a discussion? |
Theres this logic inside this docker image thats responsible for updating the mods. So as far as i can see it isn't related to the actual factorio website / mod management factorio-docker/docker/files/update-mods.sh Lines 1 to 96 in d7e6952
|
Oh, I see now, thanks for pointing this out!
And then the file you mentioned is executed. 🤔 It appears to me, that currently only the major and minor version of factorio is taken into consideration when updating mods.
To get the base dependency
As only that endpoint provides the dependencies: https://wiki.factorio.com/Mod_portal_API#Releases And then use something like this: (Which, for example, provides this output: And that: |
A quickly cobbled together solution (thanks stackoverflow ;) ) for comparing the versions might be something like this (following the parsing of the json from above):
|
Yea, i don't know bash black magic sry can't help with that :D |
@Fank Would you be able to help us out here, on how to implement such a check? |
Maybe @KagurazakaNyaa can provide some good input quicker than me :D |
There is a problem here, if a mod's dependency is indirectly dependent on an incorrect version of base, then we cannot detect this way, such as mod |
However, if you can ensure that each mod includes its dependencies on |
If you are running the stable branch of factorio, and a mod releases a new version that requires an experimental branch of factorio, it will still download and update the mod and therefor disabeling the mod entirely.
Reproduce:
Use the current Factorio Stable Version (1.1.80) with UPDATE_MODS_ON_START flag.
Install Rampant Version 3.3.2
It will then procede to update Rampant to version 3.3.3 which requires Factorio Version >=1.1.81 which is at this point still experimental. And therefor the mod will not load anymore.
The text was updated successfully, but these errors were encountered: