CGMV Encyclopedia w/ Bestiary

CGMV Encyclopedia
By: Casper Gaming
Last Update: 9/7/2020
Latest Version: 1.8
​
dxEPbU0.png

This plugin creates an encyclopedia system. It includes enemies, items, weapons, armors, skills, and states by default. You can also add as many custom categories with as many entries as you want. This plugin works well with the achievement plugin for achievements based on encyclopedia completion percentages.
nlUIeRv.png

  • Encyclopedia Scene displaying all categories of the encyclopedia the user wants
  • All setup is done through the plugin manager
  • Entries automatically or manually tracked
  • Compatible with CGMV Achievements
  • Custom encyclopedia categories (as many as you want)
zvfGt10.png

Spoiler
Bestiary:
RXkyLgr.png

Items:
qaHEMQ3.png

Armors:
XiOsZgb.png

Weapons:
RfksCLk.png

Skills:
uZia2mY.png

States:
sY6lqEe.png

Custom (example):
Sscbvxt.png
lWNLTGy.png

Import into plugin manager and enable the plugin. Some customization options available.
3AzjNYV.png

Plugin (along with all my other plugins) can be found here: https://www.caspergaming.com/plugins/cgmv/encyclopedia/
For achievements related to the encyclopedia, use CGMV Achievements: https://www.caspergaming.com/plugins/cgmv/achievements/
Requires CGMV Core (1.3+), which can be found here: https://www.caspergaming.com/plugins/cgmv/core/
l8DkDBW.png

http://caspergaming.com/terms-of-use/
KbfnB7j.png

Spoiler: Version History
Version 1.0
- Initial Release

1.1:
- Can now scroll with Arrow Keys and Mouse Wheel
- No longer relies on deprecated CGMV Core commands

1.2:
- Fixed an issue with states not tracking properly for achievements

1.3:
- Compatibility patch for SRD SuperToolsEngine

1.4:
- Fixed bug that could cause game to crash when discovering the last item in the database

1.5:
- Fixed bug with skills mixing up TP and MP cost.

1.6:
- Fixed initialization bug that could occur with some other plugins.

1.7:
- Fixed bug with Discover plugin command not working.

1.8:
- Fixed weird display when currency unit began with a space
- Fixed bug with description beginning new line too early when description contained newline character
Just a suggestion, It would be nice to just scroll using mouse wheel or arrow keys. also I didn't know it's yanfly supported
I will work on getting it to scroll by the user controls rather than automatically. I'm not sure what other plugins will work with it since I only test with my own CGMV plugins.
It would be nice just manually scroll, but please make it happen
Updated to version 1.1. This version adds a much requested feature of allowing the user to manually scroll the display window.

1.1:
- Can now scroll with Arrow Keys and Mouse Wheel
- No longer relies on deprecated CGMV Core commands

Sorry, forgot to say that this requires CGMV Core 1.3+ not 1.2+ like last version.
Nevermind, I forgot to update the plugin which requires to work properly
Small update today, just fixing a bug that only appeared if used with the achievement plugin

1.2:
- Fixed an issue with states not tracking properly for achievements
Hello casper, thanks for this great plugin 🙂
I wanted to ask you how I could solve this problem.

6JU8xKf

6JU8xKf.jpg


The plugin conflicts with SuperToolsEngine of SumRndmDde if I move the "CGMV_Window_EncyclopediaDisplay" window.
The error, however, does not create problems in the game, but it is annoying to see it there in the console.
I'm not too sure, the _discovered property it apparently can't read is whether or not the encyclopedia entry is discovered. This probably means for some reason it has been passed a null entry (for example if it is trying to refresh and the cursor hasn't selected an entry). SRD's plugin might refresh the window when it moves (not entirely sure what his plugin all does - I only test with my own plugins and the default RMMV code).

I can add an additional check for the refresh method to do nothing if the data is null, but since it doesn't seem to cause problems outside of reporting an error in the console I will probably just include this in the next update to this plugin whenever that may be.

If you want to test this fix out you should be able to put the following code at the bottom of the plugin and let me know if that fixes it:

Spoiler: code
//-----------------------------------------------------------------------------
// Refresh
//-----------------------------------------------------------------------------
CGMV_Window_EncyclopediaDisplay.prototype.refresh = function() {
this.setupWindowForNewEntry();
if(this._data) this.drawEncyclopediaEntry();
};
Perfect, it works!!! 😀
Thank you so much Casper.
Great plugin but can you add a option of search in the encyclopedia because i want to create a giant encyclopedia of my universe.If i (and the player) can go directly where he want i think it's good.

(Sorry for my english,i am french.
Small update today, fixing a crash that could occur in some cases.

1.4:
- Fixed bug that could cause game to crash when discovering the last item in the database
Small bug fix today in version 1.5

1.5:
- Fixed bug with skills mixing up TP and MP cost.
I am also having problems with loading this plugin: just after start the game appears this:

81088eedec53037e758056e96d8381c7.png


Also, when I change to window mode does this:
9c8efe7a74615c490da0031ad6fea3a5.png


And if there i push keys, message changes to property 'onKeyDown'

I know you will hate me forever for this, but, just for helping you a little bit, here is my list of plugins:
0e7700dc44f5710bdd6dc3845a51cc39.png

32d2a083eee2aeb425d9f68f277d7afa.png

89923d913d636f2efc9eed66acf92be9.png

e5938ddc50bc7e2e925d3742906571db.png


I would add debugger console, but the error appears b4 it opens 🙁
Does this happen on every startup? What version of MV are you on?

I have made a possible fix (hard to know for sure since this doesn't happen in my test projects) for you, please try downloading a new version of CGMV Core here: http://www.mediafire.com/file/616j6abwh506j1s/CGMV_Core.zip/file and let me know if that fixes the issue (should fix the onKeyUp and onKeyDown problem).
Does this happen on every startup? What version of MV are you on?

I have made a possible fix (hard to know for sure since this doesn't happen in my test projects) for you, please try downloading a new version of CGMV Core here: http://www.mediafire.com/file/616j6abwh506j1s/CGMV_Core.zip/file and let me know if that fixes the issue (should fix the onKeyUp and onKeyDown problem).

Sorry for not answering until now, i was fixing another thing and until end with that didn't wanted to start with this.

Ive applied your fix and it remains equal, never works, not even the battle test
Could you test with a brand new project with only my plugins? This will let me know whether it is an incompatibility somewhere or if there is an issue with my plugin somewhere that for some reason is not occurring in my test project.

Could you send me a PM with your project, or any project that has the error (unencrypted), so that I can open it in the editor and test because right now I am not really able to reproduce the bug so any fix I might try would just be an educated guess as to what might be causing it.
It works with this plugins but when i include your plugins, the error occurs, ive forgot to include them into the rar, but i assume you wont have problems installing them:

https://mega.nz/#!oNUi2KTD!AoICW5sSmcUGh0Ifun3fI2e-e3Rt3wwOLZ1GNIMkmLk
Hello Casper. Thank you for your great plugin.
Please upload sample project because I can not set the plugin for custom encyclopedia categories.Thank you.
@jbtwist The newest update should have fixed the issue now. Let me know if it is working once you redownload my Encyclopedia plugin.

Version 1.6:
- Fixed initialization bug that could occur with some other plugins.

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