LackeyCCG

LackeyCCG Forum => Plugins & Plugin Creation Forum => Topic started by: unkarsthug on March 13, 2018, 08:36:17 PM

Title: Help with AutoUpdate
Post by: unkarsthug on March 13, 2018, 08:36:17 PM
I?m working on making a plugin.
I?ve got it working, but when I went to make an auto update file, I keep getting this error when I attempt to test it: Error: updatelist.txt doesn?t define a URL for Core/Core(1).jpg(name of card)

The auto update line that corresponds is
CardImageURLs:
Core\Core(1).jpg              https://www.dropbox.com/s/wgzxyevrbxv667n/Core_%281%29.jpg

What am I doing wrong?
Title: Re: Help with AutoUpdate
Post by: xdarkgeox on March 14, 2018, 07:39:37 AM
Mind posting the link to the autoupdate file that you got, what it seems like is that you trying to implement what is suppose to be a file url into the autoupdate.
Title: Re: Help with AutoUpdate
Post by: unkarsthug on March 14, 2018, 12:19:04 PM
my updatelist.txt:
https://www.dropbox.com/s/b4xlp8d1ixinmsh/updatelist.txt

Title: Re: Help with AutoUpdate
Post by: xdarkgeox on March 14, 2018, 04:23:03 PM
yup it see seems like you are listing CardImageUrls as CardURLFiles, you should have a separate file named CardImageURLs1.txt and list in it what have what you have on the update list then in the the update list you should list it like this.

CardURLFiles:
CardImageURLs1.txt

You are also missing some key components in your update file such as a cardback, a spawned image, and the data file.

If this doesn't work try using a generalurl which has all your pics in a folder link in the update file or just hard code the image in the update file with its checksum.   

CardGeneralURLs:
(folder link)
Title: Re: Help with AutoUpdate
Post by: unkarsthug on March 14, 2018, 05:00:30 PM
I modified it as you suggested, and now it said that it is not a valid list.

(I'm aware I'm missing some things, but I can work on cosmetics when it works.)

Sorry for the trouble.
Title: Re: Help with AutoUpdate
Post by: xdarkgeox on March 14, 2018, 07:54:32 PM
No worries man, if you know how feustrating autoupdate can be sometimes. For me dropbox, dosent work so i would recommend to use another platform for hosting. If you like to know how an autoupdate looks like use my mecha warriors plugin as an example of the things you need https://raw.githubusercontent.com/xdarkgeox/Mecha_Warriors/master/updatelist.txt
Title: Re: Help with AutoUpdate
Post by: unkarsthug on March 18, 2018, 09:42:31 AM
I hate to ask a question that may seem obvious, but how do you upload images to GitHub? Do you just make a repository?
Title: Re: Help with AutoUpdate
Post by: unkarsthug on March 18, 2018, 10:24:26 AM
Or, actually, could you do this with a WordPress site?
Title: Re: Help with AutoUpdate
Post by: xdarkgeox on March 18, 2018, 11:49:56 AM
yeah just make a repository and drag and drop your images or folder to the site. Wordpress i believe is not supported since you need raw links for the images. Another alternative i know of is amazon storage but it can be a hassle to set up.
Title: Re: Help with AutoUpdate
Post by: unkarsthug on March 18, 2018, 06:47:43 PM
Thanks. Got it working.