Jump to content

xRdy2Kill

Inactive Member
  • Posts

    51
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by xRdy2Kill

  1. Hey Guys,

    I have a problem, i compiled my binary and i got the error C2665

     Error 5 error C2665: 'std :: forward ": None of the 2 overloads all types of arguments could be converted. 
    
     

    and this is my code in PythonShop.cpp

     

    
     

    void CPythonShop::SetOfflineShopItemData(DWORD dwIndex, const TShopItemData & c_rShopItemData)
    {
        BYTE tabIdx = dwIndex / OFFLINE_SHOP_HOST_ITEM_MAX_NUM;
        DWORD dwSlotPos = dwIndex % OFFLINE_SHOP_HOST_ITEM_MAX_NUM;

        SetOfflineShopItemData(tabIdx, dwSlotPos, c_rShopItemData);
    }

    void CPythonShop::SetOfflineShopItemData(BYTE tabIdx, DWORD dwSlotPos, const TShopItemData & c_rShopItemData)
    {
        if (tabIdx >= SHOP_TAB_COUNT_MAX || dwSlotPos >= OFFLINE_SHOP_HOST_ITEM_MAX_NUM)
        {
            TraceError("Out of Index. tabIdx(%d) must be less than %d. dwSlotPos(%d) must be less than %d", tabIdx, SHOP_TAB_COUNT_MAX, dwSlotPos, OFFLINE_SHOP_HOST_ITEM_MAX_NUM);
            return;
        }

        m_aOfflineShoptabs[tabIdx].items[dwSlotPos] = c_rShopItemData;
    }

    BOOL CPythonShop::GetOfflineShopItemData(DWORD dwIndex, const TShopItemData ** c_ppItemData)
    {
        BYTE tabIdx = dwIndex / OFFLINE_SHOP_HOST_ITEM_MAX_NUM;
        DWORD dwSlotPos = dwIndex % OFFLINE_SHOP_HOST_ITEM_MAX_NUM;

        return GetOfflineShopItemData(tabIdx, dwSlotPos, c_ppItemData);
    }


    BOOL CPythonShop::GetOfflineShopItemData(BYTE tabIdx, DWORD dwSlotPos, const TShopItemData ** c_ppItemData)
    {
        if (tabIdx >= SHOP_TAB_COUNT_MAX || dwSlotPos >= OFFLINE_SHOP_HOST_ITEM_MAX_NUM)
        {
            TraceError("Out of Index. tabIdx(%d) must be less than %d. dwSlotPos(%d) must be less than %d", tabIdx, SHOP_TAB_COUNT_MAX, dwSlotPos, OFFLINE_SHOP_HOST_ITEM_MAX_NUM);
            return FALSE;
        }

        *c_ppItemData = &m_aOfflineShoptabs[tabIdx].items[dwSlotPos];

        return TRUE;
    }

     

     

     

     

    hope anyone can help :)

     

    EDIT: Only a compiler error. Fixxed.

  2. I think it´s this function.

    InstanceBase.cpp

     

    change this:

    void CInstanceBase::ChangeAcce(DWORD eAcce)
    {
        if (IsPC() == false)
            return;
        
        SetAcce(eAcce);
        RefreshState(CRaceMotionData::NAME_WAIT, true);
    }
    
    

     

    to this

    void CInstanceBase::ChangeAcce(DWORD eAcce)
    {
        if (IsPC() == false)
            return;
        
        SetAcce(eAcce);
        //RefreshState(CRaceMotionData::NAME_WAIT, true);
    }
    
    
    • Love 1
  3. You should use other ways, here are two (I prefer the first)

    PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
    {
    	long long llGold = CPythonPlayer::Instance().GetStatus(POINT_GOLD);
    #ifdef _DEBUG
    	Tracef("GetElk(): %lld\n", llGold);
    #endif
    	return PyLong_FromLongLong(llGold);
    }
    
    PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
    {
    	long long llGold = CPythonPlayer::Instance().GetStatus(POINT_GOLD);
    #ifdef _DEBUG
    	Tracef("GetElk(): %lld\n", llGold);
    #endif
    	PyObject *args = PyTuple_New(1);
    	PyTuple_SetItem(args, 0, PyLong_FromLongLong(llGold));
    	Py_BuildValue("()", args);
    }

     

    thanks it works, but when the value changes (buy,sell whatever) binary shows a high amount...

    when i relog then the yang is the real value.

  4. Hey Guy´s :)

     

    I have a problem with max yang.

    I edit all cpp´s and edit all int to long long.

    But when i try to log in, i get this syserr:

    1111 16:08:59335 :: Acce number 1005 is not exist.
    1111 16:08:59335 :: Acce number 1005 is not exist.
    1111 16:08:12900 :: Phase Select does not handle this header (header: 4, last: 17, 4)
    1111 16:08:12933 :: Phase Select does not handle this header (header: 25, last: 4, 25)

     

    i dont know why my acce number not exist.

     

    hope anyone can help :)

    best regards

×
×
  • 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.