Request:
Add support for placeholders (__1__, __2__, etc) in the localised "help" of custom commands registered by using commands.add_command.
Currently, the placeholder __1__ will be displayed as "1" if I type /help (the command) in the game. But it works as expected if I print the string using player.print.
Placeholder support in the localised "help" of command
Re: Placeholder support in the localised "help" of command
I would also like this!
Re: Placeholder support in the localised "help" of command
The /help and player.print() operate using the same methods so they should show the same result.
Can you upload a mod that shows the problem?
Can you upload a mod that shows the problem?
If you want to get ahold of me I'm almost always on Discord.
Re: Placeholder support in the localised "help" of command
Thanks for noticing the request, senpai!Rseding91 wrote:The /help and player.print() operate using the same methods so they should show the same result.
Can you upload a mod that shows the problem?
A simple command can reproduce the issue:
Code: Select all
/c commands.add_command("foo", {"modifier-description.bullet-shooting-speed-bonus", "blah"}, function(event) end)
Code: Select all
/help foo
Code: Select all
/c game.player.print{"modifier-description.bullet-shooting-speed-bonus", "blah"}
Re: Placeholder support in the localised "help" of command
Thanks. It's now fixed for the next version of 0.15.
If you want to get ahold of me I'm almost always on Discord.
Re: Placeholder support in the localised "help" of command
Thanks!Rseding91 wrote:Thanks. It's now fixed for the next version of 0.15.