cybutek

[1.3 & 1.2] KSP-AVC Add-on Version Checker Plugin 1.1.6.2 - MiniAVC - KSP-AVC Online (2016-10-13)

402 posts in this topic

*Face Palm*

I've just uploaded for 0.24.1 to curse... Guess I'm going to have to re-build and re-package.

edit: Just waiting on the version for 0.24.2 to be reviewed and made available on curse.

Yay fun everyone, by now we all know about the .24.2 hotfix update. I guess we have to uninstall all our updated mods and wait for the new updated mods. I might be a poor country man but, all mod makers at least have my heart felt gratitude. I'll drink a beer and toast you all wishing I could buy you all a cold one.

CHEERS to the mod makers

Share this post


Link to post
Share on other sites

Version 1.0.3 is now available!

Updated for KSP version 0.24.2.

Added: Extended logging system that saves to "KSP-AVC.log".

Added: First run checker which will show to indicate a successful install.

Changed: Window is now centred on the screen.

Share this post


Link to post
Share on other sites
Version 1.0.3 is now available!

Updated for KSP version 0.24.2.

Added: Extended logging system that saves to "KSP-AVC.log".

Added: First run checker which will show to indicate a successful install.

Changed: Window is now centred on the screen.

All hail cybutek, fastest mod updater in all of Kerbin space. Two beers to you sir!!!!!!!

Share this post


Link to post
Share on other sites
That's very odd... It has indeed found an out of date addon, so should bring up the popup. Are there no other problems in the log? Could you upload the whole log file somewhere for me to view?

Here is the output log for you. It was ran with avc version 1.0.1 - however i changed the .version file to 1.0.0 to force a update check, didnt get a popup though. https://www.dropbox.com/s/etwi13i1z51n6hm/output_log.txt

I did a quick start then exit to keep the filesize down for ya :P

Edit: Only download i can see in the log is for NEAR, my version is 1.0.1 and URL shows version 1.1.1 is latest :(

Edit2: Updated to latest AVC to give you exetended log, but i cant find it! Did get the "thank you" popup, and was notified that kerbal engineer was out of date though! However only that 1 was reported not any of the others (for sure NEAR and RealChutes have .version files and are out of date.)

Edited by Dale.s

Share this post


Link to post
Share on other sites
Here is the output log for you. It was ran with avc version 1.0.1 - however i changed the .version file to 1.0.0 to force a update check, didnt get a popup though. https://www.dropbox.com/s/etwi13i1z51n6hm/output_log.txt

I did a quick start then exit to keep the filesize down for ya :P

Edit: Only download i can see in the log is for NEAR, my version is 1.0.1 and URL shows version 1.1.1 is latest :(

Edit2: Updated to latest AVC to give you exetended log, but i cant find it! Did get the "thank you" popup, and was notified that kerbal engineer was out of date though! However only that 1 was reported not any of the others (for sure NEAR and RealChutes have .version files and are out of date.)

The extended log file should be in the main KSP directory next to the executable and ksp.log files, but called KSP-AVC.log.

Share this post


Link to post
Share on other sites

Ok, I have worked out why NEAR isn't showing that there is an update. The remote link to the .version file on github isn't a raw.version file but linking to the page with all the HTML rubbish included for formatting. Instead of "github.com" it should be "raw.githubusercontent.com" in the remote url. I would guess that this is a systemic problem that has been overlooked by many mod makers. I'll see about putting a fix in to correct for this kind of mistake.

Share this post


Link to post
Share on other sites

Version 1.0.4 is now available!

Added: Url check to fix problems caused by non-raw github .version files.

Added: Logging system now also saves into the standard ksp log file.

Changed: Extended logging system now saves with the associated '.dll' file.

Share this post


Link to post
Share on other sites

A great little addon. I wish more mods used it!

Share this post


Link to post
Share on other sites
A great little addon. I wish more mods used it!

I wish EVERY mod used it. The sophistication of the current system (bookmark or just keep a tab open for every mod you currently have, check religiously for any updates and continuously cross reference them with your own. Repeat forever.) is just dumb.

Share this post


Link to post
Share on other sites

I've added a request to my sig now, and also any mod I use that I like I make a request in the thread about it. It seems some mod devs just don;t even know it exists.

Share this post


Link to post
Share on other sites
I've added a request to my sig now, and also any mod I use that I like I make a request in the thread about it. It seems some mod devs just don;t even know it exists.

One thing I know that helps is to fork a dev's repo, add a .version file, and submit a pull request. Or if not on somewhere you can do that, get the .version file to them in some other way, I guess. That's how I found out about it. vosechu had submitted a pull request on the Protractor repo (thanks!). When I took it over, I noticed that and pulled it in.

Share this post


Link to post
Share on other sites

I have some technical questions. Could you add additional fields to the .version file or is it a set standard you are using? When you create a version file could you also send it to a repo or catalog of mods?

Basically, do you think it would be possible to merge your efforts with this: http://forum.kerbalspaceprogram.com/threads/85989-Combining-efforts-on-proper-mod-management-framework-tools-platform

Share this post


Link to post
Share on other sites

Did I do something wrong or is your web site not populating the full version number?

From the log file:


[Log 21:53:00.8774596]: GameData\ThunderAerospace\TacLifeSupport\TacLifeSupport.version "NAME" = TAC Life Support
[Log 21:53:00.8774596]: GameData\ThunderAerospace\TacLifeSupport\TacLifeSupport.version "URL" = http://ksp-avc.cybutek.net/version.php?id=9
[Log 21:53:00.8774596]: GameData\ThunderAerospace\TacLifeSupport\TacLifeSupport.version "DOWNLOAD" = https://github.com/taraniselsu/TacLifeSupport/wiki/Download
[Log 21:53:00.8774596]: GameData\ThunderAerospace\TacLifeSupport\TacLifeSupport.version "VERSION" = 0.9.0.1007
[Log 21:53:00.8774596]: GameData\ThunderAerospace\TacLifeSupport\TacLifeSupport.version "KSP_VERSION" = 0.24.2
[Log 21:53:00.8774596]: GameData\ThunderAerospace\TacLifeSupport\TacLifeSupport.version "KSP_VERSION_MIN" is not valid or missing. (optional field)
[Log 21:53:00.8774596]: GameData\ThunderAerospace\TacLifeSupport\TacLifeSupport.version "KSP_VERSION_MAX" is not valid or missing. (optional field)
[Log 21:53:01.2724822]: GameData\ThunderAerospace\TacLifeSupport\TacLifeSupport.version fetched remote version file at http://ksp-avc.cybutek.net/version.php?id=9.
[Log 21:53:01.2724822]: http://ksp-avc.cybutek.net/version.php?id=9 "NAME" = TAC Life Support
[Log 21:53:01.2724822]: http://ksp-avc.cybutek.net/version.php?id=9 "URL" = http://ksp-avc.cybutek.net/version.php?id=9
[Log 21:53:01.2724822]: http://ksp-avc.cybutek.net/version.php?id=9 "DOWNLOAD" = https://github.com/taraniselsu/TacLifeSupport/wiki/Download
[Log 21:53:01.2724822]: http://ksp-avc.cybutek.net/version.php?id=9 "VERSION" = 0.9
[Log 21:53:01.2724822]: http://ksp-avc.cybutek.net/version.php?id=9 "KSP_VERSION" = 0.24.2
[Log 21:53:01.2724822]: http://ksp-avc.cybutek.net/version.php?id=9 "KSP_VERSION_MIN" is not valid or missing. (optional field)
[Log 21:53:01.2724822]: http://ksp-avc.cybutek.net/version.php?id=9 "KSP_VERSION_MAX" is not valid or missing. (optional field)

From http://ksp-avc.cybutek.net/?page=Version&id=9:


{
"NAME": "TAC Life Support",
"URL": "http://ksp-avc.cybutek.net/version.php?id=9",
"DOWNLOAD": "https://github.com/taraniselsu/TacLifeSupport/wiki/Download",
"VERSION": {"MAJOR":0,"MINOR":9,"PATCH":0,"BUILD":9910},
"KSP_VERSION": {"MAJOR":0,"MINOR":24,"PATCH":2}
}

It is not notifying me about the new version because the "installed" version is 0.9.0.1007, and the web site version is 0.9. I would like to at least have the MAJOR.MINOR.PATCH level.

Thank you, by the way, for making this. I saw Tyrope's version but it seemed too Linux centric. I also like that it notifies me when I run the game instead of requiring a separate step.

Another suggestion would be to only download the version files once per day, but it would be confusing for some users to get the warnings some times when running KSP and not others (first time that day vs later times that day). You might need to cache the values if you do that. And make it optional?

Share this post


Link to post
Share on other sites
Did I do something wrong or is your web site not populating the full version number?

The website is working perfectly from looking at the created json. I'm currently working on an update, so this bug wont be in for long :)

I have some technical questions. Could you add additional fields to the .version file or is it a set standard you are using? When you create a version file could you also send it to a repo or catalog of mods?

Basically, do you think it would be possible to merge your efforts with this: http://forum.kerbalspaceprogram.com/threads/85989-Combining-efforts-on-proper-mod-management-framework-tools-platform

The KSP-AVC system already supports getting version files from anywhere on the internet, be it GitHub, your own site or the KSP-AVC Online service. A fair few mods such as FAR and NEAR as examples already host the remote version file on GitHub.

Edit: Also it's not a problem to add in additional fields. DOWNLOAD, KSP_VERSION_MIN and MAX are already additional but optional fields. As long as any new fields remain optional then the sky is the limit in the case of functionality.

Edited by cybutek

Share this post


Link to post
Share on other sites

Version 1.1 is now available!

Complete re-write of the core code.

Added: Replaced LitJson with embeded MiniJson for compatibility and to reduce dependancies.

Added: Better utilisation of multi-threading.

Added: Check progress window which will show whilst processing.

Changed: Remote version file fetching now uses WebRequest instead of Unity's archaic WWW.

Fixed: Version formatting bug where it did not recognise build numbers in certain cases.

Share this post


Link to post
Share on other sites

The 1.1 update made my game crash and it won't start since then.

logs

Share this post


Link to post
Share on other sites
The 1.1 update made my game crash and it won't start since then.

logs

Ok, I've gone through the logs and it appears that KSP-AVC starts and checks the versions fine. All I can then see after that is TweakScale_ModularFuelTanks.dll failing to load. ModStatistics throwing a few errors and the game quietly crashes. I'm going to see if there is any exception handling which I may have missed in KSP-AVC and logging.

Does the game crash still when you remove KSP-AVC? Are you able to do a test without a bizillion mods installed to rule out a conflict?

Share this post


Link to post
Share on other sites
Ok, I've gone through the logs and it appears that KSP-AVC starts and checks the versions fine. All I can then see after that is TweakScale_ModularFuelTanks.dll failing to load. ModStatistics throwing a few errors and the game quietly crashes. I'm going to see if there is any exception handling which I may have missed in KSP-AVC and logging.

Does the game crash still when you remove KSP-AVC? Are you able to do a test without a bizillion mods installed to rule out a conflict?

Without KSP-AVC the game loads just fine…

Share this post


Link to post
Share on other sites

I just tested it, it causes no issues for me in a (almost) stock install.

Share this post


Link to post
Share on other sites
I just tested it, it causes no issues for me in a (almost) stock install.

OK, will check again…

Share this post


Link to post
Share on other sites

Works for me, and it correctly recognized my TACLS "update". Thanks cybutek!

[edit] Feature request: What do you think about sorting the list of mods on the home page?

Edited by TaranisElsu

Share this post


Link to post
Share on other sites
Works for me, and it correctly recognized my TACLS "update". Thanks cybutek!

[edit] Feature request: What do you think about sorting the list of mods on the home page?

I presume you're referring to ksp-avc.cybutek.net. Having sortable columns did cross my mind earlier today, when I thought it best to add in some pagination, as it only shows 10 add-ons at a time. Currently the sorting mechanism is that the last edited add-on gets bumped to the top. The site wasn't necisserily made for browsing, but as a means for developers to easily handle remote version control. The home page list was more about having something to fill the void than anything else when I put that functionality in. There's nothing stopping the site becoming more than what it is though. Thanks for the suggestion. :)

Share this post


Link to post
Share on other sites

I'd previously had installed KSC-AVC 1.0.4. It reported there was a new version, 1.1 available. I downloaded that and installed it. However, KSC-AVC still keeps reporting that it's 1.0.4 and there's a new version 1.1 available.

Share this post


Link to post
Share on other sites
I'd previously had installed KSC-AVC 1.0.4. It reported there was a new version, 1.1 available. I downloaded that and installed it. However, KSC-AVC still keeps reporting that it's 1.0.4 and there's a new version 1.1 available.

Make sure that KSP-AVC.dll and KSP-AVC.version have been overwritten and replaced with the new ones. Try deleting the KSP-AVC folder and then copy the new one over, this will solve any problems which may be caused with the operating system not wanting to overwrite files etc.

Share this post


Link to post
Share on other sites
I'd previously had installed KSC-AVC 1.0.4. It reported there was a new version, 1.1 available. I downloaded that and installed it. However, KSC-AVC still keeps reporting that it's 1.0.4 and there's a new version 1.1 available.

Did you make sure to completely uninstall the last version? It sounds like you have an extra KSP-AVC.version file somewhere...

LOL, ninja'd by cybutek :cool:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now