View Full Version : 562 Custom Items
Steve
November 7th, 2010, 05:13
What your adding,
Only the registered members can see the link.
This isn't complete really... I didn't feel like finding all the fields for what does what... So i just found the two important ones, the drop model/inventory model, and the wear model. You guys can find the rest, or maybe i will when I'm not bored with it. Anyway your gonna need Zee Best's loader thing. I'll post it here i guess,
First make a new folder in your client directory called "models"
Make a new file in your source file called ModelLoader.java and paste this in there
import java.io.*;
import java.util.*;
public class ModelLoader {
public static List<Integer> models = null;
public ModelLoader()
{
loadArray();
}
public static byte[] loadNewModel(int i) throws IOException
{
DataInputStream dis = new DataInputStream(new FileInputStream("./models/"+i+".dat"));
byte[] buffer = new byte[(int) new File("./models/"+i+".dat").length()];
dis.readFully(buffer);
dis.close();
return buffer;
}
public void loadArray()
{
models = new ArrayList<Integer>();
File[] m = new File("./models").listFiles();
for (File model : m)
if(model.getName().contains(".dat"))
models.add(Integer.parseInt(model.getName().substr ing(0, model.getName().indexOf(".dat"))));
}
}Ok, now go to Class134.java and replace this void(Well it should look similiar to this, i replaced my old one lol)
public static Class116 method2097(int arg0, int arg1, Class158 arg2,
int arg3) {
anInt1810++;
try {
byte[] is = arg2.method2364(arg1, arg0, 0);
if (is == null) {
return null;
}
if (arg3 != 1) {
method2099(29);
}
return new Class116(is);
} catch (RuntimeException runtimeexception) {
throw Class131_Sub2_Sub6.method1495(runtimeexception,
("og.C(" + arg0 + ',' + arg1
+ ','
+ (arg2 != null ? "{...}"
: "null")
+ ',' + arg3 + ')'));
}
} With this new one
public static Class116 method2097(int arg0, int arg1, Class158 arg2,
int arg3) {
try {
anInt1810++;
if (ModelLoader.models == null) {
new ModelLoader();
}
for (int modelStored : ModelLoader.models) {
if (arg0 == modelStored) {
try {
return new Class116(ModelLoader.loadNewModel(arg0));
} catch (IOException ex) {
ex.printStackTrace();
}
}
}
byte[] is = arg2.method2364(arg1, arg0, 0);
if (is == null) {
return null;
}
if (arg3 != 1) {
method2099(29);
}
return new Class116(is);
} catch (RuntimeException runtimeexception) {
throw Class131_Sub2_Sub6.method1495(runtimeexception,
("og.C(" + arg0 + ',' + arg1
+ ','
+ (arg2 != null ? "{...}"
: "null")
+ ',' + arg3 + ')'));
}
}
Then import this into Class134,java
import java.io.IOException;Ok save and close Class134.java, and open Class131_Sub19.java and find
public static Class29 method1808(int arg0, boolean arg1) {Add the end of the void right above the "return class29;" is where this next part will go.
So basically how to add the custom models is this, similar to 508 AND 317.
if (arg0 == 6130) { //The item ID, in this case rock shell legs
class29.aString341 = "Prothemium Legs"; //Lul i think their prothemium i don't play RS, anyways this is the name
class29.anInt294 = 6; //Inventory Model and drop Model, 6 is the file name in the models folder
class29.anInt351 = 6; // Player model(when it goes on you), 6 is the file name in the models folder
}
I didn't find/maybe won't find(depends if i want to work on this) anything else like zoom/rotation/offset or w/e. That's why the inventory model was small in the picture.
If your having trouble with the if (arg0 == etc... here's my whole method...
public static Class29 method1808(int arg0, boolean arg1) {
try {
anInt4399++;
Class29 class29;
synchronized (Class169.aClass214_2267) {
class29 = (Class29) Class169.aClass214_2267.method2780(126, (long) arg0);
if (arg1 != false) {
aClass175_4397 = null;
}
}
if (class29 != null) {
return class29;
}
byte[] is = (Class131_Sub17.aClass158_4376.method2364(Class131 _Sub2_Sub13.method1532(3676, arg0),
Class67.method708(-348018488, arg0), 0));
class29 = new Class29();
class29.anInt349 = arg0;
if (is != null) {
class29.method426(-126, new Stream(is));
}
class29.method429(128);
if ((class29.anInt318 ^ 0xffffffff) != 0) {
class29.method420(method1808(class29.anInt294, false), false,
method1808(class29.anInt318, arg1));
}
if (class29.anInt309 != -1) {
class29.method416(method1808(class29.anInt309, false),
method1808(class29.anInt361, false),
(byte) 100);
}
if (!Class131_Sub2_Sub34.aBoolean6033 && class29.aBoolean366) {
class29.aStringArray311 = Class214.aStringArray3147;
class29.aStringArray365 = Class125.aStringArray1637;
class29.aString341 = Class189.aString2761;
class29.aBoolean327 = false;
class29.anIntArray336 = null;
class29.anInt295 = 0;
}
synchronized (Class169.aClass214_2267) {
Class169.aClass214_2267.method2773(true, class29, (long) arg0);
}
if (arg0 == 6130) { //The item ID, in this case rock shell legs
class29.aString341 = "Prothemium Legs"; //Lul i think their prothemium i don't play RS
class29.anInt294 = 6; //Inventory Model and drop Model
class29.anInt351 = 6; // Player model(when it goes on you)
}
return class29;
} catch (RuntimeException runtimeexception) {
throw Class131_Sub2_Sub6.method1495(runtimeexception,
("ks.C(" + arg0 + ',' + arg1
+ ')'));
}
}
If you plan on having a lot of customs, i would suggest using a switch statement.
Oh and your gonna get invisible body parts probably...
Here's my prothemium legs model file, (Paste it in the models folder)
Only the registered members can see the link.
Credits:
Zee Best for his model loading thing
Me for finding the new methods lol.
Edit:
This should work, i changed some things before i posted, but it should still work. If it doesn't tell me and i'll look at it.
Evo7
November 7th, 2010, 05:23
Nice release bro!
Emily
November 7th, 2010, 05:30
Good job Steve :)
Looking through some ints,
class29.anInt330 = 11359;//inventory/drop model
class29.anInt336 = 1300;//model zoom
class29.anInt389 = 498;//modelRotation1
class29.anInt395 = 1600;// model rotation 2
class29.anInt358 = -1;// model offset 1
class29.anInt391 = -1;// model offset 2
class29.anInt390 = 11360;//Male model id
class29.anInt347 = -1;//male sleeves
class29.anInt344 = -1;//women sleeves
class29.anInt387 = 11360;//female model id
Maybe class 29 has something to do with inventory model/size
sl1pknot94
November 7th, 2010, 05:36
looks rly nice, i just tried doing it..but didn't work..i went to source>bin, made file models, made the file modelloader, pasted the proemthium legs file...went to class 134 replaced code...imported..went to the other file added the code..compiled..didn't work
is it source bin or client bin..fuck am an idiot..and i got 1 error compiling client..
src\client.java:1: class, interface, or enum expected
z/* client - Decompiled by JODE
^
1 error
Press any key to continue . . .
and thanks.
iTStorm
November 7th, 2010, 05:37
Nice! But what does this do? Does this add it in the packaged cache from JaGeX?
EDIT:
looks rly nice, i just tried doing it..but didn't work..i went to source>bin, made file models, made the file modelloader, pasted the proemthium legs file...went to class 134 replaced code...imported..went to the other file added the code..compiled..didn't work
is it source bin or client bin..fuck am an idiot..and i got 1 error compiling client..
src\client.java:1: class, interface, or enum expected
z/* client - Decompiled by JODE
^
1 error
Press any key to continue . . .
and thanks.
Go into client.java and remove the "z" at the beginning of the file.
Steve
November 7th, 2010, 05:43
Nice! But what does this do? Does this add it in the packaged cache from JaGeX?
EDIT:
Go into client.java and remove the "z" at the beginning of the file.
No this just loads a file and gets it's bytes and replaced the model that's trying to be loaded(6130) with the custom one.
Cjay0091
November 7th, 2010, 05:43
Not hard, good job i guess.
I think you should keep somethings to yourself, as this will make 562's even more custom.
sl1pknot94
November 7th, 2010, 05:45
how did the z get there lol...anyway heres the actual error then..
src\Class134.java:26: cannot find symbol
symbol : variable ModelLoader
location: class Class134
if (ModelLoader.models == null) {
^
src\Class134.java:27: cannot find symbol
symbol : class ModelLoader
location: class Class134
new ModelLoader();
^
src\Class134.java:29: cannot find symbol
symbol : variable ModelLoader
location: class Class134
for (int modelStored : ModelLoader.models) {
^
src\Class134.java:32: cannot find symbol
symbol : variable ModelLoader
location: class Class134
return new Class116(ModelLoader.loadNewModel(arg0));
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
Press any key to continue . . .
that means its not imported right ?
but i got this on the first line though
import java.io.IOException;
Steve
November 7th, 2010, 05:49
Not hard, good job i guess.
I think you should keep somethings to yourself, as this will make 562's even more custom.
I know, everyone else that did figure it out hasn't released it for that reason, but I like to release things. On second thought people wouldve payed me for this lol.
@slipknot, Did u even make the model loader class
[I'm]_[Not]_[Caelum]
November 7th, 2010, 05:52
Good job Steve :)
Looking through some ints,
class29.anInt330 = 11359;//inventory/drop model
class29.anInt336 = 1300;//model zoom
class29.anInt389 = 498;//modelRotation1
class29.anInt395 = 1600;// model rotation 2
class29.anInt358 = -1;// model offset 1
class29.anInt391 = -1;// model offset 2
class29.anInt390 = 11360;//Male model id
class29.anInt347 = -1;//male sleeves
class29.anInt344 = -1;//women sleeves
class29.anInt387 = 11360;//female model id
Maybe class 29 has something to do with inventory model/size
why not just refactor the ItemDefinitions class, class29 is itemdefs btw
sl1pknot94
November 7th, 2010, 05:58
hmm steve, am confused..i made the models folder in the source bin, and then in the models folder i made the modelloader.java am i right ?
Steve
November 7th, 2010, 06:05
@slipknot, no modelloader.java goes in your src folder
@Emily is that for 562?
Edit: No it's not lol. That's for 508, from that moparscape post. The variables are gonna change because they obfuscate. That's why i don't have the other ones because I'm not in the mood to find them.
sl1pknot94
November 7th, 2010, 06:19
got them in the right places
compiled..no errors..run the server, opened the client..try to login..screen turns white and this error in client cmd
ip:127.0.0.1
Error: og.C(2165,0,{...},1) ta.K(0,132096,{...},true,10) ta.L(10,{...},{...},0,2
688,1408,-80,1024,{...},108,true) ql.R(32653,{...},true,1024) ql.<init>({...},{.
..},0,0,1408,-80,2688,false,10,11,20,21,10,0,false) pe.J(true,477,{...},-91,0,{.
..},10,0,10,0,20,-1,false) ps.C({...},false,-53,-32,{...},0,{...}) wo.A(-93,fals
e) uj.B(false) client.M(77) | ModelLoader.loadArray:26 ModelLoader.<init>:10 Cla
ss134.method2097:27 Class187.method2585:1178 Class187.method2569:586 Class23_Sub
4_Sub5.method389:179 Class23_Sub4_Sub5.<init>:301 Class145.method2168:328 Class1
51.method2197:229 Class220.method2828:311 Class202.method2723:253 client.method4
3:687 Applet_Sub1.method41:317 Applet_Sub1.run:799 java.lang.Thread.run:619 | ja
va.lang.NullPointerException
error_game_crash
Shutdown complete - clean:true
sry too much questions :/
Steve
November 7th, 2010, 06:28
got them in the right places
compiled..no errors..run the server, opened the client..try to login..screen turns white and this error in client cmd
ip:127.0.0.1
Error: og.C(2165,0,{...},1) ta.K(0,132096,{...},true,10) ta.L(10,{...},{...},0,2
688,1408,-80,1024,{...},108,true) ql.R(32653,{...},true,1024) ql.<init>({...},{.
..},0,0,1408,-80,2688,false,10,11,20,21,10,0,false) pe.J(true,477,{...},-91,0,{.
..},10,0,10,0,20,-1,false) ps.C({...},false,-53,-32,{...},0,{...}) wo.A(-93,fals
e) uj.B(false) client.M(77) | ModelLoader.loadArray:26 ModelLoader.<init>:10 Cla
ss134.method2097:27 Class187.method2585:1178 Class187.method2569:586 Class23_Sub
4_Sub5.method389:179 Class23_Sub4_Sub5.<init>:301 Class145.method2168:328 Class1
51.method2197:229 Class220.method2828:311 Class202.method2723:253 client.method4
3:687 Applet_Sub1.method41:317 Applet_Sub1.run:799 java.lang.Thread.run:619 | ja
va.lang.NullPointerException
error_game_crash
Shutdown complete - clean:true
sry too much questions :/
Try to put your models folder in the home directory with the run.bat and stuff, I'm not sure where i put mine I'm on my phone.
sl1pknot94
November 7th, 2010, 06:40
thanks that worked :D (in the client folder)
one last thing hehe, its only showing the wear model, and the drop/inven/equipment spot not showing for some reason even though its coded, and dunno where the problem is..and thanks again :D
EDIT: oh and the legs is called Promethium if u wanna correct it :D
Steve
November 7th, 2010, 06:54
thanks that worked :D (in the client folder)
one last thing hehe, its only showing the wear model, and the drop/inven/equipment spot not showing for some reason even though its coded, and dunno where the problem is..and thanks again :D
EDIT: oh and the legs is called Promethium if u wanna correct it :D
That must be what I changed lol.
Stacx
November 7th, 2010, 07:25
Why are you posting Zee best's work?
Ficho
November 7th, 2010, 07:59
That must be what I changed lol.
good job steve :D oh and could you tell me.. how did you created that.. custom file? that item.. what program? =/ im noob to these stuff
Defil3d ko3d
November 7th, 2010, 08:43
Great job.
I got one error:
src\Class134.java:29: cannot find symbol
symbol : variable ModelLoader
location: class Class134
if (ModelLoader.models == null) {
^
src\Class134.java:30: cannot find symbol
symbol : class ModelLoader
location: class Class134
new ModelLoader();
^
src\Class134.java:32: cannot find symbol
symbol : variable ModelLoader
location: class Class134
for (int modelStored : ModelLoader.models) {
^
src\Class134.java:35: cannot find symbol
symbol : variable ModelLoader
location: class Class134
return new Class116(ModelLoader.loadNewModel(arg0));
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
Press any key to continue . . .
Just means I have to import the ModelLoader?
Also, do you have to make your own 562 models or can you load 508 models? You should also make a guide on how to make models and how to add multiple customs to a 562.
battlezone
November 7th, 2010, 08:51
why would you make a tutorial on this. let people figure it out them selfs.
besides for the fact customs in 562 look bad and make your server lag balls.
sl1pknot94
November 7th, 2010, 08:59
Just means I have to import the ModelLoader?
.
the modelloader.java has to be in the client src file, and your model folder in the client folder
Mongoth
November 7th, 2010, 09:13
why would you make a tutorial on this. let people figure it out them selfs.
besides for the fact customs in 562 look bad and make your server lag balls.
Thats dumb, models cant make you lag unless they're laggy in your designing software which is only due to way to many polygons. And runescapes polygon limit is under 2000 and barely even 50,000 vertices can make you lag. AND jagex adds new models all the time, it isnt as laggy (just disconnects at random times)
Its not the models, its either a shitty server, or polygon overflow (which isnt possible to add through DATMaker).
AND
There's no way in hell id figure this out by myself.
apache ah64
November 7th, 2010, 09:28
what is the int for invertory drop model ? could someone tell me it please becuz 174 dont work :@
Defil3d ko3d
November 7th, 2010, 09:34
the modelloader.java has to be in the client src file, and your model folder in the client folder
Thanks, but got this error now.
src\ModelLoader.java:29: reached end of file while parsing
}
^
1 error
Press any key to continue . . .
battlezone
November 7th, 2010, 09:53
Thanks, but got this error now.
src\ModelLoader.java:29: reached end of file while parsing
}
^
1 error
Press any key to continue . . .
your forgot a } some where
Mongoth
November 7th, 2010, 09:54
Anyone mind posting a 562 client compiler... I searched everywheres but cant find one
Niator
November 7th, 2010, 12:17
Wow... 562 customs!? O_o
Nice nice nice...!
Defil3d ko3d
November 7th, 2010, 12:35
I copied his code :S
import java.io.*;
import java.util.*;
public class ModelLoader {
public static List<Integer> models = null;
public ModelLoader()
{
loadArray();
}
public static byte[] loadNewModel(int i) throws IOException
{
DataInputStream dis = new DataInputStream(new FileInputStream("./models/"+i+".dat"));
byte[] buffer = new byte[(int) new File("./models/"+i+".dat").length()];
dis.readFully(buffer);
dis.close();
return buffer;
}
public void loadArray()
{
models = new ArrayList<Integer>();
File[] m = new File("./models").listFiles();
for (File model : m)
if(model.getName().contains(".dat"))
models.add(Integer.parseInt(model.getName().substr ing(0, model.getName().indexOf(".dat"))));
}
Steve
November 7th, 2010, 13:53
stacx, would you care to look at the credits?
Everyone else, thanks and if you got errors actually read the compiler and figure out what the error is.
Stacx
November 7th, 2010, 14:03
stacx, would you care to look at the credits?
Everyone else, thanks and if you got errors actually read the compiler and figure out what the error is.
So 99% zee 1% you? Don't act like it's hard, he even gave you instructions.
WC REECE
November 7th, 2010, 14:04
the wielding model works but the invo model dosnt...
Steve
November 7th, 2010, 14:17
So 99% zee 1% you? Don't act like it's hard, he even gave you instructions.
Where did I say it's hard?
dhmaster
November 7th, 2010, 14:25
I copied his code :S
import java.io.*;
import java.util.*;
public class ModelLoader {
public static List<Integer> models = null;
public ModelLoader()
{
loadArray();
}
public static byte[] loadNewModel(int i) throws IOException
{
DataInputStream dis = new DataInputStream(new FileInputStream("./models/"+i+".dat"));
byte[] buffer = new byte[(int) new File("./models/"+i+".dat").length()];
dis.readFully(buffer);
dis.close();
return buffer;
}
public void loadArray()
{
models = new ArrayList<Integer>();
File[] m = new File("./models").listFiles();
for (File model : m)
if(model.getName().contains(".dat"))
models.add(Integer.parseInt(model.getName().substr ing(0, model.getName().indexOf(".dat"))));
}
You have you have to put the ModelLoader.java file in the src folder... with all class1... class2.. -- class134... in that folder put it and it will work
project-excel
November 7th, 2010, 17:09
how do you edit the "stats" of it?
Steve
November 7th, 2010, 17:52
how do you edit the "stats" of it?
That's server sided, and for the inventory model everyone, try anInt293 and not anInt294, i think that's what I changed.
Defil3d ko3d
November 7th, 2010, 18:27
You have you have to put the ModelLoader.java file in the src folder... with all class1... class2.. -- class134... in that folder put it and it will work
I did. I have the parsing error now.
Steve
November 7th, 2010, 18:35
I did. I have the parsing error now.
Lol that's because u didn't copy the whole thing.. Add another "}"...
Chief Smart
November 7th, 2010, 19:37
Wow! dude, ty for the tut ;)
good and esay to understand tutorial :)
sl1pknot94
November 7th, 2010, 20:51
does anyone know how to get the anint for items?
Steve
November 8th, 2010, 00:18
does anyone know how to get the anint for items?
What? Change anInt294, to anInt293 for the inventory model. Then get an inventory model somewhere lol.
dhmaster
November 8th, 2010, 14:33
Nice, is there a tutorial for making for example ornamental dragon kit (dragon g) or changing .mqo to .dat
apache ah64
November 9th, 2010, 17:41
could someone make it for female to.... XD it dont work if you are ingame female lol anyways
i dont got the icon of item if i put it i got the old item where i did put it on like dungeoniring cape is still a team cape :@
Steve
November 9th, 2010, 21:09
could someone make it for female to.... XD it dont work if you are ingame female lol anyways
i dont got the icon of item if i put it i got the old item where i did put it on like dungeoniring cape is still a team cape :@
Find the field yourself, I'm busy with other things. It would only take you like less than 10 minutes. And if the cape isn't the dung cape, you didn't get the id right, OR you typed in the wrong variable your setting.
Ficho
November 9th, 2010, 21:33
steve.. could u tell me.. how do you create those models, you could just pm me :D like.. u use blender or something?
Steve
November 10th, 2010, 02:45
steve.. could u tell me.. how do you create those models, you could just pm me :D like.. u use blender or something?
It's called the 'Model Section' anything that is .dat will work.
Gawdz
November 10th, 2010, 04:14
good job thanks steve this is good with capes added death cape adding donator and staff capes too
Steve
November 12th, 2010, 04:53
I guess i will find the female id, because someone said that the female equip doesn't work, busy with objects and interfaces atm though.
Mongoth
November 14th, 2010, 18:23
i got 1 error:
src\Class131_Sub19.java:51: unreachable statement
byte[] is = (Class131_Sub17.aClass158_4376.method2364
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Press any key to continue . . .
Steve
November 14th, 2010, 19:25
i got 1 error:
src\Class131_Sub19.java:51: unreachable statement
byte[] is = (Class131_Sub17.aClass158_4376.method2364
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Press any key to continue . . .
... You put the if statements under the first return didn't you.
Mongoth
November 14th, 2010, 23:37
... You put the if statements under the first return didn't you.
Nope....
Gawdz
November 14th, 2010, 23:41
l2copy/paste
Mongoth
November 14th, 2010, 23:52
l2copy/paste
Thanks for the help
Jon
November 14th, 2010, 23:55
Nope....
yep...
Mongoth
November 15th, 2010, 00:01
yep...
No...
Add the end of the void right above the "return class29;" is where this next part will go.
This is what i did...
if (arg0 == 6130) { //The item ID, in this case rock shell legs
class29.aString341 = "Prothemium Legs"; //Lul i think their prothemium i don't play RS, anyways this is the name
class29.anInt294 = 6; //Inventory Model and drop Model, 6 is the file name in the models folder
class29.anInt351 = 6; // Player model(when it goes on you), 6 is the file name in the models folder
}
return class29;
Right above "return class29;" correct?
Steve
November 15th, 2010, 00:13
No...
This is what i did...
if (arg0 == 6130) { //The item ID, in this case rock shell legs
class29.aString341 = "Prothemium Legs"; //Lul i think their prothemium i don't play RS, anyways this is the name
class29.anInt294 = 6; //Inventory Model and drop Model, 6 is the file name in the models folder
class29.anInt351 = 6; // Player model(when it goes on you), 6 is the file name in the models folder
}
return class29;
Right above "return class29;" correct?
Wrong return obviously, L2Read.
Mongoth
November 15th, 2010, 00:17
Wrong return obviously, L2Read.
Alright hop off my dick... And btw, idk how to read, im also blind, and don't know english. So please just bare with me.
Steve
November 15th, 2010, 00:20
Alright hop off my dick... And btw, idk how to read, im also blind, and don't know english. So please just bare with me.
If you can't do that stuff the I can't help u.
Mongoth
November 15th, 2010, 00:24
If you can't do that stuff the I can't help u.
I can narrow it down by saying i fixed it?
Gawdz
November 15th, 2010, 00:41
Thanks for the help
anytime.
Gawdz
November 15th, 2010, 12:57
steve do you think you can help me find the model rotation? my staff capes inv model is upside down.
buckyisdalegend
November 15th, 2010, 19:12
sorry didnt get what u did
Steve
November 15th, 2010, 21:43
steve do you think you can help me find the model rotation? my staff capes inv model is upside down.
Just go through the fields that are ints in class29 and set each one every time and see what it does.
Gawdz
November 15th, 2010, 22:36
Just go through the fields that are ints in class29 and set each one every time and see what it does.
thats gonna take forever but ok
Steve
November 15th, 2010, 22:40
thats gonna take forever but ok
Took me like 10 minutes for most of the objects
buckyisdalegend
November 16th, 2010, 06:09
import java.io.IOException;
where do u put this
Acrylix
November 16th, 2010, 06:14
atzeetoop
Bobby Tillman
November 28th, 2010, 07:25
I'm going to try this do you have the int's for staff of light
Steve
November 28th, 2010, 18:55
I'm going to try this do you have the int's for staff of light
Lol are you serious?
David
November 28th, 2010, 18:57
Lol are you serious?
Yup, he has to be spoonfeeded....
blue
January 11th, 2011, 00:00
I get this error
compile files... please wait.
src\Class131_Sub19.java:73: unreachable statement
if (arg0 == 6130) { //The item ID, in this case rock shell legs
^
src\Class131_Sub19.java:83: missing return statement
}
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
Press any key to continue . . .
smail222
February 10th, 2011, 15:06
i'm getting this errror :(in attatchement)
Sonicforce41
February 12th, 2011, 18:37
Can anyone turn this into a 562 client loading 602 cache Tut? Ty
Steve
February 13th, 2011, 04:26
I'll convert it to 562/602 for rs moneyz
apache ah64
March 5th, 2011, 22:27
lolz! how much rs money:cool:
You guys forget also something it download cache of corruptionx and you will need to make it download cache with models ;) really easy should post a tut... Or i do it for rs money to?
ElementalZ
April 1st, 2011, 17:33
src\Class134.java:30: cannot find symbol
symbol : variable modelLoader
location: class Class134
if (modelLoader.models == null) {
^
src\Class134.java:31: cannot find symbol
symbol : class modelLoader
location: class Class134
new modelLoader();
^
src\Class134.java:33: cannot find symbol
symbol : variable modelLoader
location: class Class134
for (int modelStored : modelLoader.models) {
^
src\Class134.java:36: cannot find symbol
symbol : variable modelLoader
location: class Class134
return new Class116(modelLoader.loadNewModel(arg0));
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
Druk op een toets om door te gaan. . .
David
April 1st, 2011, 17:36
I'll convert it to 562/602 for rs moneyz
So it'll actually converted to 602 since the client is 602.
Steve
April 1st, 2011, 20:14
So it'll actually converted to 602 since the client is 602.
The client isn't 602? It's still a 562 client lol.
davidpaceway
April 11th, 2011, 05:20
I have the same error its a pain... I don't get it?
davidpaceway
April 11th, 2011, 07:08
okay uhm. How'd you get the model to work with it and if u could can someone give me a list of models.. thanks
Deivis125133
April 16th, 2011, 17:37
Hi Steve, i have problem with costum item i can't add i get 100 error can some one send me all those files ?
Acrylix
April 17th, 2011, 01:52
Probably missing a curly brace.
Chronicscape
April 19th, 2011, 20:42
if yyou want a client all set loading the shiz heres my link however you still need to edit your source to load them
Client 562/602 (Only the registered members can see the link.)
Custom Client (Only the registered members can see the link.!-for-562-RELEASE)
To change the IP simply unhide the files givin by the Custom Client thread i released through Steves tut
*credits to steve on loading customs tut 95%*
*credits to me for making it work right 5%*
tedhead2
April 19th, 2011, 20:53
inb4 custom npcs >_>
Steve
April 19th, 2011, 20:54
inb4 custom npcs >_>
I had a thread just never finished it beyond changing some definitions like size level and name.
Acrylix
April 20th, 2011, 00:22
You should finish it. Would be nice.
Deivis125133
April 21st, 2011, 17:24
I need 562 updated client to chaotic iteams or primal , i need fully updated client files!
Deivis125133
April 24th, 2011, 07:35
Please chaotic model, i need.
sinster
May 8th, 2011, 20:47
i have a 562 load 604 were would i find class134 and other stuff.
XliteScapez
May 20th, 2011, 01:45
What your adding,
Only the registered members can see the link.
This isn't complete really... I didn't feel like finding all the fields for what does what... So i just found the two important ones, the drop model/inventory model, and the wear model. You guys can find the rest, or maybe i will when I'm not bored with it. Anyway your gonna need Zee Best's loader thing. I'll post it here i guess,
First make a new folder in your client directory called "models"
Make a new file in your source file called ModelLoader.java and paste this in there
import java.io.*;
import java.util.*;
public class ModelLoader {
public static List<Integer> models = null;
public ModelLoader()
{
loadArray();
}
public static byte[] loadNewModel(int i) throws IOException
{
DataInputStream dis = new DataInputStream(new FileInputStream("./models/"+i+".dat"));
byte[] buffer = new byte[(int) new File("./models/"+i+".dat").length()];
dis.readFully(buffer);
dis.close();
return buffer;
}
public void loadArray()
{
models = new ArrayList<Integer>();
File[] m = new File("./models").listFiles();
for (File model : m)
if(model.getName().contains(".dat"))
models.add(Integer.parseInt(model.getName().substr ing(0, model.getName().indexOf(".dat"))));
}
}Ok, now go to Class134.java and replace this void(Well it should look similiar to this, i replaced my old one lol)
public static Class116 method2097(int arg0, int arg1, Class158 arg2,
int arg3) {
anInt1810++;
try {
byte[] is = arg2.method2364(arg1, arg0, 0);
if (is == null) {
return null;
}
if (arg3 != 1) {
method2099(29);
}
return new Class116(is);
} catch (RuntimeException runtimeexception) {
throw Class131_Sub2_Sub6.method1495(runtimeexception,
("og.C(" + arg0 + ',' + arg1
+ ','
+ (arg2 != null ? "{...}"
: "null")
+ ',' + arg3 + ')'));
}
} With this new one
public static Class116 method2097(int arg0, int arg1, Class158 arg2,
int arg3) {
try {
anInt1810++;
if (ModelLoader.models == null) {
new ModelLoader();
}
for (int modelStored : ModelLoader.models) {
if (arg0 == modelStored) {
try {
return new Class116(ModelLoader.loadNewModel(arg0));
} catch (IOException ex) {
ex.printStackTrace();
}
}
}
byte[] is = arg2.method2364(arg1, arg0, 0);
if (is == null) {
return null;
}
if (arg3 != 1) {
method2099(29);
}
return new Class116(is);
} catch (RuntimeException runtimeexception) {
throw Class131_Sub2_Sub6.method1495(runtimeexception,
("og.C(" + arg0 + ',' + arg1
+ ','
+ (arg2 != null ? "{...}"
: "null")
+ ',' + arg3 + ')'));
}
}
Then import this into Class134,java
import java.io.IOException;Ok save and close Class134.java, and open Class131_Sub19.java and find
public static Class29 method1808(int arg0, boolean arg1) {Add the end of the void right above the "return class29;" is where this next part will go.
So basically how to add the custom models is this, similar to 508 AND 317.
if (arg0 == 6130) { //The item ID, in this case rock shell legs
class29.aString341 = "Prothemium Legs"; //Lul i think their prothemium i don't play RS, anyways this is the name
class29.anInt294 = 6; //Inventory Model and drop Model, 6 is the file name in the models folder
class29.anInt351 = 6; // Player model(when it goes on you), 6 is the file name in the models folder
}
I didn't find/maybe won't find(depends if i want to work on this) anything else like zoom/rotation/offset or w/e. That's why the inventory model was small in the picture.
If your having trouble with the if (arg0 == etc... here's my whole method...
public static Class29 method1808(int arg0, boolean arg1) {
try {
anInt4399++;
Class29 class29;
synchronized (Class169.aClass214_2267) {
class29 = (Class29) Class169.aClass214_2267.method2780(126, (long) arg0);
if (arg1 != false) {
aClass175_4397 = null;
}
}
if (class29 != null) {
return class29;
}
byte[] is = (Class131_Sub17.aClass158_4376.method2364(Class131 _Sub2_Sub13.method1532(3676, arg0),
Class67.method708(-348018488, arg0), 0));
class29 = new Class29();
class29.anInt349 = arg0;
if (is != null) {
class29.method426(-126, new Stream(is));
}
class29.method429(128);
if ((class29.anInt318 ^ 0xffffffff) != 0) {
class29.method420(method1808(class29.anInt294, false), false,
method1808(class29.anInt318, arg1));
}
if (class29.anInt309 != -1) {
class29.method416(method1808(class29.anInt309, false),
method1808(class29.anInt361, false),
(byte) 100);
}
if (!Class131_Sub2_Sub34.aBoolean6033 && class29.aBoolean366) {
class29.aStringArray311 = Class214.aStringArray3147;
class29.aStringArray365 = Class125.aStringArray1637;
class29.aString341 = Class189.aString2761;
class29.aBoolean327 = false;
class29.anIntArray336 = null;
class29.anInt295 = 0;
}
synchronized (Class169.aClass214_2267) {
Class169.aClass214_2267.method2773(true, class29, (long) arg0);
}
if (arg0 == 6130) { //The item ID, in this case rock shell legs
class29.aString341 = "Prothemium Legs"; //Lul i think their prothemium i don't play RS
class29.anInt294 = 6; //Inventory Model and drop Model
class29.anInt351 = 6; // Player model(when it goes on you)
}
return class29;
} catch (RuntimeException runtimeexception) {
throw Class131_Sub2_Sub6.method1495(runtimeexception,
("ks.C(" + arg0 + ',' + arg1
+ ')'));
}
}
If you plan on having a lot of customs, i would suggest using a switch statement.
Oh and your gonna get invisible body parts probably...
Here's my prothemium legs model file, (Paste it in the models folder)
Only the registered members can see the link.
Credits:
Zee Best for his model loading thing
Me for finding the new methods lol.
Edit:
This should work, i changed some things before i posted, but it should still work. If it doesn't tell me and i'll look at it.
ummm you never added the model loader...but nice
Steve
May 20th, 2011, 03:10
ummm you never added the model loader...but nice
I clearly said make a new file ModelLoader.java lol
Lukedawesome
May 20th, 2011, 03:34
I clearly said make a new file ModelLoader.java lol
You making one for loading 602?
stevenlin598
May 20th, 2011, 03:48
is there a way to make this work for a 562 loading 602? All the stuff is mixed up in the client and the naming is different. And seriously, I don't think jagex needs to make it so unreadable to the point where all that's in one class is just one integer declaration.
Steve
May 22nd, 2011, 16:01
I'm not making this for 562 loading 602. You guys can figure it out. It's realllyyy easy
OwnsterChief
May 22nd, 2011, 16:24
I'm not making this for 562 loading 602. You guys can figure it out. It's realllyyy easy
Ok lol I been looking, I will find it..
stevenlin598
May 25th, 2011, 03:23
It would be soooooo easy if jagex had added comments. Then I bet rsps would have been entirely custom
joeyke
July 2nd, 2011, 18:15
src\Class134.java:28: cannot find symbol
symbol : variable ModelLoader
location: class Class134
if (ModelLoader.models == null) {
^
src\Class134.java:29: cannot find symbol
symbol : class ModelLoader
location: class Class134
new ModelLoader();
^
src\Class134.java:31: cannot find symbol
symbol : variable ModelLoader
location: class Class134
for (int modelStored : ModelLoader.models) {
^
src\Class134.java:34: cannot find symbol
symbol : variable ModelLoader
location: class Class134
return new Class116(ModelLoader.loadNewModel(arg0));
^
4 errors
Help Please
Hash
July 2nd, 2011, 18:18
You have created the ModelLoeader.java file? Or maybe try to import it in your Class134.java.
soapface
July 31st, 2011, 07:33
I get this error:
src\Canvas_Sub1.java:3: cannot find symbol
symbol: class Canvas
public class Canvas_Sub1 extends Canvas
^
src\Canvas_Sub1.java:6: cannot find symbol
symbol : class Component
location: class Canvas_Sub1
public Component aComponent43;
^
src\Canvas_Sub1.java:12: cannot find symbol
symbol : class Graphics
location: class Canvas_Sub1
public void update(Graphics arg0) {
^
src\Canvas_Sub1.java:36: cannot find symbol
symbol : class Graphics
location: class Canvas_Sub1
public void paint(Graphics arg0) {
^
src\Canvas_Sub1.java:124: cannot find symbol
symbol : class Component
location: class Canvas_Sub1
public Canvas_Sub1(Component arg0) {
^
src\Applet_Sub1.java:338: incompatible types
found : Canvas_Sub1
required: java.awt.Canvas
Class131_Sub2_Sub15.aCanvas5768 = new Canvas_Sub1(this);
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
6 errors
Press any key to continue . . .
scary blood
March 27th, 2012, 19:34
Nice! Going to use this and add some stuffs to my server.
I was wondering how to do it.
I have not done it yet but if i get errors or problems i fill ask and hopefully get a reply.
______________________
Scary Blood
------------------------------
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.