Compare the parameters of your client with the code you were provided with and edit it correctly.
|
|
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();

Compare the parameters of your client with the code you were provided with and edit it correctly.




Lol emm you gotta change the stuffs as it look as the old 1 with namedarchive etc..
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.
| « What Java binding does Runescape use? | [Galkons] Multi Wilderness interface help » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |