[VX Ace]Help with Yanfly's message system script

Hello everybody, I have a trouble with Yanfly's message system, I'm trying to make a name window, just like this script says it can make, it works normally if I use the regular fonts, but I added a new font to the game and I tried to make a window name with this command

10486654_871413812887573_109985597_n.jpg


Here comes the trouble, when I try to test it, the program shows the next error

10489176_871403879555233_1580213019_n.jpg


#--------------------------------------------------------------------------

  # set_width

  #--------------------------------------------------------------------------

  def set_width

    text = @text.clone

    dw = standard_padding * 2 + text_size(text).width

    dw += YEA::MESSAGE::NAME_WINDOW_PADDING * 2

    dw += calculate_size(text.slice!(0, 1), text) until text.empty?

    self.width = dw

  end

 

The line 588 is this one

 

dw += calculate_size(text.slice!(0, 1), text) until text.empty?

 

I actually could fix this problem... Well Kind of, adding an extra \ to the tag in the window name, but it shows the name of this way...

 

10486643_871416119554009_2086395705_n.jpg


 

I don't like the fact the window name looks really disproportionate considering the text's length... Is there a way to fix that? thanks by the help
your problem is probably that Amigo is not a string, it's a variable name (or at least, it's one for a programming language)


The command \fn[x] requires you to use a font name between the [].


Try \fn['Amigo'] - that would be a string.


If that does not work, we need a link to the script you're using to check its examples and descriptions.
your problem is probably that Amigo is not a string, it's a variable name (or at least, it's one for a programming language)

The command \fn[x] requires you to use a font name between the [].

Try \fn['Amigo'] - that would be a string.

If that does not work, we need a link to the script you're using to check its examples and descriptions.
Uhhh sorry for long wait, but I could this problem now, thanks anyways

Original thread: https://forums.rpgmakerweb.com/threads/vx-ace-help-with-yanflys-message-system-script.28597/