CGMV Encyclopedia w/ Bestiary

Is there a way to prevent certain enemies from showing up in the encyclopedia?
@Semolous29 it's in the helpfile, add this to the item/enemies

<cgmvencyclopediahide>

and it wont show up.
@Semolous29 it's in the helpfile, add this to the item/enemies

<cgmvencyclopediahide>

and it wont show up.
Something that isn't in the helpfile is how to show images when viewing them in the Encyclopedia. How do I accomplish this?
its all there, when "bestiary" param is true to show the enemies.
this includes the enemy from the SV folder.

in case you use a "custom entry", than you must track those manually.
as custom is manually entered and the note tag wont work.

entries like bestiary, items, armors, etc does that automatically for you.
make sure you have the latest version of the core and the encyclopedia plugin.
its all there, when "bestiary" param is true to show the enemies.
this includes the enemy from the SV folder.

in case you use a "custom entry", than you must track those manually.
as custom is manually entered and the note tag wont work.

entries like bestiary, items, armors, etc does that automatically for you.
make sure you have the latest version of the core and the encyclopedia plugin.
This is what I mean

And this is the enemy that isn't showing up
that is a different part, which I dont know, but make sure filenames dont
contain any spaces (this cause also alot of errors of img not found of %20).

in the plugin it draws either SVbattlers or enemies one (frontview).
if it doesn't do it automatically, than I have no clue.
if you have the latest core above it, maybe turn off all plugins except for
CGMV_Core and CGMV_Encyclopedia and see if it works, if it persist, than
maybe CGMV can give you direction.
that is a different part, which I dont know, but make sure filenames dont
contain any spaces (this cause also alot of errors of img not found of %20).

in the plugin it draws either SVbattlers or enemies one (frontview).
if it doesn't do it automatically, than I have no clue.
if you have the latest core above it, maybe turn off all plugins except for
CGMV_Core and CGMV_Encyclopedia and see if it works, if it persist, than
maybe CGMV can give you direction.
That battler is in my sv_actors folder. I've got a plugin which allows me to use sideview actors as enemies
all I know it has 1 image to draw from, I dont know about indexes.

however, there is a snippet a few post back for animated SV battlers,
I dont know what inpact it has for that one.

if the actor is set to enemy, make sure that file exist in SVenemy folder.
but I cannot help you from there though.

as it doesn't have a loadSVactor in the plugin.
all I know it has 1 image to draw from, I dont know about indexes.

however, there is a snippet a few post back for animated SV battlers,
I dont know what inpact it has for that one.

if the actor is set to enemy, make sure that file exist in SVenemy folder.
but I cannot help you from there though.

as it doesn't have a loadSVactor in the plugin.
Guess I can't use this plugin then. Shame really
you can still use it, it require a modification or addon/patch to make it
possible, but I dont know if cgmv would add it or someone with more
knowledge to add it (this also require the plugin name you use for that)
as it come in handy to do it.
you can still use it, it require a modification or addon/patch to make it
possible, but I dont know if cgmv would add it or someone with more
knowledge to add it (this also require the plugin name you use for that)
as it come in handy to do it.
I found this post on the issue I'm having, and noticed you commented on it. Did you ever find a way to get it to work?
Hello all. I'm wondering if anyone can help me with this strange issue I'm having. When using this plugin with Global Text Codes I'm getting a weird spacing issue that gets larger the more text codes I use. Has this happened to anyone else? (I tried using Control Text, but it was conflicting with some of my other plugins)
Are you certain it's because of these two plugins together? If you use JUST global text codes and put in heaps of text codes, does it still happen?
Are you certain it's because of these two plugins together? If you use JUST global text codes and put in heaps of text codes, does it still happen?
No, it seems to only happen with the encyclopedia. I tried it out in a new project and put text codes where they weren't natively supported with and without the encyclopedia plugin, and just the encyclopedia had the large spacing.

EDIT: Also, does anyone know how to get the enemy added on kill, rather than on battle start?
@godsibb I need to check the code, but if its on battle start, it need to
check on Game_Enemy.prototype.PerformCollapse function when
the enemy dies and add it if not added yet (unless there is also a kill counter,
it adds +1.

but if its not on default to check in the parameter, it needs to modify that
function if you want it (if you know JS).
@ShadowDragon Unfortunately, I don't know JavaScript, but I think I get what you mean. Would you happen to know how and where I add the collapse function?
maybe, I try to look later in it, when I got the time.

Edit:
JavaScript:
CGMV_Encyclopedia.prototype.discoverTroop = function(troopId) {
    if(!CGMV.Encyclopedia.IncludeBestiary) return;
    var troop = $dataTroops[troopId];
    troop.members.forEach(function(member) {
        if ($dataEnemies[member.enemyId] && $gameTroop.members().isDead()) {
            this.processDiscovery('bestiary', member.enemyId);
        }
    }, this);
};

I added the " && $gameTroop.members().isDead() " to it, but I'm not sure if that
will does the trick though, as I use my own, and CGMV have it's own way of checking
it in their function.

but isDead() is also the same as !$gameTroop.members().isAlive() which is also dead.
if it doesn't work, maybe @casper667 might know what check need to be added if he
still supports of guide you on this function.

so check if it works for you, if it crash, report back. you can also try for " $gameEnemy "
instead of " $gameTroop ".

but if it doesn't work, all I know is that this function check for the enemy as discovered.
@ShadowDragon I don't think that will work, since it is called when battle is setup and no enemies should be dead at that point. It would need to be called whenever an enemy is defeated.

You could try as you said the perform collapse function instead:
JavaScript:
var alias_CGMVEncyclopedia_GameEnemy_performCollapse = Game_Enemy.prototype.performCollapse
Game_Enemy.prototype.performCollapse = function() {
    alias_CGMVEncyclopedia_GameEnemy_performCollapse.call(this);
    $cgmv.encyclopediaDiscovery("bestiary", this._enemyId);
};
You'd also want to turn off the automatic tracking for bestiary which will discover enemies on battle start by deleting this code in the plugin:
JavaScript:
var alias_CGMV_Encyclopedia_BattleManager_setup = BattleManager.setup;
BattleManager.setup = function(troopId, canEscape, canLose) {
    alias_CGMV_Encyclopedia_BattleManager_setup.call(this, troopId, canEscape, canLose);
    $cgmv.EncyclopediaDiscoverTroop(troopId);
};

@godsibb The text issue is because the encyclopedia has its own built in word wrap. It works by looking at the width of the word it is drawing and if it would be too long to fit on the line, it resets the x value to 0 and moves down a line before drawing the word. This function was not built with text codes in mind, so what seems to be happening is it is calculating the width of a word while the text codes are still there.

Since I have moved on to MZ, I only support my MV plugins with bug fixes, not new features or compatibility patches anymore.
That worked! Thank you both so much! And understandable about the text issue, thank you for explaining it to me. Maybe I'll try to poke at it when I learn a little more about JS. Thanks again!
Hello! I Have problem whit this plugin.

It seems that the plugin automatically adds non-existing items (weapons / armors) in the slots of the ecyclopedia and I don't know how to fix it, can anyone help me? I'll leave some images below to make it clearer what I mean. Thank you for the help <3

Help 1.png


help 2.png


help 1 b.png


help 2 b.png

Original thread: https://forums.rpgmakerweb.com/threads/cgmv-encyclopedia-w-bestiary.93854/