• Welcome to Valhalla Legends Archive.
 

Quick Question: BNet newLine character

Started by Dynobird, August 26, 2005, 08:53 PM

Previous topic - Next topic

Dynobird

What char(s) does BNet send to signify a new line? I tried \n but it doesn't work =( I need to know this for parsing Strings, you see...

UserLoser.

Quote from: Dynobird on August 26, 2005, 08:53 PM
What char(s) does BNet send to signify a new line? I tried \n but it doesn't work =( I need to know this for parsing Strings, you see...

It doesn't send any

Dynobird

If it doesn't send anything, then how does it make new lines?
All I do to receive is:


while(true) {
    updateWindow.setNewText((char)in.read());
}


And on my GUI it makes new lines for every different message... even if the message doesn't fill up the GUI space horizontally.

R.a.B.B.i.T

It's called line wrapping.  Battle.net doesn't allow newlines at all.

Newby

Quote from: UserLoser on August 26, 2005, 08:53 PM
Quote from: Dynobird on August 26, 2005, 08:53 PM
What char(s) does BNet send to signify a new line? I tried \n but it doesn't work =( I need to know this for parsing Strings, you see...

It doesn't send any

It does on thet CHAT protocol IIRC.
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

Soul Taker


Blaze

Quote
Mitosis: Haha, Im great arent I!
hismajesty[yL]: No

Yegg

vbCrLf is also "\r\n". Not just "\n". And yes it does send that.

l2k-Shadow

If thinking outside of the CHAT protocol, no. In packet 0x0F Bnet sends the message string and you should include the CrLf by yourself... that's how the client does it anyway.
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

iago

Quote from: Newby on August 27, 2005, 09:19 AM
Quote from: UserLoser on August 26, 2005, 08:53 PM
Quote from: Dynobird on August 26, 2005, 08:53 PM
What char(s) does BNet send to signify a new line? I tried \n but it doesn't work =( I need to know this for parsing Strings, you see...

It doesn't send any

It does on thet CHAT protocol IIRC.

Yes, he's talking about CHAT

The question was already answered on x86's forum, so don't worry about it
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*