CGMV Encyclopedia w/ Bestiary

@Semolous29 You will need to open the dev tools console for the full error trace before I can see what is happening. You can do this by pressing F8 in game, and then at the top of the window that opens up make sure you have **console** selected.
This is what happens when I try to get into a battle
TypeError: undefined is not a function
at CGMV_Encyclopedia.processDiscovery (file:///G:/My%20Drive/Chromethean%20Productions/War%20In%20The%20Heavens/Th…scension%20-%20Remastered%20Edition/js/plugins/CGMV_Encyclopedia.js:792:75)
at CGMV_Encyclopedia.<anonymous> (file:///G:/My%20Drive/Chromethean%20Productions/War%20In%20The%20Heavens/Th…Ascension%20-%20Remastered%20Edition/js/plugins/CGMV_Encyclopedia.js:861:9)
at Array.forEach (native)
at CGMV_Encyclopedia.discoverTroop (file:///G:/My%20Drive/Chromethean%20Productions/War%20In%20The%20Heavens/Th…scension%20-%20Remastered%20Edition/js/plugins/CGMV_Encyclopedia.js:859:16)
at CGMV_Core.EncyclopediaDiscoverTroop (file:///G:/My%20Drive/Chromethean%20Productions/War%20In%20The%20Heavens/Th…scension%20-%20Remastered%20Edition/js/plugins/CGMV_Encyclopedia.js:980:21)
at Function.BattleManager.setup (file:///G:/My%20Drive/Chromethean%20Productions/War%20In%20The%20Heavens/Th…scension%20-%20Remastered%20Edition/js/plugins/CGMV_Encyclopedia.js:2345:8)
at Game_Interpreter.command301 (file:///G:/My%20Drive/Chromethean%20Productions/War%20In%20The%20Heavens/Th…cles%20-%20Ascension%20-%20Remastered%20Edition/js/rpg_objects.js:10133:27)
at Game_Interpreter.executeCommand (file:///G:/My%20Drive/Chromethean%20Productions/War%20In%20The%20Heavens/Th…icles%20-%20Ascension%20-%20Remastered%20Edition/js/rpg_objects.js:8930:34)
at Game_Interpreter.update (file:///G:/My%20Drive/Chromethean%20Productions/War%20In%20The%20Heavens/Th…icles%20-%20Ascension%20-%20Remastered%20Edition/js/rpg_objects.js:8838:19)
at Game_Map.updateInterpreter (file:///G:/My%20Drive/Chromethean%20Productions/War%20In%20The%20Heavens/Th…icles%20-%20Ascension%20-%20Remastered%20Edition/js/rpg_objects.js:6115:27)

And this what happens whenever I attempt to get an item

TypeError: undefined is not a function
at CGMV_Encyclopedia.processDiscovery (/G:/My%20Drive/Chromethean%20Productions/War%20In%20The%20Heavens/The%20Ino…20Ascension%20-%20Remastered%20Edition/js/plugins/CGMV_Encyclopedia.js:792)
at CGMV_Encyclopedia.discoverItem (/G:/My%20Drive/Chromethean%20Productions/War%20In%20The%20Heavens/The%20Ino…20Ascension%20-%20Remastered%20Edition/js/plugins/CGMV_Encyclopedia.js:871)
at CGMV_Core.EncyclopediaDiscoverItem (/G:/My%20Drive/Chromethean%20Productions/War%20In%20The%20Heavens/The%20Ino…20Ascension%20-%20Remastered%20Edition/js/plugins/CGMV_Encyclopedia.js:986)
at Game_Party.gainItem (/G:/My%20Drive/Chromethean%20Productions/War%20In%20The%20Heavens/The%20Ino…0Ascension%20-%20Remastered%20Edition/js/plugins/CGMV_Encyclopedia.js:2359)
at Game_Interpreter.command126 (rpg_objects.js:9592)
at Game_Interpreter.executeCommand (rpg_objects.js:8930)
at Game_Interpreter.update (rpg_objects.js:8838)
at Game_Map.updateInterpreter (rpg_objects.js:6115)
at Game_Map.update (rpg_objects.js:6022)
at Scene_Map.updateMain (rpg_scenes.js:608)
at Scene_Map.updateMainMultiply (rpg_scenes.js:600)
at Scene_Map.update (rpg_scenes.js:589)
@Semolous29 It is a little weird since I am not getting that error in my test project when gaining items. Could you try in a blank project with just the CGMV plugins enabled, or disabling all other non-CGMV plugins to rule out a plugin conflict?
@Semolous29 It is a little weird since I am not getting that error in my test project when gaining items. Could you try in a blank project with just the CGMV plugins enabled, or disabling all other non-CGMV plugins to rule out a plugin conflict?
What's weird is it worked just fine until recently. I just tried it with only the CGMV plugins and I still get the errors. It should also be noted that I didn't get the error after temporarily removing the encyclopedia, but when I put the encyclopedia back, the errors also came back
@Semolous29 Error messages of "is not a function" usually indicate broken JavaScript code in your project.

You should double check all of your plugin parameters that accept JavaScript and any notetags you have in any database items. One missing close brace can cause errors in other places like this.

Something else to be aware of - I see your game directory and project name have spaces in them. That can cause file loading errors on some systems, because the space is not an HTML-compliant character (see the %20 all over the place).

If you intend to distribute your game to other people, you might want to make sure at least the project itself doesn't have spaces in it to maximize compatibility.
So real quick question. How do I get the encyclopedia to show up and the achievements to show up on the menu if I am using yanfly's menu plugin?
@slickdeath97 Hi, you will need to find the parameter in yanfly's menu plugin that allows you to enter in custom javascript for your menu entries, and then for the encyclopedia you will put:
Code:
SceneManager.push(CGMV_Scene_Encyclopedia);
For CGMV achievements you would put:
Code:
SceneManager.push(CGMV_Scene_Achievements);
@slickdeath97 Hi, you will need to find the parameter in yanfly's menu plugin that allows you to enter in custom javascript for your menu entries, and then for the encyclopedia you will put:
Code:
SceneManager.push(CGMV_Scene_Encyclopedia);
For CGMV achievements you would put:
Code:
SceneManager.push(CGMV_Scene_Achievements);
For the Encyclopedia, is it like this?
1690839996624.png

I don't know if I am putting it in the right place.
@slickdeath97 Hi, your code looks correct to me. I don't use that plugin so I am not sure which parameter you would put it in, I just know there is one that allows you to run custom JS as that is how all menu plugins work. It should say in the help documentation, or if not you would need to reach out to that plugin's author for help if you don't know how to use it, or maybe someone else will know how to use it and can tell you where to put the code. If I had to guess from the options shown, I would think it is the Main Bind parameter.
@slickdeath97 Hi, your code looks correct to me. I don't use that plugin so I am not sure which parameter you would put it in, I just know there is one that allows you to run custom JS as that is how all menu plugins work. It should say in the help documentation, or if not you would need to reach out to that plugin's author for help if you don't know how to use it, or maybe someone else will know how to use it and can tell you where to put the code. If I had to guess from the options shown, I would think it is the Main Bind parameter.
Hey, so I got the one issue fixed, but now I need some help with something else. When I open a chest and get an item or weapon or armor and go into the encyclopedia, it shows that I have a possession of 0. Is that supposed to happen?
@slickdeath97 Hi, no that is not supposed to happen. This plugin uses the default RMMV code's function for getting the amount of a specific item the player has in their inventory. It is possible you have some other plugin that changes that function, causing this one to no longer show the correct possession count.
@slickdeath97 Hi, no that is not supposed to happen. This plugin uses the default RMMV code's function for getting the amount of a specific item the player has in their inventory. It is possible you have some other plugin that changes that function, causing this one to no longer show the correct possession count.
Almost all of the plugins I have are all from yanfly. Will try to see which on might be causing the problem and get back to you if I find it.
Almost all of the plugins I have are all from yanfly.
My initial guess would be the independent item option from item core.
My initial guess would be the independent item option from item core.
I will most likely end up looking into it a bit later.
My initial guess would be the independent item option from item core.
So, just tested it and that was correct. Turned the item core off and the possessions went to the correct number. Is there a way to fix it so the possessions is right even with the item core plugin?
set it below or above, but so far I know, Item Core probably have some overwritten
function, not exactly sure if it had independent items which could cause issues?
set it below or above, but so far I know, Item Core probably have some overwritten
function, not exactly sure if it had independent items which could cause issues?
Ok, so I noticed that the possession issue only happens with weapons and armor no matter where the plugin in in the list.
Edit: FOUND THE ISSUE!! GOT IT FIXED!! The max weapons and armor in the item core need to be set to 0.
Very good plugin, i am using it, in my game.

It only shows images of monsters that are not moving sideview battlers, that is, only monsters that have a fixed image, nothing else.

All monsters with tag <Sideview Battler: BanditK> are not shown.

Can it be helped?
@Daisetsu Hi, you can add an enemy image to your enemy in the database, which is what this plugin pulls from. This should work even if there are additional custom enemy images set via note tags or plugin parameter or some other method as long as the other plugin does not delete the default enemy image from the database object once the game is loaded. It does not check custom notetags from other peoples plugins, so it does not support animated enemies.
Thanks for the quick reply.

But that's exactly how I do it, but unfortunately the pictures no longer appear as soon as I use a notetag.
@Daisetsu It's been a while since I've looked at it but check out my earlier post on this thread about the same situation.

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