Jump to content

Boot size error


Recommended Posts

EDIT:3

 

I added syslogs to understand where the code crashed.
Arrived at point 7 it freezes.
I commented on the following code and the blocking occurs in step 8.
I still commented on the code that followed and I didn't get the error anymore.
Unfortunately, channel1 now tells me: ban word table size error.

I think the problem is:

 

peer->Encode(&m_vec_banwordTable[0], sizeof(TBanwordTable) * m_vec_banwordTable.size());

 

                                                                            end

 

peer->Encode(&m_vec_kLandTable[0], sizeof(building::TLand) * m_vec_kLandTable.size())

 

Immagine.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Premium

That's happened when _CONTAINER_DEBUG_LEVEL > 0. You have two options to solve that assert: 1) set _CONTAINER_DEBUG_LEVEL to 0;  2) add the data for tables(monarch, land, banword) , of course you can compile on release mode(_CONTAINER_DEBUG_LEVEL = 0).

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

https://metin2.download/picture/5dpFwezKgLeHTuGdwUGL56Um4Z31zF1Y/.png when i don't have bandword table or it's empty.

Btw u can check the vector if it's empty like this 

Spoiler

 

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

Quote

Btw u can check the vector if it's empty like this 

 

First of all, thanks for replying!
I did as you suggested, I added checking to see if the vector was empty and it worked, thank you !!! : D
To be able to log in, before your reply, I had to do this:

 

peer->Encode(&m_vec_banwordTable[0], sizeof(TBanwordTable) * m_vec_banwordTable.size());
peer->Encode(&m_vec_kLandTable[0], sizeof(building::TLand) * m_vec_kLandTable.size())

TO

 

peer->Encode(&m_vec_banwordTable, sizeof(TBanwordTable) * m_vec_banwordTable.size());
peer->Encode(&m_vec_kLandTable, sizeof(building::TLand) * m_vec_kLandTable.size())

 

I certainly made a mistake but at least I managed to make it work.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 3

      Emotion?

    2. 1

      Auto Bravery Cape

    3. 18

      Metin2 Closed Beta Content (2003-2004)

    4. 1425

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    5. 25

      Experimental Renderer

    6. 1

      Auto Bravery Cape

    7. 0

      Very strange bug, when creating new char

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.