Jump to content

[External program, WIP]Add-on version checker


Recommended Posts

Hello,

I was wondering if a tool exists that reads add-on version numbers from an on-line source somewhere and compares it to the locally installed version number.

If not, I'm interested in starting such a program and would like to know if there's developers willing to support this.

My current thoughts about details:

  • Cross platform. (Python?)
  • Easy to use: Run the program, see which mods are outdated.
  • Centralized location of the version numbers. (github repo of text files?)
  • (Optional) Links to forum thread/spaceport to update.

If such a thing already exists, a link to the thread would be highly appreciated. Perhaps I can help them instead.

Edited by Tyrope
Link to comment
Share on other sites

A good idea. I suppose the only roadblock is keeping an updated, extensive list of mods. Unfortunately, it seems like a fairly fundamental issue with the concept, rather than a technical hurdle.

I guess the problem lies in getting modders to accept and support whatever sort of central database system is created, which may not be easy.

Link to comment
Share on other sites

So from what I gather, and please correct me if I'm wrong:

*) Has been tried before. (success unknown, but since no clear answer, probably not very.)

*) Biggest problem is keeping the database of mods & latest version number.

I guess my course of action then would be contacting the authors of the slightly more known mods and see if/how they would be willing to co-operate with providing version info.

Link to comment
Share on other sites

This is probably a good place to start - http://forum.kerbalspaceprogram.com/threads/55401-Community-Mods-and-Plugins-Library. Basically the manual version of what you are talking about (sorry I couldn't remember it before). I'm pretty sure nismobg manually updates that list as he finds things have changed if no-one tells him

Link to comment
Share on other sites

One option for largely automatic version checking would be to get various mod authors to come up with a standardized way to title their mods on KerbalSpacePort with an easily parsed version number and then standardize a local versioning method (either a version.txt or readme.txt with the version easily parsable). That's a small enough amount of work that I think a lot of developers would be willing to adopt it. Of course, you run into a bit of a chicken and egg thing at the beginning though. But it would alleviate you from having to maintain some sort of current version list.

A good format for titles might be:

[compatible KSP version] Mod Name vMajor.Minor.Optional

You can then pull the version number by matching v[0-9]{3}.[0-9]{3}(.[0-9]{3})? in the web page. (roughly, anyway)

Link to comment
Share on other sites

One option for largely automatic version checking would be to get various mod authors to come up with a standardized way to title their mods on KerbalSpacePort with an easily parsed version number and then standardize a local versioning method (either a version.txt or readme.txt with the version easily parsable). That's a small enough amount of work that I think a lot of developers would be willing to adopt it. Of course, you run into a bit of a chicken and egg thing at the beginning though. But it would alleviate you from having to maintain some sort of current version list.

A good format for titles might be:

[compatible KSP version] Mod Name vMajor.Minor.Optional

You can then pull the version number by matching v[0-9]{3}.[0-9]{3}(.[0-9]{3})? in the web page. (roughly, anyway)

Or maybe the forum thread titles as lots of people dont seem to use spaceport now

Link to comment
Share on other sites

I think I'm going to go ahead with this project and allow mods to have 1 file with the following information in a gamedata/somethinggoeshere/versioninfo file (Syntax is just an idea right now.)


{
"NAME": "Testing",
"URL": "http://example.com/mod_version.txt",
"VERSION": {
"MAJOR": 0,
"MINOR": 0
}
}

http://example.com/mod_version.txt would return the same thing, including the URL tag for verification. This so that people with a github repository or something can simply point to the current released source.

Edited by Tyrope
Link to comment
Share on other sites

Quite a lot of module developers have multiple mods that they install into a single sub-folder of GameData.

e.g. bobcat, rbray, ASET, ThunderAerospace, SDHI (seems to be planning to go that way), TriggerTech.

Requiring a file called gamedata/somethinggoeshere/versioninfo would fail in those cases, since there are multiple mods installed below that level, and each will be versioned independently.

Alternatively, allow any file beneath GameData called arbitrartymodname.version - walk the tree looking for *.version, and parse the name and preferred install folder (if you need it) from within it.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...