Problem with Yanfly's Ace Message System?

I hope I'm posting this in the right place. 


I've recently added the Yanfly Ace Message script to my game, namely because I wanted to add boxes with character names into my game, as it's a visual novel and that would be very useful. Looking at the script, and the pictures on Yanfly's page that go with it, I can see that I'm supposed to enter "\n<x>" when I want a name to appear in a box above the text, where X would be replaced with the character's name. I follow the picture exactly, putting the character's dialogue in quotation marks and a period, then placing \n<charactername> at the end.


...But when I start up the preview, it doesn't work. I just get "\n<charactername>" after the text.


At first I thought maybe it was because I didn't have the character logged as an actor yet, since I'm just starting this game and I really just wanted to test and make sure the custom skin I put on the text window was working. So I go into the database and add his character. Still not working.  I even tried putting "\n<\n[1]>" in there instead, and it's still not working, although the "\n" part disappears. But I've still got <charactername> displayed in the text box. I'm not getting a separate box with a name in it no matter what I do.


I have a Slow Text Script, and the Galv's Message Bust script, and the custom window skin, but other than that I have no idea what could be causing problems. I'm not super knowledgeable on scripting and coding, but even still I'm 90% sure I'm following the directions in the script correctly and it still won't work. Advice would be much appreciated.
If there is a problem, then that is because either you have another script that is incompatible, or because you configured yanfly's script wrong.


I suggest you follow the link to the tutorial "how to use a script" in my signature and check if you configured the messaging script correctly - and yes, it does need configuration, you can't use "as is". At absolute minimum you need to configure your project's variables to make sure that you don't use the variables that are needed by the message script.


That said, please give a link to the script website and a screenshot of your events where you try to use it, so that we can check if everything is correct from that point.


I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
It looks like you have it correct for displaying the name on the left of the windows in it's own box. However you will never see it displayed that way in the preview. Just play your game and see.


#    \n[x]     - Writes actor x's name.


#    \n<x>     - Creates a name box with x string. Left side. *Note
#    \nc<x>    - Creates a name box with x string. Centered. *Note
#    \nr<x>    - Creates a name box with x string. Right side. *Note
If there is a problem, then that is because either you have another script that is incompatible, or because you configured yanfly's script wrong.


I suggest you follow the link to the tutorial "how to use a script" in my signature and check if you configured the messaging script correctly - and yes, it does need configuration, you can't use "as is". At absolute minimum you need to configure your project's variables to make sure that you don't use the variables that are needed by the message script.


That said, please give a link to the script website and a screenshot of your events where you try to use it, so that we can check if everything is correct from that point.


I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.



Sorry for the late reply! After looking at your "how to use a script" tutorial, I'm afraid I still don't understand what I'm doing wrong. So I did as your tutorial suggested and tried opening a new project and using the script there. But even using it on a new project, with no other scripts, it's not right.


I'm using Yanfly's Ace Message Script (link: https://yanflychannel.wordpress.com/rmvxa/core-scripts/ace-message-system/) and from looking at the example pictures, I can't quite figure out what I'm not doing. And I'm not an expert on scripting, but I can't see where I'm supposed to configure this script. It all looks like codes to put directly into things like text boxes. So if it needs to be configured, I'd need some help figuring out what to do.


In the first picture, this is how the script appears in the editor to me.


HelpPic1.png


The second picture is how the coding looks within the event. I'm doing just like Yanfly's example pictures from his website (dialogue in quotes, and then the coding after that).


HelpPic2.png


But then the last two pictures are how it shows up when I play my game. Obviously something's wrong. I mean, the "\n" portion goes away, but still no name boxes. 


HelpPic3.png


HelpPic4.png


I'm sorry for being so ignorant, I just can't seem to get this.
can you compare if one of the other codes with the same sequence works?


\nc<test> and \n[1]


At the moment it looks as if the engine doesn't recognize the full sequence for whatever reason, and that could either be of not working at all or because of not recognizing the <


And please check if the other script options work, like the variable width for example - just to see if the entire script is skipped for functions or not.


I don't have any direct idea either, and that means we have to systematically check for all possibilities...
can you compare if one of the other codes with the same sequence works?


\nc<test> and \n[1]


At the moment it looks as if the engine doesn't recognize the full sequence for whatever reason, and that could either be of not working at all or because of not recognizing the <


And please check if the other script options work, like the variable width for example - just to see if the entire script is skipped for functions or not.


I don't have any direct idea either, and that means we have to systematically check for all possibilities...



Okay! So I went ahead and tried that out. I used the two different ways to (theoretically) attach the name box. You'll notice the boy's says "\n<\n[1]>" this is because in my database, actor 1 is named "Boy". So I figure by all accounts it should work. I also used the commands to bold a section of text and to display a picture from the Graphics/Pictures folder. This is how the coding looks within the text boxes:


HelpPic5.png


You may notice there's no space between the "\fb" and "bold", it's just squished together. I tried it with a space and it still didn't work. But the coding in the picture gives me this:


HelpPic6.png


(The whole word is gone??!! Geez) If I coded it like "\fb bold \fb" it would put the actual word "bold" in the text box, but just with extra spaces before and after it. For the second text box, it shows up:


HelpPic7.png


It looks like, here within the actual game, the section within the pointy brackets (not sure what they're called haha) actually does acknowledge his name in the system-- instead of putting a 1 like in the event coding, it's got a "B" there which I'm assuming would spell out "Boy"... But it's still not putting it in a name box. :/


Aaaaagh, I feel like in actuality what's going wrong is some tiny, stupid error I'm overlooking... Thanks for all your help so far, btw.



That's it?


The scrollbar on your image indicates that that is the end of the script right there. If that is true, than that is why it doesn't work.


That part is not actual code, just comments, all of that text in the editor is like it's not even there. Comments are used to, well, comment stuffs in your code.


If that is the entire "script" you use in your project, than that is the issue right there, none of that is real code.


Recheck the script from it's link, make sure to copy all of the script and paste it into your script editor.


Before I submitted this post, I actually checked Yanfly's site, and I see that you directly copied the message code samples from there.


That's not what you need. There are several links on that page, one should say "GitHub link" or something similar, that is what you need, that is where the real script is.


Get that and when you install that script (for real this time 😛), it will work fine.
That's it?


The scrollbar on your image indicates that that is the end of the script right there. If that is true, than that is why it doesn't work.


That part is not actual code, just comments, all of that text in the editor is like it's not even there. Comments are used to, well, comment stuffs in your code.


If that is the entire "script" you use in your project, than that is the issue right there, none of that is real code.


Recheck the script from it's link, make sure to copy all of the script and paste it into your script editor.


Before I submitted this post, I actually checked Yanfly's site, and I see that you directly copied the message code samples from there.


That's not what you need. There are several links on that page, one should say "GitHub link" or something similar, that is what you need, that is where the real script is.


Get that and when you install that script (for real this time 😛), it will work fine.



Oh God, I feel so friggin silly now! I knew it would be some silly error like that! And here I was, looking at what I thought was the script saying to myself "Gosh, this sure seems like a small amount of code for what it claims to do!" See, but I didn't know about the whole downloading thing... Other scripts I've experimented with so far just put the whole thing right on the main page for you to cut and paste, I wrongly assumed it was all like that.


Everything works perfectly now! You don't know how thankful I am! Thanks to Andar as well for being so patient with me, and providing a guide to use scripts. I'm sure it'll come in handy as my games get more complex.  😀

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-yanflys-ace-message-system.69473/