Where do I pack the midis?...
Printable View
Where do I pack the midis?...
Right in your cache:
C:\Users\initium\.falador_v2
like, inside your cachename, be4 u go into sprite folder
That's not packing.. :rofl:Quote:
Originally Posted by Initium [Only registered and activated users can see links. Click Here To Register...]
I've done it a few times, I believe you need to pack them into index 4.
I couldn't find the method I used in my client, else I would've posted it.
underQuote:
public void musics() {
for(int MusicIndex = 0; MusicIndex < 3536; MusicIndex++) {
byte[] abyte0 = GetMusic(MusicIndex);
if(abyte0 != null && abyte0.length > 0) {
decompressors[3].method234(abyte0.length, abyte0, MusicIndex);
}
}
}
public byte[] GetMusic(int Index) {
try {
File Music = new File("./Music/"+Index+".gz");
byte[] aByte = new byte[(int)Music.length()];
FileInputStream Fis = new FileInputStream(Music);
Fis.read(aByte);
System.out.println(""+Index+" aByte = ["+aByte+"]!");
Fis.close();
return aByte;
} catch(Exception e) {
return null;
}
}
addQuote:
onDemandFetcher.start(streamLoader_6, this);
Quote:
musics();
Index 3.Quote:
Originally Posted by Kamiel [Only registered and activated users can see links. Click Here To Register...]
I packed it, but its not playing :l
Isnt there something else in the cache i should update? like the size of somehting?
i believe you have to modify the crc or disable crc checking.
this what natsu saidQuote:
Originally Posted by natsu [Only registered and activated users can see links. Click Here To Register...]