ID:273759
 
In multiplayer games of A Miner Adventure I get these kinds of messages a lot:

Sorry, the following is not valid: "x"
usage: KeyDown is not accessible


Is there any way to disable them?
You can override client/Command() to ignore non-verb input. You'll also need to check for telnet clients in client/New() and disable that manually since any override of client/Command() will allow telnet connections.
In response to Nadrew
Ok, thanks for the quick response!
In response to Nadrew
I'm still getting these messages. Do I need to make Command() return a certain value or something?
In response to Forum_account
client
Command(command)


mob
verb
Test()
usr << "test"


Seems to do the trick for me, it'll output nothing if I enter an invalid command, and execute "Test" if I input "test".
In response to Nadrew
Actually, now that I look further I notice you're probably using an interface macro to execute a command the client doesn't have. This message cannot be suppressed, but you can prevent it by making sure the client has the command accessible at all times -- even if it doesn't do anything.
In response to Nadrew
The macros are valid. I think the problem is that the client submits a command to the server and doesn't get a confirmation back within a certain amount of time, so it displays the error message. It tends to happen when there's more than usual amounts of lag. Hopefully there's a way to suppress it because it's annoying having the chat log filled with messages that are meaningless to users.
In response to Forum_account
I don't think there's a way to suppress it, but the cause of it seems like a bug to me. Perhaps taking it to the tracker?