Bestiary Logbook v1.8 - updated 1/21/2014
RGSS3 Scripts (RMVX Ace)I think I finally found the issue.
Using Mithran GOBJ script I was able to see the memory leaks.
Venka Bestiary script line 1789 or 1802 def dispose_instructions
change --- return if @info_instructions
into ------- return unless @info_instructions
*update
Another fix. the one above is still required.
In def terminate on line 2102 or 2111 or somewhere near there
move the dispose_enemy_image to just below super.
Ruby:
def terminate
super
dispose_enemy_image
fadeout_all(60)
@map_bgm.replay
end
Line 2002 add a number at the end. e.g. - 100
Or you can remove the #enemy_bg.height).to_i
part (don't forget the starting bracket.
But then the picture of the enemy will be behind the window.
Nono, basically what I am talking about is I want the space between the lines to decrease so i can fit like 8 lines of text in that box.
I just don't know what's up with the draw_text_ex overwrite the author made and all
I just don't know what's up with the draw_text_ex overwrite the author made and all
That is not a controllable option from what I know, but you can adjust other things.
What you are referring to should be the line height. By default it's set to 24 if you make it smaller it will use the number provided or the font size.
I do not know of a way to make the lines closer together that what the font size sets it to. Even if you set the line height to 0 it will use the font size and there will always be a small space to keep the lines apart.
Try this and play with the numbers. I found that anything smaller than 14 for the font size became unreadable.
Ruby:
module R2_Bestiary_Help_Desc
LINE = 12 # uses biggest size ( line height or font size ) default 24
PAD = 4 # space between window border and text, default 12
FONT_SIZE = 16 # size of font for text in description window
end
class Window_BestiaryHelp < Window_Base
def set_description(enemy)
contents.clear
create_contents
get_description_text(enemy)
text = get_description_text(enemy)
if Venka::Bestiary::Use_Wordwrapper
wrapping = @wordwrap
@wordwrap = true
draw_text_des_ex(0, 0, text.gsub(/[|]/, ""))
@wordwrap = wrapping
else
draw_text_des_ex(0, 0, text.gsub(/[|]/, "\n"))
end
end
def line_height
return R2_Bestiary_Help_Desc::LINE
end
def standard_padding
return R2_Bestiary_Help_Desc::PAD
end
def draw_text_des_ex(x, y, text)
set_bestiary_font(:description)
text = convert_escape_characters(text)
contents.font.size = R2_Bestiary_Help_Desc::FONT_SIZE
pos = {:x => x, :y => y, :new_x => x, :height => calc_line_height(text)}
process_character(text.slice!(0, 1), text, pos) until text.empty?
end
end
You sir, are a real hero, thank you a lot for the snippets, now I can flesh out better my game's world with as much lore as I want.
Why don't you make it open a larger window instead? There you'd get plenty of space to display all the lore you can think off.
The line breaks don't seem to be working. I put in the | as in the examples, but nothing happened.
Turns out the issue was that I hadn't set "Use_Wordwrapper" to false. As was stated earlier in the forum. Sorry, big egg on my face there.
Original thread: https://forums.rpgmakerweb.com/threads/bestiary-logbook-v1-8-updated-1-21-2014.32231/