This is the message, it IS being sent to bnet & recieved by the regular SC client, but it isn't displayed, any idea why? Maybe the » character?
Quote
CrAz3D-»LIPOXAMGSF Added by:CrAz3D[xL]
Debugoutput() it, look for nasty low-ascii characters, because » is safe to use (I use it a lot).
Quote from: rabbit on February 20, 2005, 10:33 PM
Debugoutput() it, look for nasty low-ascii characters, because » is safe to use (I use it a lot).
low-ascii?
< 32
From what I see, my ascii characters range from 32 to 122. Any other ideas on why the SC client isn't displaying the text?
Quote from: CrAz3D on February 21, 2005, 09:58 AM
From what I see, my ascii characters range from 32 to 122. Any other ideas on why the SC client isn't displaying the text?
Hmm, all of my characters are 32 & above.
EDIT:
» isn't safe to use. When sending » from my REAL SC client to bnet, the bot client recieved ». » is an invalid character for bnet now. So, AFAIK, characters of 187 or higher are invalid for the SC client. I haven't tested characters lower than 187 & higher than X, but I tested a few higher than 187.
Perhaps its just a bug in starcraft?
Its not a bug, its actually them fixing a bug. The reason color codes were ever avaiblie was from a bug. And that but also assisted in allowing those charactors.
In a stupid attempt to fix colors they screwed up some chars? Lol.
Isn't that AWESOME! Go B.NET!
No, in a successful attempt to fix colors they require you to actually emulate the client a bit better now. As was posted about several versions ago, Starcraft uses UTF8 coding of characters. Sending a bare » is wrong. You should be sending it encoded in UTF8, as Starcraft does. That it worked at all since the switch to UTF8 is arguably a bug, which is now fixed.
Quote from: Kp on February 22, 2005, 04:18 PM
No, in a successful attempt to fix colors they require you to actually emulate the client a bit better now. As was posted about several versions ago, Starcraft uses UTF8 coding of characters. Sending a bare » is wrong. You should be sending it encoded in UTF8, as Starcraft does. That it worked at all since the switch to UTF8 is arguably a bug, which is now fixed.
How would I send my text as UTF8 code?
Quote from: CrAz3D on February 22, 2005, 05:24 PM
Quote from: Kp on February 22, 2005, 04:18 PM
No, in a successful attempt to fix colors they require you to actually emulate the client a bit better now. As was posted about several versions ago, Starcraft uses UTF8 coding of characters. Sending a bare » is wrong. You should be sending it encoded in UTF8, as Starcraft does. That it worked at all since the switch to UTF8 is arguably a bug, which is now fixed.
How would I send my text as UTF8 code?
Assuming you're using Windows, MultiByteToWideChar() and WideCharToMultiByte(). Otherwise, if you're going to use Storm.dll you could use (If I remember correctly) Storm ordinal 912.
Thank you much, I will look into that.
EDIT: Would I have to send it differently for D2, W2, & W3?
Quote from: CrAz3D on February 22, 2005, 05:28 PM
Thank you much, I will look into that.
EDIT: Would I have to send it differently for D2, W2, & W3?
No, they all use UTF-8
Quote from: iago on February 22, 2005, 09:53 PM
Quote from: CrAz3D on February 22, 2005, 05:28 PM
Thank you much, I will look into that.
EDIT: Would I have to send it differently for D2, W2, & W3?
No, they all use UTF-8
Okely dokey!, Thanks