[Rev80 Bug Fix] dual scratch disconnects client

Welcome in the osRose emulator Project.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

[Rev80 Bug Fix] dual scratch disconnects client

Postby Blackii on Sat Aug 23, 2008 9:14 am

Hi all

i got problems i follow the [MEGA GUIDE] Rose Server Setup + Compiling + SQL & More on ragezone all ok its fine but when i want to make skill ingame i got error and disconet form server ,map server say Hack and so on here pic of it

Image

Sry for my bad english
OCaJugs4GDrsm5i.jpg



Edit by lmame:
Title changed.
Blackii
Little soul
Little soul
 
Posts: 6
Joined: Sat Aug 23, 2008 7:33 am

Re: Skill Error Disconet form Server

Postby lmame on Sat Aug 23, 2008 11:27 am

Like I told you on msn, search in forum on how to update your csv files to match your client version, so look in "tools forum" for a tool that "converts" STB to csv.

And as it's in the rules, don't contact by msn for that... :roll:, search in forum first... :roll:
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: [Rev80 Bug Fix] dual scratch disconnects client

Postby lmame on Tue Aug 26, 2008 2:31 pm

Ok I had someone else on msn on this and it seems there is a problem in the basic skill "Dual Scratch" place.
It gives you this error, worldserver side:
Invalid Skill id 79 for Splitter
User disconnected (Splitter)


It seems this error happens when you are using the latest csv.


Here is a fast workaround:
In file worldserver/worldpackets.cpp, function bool CWorldServer::pakStartSkill ( CPlayer* thisclient, CPacket* P ):

REPLACE:
  1. if(skillnum>=MAX_SKILL)


BY:
  1. if(skillnum>=MAX_SKILL&&skillnum!=79)



REPLACE:
  1.    unsigned int skillid = thisclient->cskills[skillnum].id+thisclient->cskills[skillnum].level-1;


BY:
  1.    unsigned int skillid=101;
  2.    
  3.     if(skillnum!=79)
  4.     {
  5.         skillid = thisclient->cskills[skillnum].id+thisclient->cskills[skillnum].level-1;
  6.     }



And it should work now.
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: [Rev80 Bug Fix] dual scratch disconnects client

Postby Rescudo on Tue Aug 26, 2008 5:03 pm

That's not a very flexible workaround, you are including a more permanent fix for this in Rev81, right?
SEARCH - it's there for a reason!
User avatar
Rescudo
El Verloon Marshall
El Verloon Marshall
 
Posts: 872
Joined: Tue Mar 11, 2008 7:20 am

Re: [Rev80 Bug Fix] dual scratch disconnects client

Postby lmame on Tue Aug 26, 2008 5:25 pm

Last time I checked we hadn't the problem in rev81.
But you're free to look to understand why it's doing this of course. My guess is that the way skill lists are send to client is wrong (I mean it sends basic skills, then skills and so on), I saw that when doing packets stuff.
And as I said, it's a "fast workaround" milord. I'm so sorry I guess I shouldn't have give it since it's not perfect but everyone knows I code like shit ;)
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: [Rev80 Bug Fix] dual scratch disconnects client

Postby Rescudo on Tue Aug 26, 2008 5:40 pm

Chill lmame, just asked a question :) It does work for now, but you never know when they might change something at naROSE, in which case a more permanent fix would be useful. ;)
SEARCH - it's there for a reason!
User avatar
Rescudo
El Verloon Marshall
El Verloon Marshall
 
Posts: 872
Joined: Tue Mar 11, 2008 7:20 am

Re: [Rev80 Bug Fix] dual scratch disconnects client

Postby lmame on Tue Aug 26, 2008 5:58 pm

Well you can't fix it for rev 80 anymore.
Why?
Because packet have changed so you can't capture them anymore to see how to send it the good way.
Moreover people are using new csv / sql with old packets so sometimes all you can do is dirty tricks.
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: [Rev80 Bug Fix] dual scratch disconnects client

Postby PurpleYouko on Tue Aug 26, 2008 6:25 pm

Because packet have changed so you can't capture them anymore to see how to send it the good way.

What has changed?
I can still capture packets from NA Rose without any difficulty.
And I only started messing with them a few days ago :lol:
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: [Rev80 Bug Fix] dual scratch disconnects client

Postby Rescudo on Tue Aug 26, 2008 6:40 pm

Rev80 still runs on the TRose-138 packet structure, while naROSE uses the new TRose-139 packets, so if there's any difference in these packets, we won't be able to log it for rev80 :)
SEARCH - it's there for a reason!
User avatar
Rescudo
El Verloon Marshall
El Verloon Marshall
 
Posts: 872
Joined: Tue Mar 11, 2008 7:20 am

Re: [Rev80 Bug Fix] dual scratch disconnects client

Postby PurpleYouko on Tue Aug 26, 2008 6:58 pm

Rescudo wrote:Rev80 still runs on the TRose-138 packet structure, while naROSE uses the new TRose-139 packets, so if there's any difference in these packets, we won't be able to log it for rev80 :)

Oh crap. I was thinking along a completely different tack there.
I thought he was referring to some recent change that was making packet logging not work.

The difference between rev 80 packets and the new stuff is fairly minor in most cases. We know where those differences are as well so converting formats wouldn't be that difficult really if somebody was willing to put in the effort.
A lot of the packets are still exactly the same too.
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Next

Return to Support - OsRose Emulator

Who is online

Users browsing this forum: No registered users and 5 guests