Jump to content
  • 0

[Warning]: clif_GlobalMessage: Truncating too long message


rayn

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  164
  • Reputation:   55
  • Joined:  11/25/11
  • Last Seen:  

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.

 

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

yes, because to long message cause the warning triggered

 

if you want to disable the warning, just give comment mark

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  164
  • Reputation:   55
  • Joined:  11/25/11
  • Last Seen:  

Sounds like a bug to me. I'll report it and see what the devs say...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

i ahve the same problem

bq9uhzz4s2.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

up

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

@Winz

if you do that, it will make all warning message gone :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

@Kichi

 

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

@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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

 

 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.

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

×
×
  • Create New...