Char Deletion Plugin Error

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

Message
Author
genuineopenkore
Plain Yogurt
Plain Yogurt
Posts: 52
Joined: 16 Jan 2011, 03:06
Noob?: Yes

Char Deletion Plugin Error

#1 Post by genuineopenkore »

whats wrong with this plugin? pls help

this plugin will delete your character and create a character again.
the deleting and creating process is successful, but after the char created i got an error.

error.txt
OpenKore version what-will-become-2.1
Network state = 5
Network handler = Network::DirectConnection
SVN revision: 7859
Loaded plugins:
plugins/autoremake.pl (autoremake)
plugins/macro.pl (macro)

Error message:
Attempt to STORE non blessed reference (or not a reference)
Value:
$VAR1 = {};

Stack trace:
Attempt to STORE non blessed reference (or not a reference)
Value:
$VAR1 = {};
at src/Utils/BlessedRefTie.pm line 10
Tie::BlessedRef::STORE('Tie::BlessedRef=SCALAR(0x386bc2c)', 'HASH(0x3c4d27c)') called at src/Network/Receive/ServerType0.pm line 910
Network::Receive::ServerType0::map_loaded('Network::Receive::mRO=HASH(0x376aa8c)', 'HASH(0x2386924)') called at src/Network/PacketParser.pm line 222
Network::PacketParser::parse('Network::Receive::mRO=HASH(0x376aa8c)', '\x{eb}\x{2}\x{c}c0\x{b}\x{d}F\x{f0}\x{5}\x{5}\x{0}\x{0}', 'Network::Receive::mRO=HASH(0x376aa8c)') called at src/Network/Receive.pm line 51
Network::Receive::parse('Network::Receive::mRO=HASH(0x376aa8c)', '\x{eb}\x{2}\x{c}c0\x{b}\x{d}F\x{f0}\x{5}\x{5}\x{0}\x{0}', 'Network::Receive::mRO=HASH(0x376aa8c)') called at src/Network/PacketParser.pm line 335
Network::PacketParser::process('Network::Receive::mRO=HASH(0x376aa8c)', 'Network::MessageTokenizer=HASH(0x1e49794)', 'Network::Receive::mRO=HASH(0x376aa8c)') called at src/functions.pl line 701
main::mainLoop_initialized() called at src/functions.pl line 70
main::mainLoop() called at src/Interface.pm line 75
Interface::mainLoop('Interface::Console::Win32=HASH(0x1218814)') called at openkore.pl line 97
main::__start() called at start.pl line 136
plugin

Code: Select all

package autoremake;

use strict;
use Plugins;
use Globals;
use Network::Send;
use Misc;
use AI;
use Utils;
use Log qw(message debug);
use Commands;

Plugins::register('autoremake', 'Auto delete and Create Character', \&onUnload);
my $hooks = Plugins::addHooks(['charSelectScreen', \&delete, undef]);

sub onUnload {
Plugins::delHooks($hooks);
}

sub delete {
if ($config{"autodelete"} == 1) {
message("Character Deleted: Yes\n”,”info”");
my (undef, $args) = @_;
Plugins::delHooks($hooks);
$hooks = Plugins::addHooks(['charSelectScreen', \&create, undef]);
$messageSender->sendCharDelete($chars[0]{charID}, $config{Email});
$AI::temp::delIndex = 0;
$timeout{'charlogin'}{'time'} = time;
$args->{return} = 2;
} elsif ($config{"autodelete"} != 1) {
message("Character Deleted: NO\n”,”info");

return 0;
}
}

sub create {
my (undef, $args) = @_;
Plugins::delHooks($hooks);
$hooks = Plugins::addHooks(['charSelectScreen', \&login, undef]);
$messageSender->sendCharCreate(0, $config{Name}, 9, 9, 1, 1, 9, 1, 2, 3);
$timeout{'charlogin'}{'time'} = time;
$args->{return} = 2;
}

sub login {
my (undef, $args) = @_;
Plugins::delHooks($hooks);
$hooks = Plugins::addHooks(['charSelectScreen', \&delete, undef]);
$messageSender->sendCharLogin(0);
$timeout{'charlogin'}{'time'} = time;
configModify("autodelete", 0);
$args->{return} = 1;
}

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Char Deletion Plugin Error

#2 Post by EternalHarvest »

Try to create a character manually with kore, would it work?

genuineopenkore
Plain Yogurt
Plain Yogurt
Posts: 52
Joined: 16 Jan 2011, 03:06
Noob?: Yes

Re: Char Deletion Plugin Error

#3 Post by genuineopenkore »

EternalHarvest wrote:Try to create a character manually with kore, would it work?
thanks for your reply EternalHarvest.
yes, when i created a character using in my console it worked
but when i use xkore mode it does the same error when connect to the map server

the problem with this plugin is that after the character created and try to login at mapserver then it will have an error.

here's the process on my console

Generating session Admin Password...

Checking for new portals... none found


Connecting to Account Server...
Connecting (202.57.117.94:6900)... connected
Secure Login...
Sending encoded password...
-----------Account Info------------
Account ID: xxxxxxxx AB 0F A3 00
Sex: Boy
Session ID: 29999 2F 75 00 00
0 00 00 00 00
-----------------------------------
--------- Servers ----------
# Name Users IP Port
0 xxxxxx 8099 xxxxxxxxxx 5000
-------------------------------
Closing connection to Account Server
Disconnecting (202.57.117.94:6900)...disconnected
Server 0 selected
Connecting to Character Server...
Connecting (202.57.117.96:5000)... connected
Received characters from Character Server
------------- Character List -------------
Slot 0: sample char (Novice, level 1/1)
------------------------------------------
Character Deleted: Yes
Character sample char (0) deleted.
Character ♥ (257) created.
------------- Character List -------------
Slot 257: ♥ (Novice, level 2/1)
------------------------------------------
Config 'autodelete' set to 0 (was 1)
Received character ID and Map IP from Character Server
----------Game Info----------
Char ID: DB B9 07 00 (506331)
MAP Name: new_1-1.gat
MAP IP: 202.57.117.110
MAP Port: 5000
-----------------------------
Closing connection to Character Server
Disconnecting (202.57.117.96:5000)...disconnected
Connecting to Map Server...
Connecting (202.57.117.110:5000)... connected
This program has encountered an unexpected problem. This is probably because
of a recent server update, a bug in this program, or in one of the plugins.
We apologize for this problem. You may get support from IRC or the forums.

A detailed error report has been saved to errors.txt. Before posting a bug
report, please try out the SVN version first. If you are already using the SVN
version, search the forums first to see if your problem had already been
solved,
or has already been reported. If you truly believe you have encountered a bug
in
the program, please include the contents of the errors.txt in your bug report,
or we may not be able to help you!

The error message is:
Attempt to STORE non blessed reference (or not a reference)
Value:
$VAR1 = {};
Press ENTER to exit this program.
i remember that there's a macro ezza wrote on how to create and delete a char, but the link is dead /viewtopic.php?f=32&t=902... soo my only hope is to try with this plugin...

Uzah
Human
Human
Posts: 25
Joined: 04 Jun 2011, 18:29
Noob?: Yes
Location: pRO Payon

Re: Char Deletion Plugin Error

#4 Post by Uzah »

The plugin does not create a character in an empty char slot unless it deletes an existing one first.
What have you done so far?

Locked