CoreRCON icon indicating copy to clipboard operation
CoreRCON copied to clipboard

CoreRcon seems to get no response from server

Open flabbert opened this issue 8 years ago • 3 comments

using your git repository, i get no info from the server, also followin the quickstart guide in my own project, i dont get any logs. even when i manually set the ip:port, and the port is properly exposed directly to the internet.

Using a fresh console application it instantly exists when i follow the logreciever quickguide. if i try to put the log.Listen<KillFeed> inside a while(true) loop, i get a memoryleak. (which makes sense)

flabbert avatar Feb 17 '17 11:02 flabbert

Sorry for the late response! I saw the notification email and archived it with the intention of getting back to you, but I completely forgot :(

Most of the functionality is designed to be ran inside a thread/never-ending Task - try something like this:

Task.Run(async () => {
	var log = new LogReceiver( ... );
	log.Listen<ChatMessage>(chat =>
	{
	    Console.WriteLine(chat.Message);
	});

	// This task lives forever
	await Task.Delay(-1);
})

Another gotcha is the server needs to actually be forwarding logs to the IP and port you are listening on, and that logs are even enabled server-side. If it's your server, run logaddress_add ip:port to add yourself to the log list, and log on to enable logs.

ScottKaye avatar Feb 23 '17 03:02 ScottKaye

I had the logs correctly forwarded to the application, but I found the issue why it didnt work even with the sample program.

CSGO servers no longer respond to A2S_Players, nor does it seem to A2S_Info, so the sample program kept hanging on those awaits.

The listeners doesnt work because the regex does not include position of actor or victim. Finally, the status message has changed and the regex in the app does not work for that eiter.

flabbert avatar Feb 23 '17 06:02 flabbert

Dang - I tested the commands with TF2 following the "spec" on the Valve Developer site... I'll see about updating the regexes to support CSGO!

Sorry about this. I will update with progress.

ScottKaye avatar Feb 23 '17 13:02 ScottKaye