problema jigsaw

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
spartanel422
Utilizator interzis !

Utilizator interzis !
Mesaje: 78
Membru din: 20 Dec 2014, 21:46
Server: Majestic2
Regat: Jinno
Aprecieri: 63  
Mulţumiri: 2  
Medalii

*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
Avatar utilizator
[Reizo]
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 1301
Membru din: 22 Oct 2019, 15:44
Server: SAPPHIRE2
Regat: Chunjo
Aprecieri: 409  
Mulţumiri: 4322  
Discord: Copiază ID
 Contact:
Medalii

Verifica length.h, ori nu ai adaugat FISH_EVENT_SLOTS_NUM ori nu ai pus include in tables.h, ceea ce ar fi ciudat.
Imagine
Afișează semnătura
Avatar utilizator
spartanel422
Utilizator interzis !

Utilizator interzis !
Mesaje: 78
Membru din: 20 Dec 2014, 21:46
Server: Majestic2
Regat: Jinno
Aprecieri: 63  
Mulţumiri: 2  
Medalii

Tot la fel, am pus ce zice dar nu inteleg de ce zice chestia aia ca am adaugat-o .
Avatar utilizator
spartanel422
Utilizator interzis !

Utilizator interzis !
Mesaje: 78
Membru din: 20 Dec 2014, 21:46
Server: Majestic2
Regat: Jinno
Aprecieri: 63  
Mulţumiri: 2  
Medalii

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!!!!
:
Avatar utilizator
amvenitsavadcv
Nivel 3

Nivel 3
Mesaje: 413
Membru din: 28 Iul 2018, 11:25
Server: da
Aprecieri: 44  
Mulţumiri: 156  
Medalii

if app.ENABLE_FISH_EVENT:
def ResetFrame(self):
wndMgr.ResetFrame(self.hWnd)

def SetEndFrameEvent(self, event):
self.end_frame_event = event

def OnEndFrame(self):
if self.end_frame_event:
self.end_frame_event()

def SetScale(self, xScale, yScale):
wndMgr.SetAniImgScale(self.hWnd, xScale, yScale)
Inlocuieste SetAniImgScale cu SetSlotScale asta in caz ca ai sistemul de pet uri implementat pe server.
Asta in ui.py
Avatar utilizator
spartanel422
Utilizator interzis !

Utilizator interzis !
Mesaje: 78
Membru din: 20 Dec 2014, 21:46
Server: Majestic2
Regat: Jinno
Aprecieri: 63  
Mulţumiri: 2  
Medalii

type 'exceptions.AttributeError'>:'module' object has no attribute 'SetSlotScale'
Avatar utilizator
amvenitsavadcv
Nivel 3

Nivel 3
Mesaje: 413
Membru din: 28 Iul 2018, 11:25
Server: da
Aprecieri: 44  
Mulţumiri: 156  
Medalii

PythonSlotWindow.cpp
Cauta:
void CSlotWindow::SetSlot
Adauga 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.h

Cauta:
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 },
Avatar utilizator
spartanel422
Utilizator interzis !

Utilizator interzis !
Mesaje: 78
Membru din: 20 Dec 2014, 21:46
Server: Majestic2
Regat: Jinno
Aprecieri: 63  
Mulţumiri: 2  
Medalii

PythonSlotWindow.cpp imi da multe erori dupa ce bag aia , doar la aia imi da ..
Avatar utilizator
Vaynz
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 729
Membru din: 07 Iun 2018, 15:16
Server: -
Regat: Chunjo
Aprecieri: 153  
Mulţumiri: 3618  
Medalii

Subiect inactiv, arhivat.
Închis
Răspunsuri
2
Vizualizări
213
Răspunsuri
15
Vizualizări
1388
Răspunsuri
4
Vizualizări
246
Răspunsuri
5
Vizualizări
425

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Google [Bot] și 18 vizitatori