Jump to content

caes95

Inactive Member
  • Posts

    30
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by caes95

  1. Hello Devs, I'm have a FreeBSD installation in a vm using kvm... the network are configure using NAT, so I configure the ip forwading using iptables all work fine with apache, mysql etc.... the problem is with metin2 server, players can connect and see your characters, but when theirs click join the server kick him.

     

    There is the syserr:

     

    SYSERR: May  5 01:45:55 :: socket_accept: accept: Software caused connection abort (fd 12)
     

     

    I'm assume that problem is a bad ip forwading... you tell me

     

    And thanks to you...

  2.  

    error in compile:

     
    messenger_manager.cpp: In member function 'bool MessengerManager::AuthToAdd(const std::string&, const std::string&, bool)':
    messenger_manager.cpp:153: error: return-statement with no value, in function returning 'int'
    gmake: *** [OBJDIR/messenger_manager.o] Error 1
    gmake: *** Waiting for unfinished jobs....

     

    you're returning a wrong value, please put here the line 153 of messenger_manager.cpp.

  3. compile BattleArena.cpp
    In file included from sectree_manager.h:4:0,
                     from BattleArena.cpp:7:
    sectree.h:142:4: warnieng: identifier 'decltype' is a keyword in C++11 [-Wc++0x-compat]
        itertype(m_set_entity) it = m_set_entity.begin();
        ^
    In file included from ../../../../extern/include/boost/tuple/tuple.hpp:33:0,
                     from ../../../../extern/include/boost/unordered/detail/allocate.hpp:27,
                     from ../../../../extern/include/boost/unordered/detail/buckets.hpp:15,
                     from ../../../../extern/include/boost/unordered/detail/table.hpp:10,
                     from ../../../../extern/include/boost/unordered/detail/equivalent.hpp:14,
                     from ../../../../extern/include/boost/unordered/unordered_map.hpp:17,
                     from ../../../../extern/include/boost/unordered_map.hpp:16,
                     from char.h:4,
                     from BattleArena.cpp:6:
    ../../../../extern/include/boost/tuple/detail/tuple_basic.hpp: In function 'typename boost::tuples::access_traits<typename boost::tuples::element<N, boost::tuples::cons<HT, TT> >::type>::const_type boost::tuples::get(const boost::tuples::cons<HT, TT>&)':
    ../../../../extern/include/boost/tuple/detail/tuple_basic.hpp:228:45: warning: typedef 'cons_element' locally defined but not used [-Wunused-local-typedefs]
       typedef BOOST_DEDUCED_TYPENAME impl::type cons_element;
                                                 ^
    In file included from stdafx.h:37:0,
                     from BattleArena.cpp:1:
    sectree.h: In member function 'bool SECTREE::for_each_entity_for_find_victim(_Func&)':
    typedef.h:105:41: error: there are no arguments to 'decltype' that depend on a template parameter, so a declaration of 'decltype' must be available [-fpermissive]
     #define itertype(v) decltype((v).begin())
                                             ^
    sectree.h:142:4: note: in expansion of macro 'itertype'
        itertype(m_set_entity) it = m_set_entity.begin();
        ^
    typedef.h:105:41: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
     #define itertype(v) decltype((v).begin())
                                             ^
    sectree.h:142:4: note: in expansion of macro 'itertype'
        itertype(m_set_entity) it = m_set_entity.begin();
        ^
    In file included from sectree_manager.h:4:0,
                     from BattleArena.cpp:7:
    sectree.h:142:27: error: expected ';' before 'it'
        itertype(m_set_entity) it = m_set_entity.begin();
                               ^
    sectree.h:144:11: error: 'it' was not declared in this scope
        while (it != m_set_entity.end())
               ^
    In file included from stdafx.h:37:0,
                     from BattleArena.cpp:1:
    sectree.h: In member function 'void SECTREE::for_each_entity(_Func&)':
    typedef.h:105:41: error: there are no arguments to 'decltype' that depend on a template parameter, so a declaration of 'decltype' must be available [-fpermissive]
     #define itertype(v) decltype((v).begin())
                                             ^
    sectree.h:189:4: note: in expansion of macro 'itertype'
        itertype(m_set_entity) it = m_set_entity.begin();
        ^
    In file included from sectree_manager.h:4:0,
                     from BattleArena.cpp:7:
    sectree.h:189:27: error: expected ';' before 'it'
        itertype(m_set_entity) it = m_set_entity.begin();
                               ^
    sectree.h:190:12: error: 'it' was not declared in this scope
        for ( ; it != m_set_entity.end(); ++it) {
                ^
    In file included from stdafx.h:37:0,
                     from BattleArena.cpp:1:
    sectree.h: In instantiation of 'void SECTREE::for_each_entity(_Func&) [with _Func = FCollectEntity]':
    sectree_manager.h:79:39:   required from 'void SECTREE_MAP::for_each(Func&) [with Func = FWarpToHome]'
    BattleArena.cpp:180:28:   required from here
    typedef.h:105:41: error: 'decltype' was not declared in this scope
     #define itertype(v) decltype((v).begin())
                                             ^
    sectree.h:189:4: note: in expansion of macro 'itertype'
        itertype(m_set_entity) it = m_set_entity.begin();
        ^
    Makefile:121: recipe for target 'OBJDIR/BattleArena.o' failed
    gmake: *** [OBJDIR/BattleArena.o] Error 1 

    my error

     

    Try compile without c++11.

  4. compile BattleArena.cpp
    In file included from sectree_manager.h:4:0,
                     from BattleArena.cpp:7:
    sectree.h:142:4: warnieng: identifier 'decltype' is a keyword in C++11 [-Wc++0x-compat]
        itertype(m_set_entity) it = m_set_entity.begin();
        ^
    In file included from ../../../../extern/include/boost/tuple/tuple.hpp:33:0,
                     from ../../../../extern/include/boost/unordered/detail/allocate.hpp:27,
                     from ../../../../extern/include/boost/unordered/detail/buckets.hpp:15,
                     from ../../../../extern/include/boost/unordered/detail/table.hpp:10,
                     from ../../../../extern/include/boost/unordered/detail/equivalent.hpp:14,
                     from ../../../../extern/include/boost/unordered/unordered_map.hpp:17,
                     from ../../../../extern/include/boost/unordered_map.hpp:16,
                     from char.h:4,
                     from BattleArena.cpp:6:
    ../../../../extern/include/boost/tuple/detail/tuple_basic.hpp: In function 'typename boost::tuples::access_traits<typename boost::tuples::element<N, boost::tuples::cons<HT, TT> >::type>::const_type boost::tuples::get(const boost::tuples::cons<HT, TT>&)':
    ../../../../extern/include/boost/tuple/detail/tuple_basic.hpp:228:45: warning: typedef 'cons_element' locally defined but not used [-Wunused-local-typedefs]
       typedef BOOST_DEDUCED_TYPENAME impl::type cons_element;
                                                 ^
    In file included from stdafx.h:37:0,
                     from BattleArena.cpp:1:
    sectree.h: In member function 'bool SECTREE::for_each_entity_for_find_victim(_Func&)':
    typedef.h:105:41: error: there are no arguments to 'decltype' that depend on a template parameter, so a declaration of 'decltype' must be available [-fpermissive]
     #define itertype(v) decltype((v).begin())
                                             ^
    sectree.h:142:4: note: in expansion of macro 'itertype'
        itertype(m_set_entity) it = m_set_entity.begin();
        ^
    typedef.h:105:41: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
     #define itertype(v) decltype((v).begin())
                                             ^
    sectree.h:142:4: note: in expansion of macro 'itertype'
        itertype(m_set_entity) it = m_set_entity.begin();
        ^
    In file included from sectree_manager.h:4:0,
                     from BattleArena.cpp:7:
    sectree.h:142:27: error: expected ';' before 'it'
        itertype(m_set_entity) it = m_set_entity.begin();
                               ^
    sectree.h:144:11: error: 'it' was not declared in this scope
        while (it != m_set_entity.end())
               ^
    In file included from stdafx.h:37:0,
                     from BattleArena.cpp:1:
    sectree.h: In member function 'void SECTREE::for_each_entity(_Func&)':
    typedef.h:105:41: error: there are no arguments to 'decltype' that depend on a template parameter, so a declaration of 'decltype' must be available [-fpermissive]
     #define itertype(v) decltype((v).begin())
                                             ^
    sectree.h:189:4: note: in expansion of macro 'itertype'
        itertype(m_set_entity) it = m_set_entity.begin();
        ^
    In file included from sectree_manager.h:4:0,
                     from BattleArena.cpp:7:
    sectree.h:189:27: error: expected ';' before 'it'
        itertype(m_set_entity) it = m_set_entity.begin();
                               ^
    sectree.h:190:12: error: 'it' was not declared in this scope
        for ( ; it != m_set_entity.end(); ++it) {
                ^
    In file included from stdafx.h:37:0,
                     from BattleArena.cpp:1:
    sectree.h: In instantiation of 'void SECTREE::for_each_entity(_Func&) [with _Func = FCollectEntity]':
    sectree_manager.h:79:39:   required from 'void SECTREE_MAP::for_each(Func&) [with Func = FWarpToHome]'
    BattleArena.cpp:180:28:   required from here
    typedef.h:105:41: error: 'decltype' was not declared in this scope
     #define itertype(v) decltype((v).begin())
                                             ^
    sectree.h:189:4: note: in expansion of macro 'itertype'
        itertype(m_set_entity) it = m_set_entity.begin();
        ^
    Makefile:121: recipe for target 'OBJDIR/BattleArena.o' failed
    gmake: *** [OBJDIR/BattleArena.o] Error 1 

    my error

     

     

    Me too, some help?

  5.  

     

    i put my ip of hamachi and now i not can connect to the server

    https://metin2.download/picture/pV7gQppvj78I3DZCb19g29Kc62lI6kbA/.png

    and now see this new error

    socket_tcp_bind: tcp_socket: Can't assign requested address

    Why you use hamachi ?

    Use direct IP router

     

    https://metin2.download/picture/3Bho7oXEKjCQz8v78C7f6duzn5Mp7ZgY/.png

    the same problem

     

    Remove the bind ip on your CONFIG

  6. try this: configure your ip on freebsd with your internet connection (switch the adaptador to lan) and your local ip (like a ip-server) then put your hamachi ip on portmap and try! Skype: live:caes95

     

    The problem is that FreeBSD and the game can't obtain your external ip because you're using hamachi and hamachi doesn't have a real external ip.

  7.  

     

    up, any can give me your config.cpp? or the code of GetIPInfo(), my GetIPInfo() is incomplete :C

    bool GetIPInfo()
    {
    #ifndef __WIN32__
    	struct ifaddrs* ifaddrp = NULL;
    
    	if (0 != getifaddrs(&ifaddrp))
    		return false;
    
    	for( struct ifaddrs* ifap=ifaddrp ; NULL != ifap ; ifap = ifap->ifa_next )
    	{
    		struct sockaddr_in * sai = (struct sockaddr_in *) ifap->ifa_addr;
    
    		if (!ifap->ifa_netmask ||  // ignore if no netmask
    				sai->sin_addr.s_addr == 0 || // ignore if address is 0.0.0.0
    				sai->sin_addr.s_addr == 16777343) // ignore if address is 127.0.0.1
    			continue;
    #else
    	WSADATA wsa_data;
    	char host_name[100];
    	HOSTENT* host_ent;
    	int n = 0;
    
    	if (WSAStartup(0x0101, &wsa_data)) {
    		return false;
    	}
    
    	gethostname(host_name, sizeof(host_name));
    	host_ent = gethostbyname(host_name);
    	if (host_ent == NULL) {
    		return false;
    	}
    	for ( ; host_ent->h_addr_list[n] != NULL; ++n) {
    		struct sockaddr_in addr;
    		struct sockaddr_in* sai = &addr;
    		memcpy(&sai->sin_addr.s_addr, host_ent->h_addr_list[n], host_ent->h_length);
    #endif
    
    		char * netip = inet_ntoa(sai->sin_addr);
    
    		if (!strncmp(netip, "192.168", 7)) // ignore if address is starting with 192
    		{
    			strlcpy(g_szInternalIP, netip, sizeof(g_szInternalIP));
    #ifndef __WIN32__
    			fprintf(stderr, "INTERNAL_IP: %s interface %sn", netip, ifap->ifa_name);
    #else
    			fprintf(stderr, "INTERNAL_IP: %sn", netip);
    #endif
    		}
    		else if (!strncmp(netip, "10.", 3))
    		{
    			strlcpy(g_szInternalIP, netip, sizeof(g_szInternalIP));
    #ifndef __WIN32__
    			fprintf(stderr, "INTERNAL_IP: %s interface %sn", netip, ifap->ifa_name);
    #else
    			fprintf(stderr, "INTERNAL_IP: %sn", netip);
    #endif
    		}
    		else if (g_szPublicIP[0] == '0')
    		{
    			strlcpy(g_szPublicIP, netip, sizeof(g_szPublicIP));
    #ifndef __WIN32__
    			fprintf(stderr, "PUBLIC_IP: %s interface %sn", netip, ifap->ifa_name);
    #else
    			fprintf(stderr, "PUBLIC_IP: %sn", netip);
    #endif
    		}
    	}
    
    #ifndef __WIN32__
    	freeifaddrs( ifaddrp );
    #else
    	WSACleanup();
    #endif
    
    	if (g_szPublicIP[0] != '0')
    		return true;
    	else
    		return false;
    }
    

    Thanks #Reboot but i put this code with 999.999 and my friends not can pass of the selection of character.

    when i try put in the start.sh -I 25.151.38.92 in the chs and ch99, but the server not start, when put 999.999 I have to do something else?

     

     

    clean your object dir, then compile again.

    gmake clean && gmake -j20
  8.  

    I have the same...

    :angry:

    My syserr from client:

     

    1227 02:42:15333 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/recuperation/autodrugup_red.mse) Error
    1227 02:42:15333 :: CInstanceBase::RegisterEffect(eEftType=267, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/recuperation/autodrugup_red.mse, isCache=1) - Error
    1227 02:42:15333 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/recuperation/autodrugup_blue.mse) Error
    1227 02:42:15333 :: CInstanceBase::RegisterEffect(eEftType=268, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/recuperation/autodrugup_blue.mse, isCache=1) - Error
    1227 02:42:15333 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item1.mse) Error
    1227 02:42:15333 :: CInstanceBase::RegisterEffect(eEftType=269, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item1.mse, isCache=1) - Error
    1227 02:42:15333 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item2.mse) Error
    1227 02:42:15333 :: CInstanceBase::RegisterEffect(eEftType=270, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item2.mse, isCache=1) - Error
    1227 02:42:15335 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item4.mse) Error
    1227 02:42:15335 :: CInstanceBase::RegisterEffect(eEftType=272, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item4.mse, isCache=1) - Error
    1227 02:42:15388 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage1.mse) Error
    1227 02:42:15388 :: CInstanceBase::RegisterEffect(eEftType=264, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage1.mse, isCache=1) - Error
    1227 02:42:15388 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage2.mse) Error
    1227 02:42:15388 :: CInstanceBase::RegisterEffect(eEftType=265, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage2.mse, isCache=1) - Error
    1227 02:42:15388 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage3.mse) Error
    1227 02:42:15388 :: CInstanceBase::RegisterEffect(eEftType=266, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage3.mse, isCache=1) - Error
    1227 02:42:22885 :: CMapManager::GetHeight(0.000000, 0.000000) - ¸ÊÀÌ »ý¼ºµÇÁö ¾ÊÀº »óÅ¿¡¼­ Á¢±Ù
    1227 02:42:22925 :: 󸮵ÇÁö ¾ÊÀº ÆÐŶ Çì´õ 9, state Loading
    
    1227 02:42:23032 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
    1227 02:42:23819 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010).  Automatic conversion will be attempted.
    1227 02:42:24144 :: CEffectManager::RegisterEffect - LoadScript(D:/ymir work/pc/common/effect/armor/armor-4-2-1.mse) Error
    1227 02:42:24144 :: CInstanceBase::RegisterEffect(eEftType=248, c_szEftAttachBone=Bip01, c_szEftName=D:/ymir work/pc/common/effect/armor/armor-4-2-1.mse, isCache=0) - Error
    1227 02:42:24144 :: CEffectManager::RegisterEffect - LoadScript(D:/ymir work/pc/common/effect/armor/armor-4-2-2.mse) Error
    1227 02:42:24144 :: CInstanceBase::RegisterEffect(eEftType=249, c_szEftAttachBone=Bip01, c_szEftName=D:/ymir work/pc/common/effect/armor/armor-4-2-2.mse, isCache=0) - Error
    1227 02:42:30168 :: Unknown Server Command bgm Thank.mp3 | bgm
    1227 02:42:30811 :: CRaceManager::RegisterRacePath : RACE[20110] LOAD MSMFILE[d:/ymir work/npc/boar/boar.msm] ERROR. Will Find Another Path.
    1227 02:42:30811 :: CRaceManager::RegisterRacePath : RACE[20110] LOAD MSMFILE[d:/ymir work/npc2/boar/boar.msm] ERROR. Will Find Another Path.
    1227 02:42:30811 :: CRaceManager::RegisterRacePath : RACE[20110] LOAD MSMFILE[d:/ymir work/monster/boar/boar.msm] ERROR. Will Find Another Path.
    1227 02:42:30811 :: CRaceManager::RegisterRacePath : RACE[20110] LOAD MSMFILE[d:/ymir work/monster2/boar/boar.msm] ERROR. Will Find Another Path.
    1227 02:42:30811 :: CRaceManager::RegisterRacePath : RACE[20110] LOAD MSMFILE[d:/ymir work/guild/boar/boar.msm] ERROR
    1227 02:42:30811 :: CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 20110
    1227 02:43:00297 :: Unknown packet header: 96, last: 4 21
    
    

    Your client version doesn't match with your game version, so you will has as result packet loss

     

    Aren't the same error.

  9. Hello friends, then of compile my game from mainline  I'm getting this error:

    Note: The db has notxt function by xP3NG3Rx.


    K4TjhZD.png

     

     

    Using a client that work with 34k files.

     

     

    Client syserr:

    1226 21:17:26650 :: CPythonPlayer::SetItemData(dwSlotIndex=1, itemIndex=918093828) - Failed to item data
    
    1226 21:17:26650 :: CPythonPlayer::SetItemData(dwSlotIndex=1, itemIndex=1049165829) - Failed to item data
    
    1226 21:17:26650 :: CPythonPlayer::SetItemData(dwSlotIndex=1, itemIndex=983629831) - Failed to item data
    
    1226 21:17:26650 :: CPythonPlayer::SetItemData(dwSlotIndex=1, itemIndex=852557833) - Failed to item data
    
    1226 21:17:26650 :: CPythonPlayer::SetItemData(dwSlotIndex=1, itemIndex=295043082) - Failed to item data
    
    1226 21:17:26650 :: CPythonPlayer::SetItemData(dwSlotIndex=1, itemIndex=-1014693877) - Failed to item data
    
    1226 21:17:26650 :: CPythonPlayer::SetItemData(dwSlotIndex=1, itemIndex=-1005912052) - Failed to item data
    
    1226 21:17:26650 :: CPythonPlayer::SetItemData(dwSlotIndex=1, itemIndex=456458253) - Failed to item data
    
    1226 21:17:26650 :: CPythonPlayer::SetItemData(dwSlotIndex=1, itemIndex=-1014759424) - Failed to item data
    
    1226 21:17:26650 :: CPythonPlayer::SetItemData(dwSlotIndex=1, itemIndex=760807425) - Failed to item data
    
    1226 21:17:26650 :: CPythonPlayer::SetItemData(dwSlotIndex=1, itemIndex=818479106) - Failed to item data
    
    1226 21:17:26650 :: CPythonPlayer::SetItemData(dwSlotIndex=1, itemIndex=1245187) - Failed to item data
    1226 21:18:45209 :: Cannot find item by 299520
    1226 21:18:45209 :: Cannot find item by 299520
    1226 21:18:45209 :: Cannot find item by 140902400
    1226 21:18:45209 :: Cannot find item by 140902400
    1226 21:18:45209 :: Cannot find item by -1979711488
    1226 21:18:45209 :: Cannot find item by -1979711488
    1226 21:18:48066 :: Cannot find item by 299520
    1226 21:18:48117 :: Cannot find item by 140902400
    1226 21:18:48513 :: Cannot find item by -1979711488
    1226 21:18:49305 :: Cannot find item by -1979711488
    1226 21:18:49767 :: Cannot find item by 140902400
    1226 21:18:50443 :: Cannot find item by 299520
    1226 21:18:52787 :: Cannot find item by 299520
    1226 21:18:52984 :: Cannot find item by 140902400
    1226 21:18:15243 :: Cannot find item by 2874624
    1226 21:18:15243 :: Cannot find item by 2874624
    1226 21:18:15243 :: Cannot find item by 737017856
    1226 21:18:15243 :: Cannot find item by 737017856
    1226 21:18:15243 :: Cannot find item by -1862270976
    1226 21:18:15243 :: Cannot find item by -1862270976
    1226 21:18:15738 :: Cannot find item by 2874624
    1226 21:18:16513 :: Cannot find item by 737017856
    1226 21:18:16530 :: Cannot find item by -1862270976
    1226 21:18:17042 :: Cannot find item by 737017856
    1226 21:18:17107 :: Cannot find item by 2874624
    1226 21:18:17767 :: Cannot find item by 2874624
    1226 21:18:17950 :: Cannot find item by 737017856
    1226 21:18:18362 :: Cannot find item by -1862270976
    

    Db syserr:

    SYSERR: Dec 27 03:18:51.986042 :: pid_init: 
    Start of pid: 2096
    
    SYSERR: Dec 27 03:18:51.986150 :: Start: TABLE_POSTFIX not configured use default
    SYSERR: Dec 27 03:18:55.140150 :: Load:  DirectQuery failed(SELECT IP_FROM, IP_TO, COUNTRY_NAME FROM iptocountry)
    
    

    Auth syserr: (I don't why but I can login on my server)

    SYSERR: Dec 27 03:18:54.19534 :: pid_init: 
    Start of pid: 2098
    
    SYSERR: Dec 27 03:18:54.21557 :: socket_connect: HOST 127.0.0.1:15000, could not connect.
    
    

    Channel1 syserr:

    SYSERR: Dec 27 03:19:08.839337 :: CheckDragonSoulExtTables: In ¹é·æ¼® group of DragonSoulExtTables, ByProduct(30270) of Grade grade_normal is not exist.
    SYSERR: Dec 27 03:19:08.839453 :: ReadDragonSoulTableFile: DragonSoul table Check failed.
    SYSERR: Dec 27 03:19:08.839489 :: Boot: cannot load DragonSoulTable: locale/germany/dragon_soul_table.txt
    

    Client version:

     

    9jfaYRt.png

     

    Thanks you...

  10. subversion is already installed, not solved.

     

    Thanks you


     

    Ok solved the problem with subversion, now this the new error:

    gmake: *** [../game_r37084_32] Error 1
    gmake: *** Waiting for unfinished jobs....
    gmake: *** [../test_r37084_32] Error 1

    Solved too:

     

    Link to solution post:

  11. linking ../test
    linking ../game_rUnversioned directory_32....
    g++: directory_32: No such file or directory
    gmake: *** [../game_rUnversioned] Error 1
    gmake: *** Waiting for unfinished jobs....
     

    Version.cpp

    #include <stdio.h>
     
    void WriteVersion()
    {
    #ifndef __WIN32__
        FILE* fp = fopen("VERSION.txt", "w");
     
        if (fp)
        {
            fprintf(fp, "game revision: 123456n");
            fclose(fp);
        }
    #endif
    }
    
    
    

    Makefile

    PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1)
    
    GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3  | cut -d'.' -f1)
    BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
    P4_VERSION = $(shell svnversion -n .)
    SVN_VERSION = 123456
    
    CC = g++
    
    INCDIR =
    LIBDIR =
    BINDIR = ..
    OBJDIR = OBJDIR
    $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)
    
    # Standard Setting
    LIBS = -pthread -lm -lmd
    # Removed -fno-rtti 
    CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_
    
    ifeq ($(GCC_VERSION), 4)
    CFLAGS += -mtune=i686 -fstack-protector-all
    else
    CFLAGS += -mcpu=i686
    endif
    
    # boost
    INCDIR += -I../../../Extern/include/boost
    
    # DevIL
    INCDIR += -I../../libdevil
    LIBDIR += -L../../libdevil
    LIBS += -lpng -ltiff -lmng -llcms -ljpeg
    
    # MySQL
    #ifeq ($(BSD_VERSION), 7)
    INCDIR += -I../../libmysql/7.x-5.1.35
    LIBDIR += -L../../libmysql/7.x-5.1.35
    #else
    #INCDIR += -I../../libmysql/5.x-5.1.35
    #LIBDIR += -L../../libmysql/5.x-5.1.35
    #endif
    
    LIBS += -lmysqlclient -L/usr/local/lib/mysql -lz
    
    # Miscellaneous external libraries
    INCDIR += -I../../../Extern/include
    LIBDIR += -L../../../Extern/lib
    LIBS += -lcryptopp -lgtest
    
    # HackShield
    INCDIR += -I../../libhackshield/include
    LIBDIR += -L../../libhackshield/lib
    LIBS += -lanticpxsvr
    
    # XTrap
    INCDIR += -I../../libxtrap/include
    
    # openssl
    #INCDIR += -I/usr/include
    #LIBS += -lssl
    #LIBS += /usr/lib/libssl.a
    
    # Project Library
    INCDIR += -I../../liblua/include
    INCDIR += -I/usr/local/include
    INCDIR += -L/usr/local/lib/mysql
    INCDIR += -I../../libserverkey
    LIBDIR += -L../../libthecore/lib -L../../libpoly -L../../libsql -L../../libgame/lib -L../../liblua/lib -L../../libserverkey
    LIBDIR += -L/usr/local/lib
    LIBS += -lthecore -lpoly -llua -llualib -lsql -lgame -lserverkey
    USE_STACKTRACE = 0
    ifeq ($(USE_STACKTRACE), 1)
    LIBS += /usr/local/lib/libexecinfo.a
    endif
    
    TARGET  = $(BINDIR)/game_r$(P4_VERSION)_$(PLATFORM)
    
    CFILE	= minilzo.c
    
    CPPFILE = BattleArena.cpp FSM.cpp MarkConvert.cpp MarkImage.cpp MarkManager.cpp OXEvent.cpp TrafficProfiler.cpp ani.cpp
    		  arena.cpp banword.cpp battle.cpp blend_item.cpp block_country.cpp buffer_manager.cpp building.cpp castle.cpp
    		  char.cpp char_affect.cpp char_battle.cpp char_change_empire.cpp char_horse.cpp char_item.cpp char_manager.cpp
    		  char_quickslot.cpp char_resist.cpp char_skill.cpp char_state.cpp PetSystem.cpp cmd.cpp cmd_emotion.cpp cmd_general.cpp
    		  cmd_gm.cpp cmd_oxevent.cpp config.cpp constants.cpp crc32.cpp cube.cpp db.cpp desc.cpp
    		  desc_client.cpp desc_manager.cpp desc_p2p.cpp dev_log.cpp dungeon.cpp empire_text_convert.cpp entity.cpp
    		  entity_view.cpp event.cpp event_queue.cpp exchange.cpp file_loader.cpp fishing.cpp gm.cpp guild.cpp
    		  guild_manager.cpp guild_war.cpp horse_rider.cpp horsename_manager.cpp input.cpp input_auth.cpp input_db.cpp
    		  input_login.cpp input_main.cpp input_p2p.cpp input_teen.cpp input_udp.cpp ip_ban.cpp
    		  item.cpp item_addon.cpp item_attribute.cpp item_manager.cpp item_manager_idrange.cpp locale.cpp
    		  locale_service.cpp log.cpp login_data.cpp lzo_manager.cpp marriage.cpp matrix_card.cpp
    		  messenger_manager.cpp mining.cpp mob_manager.cpp monarch.cpp motion.cpp over9refine.cpp p2p.cpp packet_info.cpp
    		  party.cpp passpod.cpp pcbang.cpp polymorph.cpp priv_manager.cpp pvp.cpp
    		  questevent.cpp questlua.cpp questlua_affect.cpp questlua_arena.cpp questlua_ba.cpp questlua_building.cpp
    		  questlua_danceevent.cpp questlua_dungeon.cpp questlua_forked.cpp questlua_game.cpp questlua_global.cpp
    		  questlua_guild.cpp questlua_horse.cpp questlua_pet.cpp questlua_item.cpp questlua_marriage.cpp questlua_mgmt.cpp
    		  questlua_monarch.cpp questlua_npc.cpp questlua_oxevent.cpp questlua_party.cpp questlua_pc.cpp
    		  questlua_quest.cpp questlua_target.cpp questmanager.cpp questnpc.cpp questpc.cpp
    		  refine.cpp regen.cpp safebox.cpp sectree.cpp sectree_manager.cpp sequence.cpp shop.cpp
    		  skill.cpp start_position.cpp target.cpp text_file_loader.cpp trigger.cpp utils.cpp vector.cpp war_map.cpp
    		  wedding.cpp xmas_event.cpp version.cpp panama.cpp threeway_war.cpp map_location.cpp auth_brazil.cpp
    		  BlueDragon.cpp BlueDragon_Binder.cpp DragonLair.cpp questlua_dragonlair.cpp
    		  HackShield.cpp HackShield_Impl.cpp char_hackshield.cpp skill_power.cpp affect.cpp
    		  SpeedServer.cpp questlua_speedserver.cpp XTrapManager.cpp
    		  auction_manager.cpp FileMonitor_FreeBSD.cpp ClientPackageCryptInfo.cpp cipher.cpp
    		  buff_on_attributes.cpp check_server.cpp dragon_soul_table.cpp DragonSoul.cpp
    		  group_text_parse_tree.cpp char_dragonsoul.cpp questlua_dragonsoul.cpp
    		  shop_manager.cpp shopEx.cpp item_manager_read_tables.cpp
    
    
    COBJS	= $(CFILE:%.c=$(OBJDIR)/%.o)
    CPPOBJS	= $(CPPFILE:%.cpp=$(OBJDIR)/%.o)
    
    MAINOBJ = $(OBJDIR)/main.o
    MAINCPP = main.cpp
    
    TESTOBJ = $(OBJDIR)/test.o
    TESTCPP = test.cpp
    TEST_TARGET = $(BINDIR)/test
    
    default: $(TARGET) $(TEST_TARGET)
    
    $(OBJDIR)/minilzo.o: minilzo.c
    	@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
    	@echo compile $<
    
    $(OBJDIR)/version.o: version.cpp
    	@$(CC) $(CFLAGS) -D__P4_VERSION__="$(SVN_VERSION)" -c $< -o $@
    	@echo compile $<
    
    $(OBJDIR)/%.o: %.cpp
    	@echo compile $<
    	@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
    
    limit_time:
    	@echo update limit time
    	@python update_limit_time.py
    
    $(TARGET): $(CPPOBJS) $(COBJS) $(MAINOBJ)
    	@echo linking $(TARGET)....
    	@$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(MAINOBJ) $(LIBS) -o $(TARGET)
    
    $(TEST_TARGET): $(TESTCPP) $(CPPOBJS) $(COBJS) $(TESTOBJ)
    	@echo linking $(TEST_TARGET)
    	@$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(TESTOBJ) $(LIBS) -o ../test
    
    clean:
    	@rm -f $(COBJS) $(CPPOBJS)
    	@rm -f $(BINDIR)/game_r* $(BINDIR)/conv
    
    tag:
    	ctags *.cpp *.h *.c
    
    dep:
    	makedepend -f Depend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(CPPFILE) $(CFILE) $(MAINCPP) $(TESTCPP) 2> /dev/null > Depend
    
    sinclude Depend
    
    

    What's the problem?

     

    ty

  12. Hello, I can't commerce using this client: http://metin2dev.org/board/index.php/topic/136-40250-test-client/

    with this binary: http://metin2dev.org/board/index.php/topic/958-sln-metin2client-with-updated-directx-granny-python-and-more/

    Syserr:

    1217 13:08:02765 :: Traceback (most recent call last):
    
    1217 13:08:02765 ::   File "game.py", line 961, in StartExchange
    
    1217 13:08:02767 ::   File "interfaceModule.py", line 680, in StartExchange
    
    1217 13:08:02767 ::   File "uiExchange.py", line 84, in OpenDialog
    
    1217 13:08:02767 :: TypeError
    1217 13:08:02767 :: :
    1217 13:08:02767 :: not enough arguments for format string
    1217 13:08:02767 ::
    

    Thanks you

     

    Edit: Solved with this post: http://metin2dev.org/board/index.php/topic/3160-error-trade-in-client/#entry20811

     

    Sorry for no using the search tool before post.

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