public static void unpackConfig(Archive container) {
        ObjectDefinition.buffer = new Stream(container.get("loc.dat"));
        Stream stream = new Stream(container.get("loc.idx"));
        int totalObjects = stream.getUnsignedShort();
        ObjectDefinition.objectIndices = new int[totalObjects];
        int i = 2;
        for (int j = 0; j < totalObjects; j++) {
            ObjectDefinition.objectIndices[j] = i;
            i += stream.getUnsignedShort();
        }
        ObjectDefinition.cache = new ObjectDefinition[20];
        for (int j = 0; j < 20; j++) {
            ObjectDefinition.cache[j] = new ObjectDefinition();
        }
    }