TechnicSolder
TechnicSolder copied to clipboard
[Suggestion] "Rehash all" button
Hello, I have a suggestion for the technicSolder : why not create a buttton "Rehash all" to rehash all of MD5 checksum of all mods ? I think this is more faster than rehahs one per one each mod
i would like this too. after changing a bunch of configs and updating a bunch of mods in a pack, it becomes a pain to have to manually go and rehash each one
This world be so good
+1
+1
+1
Sorry to resurrect an old post... but was this ever implemented?
Nope, it has not been.
@TheDoctorsLife Are there plans to at some point in the near future?
I'd ask @GenPage
why not create a buttton "Rehash all" to rehash all of MD5 checksum of all mods ? I think this is more faster than rehahs one per one each mod @TheGeekdu74
This feature sadly would be a monstrosity to build due to the fact that server would have to process multiple md5 checksums. This would take a lot of time and would need to be run as a background process which Solder currently does not support.
Even then if you attempt to md5 a remote mod repository versus local files, not only is the memory footprint an issue but the fact you are creating multiple web requests would result in huge bandwidth usage.
Just to poke at this more, I think this would be a great feature for noobs who made the same mistake I did. This should actually be entirely doable - you can run the hashing in sequence and have a long-running process that doesn't timeout in the foreground, and memory should be freed as you go. (I'm actually doing far more massive operations in PHP on StateDecoded processing gigs of data without many problems). Alternatively, you could do this all through a series of Ajax requests with the existing infrastructure. Otherwise you're doing it all manually, which at 60 mods is taking forever.
Here's a quick example using the Ajax method, it's just calling each mod in order. This is built from the dev branch. Takes about 5-10 seconds for my 60+ mods (though with only one version each). https://gist.github.com/krues8dr/1aa0213eb9f097bc49f7