Jump to content

Sempoinus1

Inactive Member
  • Posts

    7
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Sempoinus1

  1. Version of Files 40k

    Hey,

     

    1. Description of the problem / Question :

    I'm having kinda hard time with compiling source - I'm using v2 wolfman source (that's the name of tar) and it comes with Serenity2 sources. I tried 2 ways of compiling

    FreeBSD 9 - which has problems because it's not supported anymore  and FreeBSD 12 which i'm using rn. 

     

    I don't have output from FreeBSD 9 anymore, but I'll give you the one from FreeBSD 12

     

    If anyone knows what to do please help, I would really appreciate it.

     

    2. Error

    gmake output FreeBSD 12

    compile BattleArena.cpp
    g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
    In file included from /usr/local/include/boost/detail/container_fwd.hpp:96,
                     from /usr/local/include/boost/container_hash/extensions.hpp:22,
                     from /usr/local/include/boost/container_hash/hash.hpp:760,
                     from /usr/local/include/boost/functional/hash.hpp:6,
                     from /usr/local/include/boost/unordered/unordered_map.hpp:18,
                     from /usr/local/include/boost/unordered_map.hpp:17,
                     from char.h:4,
                     from BattleArena.cpp:6:
    /usr/local/lib/gcc9/include/c++/bitset: In member function 'void std::bitset<_Nb>::_M_copy_from_ptr(const _CharT*, std::size_t, std::size_t, std::size_t, _CharT, _CharT)':
    /usr/local/lib/gcc9/include/c++/bitset:1395:74: error: call of overloaded 'min(std::size_t&, std::size_t)' is ambiguous
     1395 |  const size_t __nbits = std::min(_Nb, std::min(__n, size_t(__len - __pos)));
          |                                                                          ^
    In file included from /usr/local/lib/gcc9/include/c++/algorithm:61,
                     from stdafx.h:15,
                     from BattleArena.cpp:1:
    /usr/local/lib/gcc9/include/c++/bits/stl_algobase.h:198:5: note: candidate: 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = unsigned int]'
      198 |     min(const _Tp& __a, const _Tp& __b)
          |     ^~~
    In file included from char_manager.h:8,
                     from BattleArena.cpp:5:
    ../../common/stl.h:100:26: note: candidate: 'T std::min(T, T) [with T = unsigned int]'
      100 |  template <typename T> T std::min(T a, T b)
          |                          ^~~
    In file included from /usr/local/lib/gcc9/include/c++/streambuf:862,
                     from /usr/local/lib/gcc9/include/c++/ios:43,
                     from /usr/local/lib/gcc9/include/c++/istream:38,
                     from /usr/local/lib/gcc9/include/c++/sstream:38,
                     from /usr/local/lib/gcc9/include/c++/complex:45,
                     from /usr/local/include/boost/detail/container_fwd.hpp:98,
                     from /usr/local/include/boost/container_hash/extensions.hpp:22,
                     from /usr/local/include/boost/container_hash/hash.hpp:760,
                     from /usr/local/include/boost/functional/hash.hpp:6,
                     from /usr/local/include/boost/unordered/unordered_map.hpp:18,
                     from /usr/local/include/boost/unordered_map.hpp:17,
                     from char.h:4,
                     from BattleArena.cpp:6:
    /usr/local/lib/gcc9/include/c++/bits/streambuf.tcc: In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsgetn(std::basic_streambuf<_CharT, _Traits>::char_type*, std::streamsize)':
    /usr/local/lib/gcc9/include/c++/bits/streambuf.tcc:55:64: error: call of overloaded 'min(const streamsize&, const streamsize&)' is ambiguous
       55 |        const streamsize __len = std::min(__buf_len, __remaining);
          |                                                                ^
    In file included from /usr/local/lib/gcc9/include/c++/algorithm:61,
                     from stdafx.h:15,
                     from BattleArena.cpp:1:
    /usr/local/lib/gcc9/include/c++/bits/stl_algobase.h:198:5: note: candidate: 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = int]'
      198 |     min(const _Tp& __a, const _Tp& __b)
          |     ^~~
    In file included from char_manager.h:8,
                     from BattleArena.cpp:5:
    ../../common/stl.h:100:26: note: candidate: 'T std::min(T, T) [with T = int]'
      100 |  template <typename T> T std::min(T a, T b)
          |                          ^~~
    In file included from /usr/local/lib/gcc9/include/c++/streambuf:862,
                     from /usr/local/lib/gcc9/include/c++/ios:43,
                     from /usr/local/lib/gcc9/include/c++/istream:38,
                     from /usr/local/lib/gcc9/include/c++/sstream:38,
                     from /usr/local/lib/gcc9/include/c++/complex:45,
                     from /usr/local/include/boost/detail/container_fwd.hpp:98,
                     from /usr/local/include/boost/container_hash/extensions.hpp:22,
                     from /usr/local/include/boost/container_hash/hash.hpp:760,
                     from /usr/local/include/boost/functional/hash.hpp:6,
                     from /usr/local/include/boost/unordered/unordered_map.hpp:18,
                     from /usr/local/include/boost/unordered_map.hpp:17,
                     from char.h:4,
                     from BattleArena.cpp:6:
    /usr/local/lib/gcc9/include/c++/bits/streambuf.tcc: In member function 'virtual std::streamsize std::basic_streambuf<_CharT, _Traits>::xsputn(const char_type*, std::streamsize)':
    /usr/local/lib/gcc9/include/c++/bits/streambuf.tcc:89:64: error: call of overloaded 'min(const streamsize&, const streamsize&)' is ambiguous
       89 |        const streamsize __len = std::min(__buf_len, __remaining);
          |                                                                ^
    In file included from /usr/local/lib/gcc9/include/c++/algorithm:61,
                     from stdafx.h:15,
                     from BattleArena.cpp:1:
    /usr/local/lib/gcc9/include/c++/bits/stl_algobase.h:198:5: note: candidate: 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = int]'
      198 |     min(const _Tp& __a, const _Tp& __b)
          |     ^~~
    In file included from char_manager.h:8,
                     from BattleArena.cpp:5:
    ../../common/stl.h:100:26: note: candidate: 'T std::min(T, T) [with T = int]'
      100 |  template <typename T> T std::min(T a, T b)
          |                          ^~~
    In file included from /usr/local/lib/gcc9/include/c++/istream:991,
                     from /usr/local/lib/gcc9/include/c++/sstream:38,
                     from /usr/local/lib/gcc9/include/c++/complex:45,
                     from /usr/local/include/boost/detail/container_fwd.hpp:98,
                     from /usr/local/include/boost/container_hash/extensions.hpp:22,
                     from /usr/local/include/boost/container_hash/hash.hpp:760,
                     from /usr/local/include/boost/functional/hash.hpp:6,
                     from /usr/local/include/boost/unordered/unordered_map.hpp:18,
                     from /usr/local/include/boost/unordered_map.hpp:17,
                     from char.h:4,
                     from BattleArena.cpp:6:
    /usr/local/lib/gcc9/include/c++/bits/istream.tcc: In member function 'std::streamsize std::basic_istream<_CharT, _Traits>::readsome(std::basic_istream<_CharT, _Traits>::char_type*, std::streamsize)':
    /usr/local/lib/gcc9/include/c++/bits/istream.tcc:699:60: error: call of overloaded 'min(const streamsize&, std::streamsize&)' is ambiguous
      699 |   _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n));
          |                                                            ^
    In file included from /usr/local/lib/gcc9/include/c++/algorithm:61,
                     from stdafx.h:15,
                     from BattleArena.cpp:1:
    /usr/local/lib/gcc9/include/c++/bits/stl_algobase.h:198:5: note: candidate: 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = int]'
      198 |     min(const _Tp& __a, const _Tp& __b)
          |     ^~~
    In file included from char_manager.h:8,
                     from BattleArena.cpp:5:
    ../../common/stl.h:100:26: note: candidate: 'T std::min(T, T) [with T = int]'
      100 |  template <typename T> T std::min(T a, T b)
          |                          ^~~
    In file included from /usr/local/include/boost/unordered/detail/map.hpp:6,
                     from /usr/local/include/boost/unordered/unordered_map.hpp:21,
                     from /usr/local/include/boost/unordered_map.hpp:17,
                     from char.h:4,
                     from BattleArena.cpp:6:
    /usr/local/include/boost/unordered/detail/implementation.hpp: In member function 'void boost::unordered::detail::table<Types>::max_load_factor(float)':
    /usr/local/include/boost/unordered/detail/implementation.hpp:3090:55: error: call of overloaded 'max(float&, const float&)' is ambiguous
     3090 |           mlf_ = (std::max)(z, minimum_max_load_factor);
          |                                                       ^
    In file included from /usr/local/lib/gcc9/include/c++/algorithm:61,
                     from stdafx.h:15,
                     from BattleArena.cpp:1:
    /usr/local/lib/gcc9/include/c++/bits/stl_algobase.h:222:5: note: candidate: 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = float]'
      222 |     max(const _Tp& __a, const _Tp& __b)
          |     ^~~
    In file included from char_manager.h:8,
                     from BattleArena.cpp:5:
    ../../common/stl.h:105:26: note: candidate: 'T std::max(T, T) [with T = float]'
      105 |  template <typename T> T std::max(T a, T b)
          |                          ^~~
    In file included from /usr/local/include/boost/unordered/detail/map.hpp:6,
                     from /usr/local/include/boost/unordered/unordered_map.hpp:21,
                     from /usr/local/include/boost/unordered_map.hpp:17,
                     from char.h:4,
                     from BattleArena.cpp:6:
    /usr/local/include/boost/unordered/detail/implementation.hpp: In member function 'void boost::unordered::detail::table<Types>::reserve_for_insert(std::size_t)':
    /usr/local/include/boost/unordered/detail/implementation.hpp:4546:71: error: call of overloaded 'max(std::size_t&, std::size_t)' is ambiguous
     4546 |             min_buckets_for_size((std::max)(size, size_ + (size_ >> 1)));
          |                                                                       ^
    In file included from /usr/local/lib/gcc9/include/c++/algorithm:61,
                     from stdafx.h:15,
                     from BattleArena.cpp:1:
    /usr/local/lib/gcc9/include/c++/bits/stl_algobase.h:222:5: note: candidate: 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = unsigned int]'
      222 |     max(const _Tp& __a, const _Tp& __b)
          |     ^~~
    In file included from char_manager.h:8,
                     from BattleArena.cpp:5:
    ../../common/stl.h:105:26: note: candidate: 'T std::max(T, T) [with T = unsigned int]'
      105 |  template <typename T> T std::max(T a, T b)
          |                          ^~~
    In file included from /usr/local/include/boost/unordered/detail/map.hpp:6,
                     from /usr/local/include/boost/unordered/unordered_map.hpp:21,
                     from /usr/local/include/boost/unordered_map.hpp:17,
                     from char.h:4,
                     from BattleArena.cpp:6:
    /usr/local/include/boost/unordered/detail/implementation.hpp: In member function 'void boost::unordered::detail::table<Types>::rehash(std::size_t)':
    /usr/local/include/boost/unordered/detail/implementation.hpp:4568:16: error: call of overloaded 'max(std::size_t&, std::size_t)' is ambiguous
     4568 |               1));
          |                ^
    In file included from /usr/local/lib/gcc9/include/c++/algorithm:61,
                     from stdafx.h:15,
                     from BattleArena.cpp:1:
    /usr/local/lib/gcc9/include/c++/bits/stl_algobase.h:222:5: note: candidate: 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = unsigned int]'
      222 |     max(const _Tp& __a, const _Tp& __b)
          |     ^~~
    In file included from char_manager.h:8,
                     from BattleArena.cpp:5:
    ../../common/stl.h:105:26: note: candidate: 'T std::max(T, T) [with T = unsigned int]'
      105 |  template <typename T> T std::max(T a, T b)
          |                          ^~~
    gmake: *** [Makefile:131: OBJDIR/BattleArena.o] Error 1

     

            

    Thanks, Sincerly,
    Sempoinus

     

  2. Version of Files 40k

    Hey, 

     

    I was kinda curios, how to detect top damages - I have had created boss and he's giving coins when it's killed and other players in the map get also a small amount of coins and I want to do something like giving coins to best three players with greatest damage. Is it possible in some easy way? 

     

  3. Hey there,

     

    I'm kinda new to this. But since it's quarantine time and I kinda know C++ and Python I wanted to try create metin2 server with my friends.

    I use server files by Derin and I want to do some adjustments, but I have no idea where to start. For example I searched for char_item.cpp, but I coudn't find it. Can you guys help me with finding way to it? I may be dumb, but I really can't find it. :D

     

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