Thread: Cant get any cache downloader to work to me! [PI]

Results 1 to 10 of 10
  1. #1 Cant get any cache downloader to work to me! [PI] 
    Registered Member
    Join Date
    Feb 2013
    Posts
    548
    Thanks given
    8
    Thanks received
    36
    Rep Power
    16
    So i bought my vps tonight, and was going to host but for now im just gonna upload my client.class files to my vps, with the cache already and just have the users put that in their c:/ drives, since my auto cache downloader/or the i dont have or cant get to work....

    Would appreciate it if someone could help me!...
    Reply With Quote  
     

  2. #2  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,287
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Quote Originally Posted by EmtScape View Post
    So i bought my vps tonight, and was going to host but for now im just gonna upload my client.class files to my vps, with the cache already and just have the users put that in their c:/ drives, since my auto cache downloader/or the i dont have or cant get to work....

    Would appreciate it if someone could help me!...
    why would u upload ur client.class into ur vps? i hope u know what a vps is. whats wrong with ur auto cache
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Mar 2012
    Posts
    24
    Thanks given
    0
    Thanks received
    0
    Rep Power
    10
    Code:
    File f = new File("C:\Cache.zip");
    if(!(f.exists())) {
    try
         {
            long startTime = System.currentTimeMillis();
     
            System.out.println("Connecting to site...\n");
     
            URL url = new URL("http://www.dropbox.com/blahblahblahblah");
            url.openConnection();
            InputStream reader = url.openStream();
            FileOutputStream writer = new FileOutputStream("C:/Cache.zip");
            byte[] buffer = new byte[153600];
            int totalBytesRead = 0;
            int bytesRead = 0;
     
            System.out.println("Reading ZIP file 150KB at a time.\n");
     
            while ((bytesRead = reader.read(buffer)) > 0)
            {  
               writer.write(buffer, 0, bytesRead);
               buffer = new byte[153600];
               totalBytesRead += bytesRead;
            }
     
            long endTime = System.currentTimeMillis();
     
            System.out.println("Done. " + (new Integer(totalBytesRead).toString()) + " bytes read (" + (new Long(endTime - startTime).toString()) + " millseconds).\n");
            writer.close();
            reader.close();
         }
         catch (MalformedURLException e)
         {
            e.printStackTrace();
         }
         catch (IOException e)
         {
            e.printStackTrace();
         }
    } else {
     System.out.println("Cache exists, no need to Download it.");
    }
    But I think your problem is you haven't made any changes to the client, and just expected it to work for you (As it would seem from your post), so this wouldn't help you at all in that case.
    1) The cache URL might not exist anymore (Usually when you download clients, the previous Cache URL goes down after some time)
    2) People are trying to connect to your VPS, which doesn't have the server files on it (As it would seem from your post) - Why are you trying to upload Client.class to your VPS?
    3) The IP the client is connecting to isn't your own (You haven't edited it)
    Probably one of the three that is your problem.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Feb 2013
    Posts
    548
    Thanks given
    8
    Thanks received
    36
    Rep Power
    16
    No, the cache url download exists because i made , it, it just doesnt download and the screen sits black. The IP is mine,
    Reply With Quote  
     

  5. #5  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,287
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Quote Originally Posted by EmtScape View Post
    No, the cache url download exists because i made , it, it just doesnt download and the screen sits black. The IP is mine,
    Where did you upload your cache.
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Jan 2013
    Posts
    95
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Post your client here
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Feb 2013
    Posts
    548
    Thanks given
    8
    Thanks received
    36
    Rep Power
    16
    My friend gave me his 317 server cause his cachedownloader works, but it keeps putting the cache in my documents and settings folder, and i dont think the client has the correct path to load it from to run the server
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Feb 2013
    Posts
    548
    Thanks given
    8
    Thanks received
    36
    Rep Power
    16
    public static String findcachedir() {
    File file = new File(System.getProperty("user.home") + "/Process-PK/");
    if (!file.exists()) {
    if (!file.mkdir())
    return sencondDir();
    }
    return System.getProperty("user.home") + "/Process-PK/";
    }

    whats with the
    public static String findcachedir() {
    File file = new File(System.getProperty("user.home") + "/Process-PK/");
    if (!file.exists()) {
    if (!file.mkdir())
    return sencondDir();
    }

    is that where its extracting to?
    Reply With Quote  
     

  9. #9  
    Banned
    Join Date
    Jan 2013
    Posts
    95
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by EmtScape View Post
    public static String findcachedir() {
    File file = new File(System.getProperty("user.home") + "/Process-PK/");
    if (!file.exists()) {
    if (!file.mkdir())
    return sencondDir();
    }
    return System.getProperty("user.home") + "/Process-PK/";
    }

    whats with the
    public static String findcachedir() {
    File file = new File(System.getProperty("user.home") + "/Process-PK/");
    if (!file.exists()) {
    if (!file.mkdir())
    return sencondDir();
    }

    is that where its extracting to?
    That's where is locates it and creates some cache files.
    Reply With Quote  
     

  10. #10  
    Extreme Donator

    Join Date
    Aug 2012
    Posts
    244
    Thanks given
    105
    Thanks received
    34
    Rep Power
    41
    Put your cache in user.home directory.

    START > Name the pc/laptop is under

    Do you have this in client.java?
    Code:
    new CacheDownloader(this).downloadCache();
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. How to get your auto cache downloader to work
    By ipwnzuors in forum Tutorials
    Replies: 10
    Last Post: 11-28-2013, 11:40 PM
  2. [PI] Auto Cache Downloader wont work!
    By test3 in forum Help
    Replies: 2
    Last Post: 01-06-2013, 07:22 PM
  3. Cache downloader doesnt work
    By NoChildSupport in forum Help
    Replies: 15
    Last Post: 01-04-2013, 03:46 PM
  4. [474] Cache Downloader - Downloads cache and maps
    By ZachHaley in forum Downloads
    Replies: 2
    Last Post: 01-11-2009, 10:48 AM
  5. Cache Downloader[508]
    By ZachHaley in forum Downloads
    Replies: 3
    Last Post: 12-30-2008, 05:44 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •