Boolean
March 14th, 2011, 04:43
Step One:
Download the 525 compressed models. Click here. (Only the registered members can see the link.)
Step Two:
Make a new class called "ModelDecompressor".
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.DataOutputStream;
import java.io.FileOutputStream;
/**
*Loads models from a data file
*
*@author Ben
*/
public class ModelDecompressor {
public static void loadModels2() {
try {
DataInputStream indexFile = new DataInputStream(new FileInputStream("./path/525models.idx"));
DataInputStream dataFile = new DataInputStream(new FileInputStream("./path/525models.dat"));
int length = indexFile.readInt();
for(int i = 0; i < length; i++) {
int id = indexFile.readInt();
int invlength = indexFile.readInt();
byte[] data = new byte[invlength];
dataFile.readFully(data);
//System.out.println("HD Character has been loaded!");
Model.method460(data, id);
}
indexFile.close();
dataFile.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}
Step Three:
Replace your model.java with: Only the registered members can see the link.
Compile and save, your done.
Enjoy.
Download the 525 compressed models. Click here. (Only the registered members can see the link.)
Step Two:
Make a new class called "ModelDecompressor".
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.DataOutputStream;
import java.io.FileOutputStream;
/**
*Loads models from a data file
*
*@author Ben
*/
public class ModelDecompressor {
public static void loadModels2() {
try {
DataInputStream indexFile = new DataInputStream(new FileInputStream("./path/525models.idx"));
DataInputStream dataFile = new DataInputStream(new FileInputStream("./path/525models.dat"));
int length = indexFile.readInt();
for(int i = 0; i < length; i++) {
int id = indexFile.readInt();
int invlength = indexFile.readInt();
byte[] data = new byte[invlength];
dataFile.readFully(data);
//System.out.println("HD Character has been loaded!");
Model.method460(data, id);
}
indexFile.close();
dataFile.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}
Step Three:
Replace your model.java with: Only the registered members can see the link.
Compile and save, your done.
Enjoy.