Thread: Cache Downloader Problem

Results 1 to 6 of 6
  1. #1 Cache Downloader Problem 
    Fuckin PRO

    Damien's Avatar
    Join Date
    Feb 2008
    Age
    29
    Posts
    2,658
    Thanks given
    928
    Thanks received
    82
    Rep Power
    369
    remove. fixed by jonny j
    Reply With Quote  
     

  2. #2  
    Member Market Banned Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    28
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    Quote Originally Posted by Damien View Post
    Code:
        public static final String cachedir() {
    	String s;
    	String s1;
    	File file;
    	s = "C:/Runezonecache/";
    	s1 = "";
    	file = new File((new StringBuilder()).append(s1).append(s).toString());
    	if (file.exists() || file.mkdir()) {
    		return (new StringBuilder()).append(s1).append(s).append("/").toString();
    	}
    	return null;
        }
    this is from client.java

    Code:
        public void loadCache()
        {
            checkMainFiles();
            checkSprites();
            try
            {
                Thread.sleep(1500);
            }
            catch(Exception _ex)
            {
            }
        }
    My cache downloads there perfect and loads up client then but if you close the client and reload it. It will redownload cache again...
    Can anyone please help me?
    Code:
    File f = new File("C:/Runezonecache/main_file_cache.idx1");
    if(!f.exists())
    downloadcachemethod();
    not going to tell you where to add.
    ILY Stewie.
    Reply With Quote  
     

  3. #3  
    Fuckin PRO

    Damien's Avatar
    Join Date
    Feb 2008
    Age
    29
    Posts
    2,658
    Thanks given
    928
    Thanks received
    82
    Rep Power
    369
    File f = new File("C:/Runezonecache/main_file_cache.idx1");
    if(!f.exists())
    downloadcachemethod();

    main_file_cache.idx1 is in the cache download method...
    Reply With Quote  
     

  4. #4  
    Member Market Banned Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    28
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    Quote Originally Posted by Damien View Post
    File f = new File("C:/Runezonecache/main_file_cache.idx1");
    if(!f.exists())
    downloadcachemethod();

    main_file_cache.idx1 is in the cache download method...
    thats checking if that file exists...if it doesnt it downloads cache...if it doesnt then it loads client or w.e is after that...
    ILY Stewie.
    Reply With Quote  
     

  5. #5  
    Fuckin PRO

    Damien's Avatar
    Join Date
    Feb 2008
    Age
    29
    Posts
    2,658
    Thanks given
    928
    Thanks received
    82
    Rep Power
    369
    Never worked.
    Reply With Quote  
     

  6. #6  
    PokeNation! Xaves's Avatar
    Join Date
    Dec 2007
    Age
    29
    Posts
    3,478
    Thanks given
    356
    Thanks received
    787
    Rep Power
    646
    just do like pali did on battlescape317, he left there his methods, they are just commented out...


    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •