You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some launchers allow you to disable installed mods as a way to prevent it from being used and not having to fully remove it. I usually use this if I'm testing things and likely want to return to using the mod after tests. If I was to do this with the image now, it would just redownload the mod that was renamed .jar.disabled.
I was wondering the possibility of supporting this file naming as an alternative to the mod's expected filename? That way the system recognizes that the mood is there and doesn't redownload it.
Specific file download mode, which should probably be enhanced to use same as me.itzg.helpers.http.OutputToDirectoryFetchBuilder#skipExisting(reactor.netty.http.client.HttpClientResponse, java.nio.file.Path)
I'm not sure my need was the same here but somewhat close to this issue's content, I needed to disable mods when downloading a generic pack (GTNH in my case) before applying it, I've done a POC to allow disabling certain mods when downloading generic packs: azunaVT#1
@itzg is this something we'd be interested in having in this repo / image? If we could, that'd be great because I wouldn't have to rely on a locally built image or maintain a fork for my specific need 😄 I seems to work fine with manifest generation / checking. Otherwise, feel free to comment on the POC and let me know if there's any improvements / changes we'd need to get my changes into this repo!
@azunaVT your scenario/solution is not really related, but I appreciate you sharing your enhancement. A PR would be great where I can provide some more precise comments.
Activity
itzg commentedon Nov 9, 2024
That's a great idea. I'll research the code around there but off hand I'm thinking that's quite doable.
itzg commentedon Nov 9, 2024
Implementation notes
Manifest integrity check:
https://github.com/itzg/mc-image-helper/blob/ede488ce5d8e3b90334eb4414228ef8957def448/src/main/java/me/itzg/helpers/files/Manifests.java#L125
To handle "download to directory" mode's file existence check:
https://github.com/itzg/mc-image-helper/blob/0161ae3dd56d221695033f9dc1c999b8019dbc6c/src/main/java/me/itzg/helpers/files/ReactiveFileUtils.java#L33
Specific file download mode, which should probably be enhanced to use same as
me.itzg.helpers.http.OutputToDirectoryFetchBuilder#skipExisting(reactor.netty.http.client.HttpClientResponse, java.nio.file.Path)https://github.com/itzg/mc-image-helper/blob/df3c8e91de06345db06b9a4a87ecf7854af07aaf/src/main/java/me/itzg/helpers/http/SpecificFileFetchBuilder.java#L59
rhullah commentedon Nov 9, 2024
Excellent, thanks for looking into it!
azunaVT commentedon Jan 26, 2025
I'm not sure my need was the same here but somewhat close to this issue's content, I needed to disable mods when downloading a generic pack (GTNH in my case) before applying it, I've done a POC to allow disabling certain mods when downloading generic packs:
azunaVT#1
@itzg is this something we'd be interested in having in this repo / image? If we could, that'd be great because I wouldn't have to rely on a locally built image or maintain a fork for my specific need 😄 I seems to work fine with manifest generation / checking. Otherwise, feel free to comment on the POC and let me know if there's any improvements / changes we'd need to get my changes into this repo!
itzg commentedon Jan 26, 2025
@azunaVT your scenario/solution is not really related, but I appreciate you sharing your enhancement. A PR would be great where I can provide some more precise comments.