[C++/Source] Gildenlager

04/22/2015 19:39 Metin2 Team#166
Quote:
Originally Posted by Fushiida View Post
syserr client =/
those was added by the developer to debug or to check them. you can remove them from the source try to find them and remove them. Those are not errors.

Quote:
was not declared in this scope
self-explanatory. you should add them in the file you can add them before:

Quote:
void RegisterGuildFunctionTable()
04/23/2015 18:41 iStark##167
Hello, please help me with problem compiling.

DB:
[Only registered and activated users can see links. Click Here To Register...]

Game:
[Only registered and activated users can see links. Click Here To Register...]

Binary:
[Only registered and activated users can see links. Click Here To Register...]
04/23/2015 20:37 yagokurt#168
Hi everybody. I'm expecting a error when i Iry to compile the DB. I already compile the game and bin but DB still giving me error. Here I leave the output of my error.

Code:
Script started on Thu Apr 23 15:35:35 2015
You have mail.
root@host:/usr/src/game_testes/Srcs/Server/db/src # gmake -j20

p4: not found
p4: not found
compile Main.cpp
compile ClientManager.cpp
In file included from stdafx.h:16,
                 from Main.cpp:1:
../../common/utils.h:112:7: warning: no newline at end of file
In file included from stdafx.h:16,
                 from ClientManager.cpp:2:
../../common/utils.h:112:7: warning: no newline at end of file
In file included from ClientManager.cpp:6:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
compile GuildSafeboxManager.cpp
In file included from stdafx.h:16,
                 from GuildSafeboxManager.cpp:1:
../../common/utils.h:112:7: warning: no newline at end of file
In file included from GuildSafeboxManager.cpp:4:
GuildSafeboxManager.h:67: error: 'GUILD_SAFEBOX_PASSWORD_MAX_LEN' was not declared in this scope
GuildSafeboxManager.h:70: error: 'GUILD_SAFEBOX_MAX_NUM' was not declared in this scope
GuildSafeboxManager.h:71: error: 'GUILD_SAFEBOX_MAX_NUM' was not declared in this scope
GuildSafeboxManager.h: In member function 'void CGuildSafebox::SetPassword(const char*)':
GuildSafeboxManager.h:36: error: 'm_szPassword' was not declared in this scope
GuildSafeboxManager.h: In member function 'const char* CGuildSafebox::GetPassword()':
GuildSafeboxManager.h:37: error: 'm_szPassword' was not declared in this scope
GuildSafeboxManager.h: In member function 'bool CGuildSafebox::CheckPassword(const char*) const':
GuildSafeboxManager.h:38: error: 'm_szPassword' was not declared in this scope
GuildSafeboxManager.h: In member function 'const TPlayerItem* CGuildSafebox::GetItem(BYTE) const':
GuildSafeboxManager.h:59: error: 'm_pItems' was not declared in this scope
In file included from Main.cpp:21:
GuildSafeboxManager.h:67: error: 'GUILD_SAFEBOX_PASSWORD_MAX_LEN' was not declared in this scope
GuildSafeboxManager.h:70: error: 'GUILD_SAFEBOX_MAX_NUM' was not declared in this scope
GuildSafeboxManager.h:71: error: 'GUILD_SAFEBOX_MAX_NUM' was not declared in this scope
GuildSafeboxManager.h: In member function 'void CGuildSafebox::SetPassword(const char*)':
GuildSafeboxManager.h:36: error: 'm_szPassword' was not declared in this scope
GuildSafeboxManager.h: In member function 'const char* CGuildSafebox::GetPassword()':
GuildSafeboxManager.h:37: error: 'm_szPassword' was not declared in this scope
GuildSafeboxManager.h: In member function 'bool CGuildSafebox::CheckPassword(const char*) const':
GuildSafeboxManager.h:38: error: 'm_szPassword' was not declared in this scope
GuildSafeboxManager.h: In member function 'const TPlayerItem* CGuildSafebox::GetItem(BYTE) const':
GuildSafeboxManager.h:59: error: 'm_pItems' was not declared in this scope
gmake: *** [.obj/Main.o] Error 1
gmake: *** Waiting for unfinished jobs....
GuildSafeboxManager.cpp: In constructor 'CGuildSafebox::CGuildSafebox(DWORD)':
GuildSafeboxManager.cpp:20: error: 'm_szPassword' was not declared in this scope
GuildSafeboxManager.cpp:23: error: 'm_pItems' was not declared in this scope
GuildSafeboxManager.cpp:24: error: 'm_bItemGrid' was not declared in this scope
GuildSafeboxManager.cpp: In destructor 'CGuildSafebox::~CGuildSafebox()':
GuildSafeboxManager.cpp:28: error: 'GUILD_SAFEBOX_MAX_NUM' was not declared in this scope
GuildSafeboxManager.cpp:30: error: 'm_pItems' was not declared in this scope
GuildSafeboxManager.cpp: In member function 'void CGuildSafebox::ChangeSize(BYTE, CPeer*)':
GuildSafeboxManager.cpp:42: error: 'HEADER_DG_GUILD_SAFEBOX_SIZE' was not declared in this scope
GuildSafeboxManager.cpp: In member function 'void CGuildSafebox::ChangeGold(int)':
GuildSafeboxManager.cpp:52: error: 'HEADER_DG_GUILD_SAFEBOX_GOLD' was not declared in this scope
GuildSafeboxManager.cpp: In member function 'void CGuildSafebox::LoadItems(SQLMsg*)':
GuildSafeboxManager.cpp:68: error: 'GUILD_SAFEBOX' was not declared in this scope
GuildSafeboxManager.cpp:79: error: 'struct TPlayerItem' has no member named 'is_gm_owner'
GuildSafeboxManager.cpp:97: error: 'GUILD_SAFEBOX_MAX_NUM' was not declared in this scope
GuildSafeboxManager.cpp:110: error: 'm_pItems' was not declared in this scope
GuildSafeboxManager.cpp:112: error: 'm_bItemGrid' was not declared in this scope
GuildSafeboxManager.cpp: In member function 'void CGuildSafebox::DeleteItems()':
GuildSafeboxManager.cpp:124: error: 'GUILD_SAFEBOX' was not declared in this scope
GuildSafeboxManager.cpp:127: error: 'GUILD_SAFEBOX_MAX_NUM' was not declared in this scope
GuildSafeboxManager.cpp:131: error: 'm_pItems' was not declared in this scope
GuildSafeboxManager.cpp:136: error: 'm_bItemGrid' was not declared in this scope
GuildSafeboxManager.cpp: In member function 'bool CGuildSafebox::IsValidCell(BYTE, BYTE) const':
GuildSafeboxManager.cpp:142: error: 'GUILD_SAFEBOX_MAX_NUM' was not declared in this scope
GuildSafeboxManager.cpp:142: error: 'GUILD_SAFEBOX_ITEM_WIDTH' was not declared in this scope
GuildSafeboxManager.cpp: In member function 'bool CGuildSafebox::IsFree(BYTE, BYTE) const':
GuildSafeboxManager.cpp:158: error: 'GUILD_SAFEBOX_ITEM_WIDTH' was not declared in this scope
GuildSafeboxManager.cpp:158: error: 'GUILD_SAFEBOX_ITEM_HEIGHT' was not declared in this scope
GuildSafeboxManager.cpp:175: error: 'm_bItemGrid' was not declared in this scope
GuildSafeboxManager.cpp: In member function 'void CGuildSafebox::RequestAddItem(CPeer*, DWORD, const TPlayerItem*)':
GuildSafeboxManager.cpp:205: error: 'm_pItems' was not declared in this scope
GuildSafeboxManager.cpp:207: error: 'GUILD_SAFEBOX' was not declared in this scope
GuildSafeboxManager.cpp:209: error: 'm_bItemGrid' was not declared in this scope
GuildSafeboxManager.cpp:209: error: 'GUILD_SAFEBOX_ITEM_WIDTH' was not declared in this scope
GuildSafeboxManager.cpp: In member function 'void CGuildSafebox::RequestMoveItem(BYTE, BYTE)':
GuildSafeboxManager.cpp:221: error: 'm_pItems' was not declared in this scope
GuildSafeboxManager.cpp:237: error: 'm_bItemGrid' was not declared in this scope
GuildSafeboxManager.cpp:237: error: 'GUILD_SAFEBOX_ITEM_WIDTH' was not declared in this scope
GuildSafeboxManager.cpp:242: error: 'm_bItemGrid' was not declared in this scope
GuildSafeboxManager.cpp:242: error: 'GUILD_SAFEBOX_ITEM_WIDTH' was not declared in this scope
GuildSafeboxManager.cpp: In member function 'void CGuildSafebox::RequestTakeItem(CPeer*, DWORD, BYTE, BYTE)':
GuildSafeboxManager.cpp:255: error: 'm_pItems' was not declared in this scope
GuildSafeboxManager.cpp:265: error: 'm_bItemGrid' was not declared in this scope
GuildSafeboxManager.cpp:265: error: 'GUILD_SAFEBOX_ITEM_WIDTH' was not declared in this scope
GuildSafeboxManager.cpp: In member function 'void CGuildSafebox::GiveItemToPlayer(CPeer*, DWORD, const TPlayerItem*)':
GuildSafeboxManager.cpp:282: error: 'HEADER_DG_GUILD_SAFEBOX_GIVE' was not declared in this scope
GuildSafeboxManager.cpp: In member function 'void CGuildSafebox::SendItemPacket(BYTE)':
GuildSafeboxManager.cpp:288: error: 'm_pItems' was not declared in this scope
GuildSafeboxManager.cpp:289: error: 'HEADER_DG_GUILD_SAFEBOX_SET' was not declared in this scope
GuildSafeboxManager.cpp:291: error: 'HEADER_DG_GUILD_SAFEBOX_DEL' was not declared in this scope
GuildSafeboxManager.cpp: In member function 'void CGuildSafebox::LoadItems(CPeer*, DWORD)':
GuildSafeboxManager.cpp:300: error: 'HEADER_DG_GUILD_SAFEBOX_LOAD' was not declared in this scope
GuildSafeboxManager.cpp:309: error: 'GUILD_SAFEBOX_MAX_NUM' was not declared in this scope
GuildSafeboxManager.cpp:317: error: 'HEADER_DG_GUILD_SAFEBOX_LOAD' was not declared in this scope
GuildSafeboxManager.cpp: In member function 'void CGuildSafeboxManager::Initialize()':
GuildSafeboxManager.cpp:368: warning: comparison between signed and unsigned integer expressions
GuildSafeboxManager.cpp:394: warning: zero-length printf format string
GuildSafeboxManager.cpp:394: warning: zero-length printf format string
GuildSafeboxManager.cpp:406: error: 'GUILD_SAFEBOX' was not declared in this scope
GuildSafeboxManager.cpp:394: warning: unused variable 'len'
GuildSafeboxManager.cpp: In member function 'void CGuildSafeboxManager::SaveSingleItem(TPlayerItem*)':
GuildSafeboxManager.cpp:480: error: 'GUILD_SAFEBOX' was not declared in this scope
GuildSafeboxManager.cpp:486: warning: zero-length printf format string
GuildSafeboxManager.cpp:486: warning: zero-length printf format string
GuildSafeboxManager.cpp:498: error: 'struct SPlayerItem' has no member named 'is_gm_owner'
GuildSafeboxManager.cpp:486: warning: unused variable 'len'
GuildSafeboxManager.cpp: In member function 'void CGuildSafeboxManager::ProcessPacket(CPeer*, DWORD, BYTE, const void*)':
GuildSafeboxManager.cpp:583: error: 'HEADER_GD_GUILD_SAFEBOX_ADD' was not declared in this scope
GuildSafeboxManager.cpp:597: error: 'HEADER_DG_GUILD_SAFEBOX_GIVE' was not declared in this scope
GuildSafeboxManager.cpp:603: error: 'HEADER_GD_GUILD_SAFEBOX_MOVE' was not declared in this scope
GuildSafeboxManager.cpp:605: error: expected initializer before '*' token
GuildSafeboxManager.cpp:606: error: 'p' was not declared in this scope
GuildSafeboxManager.cpp:614: error: 'HEADER_GD_GUILD_SAFEBOX_TAKE' was not declared in this scope
GuildSafeboxManager.cpp:616: error: expected initializer before '*' token
GuildSafeboxManager.cpp:617: error: 'p' was not declared in this scope
GuildSafeboxManager.cpp:625: error: 'HEADER_GD_GUILD_SAFEBOX_GIVE_GOLD' was not declared in this scope
GuildSafeboxManager.cpp:627: error: expected initializer before '*' token
GuildSafeboxManager.cpp:628: error: 'p' was not declared in this scope
GuildSafeboxManager.cpp:636: error: 'HEADER_GD_GUILD_SAFEBOX_GET_GOLD' was not declared in this scope
GuildSafeboxManager.cpp:638: error: expected initializer before '*' token
GuildSafeboxManager.cpp:639: error: 'p' was not declared in this scope
GuildSafeboxManager.cpp:642: error: 'HEADER_DG_GUILD_SAFEBOX_GOLD' was not declared in this scope
GuildSafeboxManager.cpp:661: error: 'HEADER_GD_GUILD_SAFEBOX_CREATE' was not declared in this scope
GuildSafeboxManager.cpp:688: error: 'HEADER_DG_GUILD_SAFEBOX_CREATE' was not declared in this scope
GuildSafeboxManager.cpp:695: error: 'HEADER_GD_GUILD_SAFEBOX_SIZE' was not declared in this scope
GuildSafeboxManager.cpp:710: error: 'HEADER_GD_GUILD_SAFEBOX_LOAD' was not declared in this scope
GuildSafeboxManager.cpp: In member function 'void CGuildSafeboxManager::InitSafeboxCore(CPeer*)':
GuildSafeboxManager.cpp:731: error: 'TGuildSafeboxInitial' was not declared in this scope
GuildSafeboxManager.cpp:731: error: expected ';' before 'init'
GuildSafeboxManager.cpp:732: error: 'init' was not declared in this scope
In file included from ClientManager.cpp:26:
GuildSafeboxManager.h:67: error: 'GUILD_SAFEBOX_PASSWORD_MAX_LEN' was not declared in this scope
GuildSafeboxManager.h:70: error: 'GUILD_SAFEBOX_MAX_NUM' was not declared in this scope
GuildSafeboxManager.h:71: error: 'GUILD_SAFEBOX_MAX_NUM' was not declared in this scope
GuildSafeboxManager.h: In member function 'void CGuildSafebox::SetPassword(const char*)':
GuildSafeboxManager.h:36: error: 'm_szPassword' was not declared in this scope
GuildSafeboxManager.h: In member function 'const char* CGuildSafebox::GetPassword()':
GuildSafeboxManager.h:37: error: 'm_szPassword' was not declared in this scope
GuildSafeboxManager.h: In member function 'bool CGuildSafebox::CheckPassword(const char*) const':
GuildSafeboxManager.h:38: error: 'm_szPassword' was not declared in this scope
GuildSafeboxManager.h: In member function 'const TPlayerItem* CGuildSafebox::GetItem(BYTE) const':
GuildSafeboxManager.h:59: error: 'm_pItems' was not declared in this scope
gmake: *** [.obj/GuildSafeboxManager.o] Error 1
ClientManager.cpp: In member function 'void CClientManager::QUERY_BOOT(CPeer*, TPacketGDBoot*)':
ClientManager.cpp:386: error: 'TGuildSafeboxInitial' was not declared in this scope
ClientManager.cpp: In member function 'void CClientManager::ProcessPackets(CPeer*)':
ClientManager.cpp:2820: error: 'HEADER_GD_GUILD_SAFEBOX_ADD' was not declared in this scope
ClientManager.cpp:2821: error: 'HEADER_GD_GUILD_SAFEBOX_MOVE' was not declared in this scope
ClientManager.cpp:2822: error: 'HEADER_GD_GUILD_SAFEBOX_TAKE' was not declared in this scope
ClientManager.cpp:2823: error: 'HEADER_GD_GUILD_SAFEBOX_GIVE_GOLD' was not declared in this scope
ClientManager.cpp:2824: error: 'HEADER_GD_GUILD_SAFEBOX_GET_GOLD' was not declared in this scope
ClientManager.cpp:2825: error: 'HEADER_GD_GUILD_SAFEBOX_CREATE' was not declared in this scope
ClientManager.cpp:2826: error: 'HEADER_GD_GUILD_SAFEBOX_SIZE' was not declared in this scope
ClientManager.cpp:2827: error: 'HEADER_GD_GUILD_SAFEBOX_LOAD' was not declared in this scope
gmake: *** [.obj/ClientManager.o] Error 1
root@host:/usr/src/game_testes/Srcs/Server/db/src # exit

exit

Script done on Thu Apr 23 15:35:50 2015
04/26/2015 12:05 VIЯUZ#169
Quote:
Originally Posted by TiRez View Post
This bug is already fixed i just forgot to upload it :)
Mit welchem Update ist das dann behoben?
05/01/2015 14:05 yagokurt#170
Still dont find a solution for my problem, anyone have any idea why this maybe is happening?
05/07/2015 07:59 Lefloyd#171
@yagokurt: You have to include service.h from common in the stdafx.h above all the other includes (if you don't know what I mean just post the stdafx.h).

@Viruz: Du musst lediglich überall die std::mem_fun_ref zu std::mem_fun abändern in der guild.cpp (und dann eben statt *this ein this).

Kind Regards,
Lefloyd
05/07/2015 16:26 Agorin#172
x
05/07/2015 22:35 hsvfanno1#173
[Only registered and activated users can see links. Click Here To Register...]

hab versucht userinterface zu debuggen aber es sind ein paar fehler aufgetreten , was könnte das problem sein?
05/07/2015 23:03 Agorin#174
Where is PythonSafeboxModule.py?

I have this problem in client:

Code:
0207 16:34:26034 :: File "networkModule.py", line 239, in SetGamePhase

0207 16:34:26035 :: File "game.py", line 120, in __init__

0207 16:34:26036 :: File "interfaceModule.py", line 306, in MakeInterface

0207 16:34:26036 :: File "interfaceModule.py", line 197, in __MakeWindows

0207 16:34:26037 :: File "uiSafebox.py", line 513, in __init__

0207 16:34:26037 :: File "uiSafebox.py", line 580, in __LoadWindow

0207 16:34:26038 :: File "uiSafebox.py", line 681, in RefreshGuildSafeboxMoney

0207 16:34:26038 :: AttributeError
0207 16:34:26038 :: : 
0207 16:34:26038 :: 'module' object has no attribute 'GetGuildMoney'
0207 16:34:26038 ::
05/08/2015 10:19 Lefloyd#175
@Agorin: Open the "PythonSafeBox.cpp" in the "Interface"-Group in the "UserInterface"-Project and scroll down to the end of the file. There is the "initsafebox"-Function where the module is initialized.

@hsvfanno1: Can you post your AffectFlagContainer.h please?

Kind Regards,
Lefloyd
05/08/2015 12:50 Agorin#176
@Lefloyd.

My end file PythonSafeBox.cpp

Code:
void initsafebox()
{
	static PyMethodDef s_methods[] =
	{
		// SafeBox
		{ "GetCurrentSafeboxSize",		safeboxGetCurrentSafeboxSize,			METH_VARARGS },
		{ "GetItemID",					safeboxGetItemID,						METH_VARARGS },
		{ "GetItemCount",				safeboxGetItemCount,					METH_VARARGS },
		{ "GetItemFlags",				safeboxGetItemFlags,					METH_VARARGS },
		{ "GetItemMetinSocket",			safeboxGetItemMetinSocket,				METH_VARARGS },
		{ "GetItemAttribute",			safeboxGetItemAttribute,				METH_VARARGS },
		{ "GetMoney",					safeboxGetMoney,						METH_VARARGS },

#ifdef ENABLE_GUILD_SAFEBOX
		{ "GetGuildItemID",				safeboxGetGuildItemID,					METH_VARARGS },
		{ "GetGuildItemCount",			safeboxGetGuildItemCount,				METH_VARARGS },
		{ "GetGuildItemMetinSocket",	safeboxGetGuildItemMetinSocket,			METH_VARARGS },
		{ "GetGuildItemAttribute",		safeboxGetGuildItemAttribute,			METH_VARARGS },
		{ "GetGuildSize",				safeboxGetGuildSize,					METH_VARARGS },
		{ "GetGuildMoney",				safeboxGetGuildMoney,					METH_VARARGS },
#endif

		// Mall
		{ "GetMallItemID",				safeboxGetMallItemID,					METH_VARARGS },
		{ "GetMallItemCount",			safeboxGetMallItemCount,				METH_VARARGS },
		{ "GetMallItemMetinSocket",		safeboxGetMallItemMetinSocket,			METH_VARARGS },
		{ "GetMallItemAttribute",		safeboxGetMallItemAttribute,			METH_VARARGS },
		{ "GetMallSize",				safeboxGetMallSize,						METH_VARARGS },
		{ NULL,							NULL,									NULL },
	};

	PyObject * poModule = Py_InitModule("safebox", s_methods);
	PyModule_AddIntConstant(poModule, "SAFEBOX_SLOT_X_COUNT", CPythonSafeBox::SAFEBOX_SLOT_X_COUNT);
	PyModule_AddIntConstant(poModule, "SAFEBOX_SLOT_Y_COUNT", CPythonSafeBox::SAFEBOX_SLOT_Y_COUNT);
	PyModule_AddIntConstant(poModule, "SAFEBOX_PAGE_SIZE", CPythonSafeBox::SAFEBOX_PAGE_SIZE);
}
05/08/2015 13:46 hsvfanno1#177

this is the AffectFlagContainer.h
05/08/2015 14:10 Lefloyd#178
@Agorin: Have you made sure that the "ENABLE_GUILD_SAFEBOX" is defined?

@hsvfanno1: Remove the "typedef unsigned char Element;" and change the "Element m_aElement[BYTE_SIZE];" to "BYTE m_aElement[BYTE_SIZE];"

Kind Regards,
Lefloyd
05/08/2015 14:30 Agorin#179
@Lefloyd, So I added everything according to cookbook.
05/08/2015 14:34 .Heaven#180
Ok Thanks , but now 50 another errors came... Can i Add you on skype ?

hsvfanno1 is my Friend ...