LackeyCCG

LackeyCCG Forum => Plugins & Plugin Creation Forum => Topic started by: clutchonline on November 16, 2019, 08:26:46 AM

Title: Why is it so hard to get Autoupdate set up?
Post by: clutchonline on November 16, 2019, 08:26:46 AM
I've been trying for months now to set up Autoupdate on my plugin, to no avail. My users have had to manually update their files.

What I need is a legitimate guide on how this process works. The tutorial on the website seems to completely gloss over the actual autoupdate URL itself, just explaining the updatelist.txt. How will my users update their program?

Let's start at the beginning.


I'm working right now just with the plugininfo.txt before I get going on the other files.

https://github.com/ClutchOnline/Clutch-Baseball

There's my github, where you can see the updatelist.txt and the plugininfo.txt files. My CardGeneralURLs works fine. Please, can someone tell me if this set up is correct, and if so, what do I paste into the Autoupdate box in Lackey to get it to update?


And no, for the time being I can't host my files on a domain, I have to use either github, dropbox, drive, etc. I've already tried dropbox and drive and they seem completely busted for Lackey, so I guess github is the way.


I'm sorry if I come off rude, I'm just really frustrated. The tutorial is very incomplete, and there's very little in the way of information on this forum beyond "host things yourself" and "shoot me a DM".
Title: Re: Why is it so hard to get Autoupdate set up?
Post by: CrazyChucky on November 16, 2019, 08:48:58 AM
The update URL is the URL of the updatelist file. That's it. In your case, it should be https://raw.githubusercontent.com/ClutchOnline/Clutch-Baseball/master/updatelist.txt (https://raw.githubusercontent.com/ClutchOnline/Clutch-Baseball/master/updatelist.txt)

But your updatelist has a problem. It lists the remote URL of the plugininfo file as https://github.com/ClutchOnline/Clutch-Baseball/blob/master/plugininfo.txt (https://github.com/ClutchOnline/Clutch-Baseball/blob/master/plugininfo.txt)
That does not take you to the file itself, it takes you to the web page displaying info about the file. You need the URL of the plain, raw file itself (which you can get by clicking the "raw" button over the file display): https://raw.githubusercontent.com/ClutchOnline/Clutch-Baseball/master/plugininfo.txt (https://raw.githubusercontent.com/ClutchOnline/Clutch-Baseball/master/plugininfo.txt)

Lackey is not a web browser; it's never going to have any way of knowing how to download files from rich web pages. You need to send it directly to plain text files.
Title: Re: Why is it so hard to get Autoupdate set up?
Post by: clutchonline on November 16, 2019, 08:58:35 AM
Interesting, I will try that, thank you!


I'm not very computer savvy (well I mean that's obvious, if any of us were computer savvy we'd be using OCTGN instead haha), I didn't know that.
Title: Re: Why is it so hard to get Autoupdate set up?
Post by: CrazyChucky on November 16, 2019, 09:00:10 AM
Sure, I hope it helps.

Note that this should work for downloading the files via Lackey using the "Install or Update from URL" button. If you want Lackey to actually auto-update?that is, check for updates at launch and download things if they've changed?you will also need checksums and a version.txt file. The process is as follows:
Note also that this means if you change your remote plugin files more than once in the same day, any user who got the first update won't automatically get the second update (unless they go and click "Install or update from URL" themselves).
Title: Re: Why is it so hard to get Autoupdate set up?
Post by: CrazyChucky on November 16, 2019, 09:01:09 AM
Also, huh, I've never heard of OCTGN before. It looks interesting.
Title: Re: Why is it so hard to get Autoupdate set up?
Post by: clutchonline on November 16, 2019, 09:03:30 AM
Nope, when I use that autoupdate link it says "unable to download a valid updatelist.txt."

Also yeah I'm not gonna bother with checksums and all that, I just want the link.
Title: Re: Why is it so hard to get Autoupdate set up?
Post by: clutchonline on November 16, 2019, 09:07:44 AM
Also yeah OCTGN is a great program, it's just a lot harder to set up.
Title: Re: Why is it so hard to get Autoupdate set up?
Post by: CrazyChucky on November 16, 2019, 09:26:10 AM
Okay, I looked at your updatelist file a bit more closely, and there are a few more issues.
Title: Re: Why is it so hard to get Autoupdate set up?
Post by: CrazyChucky on December 22, 2019, 11:48:03 AM
Hey! Just tried out your update URL, glad to see you got it working.

Did you notice you've got a bunch of extra, unlabeled fields at the end of each line? Some cards leave them blank, some repeat the same name over and over again.