Honorable Member Owsap 8162 Posted May 5, 2022 Author Honorable Member Share Posted May 5, 2022 10 hours ago, keviinn25 said: Hi guys, I make the process 2 or 3 times but I cant make it works, now Im getting this error: networkModule.SetSelectCharacterPhase - <type 'exceptions.AttributeError'>:'module' object has no attribute 'CHAT_TYPE_DICE_INFO' Can someone tell me what happens? Thanks! EDIT: Now this part is working but when I select character game close and I have this on the log. Option 1: Remove CHAT_TYPE_DICE_INFO from uiChat.py Option 2: Add CHAT_TYPE_DICE_INFO support: Spoiler /// 1. @ Client/UserInterface/Packet.h // Search @ enum EChatType CHAT_TYPE_MAX_NUM, // Add above CHAT_TYPE_DICE_INFO, /// 2. @ Client/UserInterface/PythonChat.cpp // Search void CPythonChat::__Initialize() { [ . . ] } // Add in the function m_akD3DXClrChat[CHAT_TYPE_DICE_INFO] = D3DXCOLOR(0xFFcc00cc); // Example void CPythonChat::__Initialize() { [ . . ] m_akD3DXClrChat[CHAT_TYPE_DICE_INFO] = D3DXCOLOR(0xFFcc00cc); } /// 3. @ Client/UserInterface/PythonChat.cpp // Search PyModule_AddIntConstant(poModule, "CHAT_TYPE_BIG_CONTROL_NOTICE", CHAT_TYPE_BIG_CONTROL_NOTICE); // Add above PyModule_AddIntConstant(poModule, "CHAT_TYPE_DICE_INFO", CHAT_TYPE_DICE_INFO); /// 4. @ Client/UserInterface/PythonNetworkStreamPhaseGame.cpp // Search case CHAT_TYPE_MAX_NUM: // Add above case CHAT_TYPE_DICE_INFO: 1 1 2 https://owsap.dev/ / https://osf.owsap.dev/ Link to comment Share on other sites More sharing options...
Sathyr 72 Posted May 15, 2022 Share Posted May 15, 2022 (edited) This is the hidden content, please Sign In or Sign Up to solve your problems! Edited May 16, 2022 by Sathyr 46 3 1 12 14 Link to comment Share on other sites More sharing options...
Thrall 182 Posted June 4, 2022 Share Posted June 4, 2022 I had some problems in ChatLog but i fixed it like this ## ChatLogWindow class ChatLogWindow(ui.Window): BLOCK_WIDTH = 32 CHAT_MODE_NAME = [ localeInfo.CHAT_NORMAL, localeInfo.CHAT_PARTY, localeInfo.CHAT_GUILD, localeInfo.CHAT_SHOUT, localeInfo.CHAT_INFORMATION, localeInfo.CHAT_NOTICE, ] CHAT_MODE_INDEX = [ chat.CHAT_TYPE_TALKING, chat.CHAT_TYPE_PARTY, chat.CHAT_TYPE_GUILD, chat.CHAT_TYPE_SHOUT, chat.CHAT_TYPE_INFO, chat.CHAT_TYPE_NOTICE, ] if app.ENABLE_DICE_SYSTEM: CHAT_MODE_NAME.append(localeInfo.CHAT_DICE_INFO) CHAT_MODE_INDEX.append(chat.CHAT_TYPE_DICE_INFO) if app.ENABLE_CHATTING_WINDOW_RENEWAL: CHAT_MODE_NAME.append("EXP") CHAT_MODE_INDEX.append(chat.CHAT_TYPE_EXP_INFO) CHAT_MODE_NAME.append(localeInfo.UI_ITEM) CHAT_MODE_INDEX.append(chat.CHAT_TYPE_ITEM_INFO) CHAT_MODE_NAME.append(localeInfo.CHEQUE_SYSTEM_UNIT_YANG) CHAT_MODE_INDEX.append(chat.CHAT_TYPE_MONEY_INFO) Link to comment Share on other sites More sharing options...
Active+ Member HFWhite 497 Posted June 5, 2022 Active+ Member Share Posted June 5, 2022 (edited) 21 hours ago, Decrypted said: I had some problems in ChatLog but i fixed it like this ## ChatLogWindow class ChatLogWindow(ui.Window): BLOCK_WIDTH = 32 CHAT_MODE_NAME = [ localeInfo.CHAT_NORMAL, localeInfo.CHAT_PARTY, localeInfo.CHAT_GUILD, localeInfo.CHAT_SHOUT, localeInfo.CHAT_INFORMATION, localeInfo.CHAT_NOTICE, ] CHAT_MODE_INDEX = [ chat.CHAT_TYPE_TALKING, chat.CHAT_TYPE_PARTY, chat.CHAT_TYPE_GUILD, chat.CHAT_TYPE_SHOUT, chat.CHAT_TYPE_INFO, chat.CHAT_TYPE_NOTICE, ] if app.ENABLE_DICE_SYSTEM: CHAT_MODE_NAME.append(localeInfo.CHAT_DICE_INFO) CHAT_MODE_INDEX.append(chat.CHAT_TYPE_DICE_INFO) if app.ENABLE_CHATTING_WINDOW_RENEWAL: CHAT_MODE_NAME.append("EXP") CHAT_MODE_INDEX.append(chat.CHAT_TYPE_EXP_INFO) CHAT_MODE_NAME.append(localeInfo.UI_ITEM) CHAT_MODE_INDEX.append(chat.CHAT_TYPE_ITEM_INFO) CHAT_MODE_NAME.append(localeInfo.CHEQUE_SYSTEM_UNIT_YANG) CHAT_MODE_INDEX.append(chat.CHAT_TYPE_MONEY_INFO) Thanks man! Edited August 16, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
metrix2020 5 Posted October 7, 2022 Share Posted October 7, 2022 Can someone give me their chat_item.cpp soo i can compare them? Link to comment Share on other sites More sharing options...
BadGrecee 4 Posted October 7, 2022 Share Posted October 7, 2022 (edited) Edited October 8, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
banuliciraul123 0 Posted February 12, 2023 Share Posted February 12, 2023 Thank you working Link to comment Share on other sites More sharing options...
freekays 0 Posted February 19, 2023 Share Posted February 19, 2023 Thank you pls http://www.conan2.tk/ Link to comment Share on other sites More sharing options...
Jimmermania 27 Posted November 13, 2023 Share Posted November 13, 2023 Hi, i don't know why but i have this error: 1113 21:07:26165 :: File "uiChat.py", line 1353, in OnRender 1113 21:07:26165 :: File "uiChat.py", line 1282, in Refresh 1113 21:07:26165 :: File "uiChat.py", line 1311, in RefreshBoardViewState 1113 21:07:26165 :: AttributeError 1113 21:07:26165 :: : 1113 21:07:26165 :: 'int' object has no attribute 'GetGlobalPosition' 1113 21:07:26165 :: Link to comment Share on other sites More sharing options...
Recommended Posts