Jump to content

Galet

Premium
  • Posts

    1384
  • Joined

  • Last visited

  • Days Won

    14
  • Feedback

    0%

Posts posted by Galet

  1. Hello,

     

    I've got lots of bugs in my old VM machine so I decided to create a new one.

     

    My game and db doesn't have any issue about compiling in BOOST 1.55, but in 1.5.7 or highter, only my db can compile. (Before, both db and game are using boost 1.5.7 without problem)

     

    Here's the bug when i'm using 1.5.8 (at char_skill.cpp)

     

    LprpsPZ.png

     

    Text mode :

    /usr/src/blabla/Extern/include/boost/functional/hash/extensions.hpp:193:24: note:   template argument deduction/substitution failed:
    In file included from /usr/src/blabla/Extern/include/boost/functional/hash/hash.hpp:558:0,
                     from /usr/src/blabla/Extern/include/boost/functional/hash.hpp:6,
                     from /usr/src/blabla/Extern/include/boost/unordered/unordered_map.hpp:21,
                     from /usr/src/blabla/Extern/include/boost/unordered_map.hpp:17,
                     from char.h:4,
                     from char_skill.cpp:7:
    /usr/src/blabla/Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   'const VID' is not derived from 'const std::shared_ptr<_Tp1>'
                 return hash_value(val);
                                      ^
    In file included from /usr/src/blabla/Extern/include/boost/functional/hash/hash.hpp:558:0,
                     from /usr/src/blabla/Extern/include/boost/functional/hash.hpp:6,
                     from /usr/src/blabla/Extern/include/boost/unordered/unordered_map.hpp:21,
                     from /usr/src/blabla/Extern/include/boost/unordered_map.hpp:17,
                     from char.h:4,
                     from char_skill.cpp:7:
    /usr/src/blabla/Extern/include/boost/functional/hash/extensions.hpp:198:24: note: template<class T, class Deleter> std::size_t boost::hash_value(const std::unique_ptr<_Tp, _Dp>&)
         inline std::size_t hash_value(std::unique_ptr<T, Deleter> const& x) {
                            ^
    /usr/src/blabla/Extern/include/boost/functional/hash/extensions.hpp:198:24: note:   template argument deduction/substitution failed:
    In file included from /usr/src/blabla/Extern/include/boost/functional/hash/hash.hpp:558:0,
                     from /usr/src/blabla/Extern/include/boost/functional/hash.hpp:6,
                     from /usr/src/blabla/Extern/include/boost/unordered/unordered_map.hpp:21,
                     from /usr/src/blabla/Extern/include/boost/unordered_map.hpp:17,
                     from char.h:4,
                     from char_skill.cpp:7:
    /usr/src/blabla/Extern/include/boost/functional/hash/extensions.hpp:262:34: note:   'const VID' is not derived from 'const std::unique_ptr<_Tp, _Dp>'
                 return hash_value(val);
                                      ^
    /usr/src/blabla/Extern/include/boost/functional/hash/extensions.hpp: In member function 'std::size_t boost::hash<T>::operator()(const T&) const [with T = VID; std::size_t = unsigned int]':
    /usr/src/blabla/Extern/include/boost/functional/hash/extensions.hpp:263:9: warning: control reaches end of non-void function [-Wreturn-type]
             }
             ^
    gmake: *** [OBJDIR/char_skill.o] Error 1
    

    I don't know why I have this problem :x

     

    PS : If anyone know how to install boost-all (1.5.7 or +) using freebsd ^^

     

    Have a nice day :)

  2. Try with this code in questlua_horse.cpp, replace your old function. (I'm not sure)

    	int horse_set_name(lua_State* L)
    	{
    		// ¸®ÅÏ°ª
    		// 0 : ¼ÒÀ¯ÇÑ ¸»ÀÌ ¾ø´Ù
    		// 1 : À߸øµÈ À̸§ÀÌ´Ù
    		// 2 : À̸§ ¹Ù²Ù±â ¼º°ø
    
    		if ( lua_isstring(L, -1) != true ) return 0;
    
    		LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
    
    		if ( ch->GetHorseLevel() > 0 )
    		{
    			const char* pHorseName = lua_tostring(L, -1);
    
    			if ( pHorseName == NULL )
    			{
    				lua_pushnumber(L, 1);
    			}
    			else
    			{
    				int nHorseNameDuration = test_server == true ? 60*5 : 60*60*24*30;
    
    				ch->SetQuestFlag("horse_name.valid_till", get_global_time() + nHorseNameDuration);
    				ch->AddAffect(AFFECT_HORSE_NAME, 0, 0, 0, PASSES_PER_SEC(nHorseNameDuration), 0, true);
    
    				CHorseNameManager::instance().UpdateHorseName(ch->GetPlayerID(), lua_tostring(L, -1), true);
    
    				ch->HorseSummon(false, true);
    				ch->HorseSummon(true, true);
    
    				lua_pushnumber(L, 2);
    			}
    		}
    		else
    		{
    			lua_pushnumber(L, 0);
    		}
    
    		return 1;
    	}
    
    • Love 1
  3. Thanks, but still some bugs :

    0421 19:47:15704 :: TypeError
    0421 19:47:15704 :: : 
    0421 19:47:15704 :: __pack_import() takes at most 4 arguments (5 given)
    0421 19:47:15704 :: 
    
    0421 19:47:19182 :: Traceback (most recent call last):
    
    0421 19:47:19182 ::   File "networkModule.py", line 237, in SetGamePhase
    
    0421 19:47:19182 :: AttributeError
    0421 19:47:19182 :: : 
    0421 19:47:19182 :: 'module' object has no attribute 'GameWindow'
    0421 19:47:19182 :: 
    
    
  4. Thanks ! Do you think this is a problem of my lib ? I'm pretty sure I have python 2.7 tho...

     

    Edit : New Syserr, I only have _socket.pyd

    
    0421 18:26:15171 ::   File "networkModule.py", line 235, in SetGamePhase
    
    0421 18:26:15171 ::   File "system.py", line 130, in __pack_import
    
    0421 18:26:15172 ::   File "system.py", line 110, in _process_result
    
    0421 18:26:15172 ::   File "game.py", line 30, in <module>
    
    0421 18:26:15172 ::   File "system.py", line 130, in __pack_import
    
    0421 18:26:15172 ::   File "system.py", line 110, in _process_result
    
    0421 18:26:15173 ::   File "CleverBot.py", line 7, in <module>
    
    0421 18:26:15173 ::   File "system.py", line 130, in __pack_import
    
    0421 18:26:15173 ::   File "system.py", line 110, in _process_result
    
    0421 18:26:15173 ::   File "CleverBotApi.py", line 3, in <module>
    
    0421 18:26:15174 ::   File "system.py", line 137, in __pack_import
    
    0421 18:26:15174 ::   File "Liburllib.py", line 26, in <module>
    
    0421 18:26:15174 ::   File "system.py", line 137, in __pack_import
    
    0421 18:26:15174 ::   File "Libsocket.py", line 47, in <module>
    
    0421 18:26:15175 ::   File "system.py", line 137, in __pack_import
    
    0421 18:26:15175 :: ImportError
    0421 18:26:15175 :: :
    0421 18:26:15175 :: No module named _socket
    0421 18:26:15175 ::
    
    
    

    And if I put another _socket.pyd >

    0421 18:30:35055 :: ImportError
    0421 18:30:35055 :: :
    0421 18:30:35055 :: DLL load failed: The specified procedure could not be found.
    0421 18:30:35055 ::
    
    • Love 1
×
×
  • 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.