Jump to content
  • 0
Sign in to follow this  
madmonkey

autochache downloader problems.

Question

hey i am trying to put my auto downloader working and somehow i do something wrong, dunno what.

what i did,

maked a .zip file (and putted the stuff what is already in my cache map into that .zip file i did not added the map itself since that won't work i know that :P )

uploaded that to dropbox and did "link" now i got a link on adressbar [url]https://www.dropbox.com/s/koczc1dx52bpa6u/Servername.zip?dl=0[/url] ( i think that i mess something up in dropbox...)

step 2. i did.

I did go to my client and found the map Configation.java.

[CODE]public static final String CACHE_LINK = "https://www.dropbox.com/s/koczc1dx52bpa6u/Servername.zip?dl=0";//Cache link.[/CODE]
[CODE]public static final String LOYALTY_PATH = "user.home/Servername/";//Cache path[/CODE]
[CODE]public static final String CACHE_PATH = "user.home";//Cache path.[/CODE]
[CODE]public static final String CACHE_NAME = "Servername";//Cache Name.[/CODE]

(i did chance the real name of the server into "ServerName" else it will be adverting since i want to put this server online someday. (i can code "okay" but never did understand how to added a auto downloader for the cache.

YES i did compile the server and no errors where found. and when i use the cache that whas in the package i got and put it into "C:/home/users. it works fine. (but the auto download doesn't work somehow.)

anyone who can help please help me.

Yes i got skype so contact on skype is passible.

Ps, sorry for my bad english.

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0
Can you post the whole class for the cache downloader?

Share this post


Link to post
Share on other sites
  • 0
[CODE]import java.io.*;
import sign.*;
import sign.signlink;
/*
*-----------------------------------
************************************
*@Author Remco - Divine Syndicate
* www.Divine-Syndicate.nl
************************************
*-----------------------------------
*/

public class Configuration {

/*
*Standard client information.
*/
public static final String CLIENT_VERSION = "2.0";
public static final String CLIENT_IP = "localhost";//127.0.0.1
public static final String CLIENT_NAME = "Divine Syndicate";

/*
*Websites
*/
public static final String WEBSITE_URL = "www.";
public static final String FORUM_URL = "www.";
public static final String DONATE_URL = "www./Donate";
public static final String VOTE_URL = "www.l/Vote";
public static final String CLIENT_URL = "www.l/Download";
public static final String WEBCLIENT_URL = "www./Play";
public static final String HIGHSCORES_URL = "www./Highscores";

/*
*Client buttons
*/
public static final String ENTER_BUTTON = "Enter World";
public static final String RETURN_BUTTON = "Return";
public static final String PLAY_BUTTON = "Play";
public static final String INFO_BUTTON = "Information";
public static final String BACK_BUTTON = "Agreed";

/*
*Gui, Frame & Interface titles.
*/
public static final String GUI_TITLE = "| Please take a minute to vote for us by doing ::vote or at our website |";//Top of client information
public static final String FRAME_TITLE = " | The Pk'ing |";//
public static final String INTERFACE_TITLE = "";//This says ex: The bank of

/*
*Cache information
*/
public static final String CACHE_LINK = "https://www.dropbox.com/s/koczc1dx52bpa6u/Myserver.zip?dl=0";//Cache link.
public static final String LOYALTY_PATH = "user.home/Myserver/";//Cache path for the Loyalty titles.
public static final String CACHE_PATH = "user.home";//Cache path.
public static final String CACHE_NAME = "Myserver";//Cache Name.
}[/CODE]

this is all what is into the file.

I deleated the name of the server at all places and chanced into "myserver" or did put nothing in return.

Hope this is what u meant.

thanks already for reply :D

Share this post


Link to post
Share on other sites
  • 0
Looks like an easy fix!

Change all CACHE_LINKS to [I][url]https://dl.dropbox.com/s/koczc1dx52bpa6u/Myserver.zip[/url][/I]

Basically, if you follow the link, you have to click Download to download the cache, the client isn't able to do this. Therefore we remove the ?dl=0 from the end, and replace the www. with dl.

If this has helped you, let me know and leave a thanks :)

Share this post


Link to post
Share on other sites
  • 0
[quote name='Phage']Looks like an easy fix!

Change all CACHE_LINKS to [I][url]https://dl.dropbox.com/s/koczc1dx52bpa6u/Myserver.zip[/url][/I]

Basically, if you follow the link, you have to click Download to download the cache, the client isn't able to do this. Therefore we remove the ?dl=0 from the end, and replace the www. with dl.

If this has helped you, let me know and leave a thanks :)[/QUOTE]

thanks it helped a little but somehow he still doesn't work somehow he make's the map i chanced the name to "testcache" and that map getting maked but the map isn't compleet.

i maked a few picture's.

how it's packed, and sended to dropbox.

[IMG]http://i62.tinypic.com/2vry7u9.png[/IMG] (this is .zip!)

what he download's automatic, (uncompleet)

[IMG]http://i57.tinypic.com/2u8id5k.png[/IMG]

and this is how the cache need's to look.

[IMG]http://i59.tinypic.com/nb8xsw.png[/IMG]

if you can help me out on this part to shall be very nice, i know got link added like u said.

so it is added. check the "code" here under.
[CODE]public static final String CACHE_LINK = "https://dl.dropbox.com/s/wpflnnmzko3yxn5/testcache.zip";//Cache link.[/CODE] Edited by madmonkey

Share this post


Link to post
Share on other sites
  • 0
I have this same problem to with it not fully downloading with my server

Share this post


Link to post
Share on other sites
  • 0
somehow we are doing something wrong just can't figure it out jet :confused:

Share this post


Link to post
Share on other sites
  • 0
chanced already it looked liked it worked but it isn't jet :o


edit: i found out mine start's downloading the cache it also says "100% " but the cache in just incompleet downloaded he does download the files but only what i showed in the picture above (incompleeted) if somehow can tell me why and how to fix it shall be nice. Edited by madmonkey

Share this post


Link to post
Share on other sites
  • 0
Zip everything inside the Cache folder, Upload to dropbox, Grab the "Share" link, Replace "https://dl.dropbox.com" with "https://dl.dropboxusercontent.com".

Share this post


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

×