Help with Yanflys Ace Message System

Hi all.

Basically my problem is with message boxes with more than 4 lines of text.

In Yanflys system (which you can find here: http://yanflychannel.wordpress.com/rmvxa/core-scripts/ace-message-system/ ) it's possible to set a message box to more than 4 lines.

Example here: lines1.gif

However when you change the background setting for the text box to "Dim Background" the textbox background doesn't cover all of the lines.

Example here:lines2.gif

So does anyone know if there's some kind of flag I'm forgetting to set or if someone else has already solved this problem? (I've tried looking, but I didn't find anything.)

 - Galdric
maybe because the system was meant to be used with windows, and using dim background I think does not create a window background for the text, so the system don't catch it...
Guess Yanfly forgot about that.
Actually, it does create a window and Yanfly did, in fact, script it, but it doesn't seem to work.  I believe it's a bug that's never been fixed.  Not sure though.  Maybe someone can take a look at it:

Original:

#-------------------------------------------------------------------------- # * Create Background Bitmap #-------------------------------------------------------------------------- def create_back_bitmap @back_bitmap = Bitmap.new(width, height) rect1 = Rect.new(0, 0, width, 12) rect2 = Rect.new(0, 12, width, height - 24) rect3 = Rect.new(0, height - 12, width, 12) @back_bitmap.gradient_fill_rect(rect1, back_color2, back_color1, true) @back_bitmap.fill_rect(rect2, back_color1) @back_bitmap.gradient_fill_rect(rect3, back_color1, back_color2, true) endYanfly Message Engine:

Code:
  #--------------------------------------------------------------------------  # overwrite method: create_back_bitmap  #--------------------------------------------------------------------------  def create_back_bitmap    @back_bitmap = Bitmap.new(width, height)    rect1 = Rect.new(0, 0, Graphics.width, 12)    rect2 = Rect.new(0, 12, Graphics.width, fitting_height(4) - 24)    rect3 = Rect.new(0, fitting_height(4) - 12, Graphics.width, 12)    @back_bitmap.gradient_fill_rect(rect1, back_color2, back_color1, true)    @back_bitmap.fill_rect(rect2, back_color1)    @back_bitmap.gradient_fill_rect(rect3, back_color1, back_color2, true)  end
fitting_height(4) - 24There's your problem.Yanfly's hardcoded it to 4, because the default window only supports 4 lines.
Right.... I think this needs someone that really knows what they're doing to solve.

I've poked around a bit (mainly by outputting stuff to the console) and part of the problem seems to be that create_back_bitmap appears to only be called when you start a new game, or load up a game.

I'm going to try some stuff... but it probably wont work 😛
Yep, I don't understand Ruby at all.

Apparently the dim background is a sprite that created from a bitmap which itself is made  when you create a new game or load an old one, so to change it I think you need to call create_back_bitmap and create_back_sprite (after you've changed create_back_bitmap to use window_height instead of height and fitting_height(4)).

The only problem is that simpily putting those 2 calls into the beginning of the adjust_message_window_size function (is that what they're called in ruby?), and on changing to a new text box it will be a solid black instead of a transparent black for up to a second before it suddenly turns transparent.

:|

Any RPGVXA scripters know why? Or where might be a better place to put those 2 calls? (I'm currently wondering if that instant of blackness is just due to the time it takes to actually create the new background sprite.)

create_back_sprite can be found in Window_Message in the Windows section of the scripts for those curious.

Edit: put down Fiber_main when I meant adjust_message_window_size.

Another Edit: This is why I shouldn't write posts when I'm tired. Just removing a bit that could be seen as insulting.

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