Jump to content

Vanilla Core [latest: r71480]


Vanilla

Recommended Posts

  • 3 weeks later...

fix Assertion failed: (!ms_singleton), function singleton, file ./../../common/singleton.h, line 13.

Open service.h
Add:
#define CUNIQUEMANAGER_FIX

Open main.cpp
Find: 
DSManager dsManager;

Add after:
#ifdef CUNIQUEMANAGER_FIX
        CUniqueManager  cUManager;
#endif

Open questmanager.cpp

Find:
pUniqueManager = new CUniqueManager();
master = pUniqueManager->Create("__DEFAULT__");
character = pUniqueManager->Create("__CHARACTER__");

Replace:
#ifdef CUNIQUEMANAGER_FIX
		master = CUniqueManager::instance().Create("__DEFAULT__");
		character = CUniqueManager::instance().Create("__CHARACTER__");
#else
		pUniqueManager = new CUniqueManager();
		master = pUniqueManager->Create("__DEFAULT__");
		character = pUniqueManager->Create("__CHARACTER__");
#endif

Open questmanager.h
  
Find:
	CUniqueManager* pUniqueManager;

Replace:
#ifndef CUNIQUEMANAGER_FIX
	CUniqueManager* pUniqueManager;
#endif

P.S. NO TESTED!!!!

P.S.2 Sorry for my bad english

questlua_unique.cpp

  • Good 1
Link to comment
Share on other sites

  • 1 month later...

I did not abandon the project but due to personal rl issues I wasn't able to do much. I'm sorry for the lack of updates. Things will change starting next year. So stay tuned, I'm gonna release a new version once I'm done with the rl stuff.

  • Love 11

We are the tortured.
We're not your friends.
As long as we're not visible.
We are unfixable.

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

What I'm missing here?

gmake[1]: Entering directory '/usr/src/NEW/Server/game/src'
compile BattleArena.cpp
In file included from /usr/local/lib/gcc8/include/c++/unordered_map:46,
                 from /usr/local/lib/gcc8/include/c++/functional:61,
                 from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21,
                 from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24,
                 from ../../../Extern/include/boost/intrusive_ptr.hpp:16,
                 from event.h:10,
                 from stdafx.h:40,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc8/include/c++/bits/hashtable.h: In instantiation of 'class std::_Hashtable<VID, std::pair<const VID, unsigned int>, std::allocator<std::pair<const VID, unsigned int> >, std::__detail::_Select1st, std::equal_to<VID>, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >':
/usr/local/lib/gcc8/include/c++/bits/unordered_map.h:105:18:   required from 'class std::unordered_map<VID, unsigned int>'
char.h:572:34:   required from here
/usr/local/lib/gcc8/include/c++/bits/hashtable.h:195:21: error: static assertion failed: hash function must be invocable with an argument of key type
       static_assert(__is_invocable<const _H1&, const _Key&>{},
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from BattleArena.cpp:6:
char.h: In constructor 'TSkillUseInfo::TSkillUseInfo()':
char.h:576:32: error: use of deleted function 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map() [with _Key = VID; _Tp = unsigned int; _Hash = std::hash<VID>; _Pred = std::equal_to<VID>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >]'
   dwVID(0), isGrandMaster(false)
                                ^
In file included from /usr/local/lib/gcc8/include/c++/unordered_map:47,
                 from /usr/local/lib/gcc8/include/c++/functional:61,
                 from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21,
                 from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24,
                 from ../../../Extern/include/boost/intrusive_ptr.hpp:16,
                 from event.h:10,
                 from stdafx.h:40,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc8/include/c++/bits/unordered_map.h:141:7: note: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map() [with _Key = VID; _Tp = unsigned int; _Hash = std::hash<VID>; _Pred = std::equal_to<VID>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >]' is implicitly deleted because the default definition would be ill-formed:
       unordered_map() = default;
       ^~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/unordered_map.h:141:7: error: use of deleted function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_Hashtable() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>]'
In file included from /usr/local/lib/gcc8/include/c++/unordered_map:46,
                 from /usr/local/lib/gcc8/include/c++/functional:61,
                 from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21,
                 from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24,
                 from ../../../Extern/include/boost/intrusive_ptr.hpp:16,
                 from event.h:10,
                 from stdafx.h:40,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc8/include/c++/bits/hashtable.h:413:7: note: 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_Hashtable() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>]' is implicitly deleted because the default definition would be ill-formed:
       _Hashtable() = default;
       ^~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable.h:413:7: error: use of deleted function 'std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _H1, _H2, _Hash, _Traits>::_Hashtable_base() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _Traits = std::__detail::_Hashtable_traits<true, false, true>]'
In file included from /usr/local/lib/gcc8/include/c++/bits/hashtable.h:35,
                 from /usr/local/lib/gcc8/include/c++/unordered_map:46,
                 from /usr/local/lib/gcc8/include/c++/functional:61,
                 from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21,
                 from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24,
                 from ../../../Extern/include/boost/intrusive_ptr.hpp:16,
                 from event.h:10,
                 from stdafx.h:40,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1824:5: note: 'std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _H1, _H2, _Hash, _Traits>::_Hashtable_base() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _Traits = std::__detail::_Hashtable_traits<true, false, true>]' is implicitly deleted because the default definition would be ill-formed:
     _Hashtable_base() = default;
     ^~~~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1824:5: error: use of deleted function 'std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, std::__detail::_Default_ranged_hash, true>::_Hash_code_base() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _ExtractKey = std::__detail::_Select1st; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing]'
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1379:7: note: 'std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, std::__detail::_Default_ranged_hash, true>::_Hash_code_base() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _ExtractKey = std::__detail::_Select1st; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing]' is implicitly deleted because the default definition would be ill-formed:
       _Hash_code_base() = default;
       ^~~~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1379:7: error: use of deleted function 'std::__detail::_Hashtable_ebo_helper<_Nm, _Tp, true>::_Hashtable_ebo_helper() [with int _Nm = 1; _Tp = std::hash<VID>]'
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1106:7: note: 'std::__detail::_Hashtable_ebo_helper<_Nm, _Tp, true>::_Hashtable_ebo_helper() [with int _Nm = 1; _Tp = std::hash<VID>]' is implicitly deleted because the default definition would be ill-formed:
       _Hashtable_ebo_helper() = default;
       ^~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1106:7: error: use of deleted function 'std::hash<VID>::hash()'
In file included from /usr/local/lib/gcc8/include/c++/string_view:43,
                 from /usr/local/lib/gcc8/include/c++/bits/basic_string.h:48,
                 from /usr/local/lib/gcc8/include/c++/string:52,
                 from /usr/local/lib/gcc8/include/c++/stdexcept:39,
                 from /usr/local/lib/gcc8/include/c++/optional:38,
                 from /usr/local/lib/gcc8/include/c++/bits/node_handle.h:39,
                 from /usr/local/lib/gcc8/include/c++/bits/stl_tree.h:72,
                 from /usr/local/lib/gcc8/include/c++/map:60,
                 from stdafx.h:19,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: note: 'std::hash<VID>::hash()' is implicitly deleted because the default definition would be ill-formed:
     struct hash : __hash_enum<_Tp>
            ^~~~
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: error: no matching function for call to 'std::__hash_enum<VID, false>::__hash_enum()'
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:82:7: note: candidate: 'std::__hash_enum<_Tp, <anonymous> >::__hash_enum(std::__hash_enum<_Tp, <anonymous> >&&) [with _Tp = VID; bool <anonymous> = false]'
       __hash_enum(__hash_enum&&);
       ^~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:82:7: note:   candidate expects 1 argument, 0 provided
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: error: 'std::__hash_enum<_Tp, <anonymous> >::~__hash_enum() [with _Tp = VID; bool <anonymous> = false]' is private within this context
     struct hash : __hash_enum<_Tp>
            ^~~~
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:83:7: note: declared private here
       ~__hash_enum();
       ^
In file included from /usr/local/lib/gcc8/include/c++/bits/hashtable.h:35,
                 from /usr/local/lib/gcc8/include/c++/unordered_map:46,
                 from /usr/local/lib/gcc8/include/c++/functional:61,
                 from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21,
                 from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24,
                 from ../../../Extern/include/boost/intrusive_ptr.hpp:16,
                 from event.h:10,
                 from stdafx.h:40,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1106:7: error: use of deleted function 'std::hash<VID>::~hash()'
       _Hashtable_ebo_helper() = default;
       ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/lib/gcc8/include/c++/string_view:43,
                 from /usr/local/lib/gcc8/include/c++/bits/basic_string.h:48,
                 from /usr/local/lib/gcc8/include/c++/string:52,
                 from /usr/local/lib/gcc8/include/c++/stdexcept:39,
                 from /usr/local/lib/gcc8/include/c++/optional:38,
                 from /usr/local/lib/gcc8/include/c++/bits/node_handle.h:39,
                 from /usr/local/lib/gcc8/include/c++/bits/stl_tree.h:72,
                 from /usr/local/lib/gcc8/include/c++/map:60,
                 from stdafx.h:19,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: note: 'std::hash<VID>::~hash()' is implicitly deleted because the default definition would be ill-formed:
     struct hash : __hash_enum<_Tp>
            ^~~~
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: error: 'std::__hash_enum<_Tp, <anonymous> >::~__hash_enum() [with _Tp = VID; bool <anonymous> = false]' is private within this context
/usr/local/lib/gcc8/include/c++/bits/functional_hash.h:83:7: note: declared private here
       ~__hash_enum();
       ^
In file included from /usr/local/lib/gcc8/include/c++/bits/hashtable.h:35,
                 from /usr/local/lib/gcc8/include/c++/unordered_map:46,
                 from /usr/local/lib/gcc8/include/c++/functional:61,
                 from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21,
                 from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24,
                 from ../../../Extern/include/boost/intrusive_ptr.hpp:16,
                 from event.h:10,
                 from stdafx.h:40,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1379:7: error: use of deleted function 'std::__detail::_Hashtable_ebo_helper<1, std::hash<VID>, true>::~_Hashtable_ebo_helper()'
       _Hash_code_base() = default;
       ^~~~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1103:12: note: 'std::__detail::_Hashtable_ebo_helper<1, std::hash<VID>, true>::~_Hashtable_ebo_helper()' is implicitly deleted because the default definition would be ill-formed:
     struct _Hashtable_ebo_helper<_Nm, _Tp, true>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1103:12: error: use of deleted function 'std::hash<VID>::~hash()'
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1824:5: error: use of deleted function 'std::__detail::_Hash_code_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::~_Hash_code_base()'
     _Hashtable_base() = default;
     ^~~~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1352:12: note: 'std::__detail::_Hash_code_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::~_Hash_code_base()' is implicitly deleted because the default definition would be ill-formed:
     struct _Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       _Default_ranged_hash, true>
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1352:12: error: use of deleted function 'std::__detail::_Hashtable_ebo_helper<1, std::hash<VID>, true>::~_Hashtable_ebo_helper()'
In file included from /usr/local/lib/gcc8/include/c++/unordered_map:46,
                 from /usr/local/lib/gcc8/include/c++/functional:61,
                 from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21,
                 from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24,
                 from ../../../Extern/include/boost/intrusive_ptr.hpp:16,
                 from event.h:10,
                 from stdafx.h:40,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc8/include/c++/bits/hashtable.h:413:7: error: use of deleted function 'std::__detail::_Hashtable_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::equal_to<VID>, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >::~_Hashtable_base()'
       _Hashtable() = default;
       ^~~~~~~~~~
In file included from /usr/local/lib/gcc8/include/c++/bits/hashtable.h:35,
                 from /usr/local/lib/gcc8/include/c++/unordered_map:46,
                 from /usr/local/lib/gcc8/include/c++/functional:61,
                 from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21,
                 from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24,
                 from ../../../Extern/include/boost/intrusive_ptr.hpp:16,
                 from event.h:10,
                 from stdafx.h:40,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1772:10: note: 'std::__detail::_Hashtable_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::equal_to<VID>, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >::~_Hashtable_base()' is implicitly deleted because the default definition would be ill-formed:
   struct _Hashtable_base
          ^~~~~~~~~~~~~~~
/usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1772:10: error: use of deleted function 'std::__detail::_Hash_code_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::~_Hash_code_base()'
In file included from /usr/local/lib/gcc8/include/c++/unordered_map:46,
                 from /usr/local/lib/gcc8/include/c++/functional:61,
                 from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21,
                 from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24,
                 from ../../../Extern/include/boost/intrusive_ptr.hpp:16,
                 from event.h:10,
                 from stdafx.h:40,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc8/include/c++/bits/hashtable.h: In instantiation of 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::~_Hashtable() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>]':
/usr/local/lib/gcc8/include/c++/bits/unordered_map.h:102:11:   required from here
/usr/local/lib/gcc8/include/c++/bits/hashtable.h:1373:5: error: use of deleted function 'std::__detail::_Hashtable_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::equal_to<VID>, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >::~_Hashtable_base()'
     }
     ^
gmake[1]: *** [Makefile:104: OBJDIR_GAME/BattleArena.o] Error 1

 

Link to comment
Share on other sites

Can someone help with this?

Quote

 


./any_function.h:42:15: error: no type named 'argument_type' in
      'std::__1::__bind<std::__1::__mem_fn<void (CGuild::*)(unsigned int)>,
      CGuild *>'
                typename F::argument_type value;
                ~~~~~~~~~~~~^~~~~~~~~~~~~
guild.cpp:1024:39: note: in instantiation of template class
      'void_binder<std::__1::__bind<std::__1::__mem_fn<void (CGuild::*)(unsigned
      int)>, CGuild *> >' requested here
        DBManager::instance().FuncAfterQuery(void_bind(std::bind(std::me...
                                             ^
In file included from guild.cpp:10:
In file included from ./db.h:5:
./any_function.h:43:45: error: no type named 'argument_type' in
      'std::__1::__bind<std::__1::__mem_fn<void (CGuild::*)(unsigned int)>,
      CGuild *>'
                void_binder(const F& f, const typename F::argument_type x)
                                              ~~~~~~~~~~~~^~~~~~~~~~~~~
guild.cpp:1236:72:Compile debug/affect.o
 error: Compile debug/questlua_marriage.o
no member named 'mem_fun_ref' in namespace 'std'
  ...m_memberOnline.end(), std::bind(std::mem_fun_ref(&CGuild::SendSkillInfoP...
                                     ~~~~~^
Compile debug/utils.o
Compile debug/threeway_war.o
Compile debug/item_manager.o
guild.cpp:1495:74: error: no member named 'mem_fun_ref' in namespace 'std'
  ...m_memberOnline.end(), std::bind(std::mem_fun_ref(&CGuild::SendSkillInfoP...
                                     ~~~~~^
Compile debug/desc_manager.o
Compile debug/char_affect.o
Compile debug/input_auth.o
Compile debug/input_db.o
In file included from guild.cpp:1:
In file included from /usr/include/c++/v1/functional:484:
/usr/include/c++/v1/type_traits:4482:23: error: attempt to use a deleted
      function
_LIBCPP_INVOKE_RETURN(_VSTD::forward<_Fp>(__f)(_VSTD::forward<_Args>(__a...
                      ^
/usr/include/c++/v1/__config:447:15: note: expandedCompile debug/questlua_horse.o
 Compile debug/p2p.o
from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE
              ^
/usr/include/c++/v1/type_traitsCompile debug/desc.o
:4499:9: note: in instantiation of exception
      Compile debug/questlua_game.o
specification for '__invoke<std::__1::__mem_fn<void (CGuild::*)(_SQLMsg
      *)>, CGuild *&>' requested here
        _VSTD::__invoke(_VSTD::declval<_Fp>(), _VSTD::declval<_Args>()...));
        ^
/usr/include/c++/v1/__config:447:15Compile debug/sectree_manager.o
: note: expanded Compile debug/refine.o
from macro '_VSTD'
Compile debug/buffer_manager.o
#define _VSTD std::_LIBCPP_NAMESPACE
              ^
Compile debug/char_horse.o
/usr/include/c++/v1/functional:2170:31: note: in instantiation of template class
      'std::__1::__invokable_r<void, std::__1::__mem_fn<voidCompile debug/constants.o
 (CGuild::*)(_SQLMsg
      *)>,Compile debug/PetSystem.o
 CGuild *&>' requested here
    static const bool value = __invokable<_Fp,
                              ^
/usr/include/c++/v1/functional:2182:18: note: in instantiation of template class
      'std::__1::__is_valid_bind_return<std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, std::__1::tuple<CGuild *>,
      std::__1::tuple<_SQLMsg *&> >' requested here
          bool = __is_valid_bind_return<_Fp, _BoundArgs, _TupleUj>::value>
                 ^
/usr/include/c++/v1/functional:2249:18: note: in instantiation of default
      argument for '__bind_return<std::__1::__mem_fn<void (CGuild::*)(_SQLMsg
      *)>, std::__1::tuple<CGuild *>, std::__1::tuple<_SQLMsg *&> >' required
      here
        typename __bind_return<_Fd, _Td, tuple<_Args&&...> >::type
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./any_function.inc:98:3: note: while substituting deduced template arguments
      into function template 'operator()' [with _Args = <_SQLMsg *&>]
                held(func_arg);
                ^
./any_function.incCompile debug/questlua_target.o
:84:13: note: in instantiation of member function
      '_boost_func_of_SQLMsg::any::holder<std::__1::__bind<std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, CGuild *> >::operator()' requested here
            holder(const ValueType & value)
            ^
./any_function.inc:14:25: note: in instantiation of member function
      '_boost_func_of_SQLMsg::any::holder<std::__1::__bind<std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, CGuild *> >::holder' requested here
          : content(new holder<ValueType>(value))
                        ^
./any_function.inc:39:13: note: in instantiation of function template
      specialization
      '_boost_func_of_SQLMsg::any::any<std::__1::__bind<std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, CGuild *> >' requested here
            any(rhs).swap(*this);
            ^
./db.h:152:7: note: in instantiation of function template specialization
      '_boost_func_of_SQLMsg::any::operator=<std::__1::__bind<std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, CGuild *> >' requested here
        p->f = f;
             ^
guild.cpp:631:24: note: in instantiation of function template specialization
      'DBManager::FuncQuery<std::__1::__bind<std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, CGuild *> >' requested here
        DBManager::instance().FuncQuery(std::bind(std::mem_fn(&CGuild::L...
                              ^
/usr/include/c++/v1/type_traits:1666:5: note: '~__nat' has been explicitly
      marked deleted here
    ~__nat() = delete;
    ^
/usr/include/c++/v1/type_traits:4482:23: error: attempt to use a deleted
      function
_LIBCPP_INVOKE_RETURN(_VSTD::forward<_Fp>(__f)(_VSTD::forward<_Args>(__a...
                      ^
/usr/include/c++/v1/__config:447:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE
              ^
/usr/include/c++/v1/type_traits:4499:9: note: in instantiation of exception
      specification for '__invoke<const std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, CGuild *const &>' requested here
        _VSTD::__invoke(_VSTD::declval<_Fp>(), _VSTD::declval<_Args>()...));
        ^
/usr/include/c++/v1/__config:447:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE
Compile debug/ani.o
              ^
/usr/include/c++/v1/functional:2177:31: note: in instantiation of template class
      'std::__1::__invokable_r<void, const std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, CGuild *const &>' requested here
    static const bool value = __invokable<_Fp,
                              ^
/usr/include/c++/v1/functional:2182:18: note: in instantiation of template class
      'std::__1::__is_valid_bind_return<const std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, const std::__1::tuple<CGuild *>,
      std::__1::tuple<_SQLMsgCompile debug/questlua_affect.o
 *&> >' requested here
          bool = __is_valid_bind_return<_Fp, _BoundArgs, _TupleUj>::value>
                 ^
/usr/include/c++/v1/functional:2258:18: note: in instantiation ofCompile debug/shop_manager.o
 default
      argument for '__bind_return<const std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, const std::__1::tuple<CGuild Compile debug/cmd_emotion.o
*>,Compile debug/item_addon.o

      std::__1::tuple<_SQLMsg *&> >' required here
        typename __bind_return<const _Fd, const _Td, tuple<_Args&&...> >::type
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./any_function.inc:98:3: note: while substituting deduced template arguments
      into function template Compile debug/MarkImage.o
'operator()' [with _Args = <_SQLMsg *&>]
                held(func_arg);
                ^
./any_function.inc:84:13: note: in instantiation of member function
      '_boost_func_of_SQLMsg::any::holder<std::__1::__bind<std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, CGuildCompile debug/polymorph.o
 *> >::operator()' requested here
            holder(const ValueType & value)
            ^
./any_function.inc:14:25: note: in instantiation of member function
      '_boost_func_of_SQLMsg::any::holder<std::__1::__bind<std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, CGuild *> >::holder' requested here
          : content(new holder<ValueType>(value))
                        ^
./any_function.inc:39:13: note: in instantiation of function template
      specialization
      '_boost_func_of_SQLMsg::any::any<std::__1::__bind<std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, CGuild *> >' requested here
            any(rhs).swap(*this);
            ^
./db.h:152:7: note: in instantiation of function template specialization
      '_boost_func_of_SQLMsg::any::operator=<std::__1::__bind<std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, CGuild *> >' requested here
        p->f = f;
             ^
guild.cpp:631:24: note: in instantiation of function template specialization
      'DBManager::FuncQuery<std::__1::__bind<std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, CGuild *> >' requested here
        DBManager::instance().FuncQuery(std::bind(std::mem_fn(&CGuild::L...
                              ^
/usr/include/c++/v1/type_traits:1666:5: note: '~__nat' has been explicitly
      marked deleted here
    ~__nat() = delete;
    ^
In file included from guild.cpp:10:
In file included from ./db.h:5:
In file included from ./any_function.h:19:
./any_function.inc:98:3: error: no matching function for call to object of type
      'std::__1::__bind<std::__1::__mem_fn<void (CGuild::*)(_SQLMsg *)>, CGuild
      *>'
                held(func_arg);
                ^~~~
./any_function.inc:84:13: note: in instantiation of member function
      '_boost_func_of_SQLMsg::any::holder<std::__1::__bind<std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, CGuild *> >::operator()' requested here
            holder(const ValueType & value)
            ^
./any_function.inc:14:25: note: in instantiation of member function
      '_boost_func_of_SQLMsg::any::holder<std::__1::__bind<std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, CGuild *> >::holder' requested here
          : content(new holder<ValueType>(value))
                        ^
./any_function.inc:39:13: note: in instantiation of function template
      specialization
      '_boost_func_of_SQLMsg::any::any<std::__1::__bind<std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, CGuild *> >' requested here
            any(rhs).swap(*this);
            ^
./db.h:152:7: note: in instantiation of function template specialization
      '_boost_func_of_SQLMsg::any::operator=<std::__1::__bind<std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, CGuild *> >' requested here
        p->f = f;
             ^
guild.cpp:631:24: note: in instantiation of function template specialization
      'DBManager::FuncQuery<std::__1::__bind<std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, CGuild *> >' requestedCompile debug/questlua_mysql.o
 here
        DBManager::instance().FuncQuery(std::bind(std::mem_fn(&CGuild::L...
                              ^
/usr/include/c++/v1/functional:input_db.cpp2250::9: note: candidate template ignored:
      substitution failure [with _Args = <_SQLMsg *&>]: implicit instantiation
      of undefined template 'std::__1::__bind_return<std::__1::__mem_fn<void
      (CGuild::*)(_SQLMsg *)>, std::__1::tuple<CGuild *>,
      std::__1::tuple<_SQLMsg *&>, false>'
        operator()(_Args&& ...__args)
        ^
/usr/include/c++/v1/functional1711:49: error: no member named 'mem_fun' in namespace 'std'; did
      you mean 'mem_fn'?
        CHARACTER_MANAGER::instance().for_each_pc(std::mem_fun(&CHARACTE...
                                                  ~~~~~^~~~~~~
                                                       mem_fn
/usr/include/c++/v1/functional:1380:1: note: 'mem_fn' declared here
mem_fn(_Rp _Tp::* __pm) _NOEXCEPT
^
:2259:9: note: candidate template ignored:
      substitution failure [with _Args = <_SQLMsg *&>]: implicit instantiation
      of undefined template 'std::__1::__bind_return<const
      std::__1::__mem_fn<void (CGuild::*)(_SQLMsg *)>, const
      std::__1::tuple<CGuild *>, std::__1::tuple<_SQLMsg *&>, false>'
        operator()(_Args&& ...__args) const
        ^
In file included from guild.cpp:10:
In file included from ./db.h:5:
./any_function.h:53:22: error: no type named 'argument_type' in
      'std::__1::__bind<std::__1::__mem_fn<void (CGuild::*)(unsigned int)>,
      CGuild *>'
        typedef typename F::argument_type arg_type;
                ~~~~~~~~~~~~^~~~~~~~~~~~~
guild.cpp:1024:39: note: in instantiation of function template specialization
      'void_bind<std::__1::__bind<std::__1::__mem_fn<void (CGuild::*)(unsigned
      int)>, CGuild *>, unsigned int>' requested here
        DBManager::instance().FuncAfterQuery(void_bind(std::bind(std::me...
                                             ^
In file included from guild.cpp:10:
In file included from ./db.h:5:
./any_function.h:54:9: error: no matching constructor for initialization of
      'void_binder<std::__1::__bind<std::__1::__mem_fn<void (CGuild::*)(unsigned
      int)>, CGuild *> >'
        return void_binder<F>(f, arg_type(arg));
               ^              ~~~~~~~~~~~~~~~~
./any_function.h:37:7: note: candidate constructor (the implicit copy
      constructor) not viable: requires 1 argument, but 2 were provided
class void_binder
      ^
./any_function.h:37:7: note: candidate constructor (the implicit move
      constructor) not viable: requires 1 argument, but 2 were provided
./any_function.h:37:7: note: candidate constructor (the implicit default
      constructor) not viable: requires 0 arguments, but 2 were provided
In file included from guild.cpp:1:
In file included from /usr/include/c++/v1/functional:484:
/usr/include/c++/v1/type_traits:4482:23: error: attempt to use a deleted
      function
_LIBCPP_INVOKE_RETURN(_VSTD::forward<_Fp>(__f)(_VSTD::forward<_Args>(__a...
                      ^
/usr/include/c++/v1/__config:447:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE
              ^
/usr/include/c++/v1/type_traits:4499:9: note: in instantiation of exception
      specification for '__invoke<std::__1::__mem_fn<void (CGuild::*)(CHARACTER
      *)>, CGuild *&>' requested here
        _VSTD::__invoke(_VSTD::declval<_Fp>(), _VSTD::declval<_Args>()...));
        ^
/usr/include/c++/v1/__config:447:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE
              ^
/usr/include/c++/v1/functional:2170:31: note: in instantiation of template class
      'std::__1::__invokable_r<void, std::__1::__mem_fn<void
      (CGuild::*)(CHARACTER *)>, CGuild *&>' requested here
    static const bool value = __invokable<_Fp,
                              ^
/usr/include/c++/v1/functional:2182:18: note: in instantiation of template class
      'std::__1::__is_valid_bind_return<std::__1::__mem_fn<void
      (CGuild::*)(CHARACTER *)>, std::__1::tuple<CGuild *>,
      std::__1::tuple<CHARACTER *const &> >' requested here
          bool = __is_valid_bind_return<_Fp, _BoundArgs, _TupleUj>::value>
                 ^
/usr/include/c++/v1/functional:2249:18: note: in instantiation of default
      argument for '__bind_return<std::__1::__mem_fn<void (CGuild::*)(CHARACTER
      *)>, std::__1::tuple<CGuild *>, std::__1::tuple<CHARACTER *const &> >'
      required here
        typename __bind_return<_Fd, _Td, tuple<_Args&&...> >::type
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/v1/algorithm:965:9: note: while substituting deduced template
      arguments into function template 'operator()' [with _Args = <CHARACTER
      *const &>]
        __f(*__first);
        ^
guild.cpp:1526:7: note: in instantiation of function template specialization
      'std::__1::for_each<std::__1::__hash_const_iterator<std::__1::__hash_node<CHARACTER
      *, void *> *>, std::__1::__bind<std::__1::__mem_fn<void
      (CGuild::*)(CHARACTER *)>, CGuild *> >' requested here
                                                for_each(m_memberOnline....
                                                ^
/usr/include/c++/v1/type_traits:1666:5: note: '~__nat' has been explicitly
      marked deleted here
    ~__nat() = delete;
    ^
/usr/include/c++/v1/type_traits:4482:23: error: attempt to use a deleted
      function
_LIBCPP_INVOKE_RETURN(_VSTD::forward<_Fp>(__f)(_VSTD::forward<_Args>(__a...
                      ^
/usr/include/c++/v1/__config:447:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE
              ^
/usr/include/c++/v1/type_traits:4499:9: note: in instantiation of exception
      specification for '__invoke<const std::__1::__mem_fn<void
      (CGuild::*)(CHARACTER *)>, CGuild *const &>' requested here
        _VSTD::__invoke(_VSTD::declval<_Fp>(), _VSTD::declval<_Args>()...));
        ^
/usr/include/c++/v1/__config:447:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE
              ^
/usr/include/c++/v1/functional:2177:31: note: in instantiation of template class
      'std::__1::__invokable_r<void, const std::__1::__mem_fn<void
      (CGuild::*)(CHARACTER *)>, CGuild *const &>' requested here
    static const bool value = __invokable<_Fp,
                              ^
/usr/include/c++/v1/functional:2182:18: note: in instantiation of template class
      'std::__1::__is_valid_bind_return<const std::__1::__mem_fn<void
      (CGuild::*)(CHARACTER *)>, const std::__1::tuple<CGuild *>,
      std::__1::tuple<CHARACTER *const &> >' requested here
          bool = __is_valid_bind_return<_Fp, _BoundArgs, _TupleUj>::value>
                 ^
/usr/include/c++/v1/functional:2258:18: note: in instantiation of default
      argument for '__bind_return<const std::__1::__mem_fn<void
      (CGuild::*)(CHARACTER *)>, const std::__1::tuple<CGuild *>,
      std::__1::tuple<CHARACTER *const &> >' required here
        typename __bind_return<const _Fd, const _Td, tuple<_Args&&...> >::type
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/v1/algorithm:965:9: note: while substituting deduced template
      arguments into function template 'operator()' [with _Args = <CHARACTER
      *const &>]
        __f(*__first);
        ^
guild.cpp:1526:7: note: in instantiationCompile debug/questlua_guild.o
 Compile debug/group_text_parse_tree.o
ofCompile debug/questlua_npc.o
 function template specialization
      'std::__1::for_each<std::__1::__hash_const_iterator<std::__1::__hash_node<CHARACTER
      *, void *> *>, std::__1::__bind<std::__1::__mem_fn<void
      (CGuild::*)(CHARACTER *)>, CGuild *> >' requested here
                                                for_each(m_memberOnline....
                                                ^
Compile debug/monarch.o
/usr/include/c++/v1/type_traits:Compile debug/over9refine.o

EDIT: So seems like I messed up with guild.cpp (now fixed) but now I have this:

Linking...../game_r70140-BETA_debug
debug/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned char, true>::allocate(unsigned int, void const*)':
cipher.cpp:(.text._ZN8CryptoPP20AllocatorWithCleanupIhLb1EE8allocateEjPKv[_ZN8CryptoPP20AllocatorWithCleanupIhLb1EE8allocateEjPKv]+0x16): undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
debug/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned char, true>::deallocate(void*, unsigned int)':
cipher.cpp:(.text._ZN8CryptoPP20AllocatorWithCleanupIhLb1EE10deallocateEPvj[_ZN8CryptoPP20AllocatorWithCleanupIhLb1EE10deallocateEPvj]+0x1b): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
gmake: *** [Makefile:86: ../game_r70140-BETA_debug] Error 1

which I have no idea what it means or how to fix it.

Link to comment
Share on other sites

On 9/23/2018 at 2:55 AM, Minion said:

fix Assertion failed: (!ms_singleton), function singleton, file ./../../common/singleton.h, line 13.


Open service.h
Add:
#define CUNIQUEMANAGER_FIX

Open main.cpp
Find: 
DSManager dsManager;

Add after:
#ifdef CUNIQUEMANAGER_FIX
        CUniqueManager  cUManager;
#endif

Open questmanager.cpp

Find:
pUniqueManager = new CUniqueManager();
master = pUniqueManager->Create("__DEFAULT__");
character = pUniqueManager->Create("__CHARACTER__");

Replace:
#ifdef CUNIQUEMANAGER_FIX
		master = CUniqueManager::instance().Create("__DEFAULT__");
		character = CUniqueManager::instance().Create("__CHARACTER__");
#else
		pUniqueManager = new CUniqueManager();
		master = pUniqueManager->Create("__DEFAULT__");
		character = pUniqueManager->Create("__CHARACTER__");
#endif

Open questmanager.h
  
Find:
	CUniqueManager* pUniqueManager;

Replace:
#ifndef CUNIQUEMANAGER_FIX
	CUniqueManager* pUniqueManager;
#endif

P.S. NO TESTED!!!!

P.S.2 Sorry for my bad english

questlua_unique.cpp

I got this:

questlua_unique.cpp:660:11: error: no member named 'UniqueMoveToPos' in
      'CUnique'

Can someone help me define this function or give me the full source?

Link to comment
Share on other sites

4 hours ago, Hik said:

Since many are looking for it, this should be the release in question. I probably made some changes but I do not remember...

 

This is the hidden content, please

Seems awesome! Which revision is in there? Is the server starting normally or ther are some bugs?

  • Metin2 Dev 1
Link to comment
Share on other sites

I managed to compile successfully but I cannot start due to an issue with special_item_group.txt (Fliege files). The problem is with the chinese characters about the EXP reward from chests.

If what needs to be done to launch is a source modification I'm requesting some assistance to find the part that needs to be edited.

If the files are the problem I'm looking for 40k files (clean as SHIT! please) with no bugs and nothing but:

  • Energy system
  • Dragon soul system
  • Belt system
  • Nemere/Razador/Spider Baroness/Devil's catacombs
  • Official mounts/pets (no GF 16.2 pet system - just the default ones)
  • Cape dragonhead maps

I'm not looking for another source or a client just for the serverfiles (MySQL tables, channels and quests)

Link to comment
Share on other sites

  • 1 month later...
On 6/17/2017 at 8:52 PM, Vanilla said:

 

int tmpValue;
    int checkthis = 1;
    if (!CConfig::instance().GetValue("TXT_STARTUP", &tmpValue))
        tmpValue = 0;
    if (!CConfig::instance().GetValue("SQL_VNUM_RANGE_CHECK", &checkthis))
        checkthis = 1;
    if (!InitializeMobTable())

 

 

DB crash at 9 ores.. :( , int checkthis = 0.. but down 

Link to comment
Share on other sites

  • 2 weeks later...
  • Bot

Does anyone have and vdi or vmhdk anything With an fully working Compiler .. or the guide how to copile it cuz the ports i need to install Works and some doesn't cuz they  have been deleted. Anything would be for good help sharing is carrying so be kind and lend me a hand. 

Edit: Fixed it and made a vdi for ya ! 

https://discord.gg/sTE4yuq : For anything you need.

and here is the VDI 

Link: 

This is the hidden content, please

User: root

Password: 123123

commands 

gmake in each also game/src and db/src :D

Since no one wanted to share a pice of vdi ….

 

  • Metin2 Dev 5
  • Good 3
  • Love 1

english_banner.gif

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

Announcements



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