Thread: Map Index - will rep

Results 1 to 4 of 4
  1. #1 Map Index - will rep 
    RuneHub

    Benji's Avatar
    Join Date
    Feb 2010
    Age
    24
    Posts
    1,526
    Thanks given
    920
    Thanks received
    499
    Rep Power
    555
    My edgeville/varrock/some other maps are working fine, but other maps are black.

    This is 508 maps by penor btw.

    His start method in onDemandFetcher is

    Code:
     public void start(NamedArchive archive, client client1)
        {
            byte[] abyte2 = streamLoader.getDataForName("map_index");
            Stream stream2 = new Stream(abyte2);
            int j1 = abyte2.length / 6;
            mapIndices1 = new int[j1];
            mapIndices2 = new int[j1];
            mapIndices3 = new int[j1];
            for(int i2 = 0; i2 < j1; i2++)
            {
                mapIndices1[i2] = stream2.readUnsignedWord();
                mapIndices2[i2] = stream2.readUnsignedWord();
                mapIndices3[i2] = stream2.readUnsignedWord();
                mapAmount++;
            }
            System.out.println("Map Amount: "+mapAmount+"");
            abyte2 = archive.getDataForName("midi_index");
            stream2 = new Stream(abyte2);
            j1 = abyte2.length;
            anIntArray1348 = new int[j1];
            for(int k2 = 0; k2 < j1; k2++)
                anIntArray1348[k2] = stream2.readUnsignedByte();
    
            clientInstance = client1;
            running = true;
            clientInstance.startRunnable(this, 2);
        }
    I load that with his map_index (8 kb file) and none of the maps load at all (black).

    The only way I got 508 edgeville loading was using the old start method with an extra array of map indices and the 5 kb map_index

    Code:
     public void start(NamedArchive archive, client client1)
        {
            byte[] abyte2 = getData(loc + "map_index.dat");
            Stream stream2 = new Stream(abyte2);
            int j1 = abyte2.length / 7;
            mapIndices1 = new int[j1];
            mapIndices2 = new int[j1];
            mapIndices3 = new int[j1];
           mapIndices4 = new int[j1];
            for(int i2 = 0; i2 < j1; i2++)
            {
                mapIndices1[i2] = stream2.readUnsignedWord();
                mapIndices2[i2] = stream2.readUnsignedWord();
                mapIndices3[i2] = stream2.readUnsignedWord();
               mapIndices4[i2] = stream2.readUnsignedByte();
            }
    
            abyte2 = archive.getDataForName("midi_index");
            stream2 = new Stream(abyte2);
            j1 = abyte2.length;
            anIntArray1348 = new int[j1];
            for(int k2 = 0; k2 < j1; k2++)
                anIntArray1348[k2] = stream2.readUnsignedByte();
    
            clientInstance = client1;
            running = true;
            clientInstance.startRunnable(this, 2);
        }
    All the 317 regions are updated to 508 (because of the map data that was packed in the cache),

    but none of the 317+ regions are loading because I'm using the old map_index.

    Any advice on getting the new map_index to load?

    Btw, ik i'm outside loading the map_index, because i cba replacing the one in the cache every time i test it

    Reply With Quote  
     

  2. #2  
    RuneHub

    Benji's Avatar
    Join Date
    Feb 2010
    Age
    24
    Posts
    1,526
    Thanks given
    920
    Thanks received
    499
    Rep Power
    555
    Let me pastebin my classes, sec

    ondemandfetcher - [Only registered and activated users can see links. ]

    map methods, and method22 in client class - [Only registered and activated users can see links. ]

    Reply With Quote  
     

  3. #3  
    RuneHub

    Benji's Avatar
    Join Date
    Feb 2010
    Age
    24
    Posts
    1,526
    Thanks given
    920
    Thanks received
    499
    Rep Power
    555
    nvm fixed it

    Reply With Quote  
     

  4. #4  
    Registered Member
    Division's Avatar
    Join Date
    Dec 2009
    Age
    24
    Posts
    2,208
    Thanks given
    41
    Thanks received
    78
    Rep Power
    97
    So how did you fix this?
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. 634 map index for 317
    By mige5 in forum Downloads
    Replies: 223
    Last Post: 09-27-2016, 05:08 AM
  2. index?t=something
    By minutes in forum Help
    Replies: 0
    Last Post: 02-20-2011, 12:38 PM
  3. How to get rid of Index Of /
    By La Lampara in forum Help
    Replies: 14
    Last Post: 01-30-2011, 08:30 AM
  4. Index Help
    By Streetwave in forum Help
    Replies: 6
    Last Post: 10-21-2009, 12:38 AM
  5. Index-Cgi
    By Sir Lethal in forum Help
    Replies: 2
    Last Post: 04-12-2009, 02:16 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •