Valhalla Legends Forums Archive | Battle.net Bot Development | Quick Question: BNet newLine character

AuthorMessageTime
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...
August 27, 2005, 1:53 AM
UserLoser.
[quote author=Dynobird link=topic=12631.msg125613#msg125613 date=1125107599]
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...
[/quote]

It doesn't send any
August 27, 2005, 1:53 AM
Dynobird
If it doesn't send anything, then how does it make new lines?
All I do to receive is:

[code]
while(true) {
    updateWindow.setNewText((char)in.read());
}
[/code]

And on my GUI it makes new lines for every different message... even if the message doesn't fill up the GUI space horizontally.
August 27, 2005, 2:33 AM
R.a.B.B.i.T
It's called line wrapping.  Battle.net doesn't allow newlines at all.
August 27, 2005, 2:47 AM
Newby
[quote author=UserLoser link=topic=12631.msg125614#msg125614 date=1125107637]
[quote author=Dynobird link=topic=12631.msg125613#msg125613 date=1125107599]
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...
[/quote]

It doesn't send any
[/quote]

It does on thet CHAT protocol IIRC.
August 27, 2005, 2:19 PM
Soul Taker
[quote author=rabbit link=topic=12631.msg125629#msg125629 date=1125110871]
It's called line wrapping.  Battle.net doesn't allow newlines at all.
[/quote]
Profiles?
August 27, 2005, 4:46 PM
KkBlazekK
I thought in http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=17, bnet sends CrLf for a newline inside the end of the string..
August 27, 2005, 4:54 PM
Yegg
vbCrLf is also "\r\n". Not just "\n". And yes it does send that.
August 27, 2005, 5:25 PM
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.
August 27, 2005, 5:37 PM
iago
[quote author=Newby link=topic=12631.msg125688#msg125688 date=1125152375]
[quote author=UserLoser link=topic=12631.msg125614#msg125614 date=1125107637]
[quote author=Dynobird link=topic=12631.msg125613#msg125613 date=1125107599]
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...
[/quote]

It doesn't send any
[/quote]

It does on thet CHAT protocol IIRC.
[/quote]

Yes, he's talking about CHAT

The question was already answered on x86's forum, so don't worry about it
August 27, 2005, 7:27 PM

Search