Jump to content
Sign in to follow this  
J i m b o

[PI] Jimbo's guide to auto-cache download.

Recommended Posts

[B]What are we doing? [/B]Showing you the correct way to setup your auto-cache download.
[B]What is this used for[/B] Well, mostly web clients but it also helps your client download not be 100mb+
[B]Difficulty:[/B]1/10
[B]What you need: [/B]Client, Cache, dropbox account or your own webhost, and prefferably winRar

[B]Part 1: [/B]How to properly zip your cache.

Ok, so just everyone knows, there is a specific way to zip your cache so it unpacks correctly into the C: and it goes like this.

Step 1. Make a new .zip archive

[IMG]http://screensnapr.com/e/i8OtXK.png[/IMG]

Step 2. Highlight all the files in your cache. (NOT JUST THE FOLDER)

It should look like this:

[IMG]http://screensnapr.com/e/KxBTBH.png[/IMG]

Step 3. Drag the folders contents over to your .zip archive you just made. (Make sure it's open.)

[IMG]http://screensnapr.com/e/l2bI2o.png[/IMG]

Step 4. You don't really have to do this but I put my compression mode on best.

[IMG]http://screensnapr.com/e/2PdBDA.png[/IMG]

Step 5. Let all the files you dragged over go into the .zip and then close and name the .zip file to the name of your cache.

[IMG]http://screensnapr.com/e/CwxEfL.png[/IMG]

Congratulations you have just zipped your cache the proper way.

[B]Part 2: [/B]Uploading your cache to a hosting site.

Now there are 2 ways you can do this, the first way being dropbox and the second way is using your own webhost.

[B]Dropbox method:[/B]

Step 1. Go to [URL]http://www.dropbox.com[/URL] and make an account if you don't have one.

Step 2. Go to the public folder...

[IMG]http://screensnapr.com/e/buAiWr.png[/IMG]

Step 3. Upload your cache into the public folder.

[IMG]http://screensnapr.com/e/yqWQLH.png[/IMG]

Step 4. Get the public link

[IMG]http://screensnapr.com/e/GHvNzC.png[/IMG]

It should look something like this

[code]http://dl.dropbox.com/u/22768135/My Cache Name Here.zip[/code]

That is the dropbox method.

[B]Your own webhost method.[/B] (May not work with ALL webhosts)

Step 1. Open up your ftp and go to your website. I use [URL="http://download-filezilla-ftp-free.com"]Filezilla[/URL].

[IMG]http://screensnapr.com/e/AXi5Sy.png[/IMG]

Step 2. You don't have to do this but I made a download file so it would look like this [URL]http://yoursitehere.com/download/yourcachenamehere.zip[/URL]

Step 3. Put your cache into your download folder.

[IMG]http://screensnapr.com/e/UVMnu2.png[/IMG]

It should look like this:

[IMG]http://screensnapr.com/e/jFemUn.png[/IMG]

Now you're done adding your cache to your webhost. [URL]http://yoursitehere.com/download/yourcachenamehere.zip[/URL] This link should get you to it unless you have a different directory, but it's pretty straight forward.

[B]Part 3: [/B]Making your client download the cache you want it to download.

Part 1. Open up CacheDownloader.java and look for this:

[code]private String cacheLink =[/code]

You should see something like this:

[code]private String cacheLink = "Link to cache goes here."; // Link to cache[/code]

Put the link to your cache into their.

Save and close the file.

Part 2.

Open up Client.java and look for:

[code]new Update([/code]

You should see something like this:

[code]new Update("Link to Cache here", "MyCacheNameHere.zip", signlink.findcachedir());[/code]

Put the information you want into the appropriate spaces.

Close and save.

Part 3. Compile and you're done! Congratulations you just setup your own auto-cache download.


Let me know if I forgot anything.

Share this post


Link to post
Share on other sites
Great Tut. Thanked

Share this post


Link to post
Share on other sites
[quote name='GE0']Great Tut. Thanked[/QUOTE]

Than you, man.

Share this post


Link to post
Share on other sites
[quote name='antiworth']great[/QUOTE]

Thanks. :)

Share this post


Link to post
Share on other sites
Thanks alot mate, been goggling this for hours.

Share this post


Link to post
Share on other sites
[quote name='godiam']Thanks![/QUOTE]

No problem, glad I could help.

Share this post


Link to post
Share on other sites
I do have a quick question to ask you, if you don't mind. I can download the cache fine but my brother can't, it gets stuck at 14%. Is this a known error or is it just his connection?

Share this post


Link to post
Share on other sites
Sign in to follow this  

×