Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fireflyoo opened this issue Feb 11, 2023 · 3 comments
Open

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

fireflyoo opened this issue Feb 11, 2023 · 3 comments

Comments

@fireflyoo
Copy link

fireflyoo commented Feb 11, 2023

  • 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.
@sgkoishi
Copy link
Contributor

sgkoishi commented Feb 11, 2023

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 added a commit to sgkoishi/yaaiomni that referenced this issue Apr 29, 2023
@HAHH9527
Copy link

HAHH9527 commented Oct 6, 2023

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
Copy link
Contributor

sgkoishi commented Oct 7, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants