Undefined subroutine &Network::Receive::ServerType0::queryAn

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderators: Moderators, Developers

Message
Author
sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

Undefined subroutine &Network::Receive::ServerType0::queryAn

#1 Post by sofax222 »

I play RO in Taiwan.
I download the openkore SVN. And try run on my FreeBSD !
When I try login twRO server, I got the error as following:

Failed to change the login PIN code. Please try again.....
Undefined subroutine &Network::Receive::ServerType0::queryAndSaveLoginPinCode
called at src/Network/Receive/ServerType0.pm line 6632

I read the source code in src/Network/Receive/ServerType0.pm and src/Network/Receive.pm
I found out the lines 6632, 6637 in ServerType0.pm, it directly call the queryLoginPinCode(..) function (in Receive.pm).
So, I change it to $self->queryLoginPinCode(...). But, the queryLoginPinCode() should not be called directly !
And then I add a function into Receive.pm, such as:

Code: Select all

sub queryALoginPinCode {
    my ($self, $message) = @_;
    my $pin = queryLoginPinCode($message);
    return $pin;
}
And I change the lines 6632, 6637 in ServerType0.pm, $self->queryALoginPinCode(...).

Now, the openkore could run without error, but I still can not login twRO server with "Failed to change the login PIN code. Please try again."
Last edited by sofax222 on 01 Dec 2010, 22:07, edited 1 time in total.

DrKN
Developers
Developers
Posts: 79
Joined: 06 Oct 2010, 09:22
Noob?: No

Re: Undefined subroutine &Network::Receive::ServerType0::queryAn

#2 Post by DrKN »

thx for reporting.
i am checking on it..
maybe not only query problem, the sendPinCode also have problem too..

Locked