Bestiary Logbook v1.8 - updated 1/21/2014

I found the problem. I made a copy of my project after zipping up a backup, and my first idea was deleting every bit of Theo's scripts. The actor quotes pops up perfectly one after the other. So the problem is indeed Theo's script not working with this Bestiary Script.

Second idea was to merely delete the patch Theo posted on this very page, and the window didn't pop up at all.

Thirdly I opened up the backup, made sure everything was still there from Theo's scripts, his and your patches (the patch you told me was the right one, it works without Theo's scripts in the mix), and the actor quotes shows up perfectly. I was confused until I looked at the enemy note tag, which was this.

Spoiler
1663530653322.png

So it appears your patch did indeed fix my problem, although using the original quote method.

But now I am back to my original problem. Now we can safely say that, when using the quote about Eric and the Slime, it really does work as it should, but whenever I change the text, and ONLY the text, and keep in mind I scanned the enemy up to ten times, only the first quote is ever shown.

So the problem is not just Theo's scripts working with the Bestiary, it's changing the text from Eric's Slime comments to anything else. Is there something in this Bestiary Script that we're missing here? I know it's not the Class ID part of the script, because my project isn't using those at all and both quotes are showing until I change them from Eric's default texts.

Spoiler: Where both quotes do not show up, using old method
1663531872514.png
Spoiler: Where both quotes do not show up, using Roninator2's method
1663531992909.png
Spoiler: The only thing when both quotes shows up, using Eric's Text
1663532121489.png

I went ahead and made a new copy for you to run tests on. If Theo wasn't retired from RPG Maker I'd ask him for another look.
Sonic Copy 2.0
I went ahead and made a new copy for you to run tests on. If Theo wasn't retired from RPG Maker I'd ask him for another look.
We should take the discussing into a PM instead of creating more entries here.
As suggested the first step is to make the menu access false.
Menu_Access = true

Second is to use a menu script such as yanfly's to add a custom command.
This requires several parts so ask and we can assist.
Ruby:
    CUSTOM_COMMANDS ={
    # :command => ["Display Name", EnableSwitch, ShowSwitch, Handler Method],
      :debug   => [       "Debug",            0,          0, :command_debug],
      :shop    => [        "Shop",           12,          0,  :command_shop],
      :gogototori => ["Synthesis",            0,        0,  :command_totori],
      :bestiary => ["Bestiary",            10,        10,  :command_bestiary],
    } # Do not remove this.
Ruby:
  #--------------------------------------------------------------------------
  # new method: command_debug
  #--------------------------------------------------------------------------
  def command_debug
    SceneManager.call(Scene_Debug)
  end
 
  #--------------------------------------------------------------------------
  # new method: command_bestiary
  #--------------------------------------------------------------------------
  def command_bestiary
    SceneManager.call(Scene_Bestiary)
  end
  #--------------------------------------------------------------------------
  # new method: command_shop
  #--------------------------------------------------------------------------
  def command_shop
    goods = []
    SceneManager.call(Scene_Shop)
    SceneManager.scene.prepare(goods, false)
  end
 
  #--------------------------------------------------------------------------
  # new method: command_totori
  #--------------------------------------------------------------------------
  def command_totori
    return unless $imported['KRX-AlchemicSynthesis']
    SceneManager.call(Scene_Alchemy)
  end

...Is there a third step?
...Is there a third step?
No if you did all of this correctly then you will have the command on the menu.
If it's not working, then what scripts do you have below?
Something may be overwriting the steps listed.
No if you did all of this correctly then you will have the command on the menu.
If it's not working, then what scripts do you have below?
Something may be overwriting the steps listed.
It isn't there. Also, it's not just supposed to be on the menu. It's supposed to appear on the menu after certain conditions have been fulfilled in-game.
It's supposed to appear on the menu after certain conditions have been fulfilled in-game.
That's also where yanfly's ace menu engine comes in. The section I mentioned (that you quoted me) has a switch option. Just specify a switch there and turn it on when you want to in game.
That's also where yanfly's ace menu engine comes in. The section I mentioned (that you quoted me) has a switch option. Just specify a switch there and turn it on when you want to in game.
I tried setting both EnableSwitch and ShowSwitch to 1, but it didn't appear when the first switch was enabled. Even when I set them to 0, it still didn't appear.
That's also where yanfly's ace menu engine comes in. The section I mentioned (that you quoted me) has a switch option. Just specify a switch there and turn it on when you want to in game.
Actually, I think I figured it out.
Ruby:
COMMANDS =[
      :item,         # Opens up the item menu. Default menu item.
      :skill,        # Opens up the skill menu. Default menu item.
      :equip,        # Opens up the equip menu. Default menu item.
      :class,        # Requires YEA - Class System.
      :status,       # Opens up the status menu. Default menu item.
      :formation,    # Lets player manage party. Default menu item.
      :bestiary,       # Opens up the status menu. Default menu item.
    # :event_1,      # Launches Common Event 1. Common Event Command.
    # :event_2,      # Launches Common Event 2. Common Event Command.
    # :debug,        # Opens up debug menu. Custom Command.
    # :shop,         # Opens up a shop to pawn items. Custom Command.
      :save,         # Opens up the save menu. Default menu item.
      :game_end,     # Opens up the shutdown menu. Default menu item.
    ] # Do not remove this.
I am having an issue with this script. It seems like if you back out of the beastary to quickly it will cause the game to close. No error message, just close. I am using the Yanfly ace engine. Can anything be done to prevent these closings?
back out of the beastary to quickly
What do you mean by that?
As soon as you enter and cancel it quits?
Does this happen in a blank project with just this script?
What do you mean by that?
As soon as you enter and cancel it quits?
Does this happen in a blank project with just this script?

If I open the menu, go to the Beastiary, hit escape or X to go back to the menu, the game shuts down sometimes. I thought originally it was because I was backing out to quickly, but upon further testing time doesn't seem to be a factor. It's About a 50/50 chance.There is no error code, it just shuts off. It does not happen with a blank protect or with the demo.
So we need to see your script list, or if you are willing share a demo with me to look at.
probably have something conflicting. it will be hard to find without that.
So we need to see your script list, or if you are willing share a demo with me to look at.
probably have something conflicting. it will be hard to find without that.
No problem I don't have much of any game at the moment just been gathering scripts and resources and trying them out. I will DM you a demo later today once in free.
Are you sure it didn't fail to dispose a non existing bitmap (image)?
Are you sure it didn't fail to dispose a non existing bitmap (image)?
I added the bug fix scripts that came with the demo. So I don't believe that is the issue. Unless you refer to something else.
Scratch all that, whatever it was it's still broken.
Since this topic is trending, anyone could make this scrip also show the extra parameters like Accuracy, Critical, Evasion, etc?
make this scrip also show the extra parameters like Accuracy, Critical, Evasion, etc?
Spoiler: Extra stats
Ruby:
module Venka; module Bestiary

  Extra_Stats_Text   = "X Param"             # Header text for basic stats
  Sub_Stats_Text     = "S Param"             # Header text for basic stats
 
  #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  # - X Stat Settings -
  #----------------------------------------------------------------------------
  # Set the text and/or Icon used for extra stats (Cri, , Attack, etc)
  # You can set either the text or the icon to nil to omit them.
  #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  Extra_Stats = [] #["Text", IconIndex]
  Extra_Stats[0] = ["Hit",  122]  # Hit Chance
  Extra_Stats[1] = ["Eva",  112]  # Evasion
  Extra_Stats[2] = ["Cri",  116]  # Critical chance
  Extra_Stats[3] = ["Cev",  161]  # Critical evasion
  Extra_Stats[4] = ["Mev",  113]  # Magical Evasion
  Extra_Stats[5] = ["Mrf",   15]  # Magical Reflection
  Extra_Stats[6] = ["Cnt",   12]  # Counter
  Extra_Stats[7] = ["Hrg",  202]  # Health Regeneration
  Extra_Stats[8] = ["Mrg",  202]  # Magic Regeneration
  Extra_Stats[9] = ["Trg",  202]  # TP Regeneration

  #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  # - S Stat Settings -
  #----------------------------------------------------------------------------
  # Set the text and/or Icon used for extra stats (Cri, , Attack, etc)
  # You can set either the text or the icon to nil to omit them.
  #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  Sub_Stats = [] #["Text", IconIndex]
  Sub_Stats[0] = ["Trg",  122]  # Target Rate
  Sub_Stats[1] = ["Grd",  112]  # Guard Rate
  Sub_Stats[2] = ["Rec",  116]  # Recovery Rate
  Sub_Stats[3] = ["Pha",  161]  # Pharmacology
  Sub_Stats[4] = ["Mcr",  113]  # Magic Cost Rate
  Sub_Stats[5] = ["Tcr",   15]  # TP Cost Rate
  Sub_Stats[6] = ["Pdr",   12]  # Physical Damage Rate
  Sub_Stats[7] = ["Mdr",  202]  # Magic Damage Rate
  Sub_Stats[8] = ["Fdr",  202]  # Floor Damage Rate
  Sub_Stats[9] = ["Exr",  202]  # Experience Rate

  end
end

class Window_BestiaryStats < Window_Base
  #----------------------------------------------------------------------------
  # ○ Overwrite method: draw_basic_stats
  #----------------------------------------------------------------------------
  def draw_basic_stats
    elements = Venka::Bestiary::Elements.size
    states = Venka::Bestiary::States.size
    # Get the total text lines to show
    height = (elements / 2 + elements % 2) + (states / 2 + states % 2) + 22
    height += 6 if Venka::Bestiary::Show_Debuff_Info
    determine_window_height(height)
    draw_line(5)
    @y = 12
    draw_main_stats
    draw_line(@y + 5)
    @y += 12
    get_revealed_resists
    draw_elements
    draw_line(@y + 5)
    @y += 12
    draw_states
    draw_line(@y + 5)
    @y += 12
    draw_extra_stats
    draw_line(@y + 25)
    @y += 30
    draw_sub_stats
    return unless Venka::Bestiary::Show_Debuff_Info
    draw_line(@y + 25)
    @y += 30
    draw_debuffs
  end
  #----------------------------------------------------------------------------
  # ○ new method: draw_main_stats
  #----------------------------------------------------------------------------
  def draw_extra_stats
    set_bestiary_font(:header_font)
    draw_text(0, @y, contents.width, font_height, Venka::Bestiary::Extra_Stats_Text, 1)
    @y += font_height
    10.times {|stat| draw_x_stat(stat, :stat)}
    @y += info_rect(0).height * 4
  end
  #----------------------------------------------------------------------------
  # ○ new method: draw_main_stats
  #----------------------------------------------------------------------------
  def draw_sub_stats
    set_bestiary_font(:header_font)
    draw_text(0, @y, contents.width, font_height, Venka::Bestiary::Sub_Stats_Text, 1)
    @y += font_height
    10.times {|stat| draw_s_stat(stat, :stat)}
    @y += info_rect(0).height * 4
  end
  #----------------------------------------------------------------------------
  # ○ new method: draw_x_stat
  #----------------------------------------------------------------------------
  def draw_x_stat(stat, stat_type)
    rect = info_rect(stat)
    rect.y += @y
    stat_info = Venka::Bestiary::Extra_Stats[stat]
    if stat_info[1]
      draw_icon(stat_info[1], rect.x, rect.y)
      rect.x += 25;            rect.width -= 25
    end
    if stat_info[0]
      set_bestiary_font(:stat_name)
      draw_text(rect, stat_info[0])
      text_width = text_size(stat_info[0]).width + 5
      rect.x += text_width;    rect.width -= text_width
    end
    set_bestiary_font(:stats_font)
    text = Venka::Bestiary::Unknown_Stat
    $game_party.bestiary.each do |entry|
      next unless entry.enemy_id == @enemy.shown_id
      if stat_type == :stat && (entry.scanned ||
            entry.kills >= Venka::Bestiary::Show_BaseStats)
        text = Game_Enemy.new(0, @enemy.shown_id).xparam(stat)
      elsif stat_type == :debuff && (entry.scanned ||
            entry.kills >= Venka::Bestiary::Show_DebuffStats)
        rate = Game_Enemy.new(0, @enemy.shown_id).debuff_rate(stat)
        text = get_resist_info(stat, rate)
      end
    end
    draw_text(rect, text, 2)
  end
  #----------------------------------------------------------------------------
  # ○ new method: draw_s_stat
  #----------------------------------------------------------------------------
  def draw_s_stat(stat, stat_type)
    rect = info_rect(stat)
    rect.y += @y
    stat_info = Venka::Bestiary::Sub_Stats[stat]
    if stat_info[1]
      draw_icon(stat_info[1], rect.x, rect.y)
      rect.x += 25;            rect.width -= 25
    end
    if stat_info[0]
      set_bestiary_font(:stat_name)
      draw_text(rect, stat_info[0])
      text_width = text_size(stat_info[0]).width + 5
      rect.x += text_width;    rect.width -= text_width
    end
    set_bestiary_font(:stats_font)
    text = Venka::Bestiary::Unknown_Stat
    $game_party.bestiary.each do |entry|
      next unless entry.enemy_id == @enemy.shown_id
      if stat_type == :stat && (entry.scanned ||
            entry.kills >= Venka::Bestiary::Show_BaseStats)
        text = Game_Enemy.new(0, @enemy.shown_id).sparam(stat)
      elsif stat_type == :debuff && (entry.scanned ||
            entry.kills >= Venka::Bestiary::Show_DebuffStats)
        rate = Game_Enemy.new(0, @enemy.shown_id).debuff_rate(stat)
        text = get_resist_info(stat, rate)
      end
    end
    draw_text(rect, text, 2)
  end
end
Spoiler: Extra stats
Ruby:
module Venka; module Bestiary

  Extra_Stats_Text   = "X Param"             # Header text for basic stats
  Sub_Stats_Text     = "S Param"             # Header text for basic stats
 
  #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  # - X Stat Settings -
  #----------------------------------------------------------------------------
  # Set the text and/or Icon used for extra stats (Cri, , Attack, etc)
  # You can set either the text or the icon to nil to omit them.
  #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  Extra_Stats = [] #["Text", IconIndex]
  Extra_Stats[0] = ["Hit",  122]  # Hit Chance
  Extra_Stats[1] = ["Eva",  112]  # Evasion
  Extra_Stats[2] = ["Cri",  116]  # Critical chance
  Extra_Stats[3] = ["Cev",  161]  # Critical evasion
  Extra_Stats[4] = ["Mev",  113]  # Magical Evasion
  Extra_Stats[5] = ["Mrf",   15]  # Magical Reflection
  Extra_Stats[6] = ["Cnt",   12]  # Counter
  Extra_Stats[7] = ["Hrg",  202]  # Health Regeneration
  Extra_Stats[8] = ["Mrg",  202]  # Magic Regeneration
  Extra_Stats[9] = ["Trg",  202]  # TP Regeneration

  #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  # - S Stat Settings -
  #----------------------------------------------------------------------------
  # Set the text and/or Icon used for extra stats (Cri, , Attack, etc)
  # You can set either the text or the icon to nil to omit them.
  #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  Sub_Stats = [] #["Text", IconIndex]
  Sub_Stats[0] = ["Trg",  122]  # Target Rate
  Sub_Stats[1] = ["Grd",  112]  # Guard Rate
  Sub_Stats[2] = ["Rec",  116]  # Recovery Rate
  Sub_Stats[3] = ["Pha",  161]  # Pharmacology
  Sub_Stats[4] = ["Mcr",  113]  # Magic Cost Rate
  Sub_Stats[5] = ["Tcr",   15]  # TP Cost Rate
  Sub_Stats[6] = ["Pdr",   12]  # Physical Damage Rate
  Sub_Stats[7] = ["Mdr",  202]  # Magic Damage Rate
  Sub_Stats[8] = ["Fdr",  202]  # Floor Damage Rate
  Sub_Stats[9] = ["Exr",  202]  # Experience Rate

  end
end

class Window_BestiaryStats < Window_Base
  #----------------------------------------------------------------------------
  # ○ Overwrite method: draw_basic_stats
  #----------------------------------------------------------------------------
  def draw_basic_stats
    elements = Venka::Bestiary::Elements.size
    states = Venka::Bestiary::States.size
    # Get the total text lines to show
    height = (elements / 2 + elements % 2) + (states / 2 + states % 2) + 22
    height += 6 if Venka::Bestiary::Show_Debuff_Info
    determine_window_height(height)
    draw_line(5)
    @y = 12
    draw_main_stats
    draw_line(@y + 5)
    @y += 12
    get_revealed_resists
    draw_elements
    draw_line(@y + 5)
    @y += 12
    draw_states
    draw_line(@y + 5)
    @y += 12
    draw_extra_stats
    draw_line(@y + 25)
    @y += 30
    draw_sub_stats
    return unless Venka::Bestiary::Show_Debuff_Info
    draw_line(@y + 25)
    @y += 30
    draw_debuffs
  end
  #----------------------------------------------------------------------------
  # ○ new method: draw_main_stats
  #----------------------------------------------------------------------------
  def draw_extra_stats
    set_bestiary_font(:header_font)
    draw_text(0, @y, contents.width, font_height, Venka::Bestiary::Extra_Stats_Text, 1)
    @y += font_height
    10.times {|stat| draw_x_stat(stat, :stat)}
    @y += info_rect(0).height * 4
  end
  #----------------------------------------------------------------------------
  # ○ new method: draw_main_stats
  #----------------------------------------------------------------------------
  def draw_sub_stats
    set_bestiary_font(:header_font)
    draw_text(0, @y, contents.width, font_height, Venka::Bestiary::Sub_Stats_Text, 1)
    @y += font_height
    10.times {|stat| draw_s_stat(stat, :stat)}
    @y += info_rect(0).height * 4
  end
  #----------------------------------------------------------------------------
  # ○ new method: draw_x_stat
  #----------------------------------------------------------------------------
  def draw_x_stat(stat, stat_type)
    rect = info_rect(stat)
    rect.y += @y
    stat_info = Venka::Bestiary::Extra_Stats[stat]
    if stat_info[1]
      draw_icon(stat_info[1], rect.x, rect.y)
      rect.x += 25;            rect.width -= 25
    end
    if stat_info[0]
      set_bestiary_font(:stat_name)
      draw_text(rect, stat_info[0])
      text_width = text_size(stat_info[0]).width + 5
      rect.x += text_width;    rect.width -= text_width
    end
    set_bestiary_font(:stats_font)
    text = Venka::Bestiary::Unknown_Stat
    $game_party.bestiary.each do |entry|
      next unless entry.enemy_id == @enemy.shown_id
      if stat_type == :stat && (entry.scanned ||
            entry.kills >= Venka::Bestiary::Show_BaseStats)
        text = Game_Enemy.new(0, @enemy.shown_id).xparam(stat)
      elsif stat_type == :debuff && (entry.scanned ||
            entry.kills >= Venka::Bestiary::Show_DebuffStats)
        rate = Game_Enemy.new(0, @enemy.shown_id).debuff_rate(stat)
        text = get_resist_info(stat, rate)
      end
    end
    draw_text(rect, text, 2)
  end
  #----------------------------------------------------------------------------
  # ○ new method: draw_s_stat
  #----------------------------------------------------------------------------
  def draw_s_stat(stat, stat_type)
    rect = info_rect(stat)
    rect.y += @y
    stat_info = Venka::Bestiary::Sub_Stats[stat]
    if stat_info[1]
      draw_icon(stat_info[1], rect.x, rect.y)
      rect.x += 25;            rect.width -= 25
    end
    if stat_info[0]
      set_bestiary_font(:stat_name)
      draw_text(rect, stat_info[0])
      text_width = text_size(stat_info[0]).width + 5
      rect.x += text_width;    rect.width -= text_width
    end
    set_bestiary_font(:stats_font)
    text = Venka::Bestiary::Unknown_Stat
    $game_party.bestiary.each do |entry|
      next unless entry.enemy_id == @enemy.shown_id
      if stat_type == :stat && (entry.scanned ||
            entry.kills >= Venka::Bestiary::Show_BaseStats)
        text = Game_Enemy.new(0, @enemy.shown_id).sparam(stat)
      elsif stat_type == :debuff && (entry.scanned ||
            entry.kills >= Venka::Bestiary::Show_DebuffStats)
        rate = Game_Enemy.new(0, @enemy.shown_id).debuff_rate(stat)
        text = get_resist_info(stat, rate)
      end
    end
    draw_text(rect, text, 2)
  end
end
Not all heroes wear capes!

To also contribute, I'm posting here 2 snippets (not made by me) for other users of this script:
This first one is made by Holy87, it enables the use of switches to hide the category's names unless said switch is ON. To use it, place it under the main script and it's add-ons, then on the category settings, place this
Code:
:sw => 100 # Switch's ID
Below the bg_wall setting
Spoiler
Ruby:
class Window_BestiaryCategory < Window_Command
  def make_command_list
    @categories.each{|key, info| add_command(get_command_name(info), key)}
  end

  def get_command_name(info)
    if info[:sw] and !$game_switches[info[:sw]]
      '????'
    else
      info[:name]
    end
  end
end

This one is written by vFoggy and fixes incompability between this script and MogHunter's victory results script. Simple plug and play.
Spoiler
Ruby:
# Compatibility fix for Venka's Bestiary v1.8 and MOG - Battle Result (2.0)
# scripts.
# Fixes incompatibility issue that resulted in kills being counted 3 times each.
#
# -------------------
# Script by: vFoggy

class Game_Troop < Game_Unit
  def on_battle_start
    super
    @added_count = false
  end
 
  alias fog_aec add_encounter_count
  def add_encounter_count
    if not @added_count
      fog_aec
      @added_count = true
    end
  end
end
Now if possible for me to request something, would be possible to increase the amount of lines the description can have? I want to write a loooooooooot, even decreased the font size to measly 11 pixels, but it still only draws 3 lines, I broke my head trying to make it work, but my coding knowledge in GML didn't seem to translate here so I gave up. It's in a place that redefines the draw_text_ex function, when I hardcoded a value to 8 it did something but still had weird af spacing issues.
Also, thank you very much for the showing parameters ronin
would be possible to increase the amount of lines the description can have? I want to write a loooooooooot, even decreased the font size to measly 11 pixels, but it still only draws 3 lines, I
It's also in the addon I wrote.
I learned this part because I had to find the right amount to get all the lines to show up.
By default it is set to + 10, I changed it to + 22 as when I did the spacing for the lines (Y += 30) it needed more to fit everything in.

So in the draw_basic_stats method there is a height = section
At the end of that is a number. There is no well designed way of specifying how much height it needs to have, you just have to increase the number and go look.

Original thread: https://forums.rpgmakerweb.com/threads/bestiary-logbook-v1-8-updated-1-21-2014.32231/