TechnicSolder icon indicating copy to clipboard operation
TechnicSolder copied to clipboard

[Suggestion] "Rehash all" button

Open alexvlrt opened this issue 10 years ago • 12 comments

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

alexvlrt avatar Jan 31 '15 12:01 alexvlrt

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

JamiePhonic avatar Feb 01 '15 18:02 JamiePhonic

This world be so good

vlee489 avatar Mar 01 '15 18:03 vlee489

+1

Arzte avatar Mar 02 '15 15:03 Arzte

+1

Flukethoughts avatar Mar 17 '15 18:03 Flukethoughts

+1

ghost avatar Mar 19 '15 10:03 ghost

Sorry to resurrect an old post... but was this ever implemented?

Zoryn4163 avatar Jun 02 '15 00:06 Zoryn4163

Nope, it has not been.

Arzte avatar Jun 02 '15 12:06 Arzte

@TheDoctorsLife Are there plans to at some point in the near future?

Zoryn4163 avatar Jun 03 '15 22:06 Zoryn4163

I'd ask @GenPage

Arzte avatar Jun 11 '15 18:06 Arzte

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.

GenPage avatar Jun 11 '15 22:06 GenPage

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.

krusynth avatar Sep 24 '15 23:09 krusynth

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

krusynth avatar Sep 25 '15 23:09 krusynth