Pryaxis / TShock

☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
GNU General Public License v3.0
2.41k stars 377 forks source link

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

Open fireflyoo opened 1 year ago

fireflyoo commented 1 year ago

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.
sgkoishi commented 1 year ago

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

Some additional info:

HAHH9527 commented 11 months ago

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。

sgkoishi commented 11 months ago

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.