TShock icon indicating copy to clipboard operation
TShock copied to clipboard

When tshock start with -lang 7 ,the /help command can't work.

Open fireflyoo opened this issue 3 years ago • 3 comments

  • TShock version:5.1.3 for Terraria 1.4.4.9
  • TShock build number (if known):?

Reproduction steps (if applicable)?

  1. start tshock with "-lang 7"
  2. then join in Game with Terraria Client..
  3. type "/help" in the game.
  4. it doesn't work,but in Server console it works well.

fireflyoo avatar Feb 11 '23 02:02 fireflyoo

I actually saw lots of such reports with the error message Invalid command entered. Type /help for a list of valid commands. (and its -lang 7 translation: 输入的命令无效。使用{0}help 获取可用的指令列表。) I was never able to reproduce it, but most said

  • .help works but /help shows the error
  • magically fixed after re-download

Some additional info:

  • Only reproducible with mobile client
  • Many of them are known to be using translated client (might be the cause)

sgkoishi avatar Feb 11 '23 03:02 sgkoishi

I have same problem, I try disable 官方Wiki中文语言包, /help command is work. So using translated client maybe is main reason.


The following information is intended to make it easier for Chinese-speaking players to find this issue and troubleshoot it. 如果你碰到了输入的命令无效。使用/help 获取可用的指令列表,请尝试禁用语言包类mod。

HAHH9527 avatar Oct 06 '23 17:10 HAHH9527

I have same problem, I try disable 官方Wiki中文语言包, /help command is work. So using translated client maybe is main reason.

The following information is intended to make it easier for Chinese-speaking players to find this issue and troubleshoot it. 如果你碰到了输入的命令无效。使用/help 获取可用的指令列表,请尝试禁用语言包类mod。

The cause is not the language pack. The 官方Wiki中文语言包 is not doing anything wrong, but TShock is the source of the bug. Follow the above link in yaaiomi:

Terraria will translate chat commands into command id. TShock translate them back to keep the command working. However, when the server and the client have different locale, a enUS player send /help will be sent as CommandId: Help and a deDE server will translate it back to /hilfe, thus the command is broken.

sgkoishi avatar Oct 07 '23 00:10 sgkoishi