• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Anarchy system. Widc_button error and etc

Status
Not open for further replies.
Newbie Spellweaver
Joined
Nov 18, 2019
Messages
17
Reaction score
0
hello. i need some help!
im adding anarchy system in my project server
in fresh install K18 by ketchup.

i copy the important code in nanus flyff.

at first rebuild i got sucessfully apear. when i click Anarchy Buffs. no windows are apearing.
i look for error logs. tell that can't find dds and png. after placing the dds and png in item and resource. error logs are not apearing any more. but when i click the Anarchy Buffs still no windows apearing.
eheads45 - Anarchy system. Widc_button error and etc - RaGEZONE Forums


and this the another error.
Code:
2021/ 4/11   20:30:18   Awakening: nDst = 1, dwTotalProb = 15099946182021/ 4/11   20:30:18   Awakening: nDst = 2, dwTotalProb = 15099946182021/ 4/11   20:30:18   Awakening: nDst = 3, dwTotalProb = 15099946182021/ 4/11   20:30:18   Awakening: nDst = 4, dwTotalProb = 15099946182021/ 4/11   20:30:18   Awakening: nDst = 9, dwTotalProb = 15099946182021/ 4/11   20:30:18   Awakening: nDst = 77, dwTotalProb = 15099946182021/ 4/11   20:30:18   Awakening: nDst = 11, dwTotalProb = 15099946182021/ 4/11   20:30:18   Awakening: nDst = 24, dwTotalProb = 15099946182021/ 4/11   20:30:18   Awakening: nDst = 79, dwTotalProb = 15099946182021/ 4/11   20:30:18   Awakening: nDst = 66, dwTotalProb = 5235501822021/ 4/11   20:30:18   Awakening: nDst = 52, dwTotalProb = 15099946182021/ 4/11   20:30:18   Awakening: nDst = 53, dwTotalProb = 15099946182021/ 4/11   20:30:18   Awakening: nDst = 75, dwTotalProb = 1509994618

after checking all the code one by one. and editing some fail copy past.
and rebuil project neuz i get error of this.

eheads45 - Anarchy system. Widc_button error and etc - RaGEZONE Forums



#ifdef __ANARCHY_SYSTEMCWndAnarchySkill::CWndAnarchySkill(){ m_nGold = 0; m_nCurrentPage = 0; m_nMaxPage = 0; m_fGaugeRate = 0; m_nSmeltWidth = -1; ZeroMemory(m_pWndRect, sizeof m_pWndRect); ZeroMemory(m_pTexture, sizeof m_pTexture); ZeroMemory(m_pWndButton, sizeof m_pWndButton); ZeroMemory(m_pWndStaticName, sizeof m_pWndStaticName); ZeroMemory(m_pWndStaticPrice, sizeof m_pWndStaticPrice);}CWndAnarchySkill::~CWndAnarchySkill(){ ZeroMemory(m_pWndRect, sizeof m_pWndRect); ZeroMemory(m_pTexture, sizeof m_pTexture); ZeroMemory(m_pWndButton, sizeof m_pWndButton); ZeroMemory(m_pWndStaticName, sizeof m_pWndStaticName); ZeroMemory(m_pWndStaticPrice, sizeof m_pWndStaticPrice);}BOOL CWndAnarchySkill::Initialize(CWndBase* pWndParent, DWORD nType){ return CWndNeuz::InitDialog(g_Neuz.GetSafeHwnd(), APP_ANARCHY_SKILL, 0, CPoint(0, 0), pWndParent);}BOOL CWndAnarchySkill::OnChildNotify(UINT message, UINT nID, LRESULT* pLResult){ switch (nID) { case WIDC_BUTTON: // first buff case WIDC_BUTTON3: // second buff case WIDC_BUTTON4: // third buff case WIDC_BUTTON5: // fourth buff { int id = m_nCurrentPage * 4; if (nID == WIDC_BUTTON3) id += 1; else if (nID == WIDC_BUTTON4) id += 2; else if (nID == WIDC_BUTTON5) id += 3; auto pBuff = &prj.m_vAnarchyBuffProp.at(id); int nAnarchyCoin = g_pPlayer->GetItemNum(II_SYS_SYS_SCR_PERIN); int nCost = pBuff->nPerin; if (nCost > nAnarchyCoin) { g_WndMng.PutString("You don't have enough perin to do anarchy."); return FALSE; } SAFE_DELETE(g_WndMng.m_pWndAnarchySkillConfirm); g_WndMng.m_pWndAnarchySkillConfirm = new CWndAnarchySkillConfirm(id); g_WndMng.m_pWndAnarchySkillConfirm->m_nMode = 0; g_WndMng.m_pWndAnarchySkillConfirm->Initialize(); } break; case WIDC_BUTTON2: // prev { if (m_nCurrentPage == 0) SetCurrentPage(m_nMaxPage); else SetCurrentPage(--m_nCurrentPage); } break; case WIDC_BUTTON1: // next { if (m_nCurrentPage == m_nMaxPage) SetCurrentPage(0); else SetCurrentPage(++m_nCurrentPage); } break; } return CWndNeuz::OnChildNotify(message, nID, pLResult);}void CWndAnarchySkill::OnDraw(C2DRender* p2DRender){ for (int i = 0 + m_nCurrentPage * 4; i < 4 + m_nCurrentPage * 4 && i < (int)prj.m_vAnarchyBuffProp.size(); ++i) { m_pTexture->Render(p2DRender, m_pWndRect[i % 4].TopLeft(), CPoint(32, 32)); } if (m_nMaxPage > 0) { int xPos = 0; for (int i = 0; i < m_nMaxPage + 1; i++) { CString edit; edit.Format("%d ", i + 1); if (i == m_nCurrentPage) p2DRender->TextOut(160 + xPos, 185, edit, 0xff0000ff); else p2DRender->TextOut(160 + xPos, 190, edit, 0xff000000); xPos += 15; } }}HRESULT CWndAnarchySkill::RestoreDeviceObjects(){ CWndBase::RestoreDeviceObjects(); m_nSmeltWidth = -1; return S_OK;}HRESULT CWndAnarchySkill::InvalidateDeviceObjects(){ CWndBase::InvalidateDeviceObjects(); return S_OK;}HRESULT CWndAnarchySkill::DeleteDeviceObjects(){ CWndBase::DeleteDeviceObjects(); return InvalidateDeviceObjects();}void CWndAnarchySkill::OnInitialUpdate(){ CWndNeuz::OnInitialUpdate(); m_pWndStaticIcon[0] = (CWndStatic*)GetDlgItem(WIDC_STATIC11); m_pWndStaticIcon[1] = (CWndStatic*)GetDlgItem(WIDC_STATIC111); m_pWndStaticIcon[2] = (CWndStatic*)GetDlgItem(WIDC_STATIC1111); m_pWndStaticIcon[3] = (CWndStatic*)GetDlgItem(WIDC_STATIC11111); m_pWndRect[0] = GetDlgItem(WIDC_STATIC11)->GetWndRect(); m_pWndRect[1] = GetDlgItem(WIDC_STATIC111)->GetWndRect(); m_pWndRect[2] = GetDlgItem(WIDC_STATIC1111)->GetWndRect(); m_pWndRect[3] = GetDlgItem(WIDC_STATIC11111)->GetWndRect(); m_pWndButton[0] = (CWndButton*)GetDlgItem(WIDC_BUTTON); m_pWndButton[1] = (CWndButton*)GetDlgItem(WIDC_BUTTON3); m_pWndButton[2] = (CWndButton*)GetDlgItem(WIDC_BUTTON4); m_pWndButton[3] = (CWndButton*)GetDlgItem(WIDC_BUTTON5); m_pWndStaticName[0] = (CWndStatic*)GetDlgItem(WIDC_STATIC); m_pWndStaticName[1] = (CWndStatic*)GetDlgItem(WIDC_STATIC2); m_pWndStaticName[2] = (CWndStatic*)GetDlgItem(WIDC_STATIC4); m_pWndStaticName[3] = (CWndStatic*)GetDlgItem(WIDC_STATIC6); m_pWndStaticPrice[0] = (CWndStatic*)GetDlgItem(WIDC_STATIC1); m_pWndStaticPrice[1] = (CWndStatic*)GetDlgItem(WIDC_STATIC3); m_pWndStaticPrice[2] = (CWndStatic*)GetDlgItem(WIDC_STATIC5); m_pWndStaticPrice[3] = (CWndStatic*)GetDlgItem(WIDC_STATIC7)


upon reading somethread and researching internet. it said that WIDC_BUTTON are not in any code? or i need to define WIDC_BUTTON?

can any one help me about anarchy system to install properly. thanks



update
021/ 4/11 20:30:18 Awakening: nDst = 1, dwTotalProb = 15099946182021/ 4/11 20:30:18 Awakening: nDst = 2, dwTotalProb = 15099946182021/ 4/11 20:30:18 Awakening: nDst = 3, dwTotalProb = 15099946182021/ 4/11 20:30:18 Awakening: nDst = 4, dwTotalProb = 15099946182021/ 4/11 20:30:18 Awakening: nDst = 9, dwTotalProb = 15099946182021/ 4/11 20:30:18 Awakening: nDst = 77, dwTotalProb = 15099946182021/ 4/11 20:30:18 Awakening: nDst = 11, dwTotalProb = 15099946182021/ 4/11 20:30:18 Awakening: nDst = 24, dwTotalProb = 15099946182021/ 4/11 20:30:18 Awakening: nDst = 79, dwTotalProb = 15099946182021/ 4/11 20:30:18 Awakening: nDst = 66, dwTotalProb = 5235501822021/ 4/11 20:30:18 Awakening: nDst = 52, dwTotalProb = 15099946182021/ 4/11 20:30:18 Awakening: nDst = 53, dwTotalProb = 15099946182021/ 4/11 20:30:18 Awakening: nDst = 75, dwTotalProb = 1509994618

error fix. though this error came from anarchy system

anarchy system still ave error please help me
 
Newbie Spellweaver
Joined
Nov 18, 2019
Messages
17
Reaction score
0
You need to add a window in resdata

ihave window in res data

Code:
APP_ANARCHY_SKILL "WndTile00.tga" "" 1 352 272 0x2410000 26{// Title StringIDS_RESDATA_INC_767189}{// ToolTipIDS_RESDATA_INC_767190}{    WTYPE_STATIC WIDC_STATIC11 "back_Slotitem.bmp" 0 25 25 56 56 0x220000 0 0 0 0 0 0 175    {    // Title String    IDS_RESDATA_INC_767191    }    {    // ToolTip    IDS_RESDATA_INC_767192    }    WTYPE_STATIC WIDC_STATIC "" 0 75 20 273 38 0x220000 0 0 0 0 255 170 0    {    // Title String    IDS_RESDATA_INC_767193    }    {    // ToolTip    IDS_RESDATA_INC_767194    }    WTYPE_STATIC WIDC_STATIC1 "" 0 75 40 273 58 0x220000 0 0 0 0 255 170 0    {    // Title String    IDS_RESDATA_INC_767195    }    {    // ToolTip    IDS_RESDATA_INC_767196    }    WTYPE_BUTTON WIDC_BUTTON "ButtNormal05.tga" 1 280 30 328 55 0x220010 0 0 0 0 0 0 0    {    // Title String    IDS_RESDATA_INC_767197    }    {    // ToolTip    IDS_RESDATA_INC_767198    }    WTYPE_BUTTON WIDC_BUTTON1 "ButtNormal07.tga" 1 258 205 283 230 0x220010 0 0 0 0 0 0 0    {    // Title String    IDS_RESDATA_INC_767199    }    {    // ToolTip    IDS_RESDATA_INC_767200    }    WTYPE_BUTTON WIDC_BUTTON2 "ButtNormal07.tga" 0 54 205 79 230 0x220010 0 0 0 0 0 0 0    {    // Title String    IDS_RESDATA_INC_767201    }    {    // ToolTip    IDS_RESDATA_INC_767202    }    WTYPE_STATIC WIDC_STATIC111 "back_Slotitem.bmp" 0 25 65 56 96 0x220000 0 0 0 0 0 0 175    {    // Title String    IDS_RESDATA_INC_767203    }    {    // ToolTip    IDS_RESDATA_INC_767204    }    WTYPE_STATIC WIDC_STATIC1111 "back_Slotitem.bmp" 0 25 105 56 136 0x220000 0 0 0 0 0 0 175    {    // Title String    IDS_RESDATA_INC_767205    }    {    // ToolTip    IDS_RESDATA_INC_767206    }    WTYPE_STATIC WIDC_STATIC11111 "back_Slotitem.bmp" 0 25 145 56 176 0x220000 0 0 0 0 0 0 175    {    // Title String    IDS_RESDATA_INC_767207    }    {    // ToolTip    IDS_RESDATA_INC_767208    }    WTYPE_STATIC WIDC_STATIC2 "" 0 75 60 273 78 0x220000 0 0 0 0 255 170 0    {    // Title String    IDS_RESDATA_INC_767209    }    {    // ToolTip    IDS_RESDATA_INC_767210    }    WTYPE_STATIC WIDC_STATIC3 "" 0 75 80 273 98 0x220000 0 0 0 0 255 170 0    {    // Title String    IDS_RESDATA_INC_767211    }    {    // ToolTip    IDS_RESDATA_INC_767212    }    WTYPE_STATIC WIDC_STATIC4 "" 0 75 100 273 118 0x220000 0 0 0 0 255 170 0    {    // Title String    IDS_RESDATA_INC_767213    }    {    // ToolTip    IDS_RESDATA_INC_767214    }    WTYPE_STATIC WIDC_STATIC5 "" 0 76 120 274 138 0x220000 0 0 0 0 255 170 0    {    // Title String    IDS_RESDATA_INC_767215    }    {    // ToolTip    IDS_RESDATA_INC_767216    }    WTYPE_STATIC WIDC_STATIC6 "" 0 75 140 273 158 0x220000 0 0 0 0 255 170 0    {    // Title String    IDS_RESDATA_INC_767217    }    {    // ToolTip    IDS_RESDATA_INC_767218    }    WTYPE_STATIC WIDC_STATIC7 "" 0 75 160 273 178 0x220000 0 0 0 0 255 170 0    {    // Title String    IDS_RESDATA_INC_767219    }    {    // ToolTip    IDS_RESDATA_INC_767220    }    WTYPE_BUTTON WIDC_BUTTON3 "ButtNormal05.tga" 0 280 70 328 95 0x220010 0 0 0 0 0 0 0    {    // Title String    IDS_RESDATA_INC_767221    }    {    // ToolTip    IDS_RESDATA_INC_767222    }    WTYPE_BUTTON WIDC_BUTTON4 "ButtNormal05.tga" 0 280 110 328 135 0x220010 0 0 0 0 0 0 0    {    // Title String    IDS_RESDATA_INC_767223    }    {    // ToolTip    IDS_RESDATA_INC_767224    }    WTYPE_BUTTON WIDC_BUTTON5 "ButtNormal05.tga" 0 280 150 328 175 0x220010 0 0 0 0 0 0 0    {    // Title String    IDS_RESDATA_INC_767225    }    {    // ToolTip    IDS_RESDATA_INC_767226    }}APP_ANARCHY_SKILL_CONFIRM "WndTile00.tga" "" 1 272 172 0x2410000 26{// Title StringIDS_RESDATA_INC_767227}{// ToolTipIDS_RESDATA_INC_767228}{    WTYPE_TEXT WIDC_TEXT1 "WndEditTile00.tga" 1 8 8 255 95 0x20000 0 0 0 0 255 255 255    {    // Title String    IDS_RESDATA_INC_767229    }    {    // ToolTip    IDS_RESDATA_INC_767230    }    WTYPE_BUTTON WIDC_BUTTON1 "ButtNormal01.tga" 0 78 104 185 130 0x220010 0 0 0 0 0 0 0    {    // Title String    IDS_RESDATA_INC_767231    }    {    // ToolTip    IDS_RESDATA_INC_767232    }}
 
Upvote 0
Newbie Spellweaver
Joined
Nov 18, 2019
Messages
17
Reaction score
0
__anarchy system crush

eheads45 - Anarchy system. Widc_button error and etc - RaGEZONE Forums


Code:
https://hosting.photobucket.com/images/i/eheads45/Untitled(1).png?width=450&height=278&crop=fill

can any one help me with this error?
 
Upvote 0
Status
Not open for further replies.
Back
Top