For anyone who didnt know, player in-game have to ability to send multi-line chat. I am still writing my admin client, and the fact that people can send multi-line makes all attempts to write in-game commands worthless, because other people can access them.
Some of you wont know what im talking about, but anyway.........my Actual Question is this: Is there a way to stop people from sending multi-line chat, or if not, is there a way to detect that they have done it?
I have sent an email to Michael about this but I figured i might as well check with you people as well in the meantime.
Well, it shouldn't be a problem, you just have to properly get the message sent by the player, and you can decide if it was a real admin command or just a multi line.
glad you understand what he's asking ke....
Multi-line chat is possible in Soldat ? Explain please.. (I cant see that its possible)
Yes its not well known about and I prefer it stays that way. Well, i suppose it doenst matter now, because the answer to my question is that the iinet servers i was testing on have all this stuff running on them, and it seems that one of the effects that these things have is to split multi-line chat up into seperate lines, which then get sent out to the remote admins individually. So there was no way to determine if chat was multi-line or not. I shall have to get the stuff running on the server modified. I would ask you guys about it, but I dont know whats running on there, to be honest. So i shall go to tank.
um kk dabookshah,
but when you find out what the stuff is you have running on your server that allows multi line chat, would you post it back here please?
Well, multi line is possible in soldat, i don't want to reveal it, if you are smart enough, you can figure it out how. (i didn't know it was possible either untill today)
I won't tell it, as it is a bit annoying, and such, you can write things which seems like someone else wrote it and such. Too much abusement, understand? :)
By the way, dabookshah wanted to say that he can't solve the problem because of Tank's script (or whatever server-side script) is just sending the multi-line messages as new message each line.
Speaking of multi line, i think the admin-welcome message is a multi-line message itself:
(18:18:59) Soldat Admin Connection Established...
(18:18:59) Admin connected.
(18:18:59) Succesfully logged in.
(18:18:59) Welcome, you are in command of the server now.
(18:18:59) List of commands available in the Soldat game Manual.
As you can see, all the text is sent at the same time.
Oh.. Like that (the quote) I though U meant like Multilined from the Taunts etc..? Just split it by tthe CRLF ?
quote:Originally posted by KeFear...Anyway, if you read the message until the characters #13#10, while the multi-line is divided with #10...
Oh damn, i revealed the secret of it already. Shame on me. :]
so the character for multi-lining is #10? or is it # or #13? maybe #13#10?
From the server its CRLF (#13#10) Dunno if thats what U wanted to know, just split it by those...
removed for good reason ;)
I wrote a #10 into the Taunts.txt ^^ I reckon that didnt work cuZ it reads a line.. hehe.. oh well..
note: you can't use this in taunts, as it would appear as new line -> new taunt.
Yeh if you replace chr(10) with the str_replace function or somthing to that equivalent it would remove it from the chat... I told MM about the multi-line chat bug afew weeks ago so it should be fixed in 3.0.0
Wtf its a bug???? I thought it was some sort of hidden feature. Anyway..........dont tell me this means you only found out about this a few weeks ago?
hmms i'd like it to be left in to be honest...
yea me too. i found character #10 and i use it a lot now...
No Ive known about it for months and months, I told n00bface to PM it to MM ages ago, but apparently he never did.
now all these noobs are probably abusing this bug...
Well no-one has so far mentioned how to do it on the forum anyway. But when tanks scripts is fixed, it wont matter.