It appears as the a good first standard is for mod packages on the site should start with the exact name that the ruleset uses for selection.
I believe that CAML casing is a standard for developers in the code, and imo it makes sense to apply that here.
ImprovedHandObs should be the rulename (or at lease the name of the ruleset file. later metadata additions may allow for a Proper "Title" to display in game.
ImprovedHandObs_v1.1.zip could then be the file pack name. What comes after the underscore could be less structured as modders could specify them however they like.
Your function would then only have to look for the most recent ImprovedHandObs* item on the site and DL it?
Yes, that would be a very good start if the ruleset name and the filename were the same up to the first "_". That would solve a lot of problems in the future.
UFO REDUX would have to become UfoRedux_*.zip for filename and UfoRedux in the ruleset.
I think what concerns me is that there is no way enforce this. Is the answer is to build the tool first that has value and maybe everyone will see that adopting a standard is worthwhile?
Overall, it would be a HUGE improvement to implement your simple suggestion over the anarchy that is here right now.
I was looking for ideas on how to make the connections right now at the current state of things. I'm looking into some fuzzy matching algorithms right now. However, that might discourage some standardization. I'll keep working on it.
The other problem I face is determining if my current installation is already at the latest version of the mod that is up on the website. I don't see any "version" information being dropped in the ruleset folders in consistent format (if any and that is up to date - it isn't!).
Example:
FinalModPack ruleset file has odd characters at the beginning then "Release v. 1.0.4" and it's at 1.2.1
Improved_HandOb has quite few lines then "v 1.1" is at 1.1
UFO_Redux_Nightly has "version 0.4.8" and is at 0.5.1.
Versions are also not consistent on the file name
yeah, what quagmire I got myself into ...woohoo!
So what might be better would be FinalModPack_1.2.1.zip with a comment string in the top of the ruleset file "version 1.2.1". I can pull the version off the filename after the "_" and match it against the version string in the ruleset file.
That second step would help tremendously. That would get my script started working more reliably. I won't even get into "folder" structure to ease the installation process.