times \n Doesn't Work in the LE Anymore

  • Weather
  • Weather's Avatar Topic Author
  • Offline
  • Professional Marbler
  • Professional Marbler
More
15 Feb 2016 22:36 #1 by Weather
\n Doesn't Work in the LE Anymore was created by Weather
Is this intentional? Originally, when \n is typed into the text dynamic field of a help trigger, it would show up in-game as a newline.
However, in one of the updates to MBP (around 1.6?) Doing so would instead add another backslash to the code (in the .mis file \\n is there instead of \n), which causes \n to actually appear when the marble touches the trigger instead of a newline.

I found this annoying because I often use it and was wondering if this is on purpose, and if not, is it too hard to fix?

Please Log in or Create an account to join the conversation.

  • Three
  • Three's Avatar
  • Offline
  • Lead Developer
  • Lead Developer
  • level designer
More
16 Feb 2016 03:51 - 16 Feb 2016 03:52 #2 by Three
Replied by Three on topic \n Doesn't Work in the LE Anymore
Can confirm this happens, it's definitely a bit annoying. It's likely because there was a change to formatting in the level editor so you could type words in a help trigger without having to include backslashes. For now, you can just add \n in the .mis file using Notepad.

Follow me on twitter at @threefolder
Last edit: 16 Feb 2016 03:52 by Three.

Please Log in or Create an account to join the conversation.

  • HiGuy
  • HiGuy's Avatar
  • Offline
  • Lead Developer
  • Lead Developer
  • Rewrite it in Rust
More
16 Feb 2016 04:10 #3 by HiGuy
Replied by HiGuy on topic \n Doesn't Work in the LE Anymore

so you could type words in a help trigger without having to include backslashes


Yeah, when I updated the Inspector (thing where you enter text in the editor), I told it to not collapse \ escapes. I can revert that if it is necessary.

PQ in a nutshell
function clientcmd12dothepq() {
    commandToClient(LocalClientConnection, '34onthedancefloor');
}

Please Log in or Create an account to join the conversation.

  • Weather
  • Weather's Avatar Topic Author
  • Offline
  • Professional Marbler
  • Professional Marbler
More
16 Feb 2016 16:46 #4 by Weather
Replied by Weather on topic \n Doesn't Work in the LE Anymore
Maybe add an option in the world editor settings to not add another backslash when \n is typed? For now though, I have been using the replace feature in Notepad to replace \\n with \n.

By the way, could you by any chance fix the axis in the LE? If you try to use it to move an object, it moves it by what I'm guessing is the move scale in the settings per pixel, making it very sensitive if you want to move it to a specific point, so instead I've been (ctrl +) dragging objects without the axis and using the round coordinates button.

Please Log in or Create an account to join the conversation.

Moderators: DoomblahGo'way