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

Brackets [] in room names #1770

Open
DerMaskierte opened this issue May 9, 2023 · 1 comment
Open

Brackets [] in room names #1770

DerMaskierte opened this issue May 9, 2023 · 1 comment

Comments

@DerMaskierte
Copy link

Describe the bug
Adding a pair of brackets to a room name will prevent room management screen from working on a room.

Expected behavior
Brackets becoming part of the name of the room.

To Reproduce
Go to Lilaya's house, visit a room, go to management, and rename it adding both opening and closing brackets [ ].
The bug will not happen if the brackets are placed in reverse order ][.

Attach files
error.log

Additional information:

  • Game version: 0.4.8.3
  • OS: Windows 10
  • Using .exe
@CognitiveMist
Copy link
Contributor

I can tell you why:

Square brackets are used to access the game's parser commands. For example, [npc.Name] will be replaced by the npc's name. An empty command, or any other invalid command, will cause an error. That said, the behavior when an error happens could probably be improved here. To use square brackets as a display symbol, the safest option is to use the HTML entity instead: &#91; will appear as [, and &#93; will appear as ]. Other bracket types, such as (), <>, or {} can be used normally.

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

2 participants