Jump to content

Resist0

Inactive Member
  • Posts

    60
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Resist0

  1. Hello,

    I've have a core owner for several weeks now and I can't find the solution to it. Several people have already looked at it and they had no idea

    Maybe someone of you had this before?

     

    (gdb) bt full
    #0  intrusive_ptr_add_ref (p=0x84df2c4 <vtable for char_event_info+8>) at event.cpp:197
    No locals.
    #1  boost::intrusive_ptr<event>::intrusive_ptr (rhs=..., this=0xffff9c18) at ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:93
    No locals.
    #2  event_destroy () at event.cpp:180
            the_event = {px = 0x84df2c4 <vtable for char_event_info+8>}
            pElem = 0x2a0fe6c0
    #3  0x0822a950 in destroy () at main.cpp:875
    No locals.
    #4  0x08058a8f in main (argc=<optimized out>, argv=<optimized out>) at main.cpp:632

     

    event.cpp is original Marty no change was made.

    main cpp line 875:

    event_destroy();
    void destroy()
    {
        sys_log(0, "<shutdown> Canceling ReloadSpamEvent...");
        CancelReloadSpamEvent();
        sys_log(0, "<shutdown> regen_free()...");
        regen_free();
        sys_log(0, "<shutdown> Closing sockets...");
        socket_close(tcp_socket);
    #ifndef __UDP_BLOCK__
        socket_close(udp_socket);
    #endif
        socket_close(p2p_socket);
        sys_log(0, "<shutdown> fdwatch_delete()...");
        fdwatch_delete(main_fdw);
        sys_log(0, "<shutdown> event_destroy()...");
        event_destroy();
        sys_log(0, "<shutdown> CTextFileLoader::DestroySystem()...");
        CTextFileLoader::DestroySystem();
        sys_log(0, "<shutdown> thecore_destroy()...");
        thecore_destroy();
    }

     

     

    main.cpp line 632:

     destroy();
    void heartbeat(LPHEART ht, int pulse)
    {
    [...]
        if (!g_bAuthServer)
        {
            if (isHackShieldEnable)
            {
                sys_log(0, "<shutdown> Releasing HackShield manager...");
                HSManager.Release();
            }
        }
        sys_log(0, "<shutdown> Flushing TrafficProfiler...");
        trafficProfiler.Flush();
    #ifdef __NEW_EVENT_HANDLER__
        sys_log(0, "<shutdown> Destroying CEventFunctionHandler...");
        EventFunctionHandler.Destroy();
    #endif
        destroy();
    #ifdef DEBUG_ALLOC
        DebugAllocator::StaticTearDown();
    #endif
        return 1;
    }

    Every time the server is shut down, it crashes. Otherwise it runs perfectly.

    Quests have all been deactivated. Almost all systems that were #defined have been deactivated. Even so, the downer is still there.

    Maybe someone knows something;)

    Kind regards

  2. 57 minutes ago, Owsap said:

    @Chief you should show us the error you are having, try to change 

    
    std::unordered_set<CShop*> v;

     ↓

     

    
    boost::unordered_set<CShop*> v;

     

    Edited post.

     

     

    Don´t work.

     

    https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

     

    Added :

    #include <boost/unordered_set.hpp> to shop_manager.cpp

     

    Now i get

     

    SYSERR: Apr 23 17:28:12 :: Boot: shop table size error

    Edit: didn´t recompiled whole src.

     

    Sooo after that all , shop is empty:

     

    https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

    But thanks @Owsap

     

    • Metin2 Dev 3
    • Sad 1
  3. I saw you updated the whole code of the system.

     

    I have error compiling with this part :

     

    https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

    #ifdef ENABLE_RENEWAL_SHOPEX
    	{
    		std::unordered_set<CShop*> v;
    		// include unordered_set
    		auto ExDelete = [&v](TShopMap& c) {
    			for (auto it = c.begin(); !c.empty() && it != c.end();) {
    				const auto shop = it->second;
    				if (shop && shop->IsShopEx()) {
    					it = c.erase(it);
    					v.insert(shop);
    				}
    				else
    					++it;
    			}
    		};
    		ExDelete(m_map_pkShopByNPCVnum);
    		ExDelete(m_map_pkShop);
    		for (const auto& del : v)
    			delete del;
    	}
    #endif

    What do you mean with include unordered set ?
    I try to #include "<boost>unordered_set.hpp" but that does not work so far.

     

     

    • Metin2 Dev 2
    • Confused 1
  4. 			if app.ENABLE_SASH_SYSTEM:
    				slotNumberChecked = 0
    				if not constInfo.IS_AUTO_POTION(itemVnum):
    							self.wndItem.DeactivateSlot(slotNumber)
    
    				for j in xrange(sash.WINDOW_MAX_MATERIALS):
    					(isHere, iCell) = sash.GetAttachedItem(j)
    					if isHere:
    						if iCell == slotNumber:
    							self.wndItem.ActivateSlot(slotNumber, (36.00 / 255.0), (222.00 / 255.0), (3.00 / 255.0), 1.0)
    							if not slotNumber in self.listAttachedSashs:
    								self.listAttachedSashs.append(slotNumber)
    
    							slotNumberChecked = 1
    					else:
    						if slotNumber in self.listAttachedSashs and not slotNumberChecked:
    							self.wndItem.DeactivateSlot(slotNumber)
    							self.listAttachedSashs.remove(slotNumber)

    edit to:

     

    				if app.ENABLE_SASH_SYSTEM:
    					slotNumberChecked = 0
    					if not constInfo.IS_AUTO_POTION(itemVnum):
    						self.wndItem.DeactivateSlot(i)
    
    					for j in xrange(sash.WINDOW_MAX_MATERIALS):
    						(isHere, iCell) = sash.GetAttachedItem(j)
    						if isHere:
    							if iCell == slotNumber:
    								self.wndItem.ActivateSlot(i, (36.00 / 255.0), (222.00 / 255.0), (3.00 / 255.0), 1.0)
    								if not slotNumber in self.listAttachedAcces:
    									self.listAttachedSashs.append(slotNumber)
    
    								slotNumberChecked = 1
    						else:
    							if slotNumber in self.listAttachedSashs and not slotNumberChecked:
    								self.wndItem.DeactivateSlot(i)
    								self.listAttachedAcces.remove(slotNumber)

     

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