1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, If you'd like to instant message with many other users, then join our
    Official Rune-Status Discord Server!
    Dismiss Notice
  3. Got your own Server? Looking for a Server to play right now??
    Make sure you check out the Public Server Directory!
    Dismiss Notice
  4. If you're new to the Rsps Scene and want to jump straight into learning how to Set-up and Customise your own RuneScape Private Sever then check out the Guides and Tutorials for RS2 here.
    Dismiss Notice
Dismiss Notice
Hey Guest,
Are you sure your posting in the Right Sections?
If your unsure which RuneTek version you are working with visit this page to find out.

How to Pack Items [obj.*] Correctly

Discussion in 'Guides & Tutorials' started by skotizo, Jul 1, 2017.

  1. replace your unpackConfig with:
        public static void unpackConfig(StreamLoader archive) {
            stream = new Stream(archive.getDataForName("obj.dat"));
            Stream stream = new Stream(archive.getDataForName("obj.idx"));
            totalItems = stream.readUShort();
            streamIndices = new int[totalItems + 50000];
            int offset = 2;
            System.out.println("Loaded: " + totalItems + " Items");
            for (int _ctr = 0; _ctr < totalItems; _ctr++) {
                streamIndices[_ctr] = offset;
                offset += stream.readUShort();
            cache = new ItemDef[10];
            for (int _ctr = 0; _ctr < 10; _ctr++) {
                cache[_ctr] = new ItemDef();

    Repack your obj files using:
    #1 skotizo, Jul 1, 2017
    Last edited by a moderator: Jul 1, 2017
  2. its that simple?

    What makes it work when loaded like this?
  3. packing it with the other tool