Thread: adding 634 maps to 317 GOT Error need help

Results 1 to 6 of 6
  1. #1 adding 634 maps to 317 GOT Error need help 
    Registered Member krisnka's Avatar
    Join Date
    May 2011
    Posts
    201
    Thanks given
    50
    Thanks received
    11
    Rep Power
    0
    ok when i was adding 634 maps too 317,

    i get this compiling error


    public int mapAmount = 0;

    public void start(StreamLoader streamLoader, 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 = streamLoader.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);
    }
    public void maps() {
    for(int MapIndex = 0; MapIndex < 3536; MapIndex++) {
    byte[] abyte0 = GetMap(MapIndex);
    if(abyte0 != null && abyte0.length > 0) {
    decompressors[4].method234(abyte0.length, abyte0, MapIndex);
    }
    }
    }

    public byte[] GetMap(int Index) {
    try {
    File Map = new File("./Maps/"+Index+".gz");
    byte[] aByte = new byte[(int)Map.length()];
    FileInputStream Fis = new FileInputStream(Map);
    Fis.read(aByte);
    System.out.println(""+Index+" aByte = ["+aByte+"]!");
    Fis.close();
    return aByte;
    } catch(Exception e) {
    return null;
    }
    }



    public static final byte[] ReadFile(String s, boolean antiLeech) {
    try {
    byte abyte0[];
    File file = new File(s);
    int i = (int)file.length();
    abyte0 = new byte[i];
    DataInputStream datainputstream = new DataInputStream(new BufferedInputStream(new FileInputStream(s)));
    datainputstream.readFully(abyte0, 0, i);
    datainputstream.close();
    return abyte0;
    } catch(Exception e) {
    System.out.println((new StringBuilder()).append("Read Error: ").append(s).toString());
    return null;
    }
    }
    maps();
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Sep 2011
    Age
    24
    Posts
    807
    Thanks given
    511
    Thanks received
    158
    Rep Power
    0
    Compare the parameters of your client with the code you were provided with and edit it correctly.
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Super Donator


    Join Date
    Feb 2011
    Age
    24
    Posts
    1,136
    Thanks given
    180
    Thanks received
    178
    Rep Power
    243
    Lol emm you gotta change the stuffs as it look as the old 1 with namedarchive etc..
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Registered Member krisnka's Avatar
    Join Date
    May 2011
    Posts
    201
    Thanks given
    50
    Thanks received
    11
    Rep Power
    0
    Quote Originally Posted by String View Post
    Compare the parameters of your client with the code you were provided with and edit it correctly.
    anway you can dumb it down for me.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #5  
    PokeNation! Xaves's Avatar
    Join Date
    Dec 2007
    Age
    29
    Posts
    3,478
    Thanks given
    356
    Thanks received
    787
    Rep Power
    646
    You are passing a NamedArchive object instead of StreamLoader, you probably are following a tutorial that have StreamLoader renamed to NamedArchive.


    Since you don't know what you are doing, make a backup of your client files and replace the text "NamedArchive" that you find on the tut to StreamLoader.

    We can't help much more without you showing us any code.


    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. Thankful user:


  9. #6  
    Registered Member krisnka's Avatar
    Join Date
    May 2011
    Posts
    201
    Thanks given
    50
    Thanks received
    11
    Rep Power
    0
    Quote Originally Posted by Xaves View Post
    You are passing a NamedArchive object instead of StreamLoader, you probably are following a tutorial that have StreamLoader renamed to NamedArchive.


    Since you don't know what you are doing, make a backup of your client files and replace the text "NamedArchive" that you find on the tut to StreamLoader.

    We can't help much more without you showing us any code.
    this is the tutorial i am using

    [Only registered and activated users can see links. ]

    and i thanked you, if you help me fix ill thank you again
    [Only registered and activated users can see links. ]
    Reply With Quote  
     


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. [317] Adding 634 maps!
    By AFGscape in forum Tutorials
    Replies: 365
    Last Post: 10-11-2016, 08:14 AM
  2. Problem adding 634 Maps
    By marcbob in forum Help
    Replies: 1
    Last Post: 04-18-2012, 10:03 PM
  3. Black Maps when adding 634 items
    By Shawn Patel in forum Help
    Replies: 2
    Last Post: 03-17-2012, 12:14 PM
  4. adding 634 maps error
    By geraldososa in forum Help
    Replies: 7
    Last Post: 03-06-2012, 02:50 AM
  5. error when adding 634 maps
    By geraldososa in forum Help
    Replies: 3
    Last Post: 02-26-2012, 05:39 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
  •