pedrorrr 1 Posted March 8, 2015 Share Posted March 8, 2015 Hi, When I try to delete a char, I put delete code, but I can't click on "OK". I click on "OK" and "Cancel" but they simply doesn't do anything. Someone can help me pls ?? Link to comment Share on other sites More sharing options...
Premium Dash 81 Posted March 9, 2015 Premium Share Posted March 9, 2015 Syserr. Link to comment Share on other sites More sharing options...
Fr3zy94 59 Posted March 9, 2015 Share Posted March 9, 2015 copy player tabel and rename it player_deleted Link to comment Share on other sites More sharing options...
pedrorrr 1 Posted March 9, 2015 Author Share Posted March 9, 2015 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 More sharing options...
Premium Dash 81 Posted March 9, 2015 Premium Share Posted March 9, 2015 Put this in root. https://mega.co.nz/#!DocBhRTI!kezgMmMro-iuoac9RhxXFlTEm2kJa2m8BveTY_5J6kM 1 Link to comment Share on other sites More sharing options...
AlCapone 67 Posted March 9, 2015 Share Posted March 9, 2015 copy player tabel and rename it player_deleted Do this it will work Link to comment Share on other sites More sharing options...
pedrorrr 1 Posted March 9, 2015 Author Share Posted March 9, 2015 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 More sharing options...
Former Staff Shisui 490 Posted March 9, 2015 Former Staff Share Posted March 9, 2015 0309 16:40:29508 :: global name 'locale' is not defined Change locale to localeinfo. Link to comment Share on other sites More sharing options...
Morphe 158 Posted March 9, 2015 Share Posted March 9, 2015 (edited) introselect.py search def OnDeleteFailure(self): change self.PopupMessage(locale.SELECT_CAN_NOT_DELETE) with this: self.PopupMessage(localeInfo.SELECT_CAN_NOT_DELETE) Edited March 9, 2015 by Morphe Link to comment Share on other sites More sharing options...
Premium Dash 81 Posted March 9, 2015 Premium Share Posted March 9, 2015 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 More sharing options...
pedrorrr 1 Posted March 9, 2015 Author Share Posted March 9, 2015 Shiui after get what you recomend tells you the following "The character will be deleted" then says "The character can not be deleted" has more errors in SYSERR what could it be? Link to comment Share on other sites More sharing options...
pedrorrr 1 Posted March 9, 2015 Author Share Posted March 9, 2015 Sorry duble post. Link to comment Share on other sites More sharing options...
Premium Dash 81 Posted March 9, 2015 Premium Share Posted March 9, 2015 Do you make db config? Link to comment Share on other sites More sharing options...
pedrorrr 1 Posted March 9, 2015 Author Share Posted March 9, 2015 How can i do that ?!?! Link to comment Share on other sites More sharing options...
Premium Dash 81 Posted March 9, 2015 Premium Share Posted March 9, 2015 PLAYER_DELETE_LEVEL_LIMIT = 105 PLAYER_DELETE_CHECK_SIMPLE = 1 in conf.txt If character is GM you can't delete it. 1 1 Link to comment Share on other sites More sharing options...
Former Staff flygun 302 Posted March 9, 2015 Former Staff Share Posted March 9, 2015 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 More sharing options...
Evler. 0 Posted August 13, 2015 Share Posted August 13, 2015 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 More sharing options...
DenizCALISKAN 0 Posted March 8, 2016 Share Posted March 8, 2016 On 09.03.2015 at 5:40 PM, Dash said: Put this in root. https://mega.co.nz/#!DocBhRTI!kezgMmMro-iuoac9RhxXFlTEm2kJa2m8BveTY_5J6kM Dash you can upload files again. I have that same problem Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now