News:

A forum for users of LackeyCCG

Main Menu

[SOLVED]Generating Checksums issue

Started by Tigt, October 10, 2011, 08:33:33 PM

Previous topic - Next topic

Tigt

Hey there! I'm attempting to figure out the autoupdate process, and it's going well except for one snag. The updatelist.txt before /mkupdate is as follows:
tcdtcg 10-10-11
plugins/tcdtcg/plugininfo.txt http://www.pavethemoon.com/tcdtcg/plugininfo.txt 347745
plugins/tcdtcg/formats.txt http://www.pavethemoon.com/tcdtcg/formats.txt -1
plugins/tcdtcg/bot.jpg http://www.pavethemoon.com/tcdtcg/bot.jpg -7200
plugins/tcdtcg/sets/carddata.txt http://www.pavethemoon.com/tcdtcg/carddata.txt 1538091
plugins/tcdtcg/sets/setimages/general/cardback.jpg http://www.pavethemoon.com/tcdtcg/cardback.jpg -4732
plugins/tcdtcg/sets/setimages/general/spawned.jpg http://www.pavethemoon.com/tcdtcg/spawned.jpg -6517
plugins/tcdtcg/images/phase1.jpg http://www.pavethemoon.com/tcdtcg/images/phase1.jpg
plugins/tcdtcg/images/phase2.jpg http://www.pavethemoon.com/tcdtcg/images/phase2.jpg
plugins/tcdtcg/images/phase3.jpg http://www.pavethemoon.com/tcdtcg/images/phase3.jpg
plugins/tcdtcg/images/phase4.jpg http://www.pavethemoon.com/tcdtcg/images/phase4.jpg
plugins/tcdtcg/images/phase5.jpg http://www.pavethemoon.com/tcdtcg/images/phase5.jpg
plugins/tcdtcg/images/phase6.jpg http://www.pavethemoon.com/tcdtcg/images/phase6.jpg
plugins/tcdtcg/packs/packdefinitions.txt http://www.pavethemoon.com/tcdtcg/packs/packdefinitions.txt
plugins/tcdtcg/packs/samplebooster.jpg http://www.pavethemoon.com/tcdtcg/packs/samplebooster.jpg


(I have generated a couple checksums before, so that's what the existing ones are all about.)
I then ran that through /mkupdate, and it keeps appending 0's to a couple of the filenames when looking for them, like below:


The resulting updatelistNEW.txt looks like this:
tcdtcg 10-10-11
plugins/tcdtcg/plugininfo.txt http://www.pavethemoon.com/tcdtcg/plugininfo.txt 347745
plugins/tcdtcg/formats.txt http://www.pavethemoon.com/tcdtcg/formats.txt -1
plugins/tcdtcg/bot.jpg http://www.pavethemoon.com/tcdtcg/bot.jpg -7200
plugins/tcdtcg/sets/carddata.txt http://www.pavethemoon.com/tcdtcg/carddata.txt 1538091
plugins/tcdtcg/sets/setimages/general/cardback.jpg http://www.pavethemoon.com/tcdtcg/cardback.jpg -4732
plugins/tcdtcg/sets/setimages/general/spawned.jpg http://www.pavethemoon.com/tcdtcg/spawned.jpg -6517
plugins/tcdtcg/images/phase1.jpg http://www.pavethemoon.com/tcdtcg/images/phase1.jpg -5841
http://www.pavethemoon.com/tcdtcg/images/phase2.jpg plugins/tcdtcg/images/phase3.jpg 0
plugins/tcdtcg/images/phase4.jpg http://www.pavethemoon.com/tcdtcg/images/phase4.jpg 2298
http://www.pavethemoon.com/tcdtcg/images/phase5.jpg plugins/tcdtcg/images/phase6.jpg 0
plugins/tcdtcg/packs/packdefinitions.txt http://www.pavethemoon.com/tcdtcg/packs/packdefinitions.txt -1


What did I do wrong, and how can I fix it?

Picks-at-Flies

It claims the files aren't where you said they are.  It can't find a  plugins/tcdtcg/images/phase3.jpg file (for instance).

Trevor

#2
From http://lackeyccg.com/tutorialplugin.html#updatelist
QuoteThe next section is the checksummed file list. This section consists of any number of lines, where each line contains 3 parts, each separated by a tab. The first part is the local path the file should be saved to, relative to the Lackey folder. The second part of each line is the URL from which the file is downloaded. The final part of each line of this section is a checksum for that file. A checksum is a single number which sums up the contents of a file and this number should be unique to that file, differentiating this file from all other files. How you get checksums for files is explained later in this section. Before a proper checksum is generated, just include any number as a placeholder checksum.

The problem is you didn't include placeholder checksums for several entries in your input updatelist.txt.

You need to list on each line:
LOCALPATH, a tab, REMOTEURL, a tab, CHECKSUM

If you do not have a valid checksum yet, you must put anything, such as a "-1", for your updatelist.txt to be validly formatted.

And for the future, when you have an error with a file, you should post the actual file, not merely a copy/paste of it's contents. Copy/paste will not necessarily show if you have junk characters in the actual data file itself.

Tigt

Will do. The updatelist.txt is now operating as intended. (The placeholder checksum issue and some tabs were wonk.) Thank you!