*Problemă/Întrebare:a m 2 probleme la binary si db..
Tipologie server-
*Resursă folosită: -
*ServerFiles utilizat:-
*Syserr:
Poză:
*Detalii suplimentare:
ERROARE DB:
In file included from Monarch.h:9,
from Monarch.cpp:1:
../../common/tables.h:541: error: 'FISH_EVENT_SLOTS_NUM' was not declared in this scope
asta-i tables.h
si la binary ..\..\source\EterPythonLib\PythonWindowManager.cpp(491): error C3861: 'IsDisableDeattach': identifier not found
.\..\source\EterPythonLib\PythonWindowManagerModule.cpp(2317): error C2039: 'SetDisableDeattach' : is not a member of 'UI::CWindowManager'
8> c:\users\bogda\desktop\svf\binary source\source\eterpythonlib\PythonWindowManager.h(7) : see declaration of 'UI::CWindowManager'
pythonwindowmanager.h
pythonwindowmanager.cpp
problema jigsaw
- [Reizo]
-

- Mesaje: 1301
- Membru din: 22 Oct 2019, 15:44
- Server: SAPPHIRE2
- Regat: Chunjo
- Aprecieri: 409
- Mulţumiri: 4322
- Discord: Copiază ID
- Contact:
Verifica length.h, ori nu ai adaugat FISH_EVENT_SLOTS_NUM ori nu ai pus include in tables.h, ceea ce ar fi ciudat.
Tot la fel, am pus ce zice dar nu inteleg de ce zice chestia aia ca am adaugat-o .
cineva partea de binary am rezolvat-o mai am la db si la client am eroarea asta
uiMiniGameFishEvent.py(line:213) __LoadWindow
ui.py(line:1323) SetScale
FishEventGamePage.__LoadWindow.BindObject - <type 'exceptions.AttributeError'>:'module' object has no attribute 'SetAniImgScale'
1023 12:10:19494 :: ============================================================================================================
1023 12:10:19494 :: Abort!!!!
:
uiMiniGameFishEvent.py(line:213) __LoadWindow
ui.py(line:1323) SetScale
FishEventGamePage.__LoadWindow.BindObject - <type 'exceptions.AttributeError'>:'module' object has no attribute 'SetAniImgScale'
1023 12:10:19494 :: ============================================================================================================
1023 12:10:19494 :: Abort!!!!
:
Asta in ui.py
type 'exceptions.AttributeError'>:'module' object has no attribute 'SetSlotScale'
PythonSlotWindow.cpp
Cauta:
Cauta:
Cauta:
Cauta:
void CSlotWindow::SetSlotAdauga dupa:
void CSlotWindow::SetSlotScale(DWORD dwIndex, DWORD dwVirtualNumber, BYTE byWidth, BYTE byHeight, CGraphicImage * pImage, float sx, float sy, D3DXCOLOR& diffuseColor)
{
TSlot * pSlot;
if (!GetSlotPointer(dwIndex, &pSlot))
return;
if (pSlot->isItem)
if (pSlot->dwItemIndex == dwVirtualNumber)
{
pSlot->dwState = 0;
pSlot->isItem = TRUE;
if (pImage && pSlot->pInstance)
{
pSlot->pInstance->SetImagePointer(pImage);
}
return;
}
ClearSlot(pSlot);
pSlot->dwState = 0;
pSlot->isItem = TRUE;
pSlot->dwItemIndex = dwVirtualNumber;
if (pImage)
{
assert(NULL == pSlot->pInstance);
pSlot->pInstance = CGraphicImageInstance::New();
pSlot->pInstance->SetDiffuseColor(diffuseColor.r, diffuseColor.g, diffuseColor.b, diffuseColor.a);
pSlot->pInstance->SetImagePointer(pImage);
pSlot->pInstance->SetScale(sx, sy);
}
pSlot->byxPlacedItemSize = byWidth;
pSlot->byyPlacedItemSize = byHeight;
if (pSlot->pCoverButton)
{
pSlot->pCoverButton->Show();
}
}
PythonSlotWindow.hCauta:
void SetSlotBaseImageScale(const char * c_szFileName, float fr, float fg, float fb, float fa, float sx, float sy);Adauga:
void SetSlotScale(DWORD dwIndex, DWORD dwVirtualNumber, BYTE byWidth, BYTE byHeight, CGraphicImage * pImage, float sx, float sy, D3DXCOLOR& diffuseColor);PythonWindowManagerModule.cpp
Cauta:
PyObject * wndMgrSetSlot(PyObject * poSelf, PyObject * poArgs)Adaugua dupa:
PyObject * wndMgrSetSlotScale(PyObject * poSelf, PyObject * poArgs)
{
UI::CWindow * pWin;
if (!PyTuple_GetWindow(poArgs, 0, &pWin))
return Py_BuildException();
int iSlotIndex;
if (!PyTuple_GetInteger(poArgs, 1, &iSlotIndex))
return Py_BuildException();
int iItemIndex;
if (!PyTuple_GetInteger(poArgs, 2, &iItemIndex))
return Py_BuildException();
int iWidth;
if (!PyTuple_GetInteger(poArgs, 3, &iWidth))
return Py_BuildException();
int iHeight;
if (!PyTuple_GetInteger(poArgs, 4, &iHeight))
return Py_BuildException();
int iImageHandle;
if (!PyTuple_GetInteger(poArgs, 5, &iImageHandle))
return Py_BuildException();
D3DXCOLOR diffuseColor;
PyObject* pTuple;
if (!PyTuple_GetObject(poArgs, 6, &pTuple))
{
diffuseColor = D3DXCOLOR(1.0, 1.0, 1.0, 1.0);
//return Py_BuildException();
}
else
// get diffuse color from pTuple
{
if (PyTuple_Size(pTuple) != 4)
return Py_BuildException();
if (!PyTuple_GetFloat(pTuple, 0, &diffuseColor.r))
return Py_BuildException();
if (!PyTuple_GetFloat(pTuple, 1, &diffuseColor.g))
return Py_BuildException();
if (!PyTuple_GetFloat(pTuple, 2, &diffuseColor.b))
return Py_BuildException();
if (!PyTuple_GetFloat(pTuple, 3, &diffuseColor.a))
return Py_BuildException();
}
float sx, sy;
if (!PyTuple_GetFloat(poArgs, 7, &sx))
{
return Py_BuildException();
}
if (!PyTuple_GetFloat(poArgs, 8, &sy))
{
return Py_BuildException();
}
if (!pWin->IsType(UI::CSlotWindow::Type()))
return Py_BuildException();
UI::CSlotWindow * pSlotWin = (UI::CSlotWindow *)pWin;
pSlotWin->SetSlotScale(iSlotIndex, iItemIndex, iWidth, iHeight, (CGraphicImage *)iImageHandle, sx, sy ,diffuseColor);
return Py_BuildNone();
}
Cauta:
{ "SetSlot", wndMgrSetSlot, METH_VARARGS },
Adauga dupa:
{ "SetSlotScale", wndMgrSetSlotScale, METH_VARARGS },PythonSlotWindow.cpp imi da multe erori dupa ce bag aia , doar la aia imi da ..
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 62 vizitatori

