Quote Originally Posted by knd6060 View Post
I used OSDC as well. https://archive.runestats.com/osrs/ for the cache which has an xteas.json inside it which is not compatible with OSDC.
OSDC wants a directory of files for each map where each file has the 4 XTEA keys line after line. So I wrote this program quickly to convert xteas.json to a directory of txt files. File name is the regions.

Code:
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;

import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Iterator;

public class Main {
    public static void main(String[] args) {
        File xteas = new File("../xteas.json");
        new File("../xteas/").mkdir();

        JSONParser jsonParser = new JSONParser();

        try (FileReader reader = new FileReader(xteas))
        {
            Object obj = jsonParser.parse(reader);

            JSONArray xteaArr = (JSONArray) obj;

            xteaArr.forEach( emp -> saveFile( (JSONObject) emp ) );

        } catch (IOException | ParseException e) {
            e.printStackTrace();
        }
    }

    private static void saveFile(JSONObject xtea) {
        long region = (long) xtea.get("mapsquare");
        JSONArray keys = (JSONArray) xtea.get("key");
        try {
            Iterator it = keys.iterator();
            FileWriter out = new FileWriter("../xteas/"+region+".txt");
            while (it.hasNext()) {
                out.write(it.next()+"\n");
            }
            out.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
Code is nothing special was for a one time use but you can use it if you want.

After that use OSDC and when it says select the directory containing XTEAs you select the directory containing all the txt files. It asks you to select the cache as well which is same as always for OSDC. Should work fine. It should dump about 3600 .gz files. The dump this guy posted had a lot less which is how I knew it wasn't correct.
Awesome thank you. Appreciate you taking the time to explain