Escaped Characters Getting Removed from Blocky Editor when opening

Started by willk55 on Sun, 11/08/2020 - 12:13

Topic category: Troubleshooting, bugs, and solutions

Last seen on 21:29, 1. Jul 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Escaped Characters Getting Removed from Blocky Editor when opening
Sun, 11/08/2020 - 12:13

When a \ character is put in a text field in the Blocky editor, upon reopening it gets removed. This wouldn't usually be a problem because characters that would need to be escaped like " get the \ put in while interpreting the blocks to java code, but sometimes a Minecraft command needs a \ to be properly formated. The only way I found around this was to lock the code and fix it myself.

Before: https://drive.google.com/file/d/1xuq-5R_QfVDdChPQdjub_SKpBmTRVJNX/view?usp=sharing

After: https://drive.google.com/file/d/1AAaqTKuDKq5Fo2TSl2u6AsnAUKhG4sa9/view?usp=sharing

Last seen on 17:09, 9. Sep 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Just a thought that the '/'…
Sun, 11/08/2020 - 14:38

Just a thought that the '/' is the wrong way round.

Last seen on 21:29, 1. Jul 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Well, \ and / do different…
Mon, 11/09/2020 - 22:48

Well, \ and / do different things. / doesn't usually do anything special, but \ is used to create escape characters. I think the most common use for \ is to put " into strings. When making a string, you close it with a ", so you can't just put a ". Instead you put \", which tells the computer that you want to put " into the string and not close it.