Jump to content
  • 0
Sign in to follow this  
TheDigBick

Project Insanity Adding Models Please Help

Question

I'm trying to add dragon claws to my server, here's my current setup.
I DON'T HAVE A "models" folder nor a "Raw" folder. I also made a new folder in my Clients main folder and still says unable to find model: 44590.

ItemDef.java - (Dragon Claws)

[CODE]if(i == 14484) {
itemDef.actions = new String[5];
itemDef.actions[1] = "Wield";
itemDef.modelID = 44590;
itemDef.maleEquip1 = 43660;//anInt165
itemDef.femaleEquip1 = 43660;//anInt200
itemDef.modelZoom = 789;
itemDef.modelRotation1 = 240;
itemDef.modelRotation2 = 60;
itemDef.modelOffset1 = -1;
itemDef.modelOffset2 = -23;
itemDef.name = "Dragon claws";
itemDef.description = "A set of fighting claws.".getBytes();
}[/CODE]

And here's my Client.java for preloading models.

[CODE]public void preloadModels() {
File file = new File("./Raw/");
File[] fileArray = file.listFiles();
for(int y = 0; y < fileArray.length; y++) {
String s = fileArray[y].getName();
byte[] buffer = ReadFile("./Raw/"+s);
Model.method460(buffer,Integer.parseInt(getFileNameWithoutExtension(s)));
}
}[/CODE]

In game when I type in add model it just says "Unable to find model: 44590."

Pleae help thanks.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
in your cache make a folder called "raw" and add all your models into that


definitions need to go in itemdef

Share this post


Link to post
Share on other sites
  • 0
I made a new folder names "raw" and added my files into there. And when you stated "definitions need to go in itemdef" I already did that as seen above unless your talking about something else, please explain more. I then saved & compiled, started the game, typed "add models" put in the model ID and once again it still says: "Unable to find model ID: 44590." Please help.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×