Closed Markosz22 closed 2 months ago
Could you merge the current master in your branch? And you could merge this as 0.2.13 in the master, if you want.
Thanks for your contribution. ~Good~ Awesome find.
Sure! I changed the target to master and increased version number.
I would go the next step and add the toggle for the user / the additional information.
<mat-slide-toggle matTooltipClass="tooltip-multiline" [matTooltip]="'Use information from a indexed list. Normal process will be used as an fallback.\n\nThis mod list is updated every hour and could be not in sync with the hub.\n\nUse with caution.'">Use indexed mods</mat-slide-toggle>
Styles style.scss
to display the multiline toolip
.tooltip-multiline {
white-space: pre-line;
}
And this should be saved in the electron store. If you need an example, look at the code for the
app.component -> getCurrentThemeSettings
Hub has this mods.json with many useful information available very quickly: https://hub.sp-tarkov.com/mods.json
I figured it could be used to fetch the last version's direct download link, instead of reading it through a headless browser, which was by far the slowest part of installing/updating mods. It is now near instantaneous.
Workflow:
To avoid users downloading an older version accidentally, we still have to rely on the actual mod hub page, but maybe another extra feature could be added in the future, something like "Use indexed mods" that could skip the entire /files/file/ query and version check and force the installer to use the latest link from mods.json. This would be useful in case the hub is overloaded and stops working - the mod manager could still work with direct links.