Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

[C++] 6 inventory safebox


dannyrbk

Question

4 answers to this question

Recommended Posts

  • 0
20 hours ago, Mali61 said:

 

man i can't compile the source...got this error

SRC

Quote

[email protected]:~/Src_Metin2Fox/Srcs/game/src # gmake
compile affect.cpp
compile ani.cpp
compile arena.cpp
compile banword.cpp
compile battle.cpp
compile BattleArena.cpp
compile biolog.cpp
compile blend_item.cpp
compile BlueDragon.cpp
compile BlueDragon_Binder.cpp
compile buff_on_attributes.cpp
compile buffer_manager.cpp
compile building.cpp
compile char.cpp
In file included from char.cpp:22:0:
safebox.h:1:0: error: unterminated #ifndef
 #ifndef __INC_METIN_II_GAME_SAFEBOX_H__
 ^
In file included from char.cpp:23:0:
regen.h:86:84: error: storage class specified for 'regen_load'
 extern bool regen_load(const char *filename, long lMapIndex, int base_x, int base_y);
                                                                                    ^
regen.h:87:122: error: storage class specified for 'regen_do'
 extern bool regen_do(const char* filename, long lMapIndex, int base_x, int base_y, LPDUNGEON pDungeon, bool bOnce = true );
                                                                                                                          ^
regen.h:88:93: error: storage class specified for 'regen_load_in_file'
 extern bool regen_load_in_file(const char* filename, long lMapIndex, int base_x, int base_y );
                                                                                             ^
regen.h:89:24: error: storage class specified for 'regen_free'
 extern void regen_free();
                        ^
regen.h:91:46: error: storage class specified for 'is_regen_exception'
 extern bool is_regen_exception(long x, long y);
                                              ^
regen.h:92:37: error: storage class specified for 'regen_reset'
 extern void regen_reset(int x, int y);
                                     ^
In file included from char.cpp:25:0:
party.h:258:58: error: cannot define member function 'CSafebox::CParty::ForEachMember' within 'CSafebox'
 template <class Func> void CParty::ForEachMember(Func & f)
                                                          ^
party.h:266:61: error: cannot define member function 'CSafebox::CParty::ForEachMemberPtr' within 'CSafebox'
 template <class Func> void CParty::ForEachMemberPtr(Func & f)
                                                             ^
party.h:274:64: error: cannot define member function 'CSafebox::CParty::ForEachOnlineMember' within 'CSafebox'
 template <class Func> void CParty::ForEachOnlineMember(Func & f)
                                                                ^
party.h:283:62: error: cannot define member function 'CSafebox::CParty::ForEachNearMember' within 'CSafebox'
 template <class Func> void CParty::ForEachNearMember(Func & f)
                                                              ^
party.h:292:80: error: cannot define member function 'CSafebox::CParty::ForEachOnMapMember' within 'CSafebox'
 template <class Func> void CParty::ForEachOnMapMember (Func & f, long lMapIndex)
                                                                                ^
party.h:307:83: error: cannot define member function 'CSafebox::CParty::ForEachOnMapMemberBool' within 'CSafebox'
 template <class Func> bool CParty::ForEachOnMapMemberBool(Func & f, long lMapIndex)
                                                                                   ^
party.h:329:49: error: cannot define member function 'CSafebox::CParty::ComputePartyBonusAttackGrade' within 'CSafebox'
 inline int CParty::ComputePartyBonusAttackGrade()
                                                 ^
party.h:347:50: error: cannot define member function 'CSafebox::CParty::ComputePartyBonusDefenseGrade' within 'CSafebox'
 inline int CParty::ComputePartyBonusDefenseGrade()
                                                  ^
In file included from char.cpp:26:0:
start_position.h:6:32: error: storage class specified for 'g_nation_name'
 extern char g_nation_name[4][32];
                                ^
start_position.h:7:35: error: storage class specified for 'g_start_position'
 extern DWORD g_start_position[4][2];
                                   ^
start_position.h:8:26: error: storage class specified for 'g_start_map'
 extern long g_start_map[4];
                          ^
start_position.h:9:36: error: storage class specified for 'g_create_position'
 extern DWORD g_create_position[4][2];
                                    ^
start_position.h:10:40: error: storage class specified for 'arena_return_position'
 extern DWORD arena_return_position[4][2];
                                        ^
In file included from quest.h:10:0,
                 from questpc.h:4,
                 from questnpc.h:4,
                 from questmanager.h:6,
                 from char.cpp:27:
lua_incl.h:2:8: error: expected unqualified-id before string constant
 extern "C" {
        ^
In file included from char.cpp:30:0:
guild.h:47:16: error: expected '}' before end of line
 #pragma pack(1)
                ^
In file included from sectree_manager.h:4:0,
                 from dungeon.h:4,
                 from regen.h:1,
                 from char.cpp:23:
sectree.h: In member function 'CEntity* CSafebox::SECTREE::find_if(_Func&) const':
sectree.h:94:48: error: invalid use of incomplete type 'class SECTREE'
     ENTITY_SET::iterator it_entity = (*it_tree)->m_set_entity.begin();
                                                ^
In file included from stdafx.h:37:0,
                 from char.cpp:1:
typedef.h:63:7: error: forward declaration of 'class SECTREE'
 class SECTREE;
       ^
In file included from sectree_manager.h:4:0,
                 from dungeon.h:4,
                 from regen.h:1,
                 from char.cpp:23:
sectree.h:96:35: error: invalid use of incomplete type 'class SECTREE'
     while (it_entity != (*it_tree)->m_set_entity.end())
                                   ^
In file included from stdafx.h:37:0,
                 from char.cpp:1:
typedef.h:63:7: error: forward declaration of 'class SECTREE'
 class SECTREE;
       ^
In file included from sectree_manager.h:4:0,
                 from dungeon.h:4,
                 from regen.h:1,
                 from char.cpp:23:
sectree.h: In member function 'void CSafebox::SECTREE::ForEachAround(_Func&)':
sectree.h:118:12: error: invalid use of incomplete type 'class SECTREE'
     sectree->for_each_entity(collector);
            ^
In file included from stdafx.h:37:0,
                 from char.cpp:1:
typedef.h:63:7: error: forward declaration of 'class SECTREE'
 class SECTREE;
       ^
In file included from sectree_manager.h:4:0,
                 from dungeon.h:4,
                 from regen.h:1,
                 from char.cpp:23:
sectree.h: In member function 'void CSafebox::SECTREE::for_each_for_find_victim(_Func&)':
sectree.h:136:24: error: invalid use of incomplete type 'class SECTREE'
     if ( (*(it_tree++))->for_each_entity_for_find_victim(func) )
                        ^
In file included from stdafx.h:37:0,
                 from char.cpp:1:
typedef.h:63:7: error: forward declaration of 'class SECTREE'
 class SECTREE;
       ^
In file included from sectree_manager.h:4:0,
                 from dungeon.h:4,
                 from regen.h:1,
                 from char.cpp:23:
sectree.h: In member function 'void CSafebox::SECTREE::for_each_entity(_Func&)':
sectree.h:193:33: error: comparison between distinct pointer types 'LPSECTREE {aka SECTREE*}' and 'CSafebox::SECTREE*' lacks a cast
     if (entity->GetSectree() != this) {
                                 ^
In file included from dungeon.h:4:0,
                 from regen.h:1,
                 from char.cpp:23:
sectree_manager.h: In member function 'void CSafebox::SECTREE_MAP::for_each(Func&)':
sectree_manager.h:79:12: error: invalid use of incomplete type 'class SECTREE'
     sectree->for_each_entity(collector);
            ^
In file included from stdafx.h:37:0,
                 from char.cpp:1:
typedef.h:63:7: error: forward declaration of 'class SECTREE'
 class SECTREE;
       ^
In file included from dungeon.h:4:0,
                 from regen.h:1,
                 from char.cpp:23:
sectree_manager.h: In member function 'void CSafebox::SECTREE_MANAGER::for_each(int, Func&)':
sectree_manager.h:127:12: error: invalid use of incomplete type 'class SECTREE_MAP'
     pSecMap->for_each( rfunc );
            ^
In file included from stdafx.h:37:0,
                 from char.cpp:1:
typedef.h:71:7: error: forward declaration of 'class SECTREE_MAP'
 class SECTREE_MAP;
       ^
In file included from char.cpp:30:0:
guild.h: At global scope:
guild.h:47:16: error: expected unqualified-id before end of line
 #pragma pack(1)
                ^
guild.h:47:16: error: expected declaration before end of line
gmake: *** [OBJDIR/char.o] Error 1
 

 

Binary

spacer.png

Link to post
  • 0
On 5/3/2020 at 10:19 PM, Mali61 said:

Hello,

today I reinstalled the system and was able to compile both sources, but I have a problem in the game, I can't put items until the first inventory, the others don't work

i'am creat an issuse for to here https://github.com/blackdragonx61/Metin2-Extended-Safebox/issues/1#issue-614162540

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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