bRO's client asking for PIN Code on log in

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

Message
Author
ever_boy_
Developers
Developers
Posts: 308
Joined: 06 Jul 2012, 13:44
Noob?: No

bRO's client asking for PIN Code on log in

#1 Post by ever_boy_ »

Today, Bifrost's patch has been released on bRO, and now we're prompted with a new window asking for a PIN code which is defined by the user, right after logging in to the account, and right before the char select screen.

When trying to select the char while running openkore, we get this:
Packet Parser: Unknown Switch: 08B9
Error when trying to log in to the Char Server (invalid char specified)
It's sort of a second password, which must be typed in before selecting the char, so I think it's no big deal. Unfortunately, I've never dealt with packet handlers before.
Where should I start?

BonScott
Developers
Developers
Posts: 32
Joined: 08 Aug 2008, 15:35
Noob?: No

Re: bRO's client asking for PIN Code on log in

#2 Post by BonScott »

Simple resolution:

master Brazil - bRO: Asgard
server 0
username
password
loginPinCode

BUT

After config this, the char name show incorrect, probability the charBlockSize is incorrect OR serverType.
for um openKore more powerfull!

Kaspy
Halfway to Eternity
Halfway to Eternity
Posts: 398
Joined: 08 Jun 2012, 15:42
Noob?: No
Location: Brazil

Re: bRO's client asking for PIN Code on log in

#3 Post by Kaspy »

I'm out of the client official Ragnarok working on this computer, so I have no way to collect the packets send.

If you sniff the data and say what each one does, and shows them what everyone here is, I can work on a solution.


If you do not know that using sniffer, I recommend the microsoft network monitor.
Last edited by Kaspy on 12 Dec 2012, 19:32, edited 1 time in total.
Image

ever_boy_
Developers
Developers
Posts: 308
Joined: 06 Jul 2012, 13:44
Noob?: No

Re: bRO's client asking for PIN Code on log in

#4 Post by ever_boy_ »

BonScott wrote:Simple resolution:

master Brazil - bRO: Asgard
server 0
username
password
loginPinCode

BUT

After config this, the char name show incorrect, probability the charBlockSize is incorrect OR serverType.

That was the very first thing I tried. However, the same error shows up: packet parser 08B9. I think the reason why the char's info is screwed is because the pin code pop up prevents the kore from retrieving the info.

I've noticed that there are handlers for this in:

src\Network\Receive\kRO\Sakexe_0.pm

src\Network\Receive\ServerType0.pm

src\Network\Receive.pm

src\Network\Send\ServerType0.pm

Kaspy
Halfway to Eternity
Halfway to Eternity
Posts: 398
Joined: 08 Jun 2012, 15:42
Noob?: No
Location: Brazil

Re: bRO's client asking for PIN Code on log in

#5 Post by Kaspy »

I realized that this package has already cataloged in rRO.pm
Try adding in bRO.pm
'08B9' => ['account_id', 'x4 a4 x2', [qw(accountID)]], # 12

[...]

account_id 08B9

I believe that, at least in this regard, has already been implemented in the rRO. If that's right, just take what you have and include the rRO in the archives of bRO.
Image

ever_boy_
Developers
Developers
Posts: 308
Joined: 06 Jul 2012, 13:44
Noob?: No

Re: bRO's client asking for PIN Code on log in

#6 Post by ever_boy_ »

KeplerBR wrote:'08B9' => ['account_id', 'x4 a4 x2', [qw(accountID)]], # 12

[...]

account_id 08B9
I made these changes at RECEIVE\bRO.pm, and there's no more packet parser, but there's still the "invalid specified chatacter" error.
Obviously, it's not sending the pin code correctly.

iMikeLance
Moderators
Moderators
Posts: 208
Joined: 01 Feb 2010, 17:37
Noob?: No
Location: Brazil - MG
Contact:

Re: bRO's client asking for PIN Code on log in

#7 Post by iMikeLance »

bRO's new charblocksize is 124.

Kaspy
Halfway to Eternity
Halfway to Eternity
Posts: 398
Joined: 08 Jun 2012, 15:42
Noob?: No
Location: Brazil

Re: bRO's client asking for PIN Code on log in

#8 Post by Kaspy »

ever_boy_ wrote:
KeplerBR wrote:'08B9' => ['account_id', 'x4 a4 x2', [qw(accountID)]], # 12

[...]

account_id 08B9
I made these changes at RECEIVE\bRO.pm, and there's no more packet parser, but there's still the "invalid specified chatacter" error.
Obviously, it's not sending the pin code correctly.
Sniffe send that is sent by the client official Ragnarok and post here.
iMikeLance wrote:bRO's new charblocksize is 124.
Am I wrong or is this a completely new? I found it in receive.pm
Image

ever_boy_
Developers
Developers
Posts: 308
Joined: 06 Jul 2012, 13:44
Noob?: No

Re: bRO's client asking for PIN Code on log in

#9 Post by ever_boy_ »

Code: Select all

...
return 'a4 V9 v V2 v14 Z24 C8 v Z16' if $_ == 128;
return 'a4 V9 v V2 v14 Z24 C6 v2 x4' if $_ == 116; # TODO: (missing 2 last bytes)
return 'a4 V9 v V2 v14 Z24 C6 v2' if $_ == 112;
...
124?
Does it mean a new function is needed for '124' size?

Kaspy
Halfway to Eternity
Halfway to Eternity
Posts: 398
Joined: 08 Jun 2012, 15:42
Noob?: No
Location: Brazil

Re: bRO's client asking for PIN Code on log in

#10 Post by Kaspy »

ever_boy_ wrote:

Code: Select all

...
return 'a4 V9 v V2 v14 Z24 C8 v Z16' if $_ == 128;
return 'a4 V9 v V2 v14 Z24 C6 v2 x4' if $_ == 116; # TODO: (missing 2 last bytes)
return 'a4 V9 v V2 v14 Z24 C6 v2' if $_ == 112;
...
124?
Does it mean a new function is needed for '124' size?
Yes, the LUG decided to create a new charblocksize.

How did you discover this, iMike?
Image

Post Reply