Jump to content

Delete Character Metin2


Recommended Posts

0309 13:43:08724 :: AttributeError
0309 13:43:08724 :: : 
0309 13:43:08724 :: 'InputDialogWithDescription' object has no attribute 'R'
0309 13:43:08724 :: 


0309 13:43:08739 :: Traceback (most recent call last):


0309 13:43:08739 ::   File "uiCommon.py", line 316, in OnUpdate


0309 13:43:08740 ::   File "uiCommon.py", line 266, in SetKolory2


0309 13:43:08740 :: AttributeError
0309 13:43:08740 :: : 
0309 13:43:08740 :: 'InputDialogWithDescription' object has no attribute 'R'
0309 13:43:08740 :: 


0309 13:43:08756 :: Traceback (most recent call last):


0309 13:43:08756 ::   File "ui.py", line 1029, in CallEvent


0309 13:43:08756 ::   File "ui.py", line 87, in __call__


0309 13:43:08757 ::   File "ui.py", line 69, in __call__


0309 13:43:08758 ::   File "introSelect.py", line 532, in AcceptInputPrivateCode


0309 13:43:08758 :: AttributeError
0309 13:43:08758 :: : 
0309 13:43:08758 :: 'NoneType' object has no attribute 'GetText'
0309 13:43:08758 :: 
Link to comment
Share on other sites

Thanks Dash with your files already can click on "OK" and "CANCEL" but says the message "You can not erase the character" again you step the SYSERR with another error to see if you have solution i thank you.

0309 16:40:24424 :: Hair number 5061 is not exist.
0309 16:40:29504 :: Traceback (most recent call last):


0309 16:40:29504 ::   File "ui.py", line 1029, in CallEvent


0309 16:40:29505 ::   File "ui.py", line 87, in __call__


0309 16:40:29506 ::   File "ui.py", line 69, in __call__


0309 16:40:29507 ::   File "introSelect.py", line 542, in AcceptInputPrivateCode


0309 16:40:29508 :: NameError
0309 16:40:29508 :: : 
0309 16:40:29508 :: global name 'locale' is not defined
0309 16:40:29508 :
Link to comment
Share on other sites

  • Premium

Thanks Dash with your files already can click on "OK" and "CANCEL" but says the message "You can not erase the character" again you step the SYSERR with another error to see if you have solution i thank you.

0309 16:40:24424 :: Hair number 5061 is not exist.
0309 16:40:29504 :: Traceback (most recent call last):


0309 16:40:29504 ::   File "ui.py", line 1029, in CallEvent


0309 16:40:29505 ::   File "ui.py", line 87, in __call__


0309 16:40:29506 ::   File "ui.py", line 69, in __call__


0309 16:40:29507 ::   File "introSelect.py", line 542, in AcceptInputPrivateCode


0309 16:40:29508 :: NameError
0309 16:40:29508 :: : 
0309 16:40:29508 :: global name 'locale' is not defined
0309 16:40:29508 :
:

Change locale with localeinfo in uicommon and uiprivate shopbuilder
Link to comment
Share on other sites

  • Former Staff

if you compled your own game

 

 

Open ClientManagerPlayer.cpp from your db source and find this piece of code:


        snprintf(queryStr, sizeof(queryStr), "INSERT INTO player%s_deleted SELECT * FROM player%s WHERE id=%d",
                GetTablePostfix(), GetTablePostfix(), pi->player_id);
        std::auto_ptr<SQLMsg> pIns(CDBManager::instance().DirectQuery(queryStr));


        if (pIns->Get()->uiAffectedRows == 0 || pIns->Get()->uiAffectedRows == (uint32_t)-1)
        {
            sys_log(0, "PLAYER_DELETE FAILED %u CANNOT INSERT TO player%s_deleted", dwPID, GetTablePostfix());


            peer->EncodeHeader(HEADER_DG_PLAYER_DELETE_FAILED, pi->dwHandle, 1);
            peer->EncodeBYTE(pi->account_index);
            return;
        }

and replace it to this(If you want to improve it you could make the deleted character data go to player_deleted,because I removed it here):

 
        snprintf(queryStr, sizeof(queryStr), "SELECT * FROM player%s WHERE id=%d",

                GetTablePostfix(), pi->player_id);
        std::auto_ptr<SQLMsg> pIns(CDBManager::instance().DirectQuery(queryStr));


        if (pIns->Get()->uiNumRows == 0)
        {
            sys_log(0, "PLAYER_DELETE FAILED %u CANNOT INSERT TO player%s_deleted", dwPID, GetTablePostfix());


            peer->EncodeHeader(HEADER_DG_PLAYER_DELETE_FAILED, pi->dwHandle, 1);
            peer->EncodeBYTE(pi->account_index);
            return;

        }

The character delete was actually bugged in the mainline (I don't know for the other branches).

this was Written by Denis

Link to comment
Share on other sites

  • 5 months later...

if you compled your own game

 

 

Open ClientManagerPlayer.cpp from your db source and find this piece of code:


        snprintf(queryStr, sizeof(queryStr), "INSERT INTO player%s_deleted SELECT * FROM player%s WHERE id=%d",
                GetTablePostfix(), GetTablePostfix(), pi->player_id);
        std::auto_ptr<SQLMsg> pIns(CDBManager::instance().DirectQuery(queryStr));


        if (pIns->Get()->uiAffectedRows == 0 || pIns->Get()->uiAffectedRows == (uint32_t)-1)
        {
            sys_log(0, "PLAYER_DELETE FAILED %u CANNOT INSERT TO player%s_deleted", dwPID, GetTablePostfix());


            peer->EncodeHeader(HEADER_DG_PLAYER_DELETE_FAILED, pi->dwHandle, 1);
            peer->EncodeBYTE(pi->account_index);
            return;
        }

and replace it to this(If you want to improve it you could make the deleted character data go to player_deleted,because I removed it here):

 
        snprintf(queryStr, sizeof(queryStr), "SELECT * FROM player%s WHERE id=%d",

                GetTablePostfix(), pi->player_id);
        std::auto_ptr<SQLMsg> pIns(CDBManager::instance().DirectQuery(queryStr));


        if (pIns->Get()->uiNumRows == 0)
        {
            sys_log(0, "PLAYER_DELETE FAILED %u CANNOT INSERT TO player%s_deleted", dwPID, GetTablePostfix());


            peer->EncodeHeader(HEADER_DG_PLAYER_DELETE_FAILED, pi->dwHandle, 1);
            peer->EncodeBYTE(pi->account_index);
            return;

        }

The character delete was actually bugged in the mainline (I don't know for the other branches).

this was Written by Denis

The deleted character does not get to the table player_deleted. :(

Link to comment
Share on other sites

  • 6 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.