PDA

View Full Version : Fixes to 562/657 problems



Lukedawesome
July 21st, 2011, 03:50
Dkk WANTS me to post this tutorial, no flaming please.

You will need to download the 562/657 client. You can visit that thread here :



Problem One: Mapdata

Go to server/data/mapdata and delete Packed.DAT. Then paste all of the xteas in your mapdata folder. This will solve everyone's problem with land looking "not fully loaded".



Problem Two : Ukeys

Go to Constants.java and scroll down to your current Update Keys. Delete those and copy and paste what you downloaded from Dragonkk. This will let you actually load 657.



Problem Three : Run error

Go to LoadEquips.java and change
private int [] EquipsIds = new int[19000];

To


private int [] EquipsIds = new int[22000];



Problem Four: Disconnecting in combat

This is problem the largest problem that people are freaking out about.

1. Open up PlayerUpdate.java and search for


private static void appendHit2Update

Now, add this at the end of the void.


updateBlock.addByte((byte) 1);

DO THE SAME THING TO APPENDHITUPDATE!

2. Now open up NpcUpdate.java, and search for the same thing again and follow the same exact steps.


I know there are more problems, I have fixed them, but you guys should at least try at a few of them!



Credits
Dkk
Steve

OwnsterChief
July 21st, 2011, 04:24
Nice =) THANKS SO MUCH, I DIDNT KNOW ABOUT SOME OF THAT.

Lukedawesome
July 21st, 2011, 04:25
Just glad to help.

EvolvedBlitz
July 21st, 2011, 04:26
Hmm thread is organized I can use this for my upcoming project Using Emily's Alaric Release Thanks Bro :D

Steve
July 21st, 2011, 04:31
People should really convert Mystics hit system to their servers so they can actually have the right icons for hits, instead of my cheap fix :D.

stevenlin598
July 21st, 2011, 04:55
I get this error_game_js5io error. It doesn't give any details of why though (and not much of a description in the name). Can you help?

roflak
July 21st, 2011, 05:07
very nice client! im too much of a noob to use it though :P

Acrylix
July 21st, 2011, 06:26
What's the clients thread link?

Cjay0091
July 21st, 2011, 06:28
I'm just saying, if people can't figure this out themselves, them might as well not even do 562/657..

BubbaZeebo
July 21st, 2011, 06:50
Everytime something hits a 0 it just shows the the icon and the wrong one. Is there anyway i can change it so if something hits a 0 it'll be a blue shield?
Ik the byte for the shield is 0 but can u change it so if you have it on byte 1(the sword/melee) and it hits a 0 it'll be a blue shield(Byte 0)?

Wisdom
July 21st, 2011, 08:54
People should really convert Mystics hit system to their servers so they can actually have the right icons for hits, instead of my cheap fix :D.

Wich hit system?

own4g3
July 21st, 2011, 08:58
Everytime something hits a 0 it just shows the the icon and the wrong one. Is there anyway i can change it so if something hits a 0 it'll be a blue shield?
Ik the byte for the shield is 0 but can u change it so if you have it on byte 1(the sword/melee) and it hits a 0 it'll be a blue shield(Byte 0)?

You've to fix that yourself

The 1 hit icon is for 0 hit 2 is for melee 3 is for range 4 is for cannon and so on...

Niator
July 21st, 2011, 09:10
Gota download catche... 7 hours left omfg.
EDIT: 2 days!? OMFG!

dragonkk
July 21st, 2011, 10:05
You've to fix that yourself

The 1 hit icon is for 0 hit 2 is for melee 3 is for range 4 is for cannon and so on...

-1 , (255) means no icon.

pkmaster
July 21st, 2011, 10:12
dragonkk do u have a cache ediotr i could have?

Cart
July 21st, 2011, 10:24
dragonkk do u have a cache ediotr i could have?

Only the registered members can see the link.

SkrilleX
July 21st, 2011, 10:31
Now all i wanna see is 100% nex on a 562

pkmaster
July 21st, 2011, 10:41
Only the registered members can see the link.

is it for 562 right?

own4g3
July 21st, 2011, 10:51
is it for 562 right?

Just quit now.

pkmaster
July 21st, 2011, 10:55
Just quit now.

stfu little kid -.-

The Only Cj
July 21st, 2011, 10:56
No don't tell him stfu, this thread is based on 562+ so course its for 562.. Your the kid......

own4g3
July 21st, 2011, 10:58
stfu little kid -.-


The thing is, that you're soo dumb that you don't even know that a cache editor has nothing to do with revision. Only the registered members can see the link.

MajorAssKick
July 21st, 2011, 11:15
What is the interface id for the shops, like Runescape?

apache ah64
July 21st, 2011, 11:21
People should really convert Mystics hit system to their servers so they can actually have the right icons for hits, instead of my cheap fix :D.

RuneEscap's hit system is way better, also hits are client sided fixed.



What is the interface id for the shops, like Runescape?

Its not a interface id and yes i got the current iD.

dragonkk
July 21st, 2011, 11:56
Will help you guys:

package com.rs.game;

import com.rs.game.player.Player;

public final class Hit {

public static enum HitLook {
Miss_Hit(-1,0),
Hit(1,-1),
Melee_Hit(1,1),
Range_Hit(1,2),
Mage_Hit(1,3),
Reflect_Hit(1,5),
Absorve_Hit(4,4);
private int mark;
private int icon;

private HitLook(int mark, int icon) {
this.mark = mark;
this.icon = icon;
}

public int getMark() {
return mark;
}

public int getIcon() {
return icon;
}


}
private Entity source;
private HitLook look;
private int damage;
private boolean critical;

public void setCriticalMark() {
critical = true;
}

public Hit(Entity source, int damage, HitLook look) {
this.source = source;
this.damage = damage;
this.look = look;
}

public int getMark(Player player, Entity victm) {
//melee,range,mage hit
if(damage == 0 && (look.getIcon() == 1 || look.getIcon() == 2 || look.getIcon() == 3))
return HitLook.Miss_Hit.getMark();
return (critical ? 0 : look.getMark()) + (player == victm || player == source ? 0 : 5);
}


public int getIcon() {
//normal hit/critical
if(damage == 0 && (look.getMark() == 1 || look.getMark() == 2))
return HitLook.Miss_Hit.getIcon();
return look.getIcon();
}

public HitLook getLook() {
return look;
}

public int getDamage() {
return damage;
}

public void setDamage(int damage) {
this.damage = damage;
}

public Entity getSource() {
return source;
}

public void setSource(Entity source) {
this.source = source;
}


}

player Hit1:


private void applyHit1Mask(Player p, OutputStream data) {
data.writeSmart(p.getNextHit1().getDamage());
data.writeByte128(p.getNextHit1().getMark(player, p));
int Amthp = p.getHitpoints();
int maxHp = p.getMaxHitpoints();
if (Amthp > maxHp)
Amthp = maxHp;
data.writeByteC(Amthp * 255 / maxHp);
data.writeByte(p.getNextHit1().getIcon());
}


player hit2:


private void applyHit2Mask(Player p, OutputStream data) {
data.writeSmart(p.getNextHit2().getDamage());
data.writeByte(p.getNextHit2().getMark(player, p));
data.writeByte(p.getNextHit2().getIcon());
}

The Only Cj
July 21st, 2011, 13:19
Will help you guys:

package com.rs.game;

import com.rs.game.player.Player;

public final class Hit {

public static enum HitLook {
Miss_Hit(-1,0),
Hit(1,-1),
Melee_Hit(1,1),
Range_Hit(1,2),
Mage_Hit(1,3),
Reflect_Hit(1,5),
Absorve_Hit(4,4);
private int mark;
private int icon;

private HitLook(int mark, int icon) {
this.mark = mark;
this.icon = icon;
}

public int getMark() {
return mark;
}

public int getIcon() {
return icon;
}


}
private Entity source;
private HitLook look;
private int damage;
private boolean critical;

public void setCriticalMark() {
critical = true;
}

public Hit(Entity source, int damage, HitLook look) {
this.source = source;
this.damage = damage;
this.look = look;
}

public int getMark(Player player, Entity victm) {
//melee,range,mage hit
if(damage == 0 && (look.getIcon() == 1 || look.getIcon() == 2 || look.getIcon() == 3))
return HitLook.Miss_Hit.getMark();
return (critical ? 0 : look.getMark()) + (player == victm || player == source ? 0 : 5);
}


public int getIcon() {
//normal hit/critical
if(damage == 0 && (look.getMark() == 1 || look.getMark() == 2))
return HitLook.Miss_Hit.getIcon();
return look.getIcon();
}

public HitLook getLook() {
return look;
}

public int getDamage() {
return damage;
}

public void setDamage(int damage) {
this.damage = damage;
}

public Entity getSource() {
return source;
}

public void setSource(Entity source) {
this.source = source;
}


}

player Hit1:


private void applyHit1Mask(Player p, OutputStream data) {
data.writeSmart(p.getNextHit1().getDamage());
data.writeByte128(p.getNextHit1().getMark(player, p));
int Amthp = p.getHitpoints();
int maxHp = p.getMaxHitpoints();
if (Amthp > maxHp)
Amthp = maxHp;
data.writeByteC(Amthp * 255 / maxHp);
data.writeByte(p.getNextHit1().getIcon());
}


player hit2:


private void applyHit2Mask(Player p, OutputStream data) {
data.writeSmart(p.getNextHit2().getDamage());
data.writeByte(p.getNextHit2().getMark(player, p));
data.writeByte(p.getNextHit2().getIcon());
}



Finally added new hits.. Had to change a lot of shit though, nice one alex

Intensive Tony
July 21st, 2011, 13:26
Alex i dont know what i did wrong but got much erros so

i replaced hits.java like with urs and changed the imports and name

and putted the void's in playerupdate but got errors

u know what i did wrong :D ?

own4g3
July 21st, 2011, 15:10
Alex i dont know what i did wrong but got much erros so

i replaced hits.java like with urs and changed the imports and name

and putted the void's in playerupdate but got errors

u know what i did wrong :D ?

Dumbass
You obviously have to convert it first. Only the registered members can see the link.

flavius aka chris
July 21st, 2011, 15:19
umm i cant log in says connection timed out

dragonkk
July 21st, 2011, 15:22
umm i cant log in says connection timed out

Sure?

own4g3
July 21st, 2011, 15:22
umm i cant log in says connection timed out

Mapdata problem.

flavius aka chris
July 21st, 2011, 15:33
ok ty ima try see what i did wrong i think i know :P

Intensive Tony
July 21st, 2011, 15:44
ok ty ima try see what i did wrong i think i know :P


Delete packet.dat

and put all dragonkk mapdata files in the unpacked folder then run server :)

flavius aka chris
July 21st, 2011, 15:47
cant get it :/

flavius aka chris
July 21st, 2011, 15:47
nvm ima try

flavius aka chris
July 21st, 2011, 15:58
ok i did it now it kicks me when i log in ....

Wisdom
July 21st, 2011, 15:59
Thanks Dkk for all this was getting really sick of 562/602.

The WIZ
July 21st, 2011, 16:02
Nice tut, i will use when i do make a 562 :)

flavius aka chris
July 21st, 2011, 16:23
Sure?

ye im sure i pretty much messaged u on msn

Beuner
July 21st, 2011, 17:49
Nice, was having some problems but it's fixed now.

flavius aka chris
July 21st, 2011, 18:54
umm someone helped me but i dunno gets stuck on performing login@!@!!@!@!@!@

Sonicforce41
July 21st, 2011, 19:18
Atleast help us out with this login issue.

own4g3
July 21st, 2011, 19:22
Atleast help us out with this login issue.

Atleast read the tutorial correctly.

Beuner
July 21st, 2011, 19:32
Sonic it's in the thread...

flavius aka chris
July 21st, 2011, 19:50
followed every single possible thing but the client is stuck on performing log in for like 5 min then it says connection timed out

own4g3
July 21st, 2011, 20:01
followed every single possible thing but the client is stuck on performing log in for like 5 min then it says connection timed out

Did you replaced your whole unpacked mapdata folder with dkk's one?
If ye, you don't have to replace whole folder, just add files to your unpacked folder.

flavius aka chris
July 21st, 2011, 20:07
Did you replaced your whole unpacked mapdata folder with dkk's one?
If ye, you don't have to replace whole folder, just add files to your unpacked folder.

what u mean add me on msn poeanru.flavius@Hotmail.com

SkrilleX
July 21st, 2011, 20:08
umm someone helped me but i dunno gets stuck on performing login@!@!!@!@!@!@

Make sure your server has the new mapdata and new ukeys if you can't figure it out i say learn something like a 317 to start and work your way up

flavius aka chris
July 21st, 2011, 20:13
Make sure your server has the new mapdata and new ukeys if you can't figure it out i say learn something like a 317 to start and work your way up

i know how to work with 562... and i still dont get it add me on msn if u know how poeanru.flavius@Hotmail.com

flavius aka chris
July 22nd, 2011, 00:09
if u can help me with map data add me on msn poeanru.flavius@Hotmail.com

SkrilleX
July 22nd, 2011, 00:25
if u can help me with map data add me on msn poeanru.flavius@Hotmail.com

OK did you change the ukeys?

flavius aka chris
July 22nd, 2011, 00:42
OK did you change the ukeys?

yes i did when i try to log in says connection timed out

SkrilleX
July 22nd, 2011, 00:44
yes i did when i try to log in says connection timed out

Um idk it didn't happen to me so tbh i have no idea maybe you followed a step wrong

Oh Sorry Bruh
July 22nd, 2011, 00:53
Added
sendConfig(5000, player.maxHp); to ActionSender and got
this

Compiling
src\com\rs2hd\net\ActionSender.java:435: cannot find symbol
symbol : variable maxHp
location: class com.rs2hd.model.Player
sendConfig(5000, player.maxHp);
^
1 error
Correctly compiled
Press any key to continue . . .
and tried to add 99 * 10 and got another error.

Emily
July 22nd, 2011, 00:56
Added
sendConfig(5000, player.maxHp); to ActionSender and got
this

Compiling
src\com\rs2hd\net\ActionSender.java:435: cannot find symbol
symbol : variable maxHp
location: class com.rs2hd.model.Player
sendConfig(5000, player.maxHp);
^
1 error
Correctly compiled
Press any key to continue . . .
and tried to add 99 * 10 and got another error.

Because you don't have player.maxHp declared in player.java...

SkrilleX
July 22nd, 2011, 01:11
Added
sendConfig(5000, player.maxHp); to ActionSender and got
this

Compiling
src\com\rs2hd\net\ActionSender.java:435: cannot find symbol
symbol : variable maxHp
location: class com.rs2hd.model.Player
sendConfig(5000, player.maxHp);
^
1 error
Correctly compiled
Press any key to continue . . .
and tried to add 99 * 10 and got another error.

Ya you don't have it declared atm im working on it and some things i won't say as there really cool if i can find the id of it

Oh Sorry Bruh
July 22nd, 2011, 01:21
Because you don't have player.maxHp declared in player.java...


Ya you don't have it declared atm im working on it and some things i won't say as there really cool if i can find the id of it

I declared it but what should i put as its return value? I need it to be maxed hp

Lukedawesome
July 22nd, 2011, 01:22
I declared it but what should i put as its return value? I need it to be maxed hp

your hitpoints total level xp.

flavius aka chris
July 22nd, 2011, 01:24
add me on hotmail if u can fix the connection timed out error


poeanru.flavius@Hotmail.com

SkrilleX
July 22nd, 2011, 01:25
OK This is how to add the hp sendConfig(5000, player.getMaxHp());

Simple you just forgot ()

Lukedawesome
July 22nd, 2011, 01:26
OK This is how to add the hp sendConfig(5000, player.getMaxHp());

Simple you just forgot ()

Once again why people need an IDE.

shadow fox
July 22nd, 2011, 01:29
Once again why people need an IDE.

Where do i add this???

Lukedawesome
July 22nd, 2011, 01:30
Where do i add this???

An IDE?

shadow fox
July 22nd, 2011, 01:30
An IDE?

Where do i get that??

Lukedawesome
July 22nd, 2011, 01:31
Where do i get that??

Only the registered members can see the link.

shadow fox
July 22nd, 2011, 01:32
Only the registered members can see the link.

Can u give me a link ;( to directly to the ide

Oh Sorry Bruh
July 22nd, 2011, 01:34
OK This is how to add the hp sendConfig(5000, player.getMaxHp());

Simple you just forgot ()

Oh ok
Added it and the hp is at 10 now

shadow fox
July 22nd, 2011, 01:37
Oh ok
Added it and the hp is at 10 now

Where do u add the hp sendConfig(5000, player.getMaxHp()); at -.-

Oh Sorry Bruh
July 22nd, 2011, 01:39
Where do u add the hp sendConfig(5000, player.getMaxHp()); at -.-

sendLogin void

shadow fox
July 22nd, 2011, 01:43
sendLogin void

Certain file plz?

flavius aka chris
July 22nd, 2011, 01:44
add me on msn if u can make my 562 load 657



poeanru.flavius@Hotmail.com

Oh Sorry Bruh
July 22nd, 2011, 01:45
add me on msn if u can make my 562 load 657

poeanru.flavius@Hotmail.com

To make it load 657 just change the ukeys

shadow fox
July 22nd, 2011, 01:46
add me on msn if u can make my 562 load 657



poeanru.flavius@Hotmail.com

added u but i cant code hp orb or hp 5000

SkrilleX
July 22nd, 2011, 01:46
Oh ok
Added it and the hp is at 10 now
ya make it getHp() not getmaxhp()

EDIT: also if you want 10X so it says 100 then do this


public int getHp() {
return skills.getLevel(Skills.HITPOINTS)*10;
}


public int getMaxHp() {
return skills.getLevelForXp(Skills.HITPOINTS)*10;
}

shadow fox
July 22nd, 2011, 01:48
ya make it getHp() not getmaxhp()

any certain file to put gethp stuff at?

Oh Sorry Bruh
July 22nd, 2011, 01:53
ya make it getHp() not getmaxhp()

EDIT: also if you want 10X so it says 100 then do this


public int getHp() {
return skills.getLevel(Skills.HITPOINTS)*10;
}


public int getMaxHp() {
return skills.getLevelForXp(Skills.HITPOINTS)*10;
}

ok thanks trying it now

EDIT: Worked but how do I make it so it changes as you level?

SkrilleX
July 22nd, 2011, 01:57
any certain file to put gethp stuff at?

ActionSender.java

stevenlin598
July 22nd, 2011, 04:23
I get this error: error_game_js5io. can anyone help with this?

pkmaster
July 22nd, 2011, 09:00
could some 1 send me there hits.java file and player file please i keep getting errors?

davidpaceway
July 22nd, 2011, 11:18
If you kill a npc before he is 100% respawned it closes and also if u hit a npc thats not added you get kicked

Also add how to fix the hp... Because thats the next huge problem..

titandino
July 23rd, 2011, 06:12
Now all i wanna see is 100% nex on a 562

Ill have that done very soon little cutie :) No but really. That is what I started working on right now. Once I change my curses altar to the real one since it finally loads, I will start into adding in the new bosses. It is so great being able to use my old 562 source with so many nice updates :) Thank you Dkk! :D I love you..

Oh Sorry Bruh
July 23rd, 2011, 06:18
If you kill a npc before he is 100% respawned it closes and also if u hit a npc thats not added you get kicked

Also add how to fix the hp... Because thats the next huge problem..

Again look at Luke's tut he tells you how to fix

Corruptice
July 25th, 2011, 09:51
src\com\rs2hd\net\codec\RS2LoginProtocolDecoder.ja va:98: cannot find symbol
symbol : variable UPDATE_KEYS
location: class com.rs2hd.Constants
for (int key : Constants.UPDATE_KEYS) {
^
1 error

how to fix it please help

hellman2741
July 25th, 2011, 09:53
src\com\rs2hd\net\codec\RS2LoginProtocolDecoder.ja va:98: cannot find symbol
symbol : variable UPDATE_KEYS
location: class com.rs2hd.Constants
for (int key : Constants.UPDATE_KEYS) {
^
1 error

how to fix it please help

Go into constants.java

And change "public static void UKEYS" or something like that
to "public static void UPDATE_KEYS
Basically just change "UKEYS" to UPDATE_KEYS

Niator
July 25th, 2011, 09:54
src\com\rs2hd\net\codec\RS2LoginProtocolDecoder.ja va:98: cannot find symbol
symbol : variable UPDATE_KEYS
location: class com.rs2hd.Constants
for (int key : Constants.UPDATE_KEYS) {
^
1 error

how to fix it please help

Chnage "UPDATE_KEYS" to "UKEYS" Then you gotta do some more but you shouldn't even have a 657 if you cant do this.

Corruptice
July 25th, 2011, 09:56
thx it works

Chronicscape
July 28th, 2011, 02:09
ok so i need some help... ive followed everyhting and even put in all bits of data got it all loaded and can login fin BUT whats makin me mad is the NPCs still DC me when i hit one and ive added the thing u told us to fix it but ill show u below please tell me what ive done wrong ty


private static void appendHit2Update(Player p, StaticPacketBuilder updateBlock) {
try {
updateBlock.addSmart(p.getHits().getHitDamage2());
updateBlock.addByte((byte)p.getHits().getHitType2( ));
updateBlock.addByte((byte) 1);
} catch(Exception e) {
}
}

and for NPCUpdate i did this :


private static void appendHit2Update(NPC npc, StaticPacketBuilder updateBlock) {
try {
updateBlock.addSmart(npc.getHits().getHitDamage2() );
updateBlock.addByteC(npc.getHits().getHitType2());
updateBlock.addByte((byte) 1);
} catch(Exception e) {
}
}

SkrilleX
July 28th, 2011, 04:15
ok so i need some help... ive followed everyhting and even put in all bits of data got it all loaded and can login fin BUT whats makin me mad is the NPCs still DC me when i hit one and ive added the thing u told us to fix it but ill show u below please tell me what ive done wrong ty


private static void appendHit2Update(Player p, StaticPacketBuilder updateBlock) {
try {
updateBlock.addSmart(p.getHits().getHitDamage2());
updateBlock.addByte((byte)p.getHits().getHitType2( ));
updateBlock.addByte((byte) 1);
} catch(Exception e) {
}
}

and for NPCUpdate i did this :


private static void appendHit2Update(NPC npc, StaticPacketBuilder updateBlock) {
try {
updateBlock.addSmart(npc.getHits().getHitDamage2() );
updateBlock.addByteC(npc.getHits().getHitType2());
updateBlock.addByte((byte) 1);
} catch(Exception e) {
}
}


mother fuck no one reads add it to append update too not just the 2nd one damn....

Chronicscape
July 28th, 2011, 09:28
mother fuck no one reads add it to append update too not just the 2nd one damn....

ok yea i got it and works now and updated hit icons but only thing remains is the mat data STILL doesnt load even though it said succesful and ve tried 4 dif ways of adding into the map folders if someone could help me with that, that would be cool (never added map data before and tryin to learn and im stuck :/)

Beuner
July 28th, 2011, 10:12
Go to data>mapdata Delete the packed.dat files. If u got 2 delete the other one to. Then just paste Dkk's mapdata there. It's the unpacked folder. And paste it there.

gtfo my waffle
July 29th, 2011, 01:34
some1 help plz mine doesnt have appendhitupdate but it does have appendhit2update

ricardox
August 15th, 2011, 15:46
what u mean with this This will solve everyone's problem with land looking "not fully loaded".

and this i cant find the ukeys in the download from dragonkk Go to Constants.java and scroll down to your current Update Keys. Delete those and copy and paste what you downloaded from Dragonkk. This will let you actually load 657.

and if i look dragonskk client its look pretty nicer than the normal one Orinate Katana how did hii just fix that?

wtf are xteas files?

and there isnt a file that called Constants.java

ricardox
August 15th, 2011, 16:04
what u mean with this This will solve everyone's problem with land looking "not fully loaded".

and this i cant find the ukeys in the download from dragonkk Go to Constants.java and scroll down to your current Update Keys. Delete those and copy and paste what you downloaded from Dragonkk. This will let you actually load 657.

and if i look dragonskk client its look pretty nicer than the normal one Orinate Katana how did hii just fix that?

wtf are xteas files?

and there isnt a file that called Constants.java

ricardox
August 15th, 2011, 17:16
mmm very nice but i added map data i logged in and all walls and shit are gone :S wtf

xRiisk
August 27th, 2011, 22:19
Since you're helping, can you PLEASE tell me or Pm me how to open ports on a 562 loads 659? .. Windows 7 pc.

I've been waiting like 2 days for someone to help, no one ever helped :(