Semolous29

Veteran
Veteran
Joined
Feb 13, 2017
Messages
108
Reaction score
9
First Language
English
Primarily Uses
RMVXA
Is there a way to prevent certain enemies from showing up in the encyclopedia?
 

Semolous29

Veteran
Veteran
Joined
Feb 13, 2017
Messages
108
Reaction score
9
First Language
English
Primarily Uses
RMVXA
@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?
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,501
Reaction score
3,012
First Language
Dutch
Primarily Uses
RMMV
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.
 

Semolous29

Veteran
Veteran
Joined
Feb 13, 2017
Messages
108
Reaction score
9
First Language
English
Primarily Uses
RMVXA
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
 

Attachments

  • West Sidton Soldier.png
    West Sidton Soldier.png
    45.2 KB · Views: 2

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,501
Reaction score
3,012
First Language
Dutch
Primarily Uses
RMMV
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.
 

Semolous29

Veteran
Veteran
Joined
Feb 13, 2017
Messages
108
Reaction score
9
First Language
English
Primarily Uses
RMVXA
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
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,501
Reaction score
3,012
First Language
Dutch
Primarily Uses
RMMV
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.
 

Semolous29

Veteran
Veteran
Joined
Feb 13, 2017
Messages
108
Reaction score
9
First Language
English
Primarily Uses
RMVXA
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
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,501
Reaction score
3,012
First Language
Dutch
Primarily Uses
RMMV
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.
 

Semolous29

Veteran
Veteran
Joined
Feb 13, 2017
Messages
108
Reaction score
9
First Language
English
Primarily Uses
RMVXA
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?
 

godsibb

Professional Devil Survivor
Member
Joined
Feb 22, 2018
Messages
4
Reaction score
2
First Language
English
Primarily Uses
RMMV
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)
 

Attachments

  • Screenshot 2023-04-04 215118.png
    Screenshot 2023-04-04 215118.png
    8.4 KB · Views: 6

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
45,986
Reaction score
16,774
First Language
English
Primarily Uses
RMMV
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?
 

godsibb

Professional Devil Survivor
Member
Joined
Feb 22, 2018
Messages
4
Reaction score
2
First Language
English
Primarily Uses
RMMV
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?
 
Last edited:

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,501
Reaction score
3,012
First Language
Dutch
Primarily Uses
RMMV
@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).
 

godsibb

Professional Devil Survivor
Member
Joined
Feb 22, 2018
Messages
4
Reaction score
2
First Language
English
Primarily Uses
RMMV
@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?
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,501
Reaction score
3,012
First Language
Dutch
Primarily Uses
RMMV
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.
 
Last edited:

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
457
Reaction score
570
First Language
English
Primarily Uses
RMMZ
@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.
 

godsibb

Professional Devil Survivor
Member
Joined
Feb 22, 2018
Messages
4
Reaction score
2
First Language
English
Primarily Uses
RMMV
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!
 

Rpgmaster1234

Warper
Member
Joined
May 18, 2019
Messages
2
Reaction score
0
First Language
Italian
Primarily Uses
RMVXA
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
 

Latest Threads

Latest Posts

Latest Profile Posts

When you're making major progress, but have to stop to go to work.
Streaming making some Parallax maps if anyone wants to hang :)

Still alive, still kicking, still working on M
Just busy irl :)
Okay so... resetting BIOS to default settings causes a hard drive to take 9999 damage and become resistant to phoenix downs.... and pleads...
jwS7gT.png


Continuing our countdown with Capsule Monster #15 Nose! This is the exact kind of stupid jokes you can love and expect in CapMon: Tactics!

In other news I wanted to mention that my game will be covered on the RarelyTypicalPodcast!

https://www.youtube.com/channel/UCvCl74Ayj_B6kMUoP7oapNQ

Forum statistics

Threads
131,475
Messages
1,220,143
Members
173,229
Latest member
ZecaVn
Top