Jump to content
  • 0

[Warning]: clif_GlobalMessage: Truncating too long message


Question

Posted

Using revisions 17528.

 

Client not diffed with any 'Extended Chat Box' options.

When entering a long text with a long player name:

 

[Warning]: clif_GlobalMessage: Truncating too long message 'playerX : helllllllllllllllllllllllooooooooooooooooooooooooooooooooooooooooooooo' (len=95).

 

Short player names do not throw this warning.

 

9 answers to this question

Recommended Posts

Posted

you are bumping an old thread...

 

modify map_athena.conf:

...
//Makes server log selected message types to a file in the /log/ folder
//1: Log Warning Messages
//2: Log Error and SQL Error messages.
//4: Log Debug Messages
//Example: "console_msg_log: 7" logs all 3 kinds
//Messages logged by this overrides console_silent setting
console_msg_log: 0

//Makes server output more silent by omitting certain types of messages:
//1: Hide Information messages
//2: Hide Status messages
//4: Hide Notice Messages
//8: Hide Warning Messages
//16: Hide Error and SQL Error messages.
//32: Hide Debug Messages
//Example: "console_silent: 7" Hides information, status and notice messages (1+2+4)
console_silent: 0
Posted

@Kichi

 

It's okay, at least it's gone, as he wants. hahahahaha

 

 LOL :P

 

 

up

 

 

 if( len > sizeof(buf)-8 ) {

 //       ShowWarning("clif_GlobalMessage: Truncating too long message '%s' (len=%d).\n", message, len);

        len = sizeof(buf)-8;

    }

 

add a comment to the line

Posted

 

 if( len > sizeof(buf)-8 ) {

 //       ShowWarning("clif_GlobalMessage: Truncating too long message '%s' (len=%d).\n", message, len);

        len = sizeof(buf)-8;

    }

 

add a comment to the line

 

 

or change the number (the number 8) into something larger.

 

If you don't want the message, it's better to comment everything including the loop header, so that such exception handling does not require to be processed.

Join the conversation

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

Guest
Answer this question...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...