• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Crash, script onMoveItem()

Dominik ms

Member
Joined
Jan 20, 2010
Messages
424
Reaction score
6
Debug code:
PHP:
#0  0x000000000047d8c2 in Game::playerMoveItem (this=0x804860, playerId=268449683, fromPos=..., spriteId=3307, fromStackpos=<value optimized out>,
    toPos=..., count=1 '\001') at game.cpp:1285
        toPlayer = 0x5379e4
        toSlotItem = <value optimized out>
        fromItem = 0x7fa3808e62a0
        item = 0x7fa3808e62a0
        Out = <value optimized out>
        deequip = false
        toDepot = 13
        toItem = 0x7fa395658970
        checkToSlot = 112
        player = 0x7fa3804d71d0
        fromDepot = false
        thing = 0x0
        toCylinder = 0x0
        In = <value optimized out>
        fromCylinder = 0x107e7f70
        toIndex = <value optimized out>
        status = {_M_t = {
            _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, int> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, int> > >> = {<No data fields>}, <No data fields>},
              _M_key_compare = {<std::binary_function<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = 5470961, _M_parent = 0x97cae0,
                _M_left = 0x7fa3804995a0, _M_right = 0x97cae0}, _M_node_count = 140340208702880}}}
        ret = <value optimized out>
        equip = 224
        fromPlayer = 0x0
        fromIndex = <value optimized out>
#1  0x000000000048961b in boost::_mfi::mf6<bool, Game, unsigned int, Position const&, unsigned short, short, Position const&, unsigned char>::operator() (
    function_obj_ptr=<value optimized out>) at /usr/include/boost/bind/mem_fn_template.hpp:732
No locals.
#2  operator()<bool, boost::_mfi::mf6<bool, Game, unsigned int, const Position&, short unsigned int, short int, const Position&, unsigned char>, boost::_bi::list0> (function_obj_ptr=<value optimized out>) at /usr/include/boost/bind/bind.hpp:660
No locals.
#3  boost::_bi::bind_t<bool, boost::_mfi::mf6<bool, Game, unsigned int, Position const&, unsigned short, short, Position const&, unsigned char>, boost::_bi::list7<boost::_bi::value<Game*>, boost::_bi::value<unsigned int>, boost::_bi::value<Position>, boost::_bi::value<unsigned short>, boost::_bi::value<short>, boost::_bi::value<Position>, boost::_bi::value<unsigned char> > >::operator() (function_obj_ptr=<value optimized out>)
    at /usr/include/boost/bind/bind_template.hpp:20
No locals.
#4  boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<bool, boost::_mfi::mf6<bool, Game, unsigned int, Position const&, unsigned short, short, Position const&, unsigned char>, boost::_bi::list7<boost::_bi::value<Game*>, boost::_bi::value<unsigned int>, boost::_bi::value<Position>, boost::_bi::value<unsigned short>, boost::_bi::value<short>, boost::_bi::value<Position>, boost::_bi::value<unsigned char> > >, void>::invoke (
    function_obj_ptr=<value optimized out>) at /usr/include/boost/function/function_template.hpp:153
        f = <value optimized out>
#5  0x0000000000577a77 in Task::operator()() ()
No symbol table info available.
#6  0x00000000005771df in Dispatcher::dispatcherThread (p=<value optimized out>) at tasks.cpp:56
        task = 0x7fa38cdef560
        dispatcher = 0x8025a0
#7  0x000000000055afc2 in operator()<void (*)(void*), boost::_bi::list0> (this=0x6) at /usr/include/boost/bind/bind.hpp:253
No locals.
#8  boost::_bi::bind_t<void, void (*)(void*), boost::_bi::list1<boost::_bi::value<void*> > >::operator() (this=0x6)
    at /usr/include/boost/bind/bind_template.hpp:20
No locals.
#9  boost::detail::thread_data<boost::_bi::bind_t<void, void (*)(void*), boost::_bi::list1<boost::_bi::value<void*> > > >::run (this=0x6)
    at /usr/include/boost/thread/detail/thread.hpp:56
No locals.
#10 0x00007fa398b0e200 in thread_proxy () from /usr/lib/libboost_thread.so.1.42.0

This line:
PHP:
toItem = toCylinder->getItem();

Full script of this code can be found here:
http://otland.net/f35/creatureevent-onmove-very-advanced-134016/

Have someone proposition??
 
Back
Top