Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

Has your server crashed unexpectedly, and you're wondering why? If you have multiple systems installed, this might be the reason. Below is a list of issues that need addressing to ensure better performance.

Identifying the Culprit

Let’s start with the issue related to ZeNu. While you may have been waiting for a fix for a long time, I'm here to help you out.

Chest View Drop Issue

Both the public and private versions of this system share a common problem: they allocate memory for the grid but fail to free it. Here’s how to resolve that.

Update in item_manager.cpp

  1. Locate the Existing Function

    Find the following segment in your item_manager.cpp file:

     
  • This is the hidden content, please

     

  • Modify the Code

    You need to add a cleanup step to your function to ensure that allocated memory is properly freed. Update your code as follows:

     
  1. This is the hidden content, please

     

Dungeon Information Issues

This section requires proper handling of references. This error can lead to performance warnings in the source code and cause more severe issues, including database crashes.

Updates in char.cpp

  1. Find Instances of Incorrect Usage of References

    Change the following:

     
This is the hidden content, please

To:

 
This is the hidden content, please

Make sure to adapt all instances accordingly:

 
  1. for (const auto& info : m_dungeonInfo)
        

Updates in ClientManager.cpp

  1. Locate and Modify Dungeon Information Maps

    Change:

     
This is the hidden content, please

To:

 
This is the hidden content, please

And similarly for:

 
This is the hidden content, please

Change to:

 
This is the hidden content, please

 

There are many more issues present in each system that needs attention. A lot of these problems can drastically affect performance, especially when you have 200-500 players online. Identifying and fixing these memory leaks will ensure your server runs smoothly.

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...