This might help you https://www.rune-server.ee/runescape...nimations.html
|
I've been trying to get Zulrah added to my client, I managed to get the models inported but when I try to import the animations, the client stops loading. No errors. What would be an easy way to go about importing the animations? I've tried using toms cache editor, it crashes every time. Even the any size cache one.
I did that but neither worked. I will post my import model method that was on my client in a few mins, it's what worked for the models. When I follow those instructions my client wont load.
Just because there are no output errors, doesn't mean there are no errors.
Lookg into debugging.
Yeah I'll try that when I get a chance.
Didn't get to try debugging it last night. I was too caught up in my farming not working out of no where ,_,
I tried using a cache editor aswell, crashes everytime
I tried using a cache editor aswell, crashes everytime
I've tried to follow those as well, no luck. I work tonight (day time in the States), so I can trouble shoot it tonight.
This worked for models though
public byte[] GetModel(int Index)
{
try
{
File Model = new File(sign.signlink.findcachedir() + "models/"+Index+".gz");
byte[] aByte = new byte[(int)Model.length()];
FileInputStream Fis = new FileInputStream(Model);
Fis.read(aByte);
pushMessage("aByte = ["+aByte+"]!", 0, "");
Fis.close();
return aByte;
}
catch(Exception e)
{return null;}
}
public void forceMsg(String message){
pushMessage(message, 2, myPlayer.name);
}
public void models()
{
for(int ModelIndex = 0; ModelIndex < 40000; ModelIndex++)
{
byte[] abyte0 = GetModel(ModelIndex);
if(abyte0 != null && abyte0.length > 0)
{
decompressors[1].method234(abyte0.length, abyte0, ModelIndex);
pushMessage("Models added successfully!", 0, "");
}
}
}
I still havent gotten a chance to debug it ._.
This is probly a stupid question, as I am still learning. Are my animations in the gfx.dat file under Data\animations?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |