Thread: Req 916 Cache

Results 1 to 5 of 5
  1. #1 Req 916 Cache 
    ✥Gallifrey✥

    Castiel's Avatar
    Join Date
    Apr 2013
    Posts
    1,612
    Thanks given
    507
    Thanks received
    241
    Discord
    View profile
    Rep Power
    441
    title says it all looking for a 916 cache
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Registered Member
    Melvin's Avatar
    Join Date
    Aug 2011
    Posts
    983
    Thanks given
    481
    Thanks received
    295
    Rep Power
    881
    why so specific?


    A creative man is motivated by the desire to achieve, not by the desire to beat others.


    ― Ayn Rand
    Reply With Quote  
     

  3. #3  
    ✥Gallifrey✥

    Castiel's Avatar
    Join Date
    Apr 2013
    Posts
    1,612
    Thanks given
    507
    Thanks received
    241
    Discord
    View profile
    Rep Power
    441
    Quote Originally Posted by Melvin View Post
    why so specific?
    idk what rev runescape is on atm
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Registered Member
    Melvin's Avatar
    Join Date
    Aug 2011
    Posts
    983
    Thanks given
    481
    Thanks received
    295
    Rep Power
    881
    theres literally a patch fix release for rscd lol


    A creative man is motivated by the desire to achieve, not by the desire to beat others.


    ― Ayn Rand
    Reply With Quote  
     

  5. #5  
    Chemist

    Advocatus's Avatar
    Join Date
    Dec 2009
    Age
    28
    Posts
    2,551
    Thanks given
    192
    Thanks received
    762
    Discord
    View profile
    Rep Power
    1332
    Quote Originally Posted by Castiel View Post
    idk what rev runescape is on atm
    rs is on 917 atm.

    The tutorial here works.
    [Only registered and activated users can see links. ]

    Check the patch on page 2. It appears to work by extracting the parameter from the jav_config.

    It appears to work fine with the information posted on that thread by the OP/myself.

    Rather than applying the patch I just modded the connect() method in CacheDownloader

    so that it was
    String key = Crawler2.extractParameter(Crawler2.downloadPage("h ttp://runescape.com/jav_config.ws?binaryType=2"), 32);

    and added the class
    Code:
    package com.method.rscd.util;
    
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    
    public class Crawler2 {
    
    	public static List<String> downloadPage(String address) {
    		URL url;
    		try {
    			url = new URL(address);
    		} catch (MalformedURLException ex) {
    			//ex.printStackTrace();
    			System.err.println("Malformed");
    			return null;
    		}
    		try {
    			BufferedReader reader = new BufferedReader(new InputStreamReader(url.openConnection().getInputStream()));
    			List<String> page = new ArrayList<>();
    			String line;
    			while ((line = reader.readLine()) != null) {
    				page.add(line);
    			}
    			return page;
    		} catch (IOException ex) {
    			ex.printStackTrace();
    			return null;
    		}
    	}
    
    	public static String extractParameter(List<String> input, int length) {
    		if (input == null) {
    			return null;
    		}
    
    		Pattern p = Pattern.compile("=\\S{1,2}=(\\S{" + length + "})$");
    		for (String line : input) {
    			if (line.startsWith("param=")) {
    				Matcher m = p.matcher(line);
    				if (m.find()) {
    					return m.group(1);
    				}
    			}
    		}
    
    		return null;
    	}
    
    }
    Quote Originally Posted by blakeman8192 View Post
    Quitting is the only true failure.
    Reply With Quote  
     

  6. Thankful user:



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. REQ 512 cache!
    By Yorick in forum Requests
    Replies: 1
    Last Post: 10-07-2008, 09:54 PM
  2. [REQ]defyboys cache extractor[REQ]
    By Valkynaz in forum Requests
    Replies: 1
    Last Post: 08-15-2008, 07:49 AM
  3. [REQ]480 Cache and...
    By Elid in forum Tutorials
    Replies: 3
    Last Post: 03-01-2008, 05:25 PM
  4. [REQ]Need cache with Arial font... Repuation++
    By alongu in forum RS2 Client
    Replies: 0
    Last Post: 02-22-2008, 12:38 PM
  5. req: auto cache dl
    By ADDY1963 in forum Tutorials
    Replies: 1
    Last Post: 12-17-2007, 03:25 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
  •