Sp1rit / ArkRcon

GNU General Public License v3.0
9 stars 8 forks source link

How to retrieve RCON GetChat() #2

Closed Reginherus closed 6 years ago

Reginherus commented 6 years ago

Hey Sp1rit,

Been using this for a custom program to maintain the server I run. It works AMAZINGLY! Thank you for all your time you put into this.

One quick question, How do I retrieve the ChatLog when calling GetChat() command?

When I leave it is string chat = response?Body I get "Server message received but no response"

On the side, I am using the executable that you posted with the solution and it gets the chat no problem. Do you happen to have to solution to the executable?

Cause I don't mind digging through the code myself to figure it out. Once again, thank you~

Sp1rit commented 6 years ago

Hey,

you can find the tool i created this lib for in my repositories. It's called ArkRemoteAdmin.

But it's basically just a simple check. If ARK responded with the message you mentioned there are no new chat messages:

if (e.Response.Trim() != "Server received, But no response!!")
Reginherus commented 6 years ago

I can't believe I didn't notice either one of those... Now is GetChat registered server side? So if I run an RCON client that gets chat every 30 seconds, I won't be able to GetChat on a secondary app right afterwards? Is there anyway not to clear Chat when GetChat is called?

Thanks again.

Sp1rit commented 6 years ago

No there is not. ARKs RCON protocol is pretty shitty. I have tried to replace it but there is no chance with the current dev tool they provide.