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?
ID:273759
![]() Mar 12 2011, 8:09 pm
|
|
![]() Mar 12 2011, 8:18 pm
|
|
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.
|
client Seems to do the trick for me, it'll output nothing if I enter an invalid command, and execute "Test" if I input "test". |
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.
|
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.
|