Parameter-string does not equal string?

The bug might be bigger:
MrBzign.png

DCgtc1j.png


EVERYTIME (okay almost everytime) that last parameter bugs somehow. This time not because of a hidden character but the @parent is bugged. It also seems to add the next 2 lines of code to the @parent-tag...
This only happens because it is the LAST parameter again... I can't add a default value so what I did, I moved the @text to below the @parent and the bug is gone.

I'm fairly sure that RMMV has internally some serious problems recognizing when a parameter-tag ends due to lack of semi-colon and it not respecting end-of-lines.

This is also a ~4 year old bug btw.
@SilverDash I'm not sure if you seen it but on my 3rd edit of my previous post where I researched the bug, I noted that your parameters tend to have headers using ===== and you use ":" quite often. I concluded that the use of ":" colons is causing your parameters to break and be parsed incorrectly by MV's editor and I believe this is why your recieving the "/r" in some of your parameters.

If you take a look at your parameters, most of the troubled parameters are generally directly after or before the header and the extra colons, my guess is because MV uses the colon in their regex to determine where the beggining of the plugins parameters begin and when you introduce more of them it causes funky behaviour.
This is a fun little "semi" bug you have discovered. I looked into it a little bit and have determined when it happens and I have a good educated guess of what why. The reason I called it a "semi" bug is because it happens when you are doing something you are not supposed to do. Basically by adding "comments" when defining parameters. In your case it happens everytime there is a "comment" like this:
Code:
 *
   ╔═════════════════╗
   ║ Group: Vehicles ║
   ╚═════════════════╝
You see this is not supposed be there and is translated to '/r' which is added to whatever valid command that was written before this. So if you removed all the comments then it would work fine.

You also mentioned that the last parameter almost always fails to work as intended. I am pretty sure this is the exact same problem and you just have something invalid at the end as well which adds the '/r'. So in your example the 'CommenEventsAsStaminaValues' should be a child of 'Advanced', however because of the bug it says it should be a child of 'Advanced/r' which it cannot find.

Funny note tho if you have the bug at both places. So just after defining the parameter 'Advanced' and setting the parent to 'Advanced' then as they would both have gotten the '/r' added it would actually work.

So the reason the bug most likely happens because the regex recognize all the "comments" as being '/r'. Obviously this does not seem to be intended behaviour which makes it somewhat like a bug.

I do not know exactly how the regex works but it seems like it recognizes @ as being the begining of a new declaration, so if you just add a @ before writting a comment you should be fine as it would now not add it as '/r'. E.g. like this:
Code:
 * @comment
   ╔═════════════════╗
   ║ Group: Vehicles ║
   ╚═════════════════╝
I added comment just for your own convenience to make you remember why you did it in the first place. What I believe happens is that it sees this as being a 'comment' which is not used so it does not do anything. So you can "fix" the bug by doing this. Honestly, I do not think they need to make a an actual fix for this as you can do the "fix" I just proposed.

In most cases it probably will not matter that much, but in others (such as your case) it will break the plugin and give you a headache 😛

Original thread: https://forums.rpgmakerweb.com/threads/parameter-string-does-not-equal-string.113697/