Khas message error

I get this error if I put the script in my project:


khas_error.png



I have no others script that changes the original text...
I have included nessari files that were inside the demo...


Maybe I get this error because I use the largest character?


Any suggestion?
"wrong number of arguments" means that a command was given in a wrong way.


1) you mistyped a script command in the event that should give a message - if so we need screenshot of where you tried to display a message


2) you forgot to start a new game after installing that script (if Khas changed the default functions, your saved files will contain the wrong data)


3) compatibility problem between two scripts/plugins (might not neccessarily be two scripts you remember installing...)
This is line of code in question:


Audio.se_play("Audio/se/#{@voice}") if @sound && c != " " && @voice



1) you mistyped a script command in the event that should give a message - if so we need screenshot of where you tried to display a message


2) you forgot to start a new game after installing that script (if Khas changed the default functions, your saved files will contain the wrong data)


3) compatibility problem between two scripts/plugins (might not neccessarily be two scripts you remember installing...)

1) I tried the message in a map of  test, and I do not have references to other scripts...


2) I haven't a save file...


3) ...I try to delete one script at a time until I no receive the error...


SOLVED:


On the character's formatting name, should not contain spaces...
So if a character is called "Nick Name", within messages, you need to enter [NameNick], without leaving spaces between a name and the other...


I made a simple mistake >_>


Is there a way to move the message window?
Oh crap, I forgot to specify how the characters should be named, my bad.


What do you mean by moving the message window? I don't know if this answers the question, but my script doesn't allow any position settings, everything is automatic.
@Khas


Here the example screen:


Senza titolo-1.png


And this, the setting message:


Senza titolo-1.png


I use 8 movement frames for my pg on database...


Maybe this is the problem?
@Ally Probably. Would you mind to test it with the 8 movement frames disabled?
I have modified the script line (number coordinates) and work!


EDIT:


@Khas


If you want to add this here or in your blog, it may be useful...
Who uses sprite with multiple frames, you can alter these parameters:


cw = bitmap.width / 108 #24
ch = bitmap.height / 9 #8


(line 507/508)


The numbers 24 and 8, It is the default numbers... In my case, I have modified this numbers for bring them closer to my character...
@Ally Thanks! I added the tip 🙂
I'll appreciate it 😀

Original thread: https://forums.rpgmakerweb.com/threads/khas-message-error.73993/