Ok... this is officially driving me insane... I cannot figure out why it would possibly be doing this.
I'm unable to do any output to console through player commands and I'm unable to add/test commands because of that.
It's as though that chat packet handling is never happening at all which really doesn't make sense as other commands that were already added do work.
I've A: tested adding a console command to make sure I wasn't doing something stupid and not writing it out correctly.
B: Written a function in the packet handler to do the writeline (incase it was only possible to do console output for some reason in the main cs file) and then called that using the console command. it works fine...
C: Removed all the existing commands so that there can't be any problem with switch statements or anything. I simply have it doing
Code:
static bool CheckCommand(Message message, Client.GameState client)
{
if (message.__Message.StartsWith("/"))
{
Console.WriteLine("You used CheckCommand");
return true;
}
return false;
}
No success with that so I added a writeline directly into the chat handler (right before the checkcmd function is being called). No luck there either.
Note: I've tried using the stupidly simple function I wrote (that worked when being called from the main cs file) as well as the normal console.writeline format... I simply cannot think of a single reason why this won't work.. Personally I use commands for all my coding and debugging so this is really bothering me :S I'm sure it's something stupidly simple that I'm missing but it's just not making any sense to me.