Level 99 Demi-fiend
It's Window_Help yeah. I guess it is one of those things that are just super finicky to do. Is ok! I notice it happens to almost all pixel/bitmap fonts so it got me thinking what's up with it.
Thanks, I just added it.You could print the arguments passed into draw_text into the console, but that only helps if you can actually reproduce the crash. Just add the line "p args" under "def draw_text(*args)" (no quotes on either) and keep an eye on the console if you get another crash, then you can see for sure what the arguments passed were.
This shouldn't have anything to do with saved games, since Text Cache doesn't touch saves and the cache is kept during runtime only.
@dax - Your version has a different line number than the most recent one I am looking at. Are you using an older version?
I couldn't tell you if this was an intentional decision or your part or not, Mithran, but I figured I'd present this information here and in the Gauges thread, in case anyone needed it or it was an issue on your end. Sorry to be a bother!Go to the last line of the aliased draw_text method (line 130 for me).
The line should be
draw_text_cached(x, y, width, height, text, align) Now above that you write
x -= alignThat's it. That line offsets the extra width that the script adds to text lines.
Mithran used the same line for squeezed text lines, but forgot to add it when the lines are not squeezed.
def draw_text(x,y,w) return unless @cur_val @window.change_color(@window.system_color) @window.draw_text(x, y, 30, @window.line_height, @vocab) @window.change_color(@window.normal_color) @window.change_color(@window.crisis_color) if @cur_val < @max_val / 4 xr = x + w if w < 96 @window.draw_text(xr - 40, y, 42, @window.line_height, @cur_val.to_i, 2) else @window.draw_text(xr - 92, y, 42, @window.line_height, @cur_val.to_i, 2) @window.change_color(@window.normal_color) @window.draw_text(xr - 52, y, 12, @window.line_height, "/", 2) @window.draw_text(xr - 42, y, 42, @window.line_height, @max_val, 2) end end
@window.draw_text(xr - 40, y, 42, @window.line_height, @cur_val.to_i, 2)
return @cache[key] = empty_bitmap if (rect.height == 0 || rect.width == 0)
return @cache[fontary + [char]] = empty_bitmap if (rect.height == 0 || rect.width == 0)