-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
On the topic of self hosted .mrpack drawbacks #3069
Comments
For efficiency of avoiding a redownload it only compares the URL previously provided. My assumption was that you would change the filename at the URL to reflect a change in version. I can have it download the file and check the versionId within the manifest, but that would require a redownload of the whole modpack on every startup. Would that be acceptable? I could also have it save off the last update time and use https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since but not all web servers are compliant with that. |
Perhaps having it redownload the whole thing every time the server is started might even be a preferable option since having to change the url each time on both the server and the container is less than optimal administration wise. Primarily because the user does not restart the server that often(?) and if they do for memory reasons it could be done in off hours. I have an another proposal, adding a |
I have had to provide support for many users with terrible network connectivity, so redownloading is not necessarily a trivial matter. With that said, I like the suggestion to accept an option to request such redownload. I'll give this some more thought. |
That's interesting cause I expected most ppl running it off a VPS like I do but they could also be running a bigger modpack. Do you have any cleaner idea on how to address this instead of changing the url or dropping into a shell and nuking the pack from within the container? That being said, thnx for a quick reply and support, much appreciated <3 |
Those are the only two approaches I can think of for now. Again the expectation in current implementation is that URLs would be formatted like https://example.com/yours-1.5.2.mrpack |
Does the url itself get checked for a semver tho? |
No, it's just checking for any difference. |
I went with the URL method and strangely enough I had issues getting it to detect a different URL too. To be 100% clear, I host my |
Enhancement Type
Improve an existing feature
Describe the enhancement
From what I've noticed (and it could me being blind), there seems to be no clean way of updating a modpack when providing a url to your self hosted .mrpack. I tried bumping the version but it didn't catch on. So far best solution I've found is to jump into the container and remove the existing .mrpack. Preferably the container would check for an existing .mrpack and compare versions and names, if the name+version don't match, redownload the mods.
The text was updated successfully, but these errors were encountered: