TAA_BookMenu (v1.6.7)

@jhs , It turned out to be quite simple, and was actually a bug on my code (which affected MZ only). The bug would only manifest if an additional layer was added to the scene on top of the book menu (which CGMZ_ToastManager does). So it could actually cause more compatibility issues in the future.

It's a quite simple fix, but I'll ask you to wait a bit more as I look into another possible bug before releasing 1.5.1, so that I can group everything in the same version. I'll probably release it in a few days! 🙂
Thank you very much.
@jhs , the other issue was actually easier to fix than I expected!
I just released version 1.5.1 with both fixes. You can download it here. 😀
It works fine. Thank you very much. 🙂
Thank you for the update. Works like a charm.
I've been trying this Plugin for a couple days-And there's one oddity I can't find any reasoning behind.

At the start of the game, I've placed the correct Plugin Command for the Player to learn multiple books at once so they may read at their leisure and it worked like a charm. However, moving on from that one...

There's a scenario where the Player is -Required- to learn a couple Books to proceed, and that simply... Doesn't show those Books in the Menu List. At all. I've even tried the Detached Window-but let me just show you what I got, when i tried that solution:

Spoiler: Images
Screenshot1.png
Screenshot2.png

After looking at both pictures myself, it feels like the issue is the same-But being not as Code-savvy as I should be, what I think I'm getting is that there's some sort of interference from other Plugins? Yet the Books can be viewed just fine if I don't hide books you've not found during the game. So... I don't really get it. Just as a small recap, if I try the "Learn" Plugin Command for one single Book, the Book won't show up in the Menu at all. Doesn't even give me any kind of prompt or info, so I'm way more in the dark about that one. (Yes I also did start a new game when I tried this. For reference.)

Gonna be waiting for some information I can't extort myself out of this one, sorry to put more work on ya-Though I'm loving the plugin and would really like to keep in my Project it all right.

Edit: I realised late there are two threads for the same Plugin though it works for both MV and MZ. Woops, that's my bad. I'm using MV, hope that's an oopsie I can be forgiven for.
Hello there!

Are you using a JSON file, or Plugin Manager as source?
From the error in your print I guess there's something wrong with this specific book's category. The line that is triggering the error is trying to validate that the book is marked as read, and for organization purposes it uses the category as an index. The error is telling me that the code is not finding the book category in the books read list.

If using Plugin Manager as a source, make sure the category is listed in the Category Order parameter, and that it is exactly the same text inside your books parameters. If using a JSON file, just make sure the category id is a valid index from the category list array!

I'm pretty sure that will do it, but if that doesn't solve the issue please send me your plugins.js file so I can take a look. 🙂
I have absolutely no idea how, but I went back and re-checked every bit of data about those Categories. There was absolutely no difference in how I typed it all-But just Copying the Category text itself onto the Book's Parameter itself seems to have... Done the trick? They're properly displaying now as they should have.

For the record-I was using the Plugin Manager, as I found it to be way less of a hassle to deal with. Seems like double-checking the categories was the right call, thank you very much! Now I can continue to appreciate your Plugin as I write way more stuff for it to tell the player.

Small Note: I started a completely new Game when I tested this last-and it finally worked as intended. So I'm now going to assume that for every book I add, I need to do that if I want to see it work until further notice... Just a theory, nothing more.
I updated from 1.4 to 1.51 and had some weird bugs. Like, starting a new game after loading an existing game - the books read would carry over, so I added a reset call before I had my "learn category" command. But then, and now, learn category isn't working.

Any ideas? I double and triple checked all my input. It worked fine before I updated.

Learning individual books works so I'm likely to just do the simple thing and have all 5 books be read individually, but these are some odd bugs.

EDIT: MV, I didn't even notice 2 threads 😮
I updated from 1.4 to 1.51 and had some weird bugs. Like, starting a new game after loading an existing game - the books read would carry over, so I added a reset call before I had my "learn category" command. But then, and now, learn category isn't working.

Any ideas? I double and triple checked all my input. It worked fine before I updated.

Learning individual books works so I'm likely to just do the simple thing and have all 5 books be read individually, but these are some odd bugs.

That's indeed strange... I just run a quick test with the sample project it worked fine. Can you PM me with a test project reproducing the error so I can take a look, please?

EDIT: MV, I didn't even notice 2 threads 😮

Yes, I needed to create two threads, one for each version (otherwise MZ users may not find the plugin in the forums). But as long as you make it clear which one you're using I'm okay with replies in any one of them! 😉
@taaspider Thank you for porting this wonderful plugin.
I'm having some difficulty setting up custom backgrounds for the Book Menu scene. The Detached book scene, I have up and running (see screenshot).

I think I'm doing the right thing with the settings for the Book Menu scene, and I have tried all the various combinations, but none of them show my custom graphic. The only way I can get it to display is by choosing "Full Background image" but a) I *do* want the default map print underneath it and b) when I select this option it cuts off a slice of the image on the bottom and right (I have checked by image sizes and also the title, text and list boxes all cover the entire screen area. I'm using the default 816x624 window size).

Any pointers?

Detached book menu shows fine with map print + single image
Screen Shot 2020-11-11 at 17.12.03.png

No image shown when selecting default map print+single image
Screen Shot 2020-11-11 at 17.12.22.png

The settings
Screen Shot 2020-11-11 at 17.12.43.png
Screen Shot 2020-11-11 at 17.12.52.png

When selecting Full background image (no map print) it displays with black border on bottom and right side.
Journal.png
Hello @Ophiucus Games !

I've run a few tests here and was able to replicate the issue. I believe I've already found the solution, but I'll need time to code and properly test it, which will probably happen in the weekend.
Hello @Ophiucus Games !

I've run a few tests here and was able to replicate the issue. I believe I've already found the solution, but I'll need time to code and properly test it, which will probably happen in the weekend.
Thanks so much for your prompt reply. That's awesome, look forward to hearing an update!
Found and fixed a few bugs in version 1.5.2 (including background issues).

A special thanks to Ophiucus Games and DarkSearinox92 for lending a hand with testing.
Hi @taaspider
The plugin works perfectly and it's been really useful to me..
I have a question as after reading both threads (MZ/MV) I didn't find anyone asking:
Is there any way to update existing entries in the middle of the game?
For example, I have an entry for X person's bio, but when something happens in the story, I'd like the information read there to be updated.
For now, the only idea I had is to make a new entry and removing the older one each time it's updated, but as I have to name them differently it ends being weird.
Hi @taaspider
The plugin works perfectly and it's been really useful to me..
I have a question as after reading both threads (MZ/MV) I didn't find anyone asking:
Is there any way to update existing entries in the middle of the game?
For example, I have an entry for X person's bio, but when something happens in the story, I'd like the information read there to be updated.
For now, the only idea I had is to make a new entry and removing the older one each time it's updated, but as I have to name them differently it ends being weird.

With the current version, the only way to do that is by having separate books and keep hiding/showing them as needed. Using the Plugin Manager as source it happens as you describe, and books need different names. If you use a JSON file in the other hand, you can have multiple books with the same title, but different book keys.

You're not the first person to ask for this feature, actually. I'll see what I can do to make that easier to happen (without breaking everything). I can't promise a deadline, though. I haven't been having all the time I wanted to code, but I'll keep you posted! 🙂
With the current version, the only way to do that is by having separate books and keep hiding/showing them as needed. Using the Plugin Manager as source it happens as you describe, and books need different names. If you use a JSON file in the other hand, you can have multiple books with the same title, but different book keys.

You're not the first person to ask for this feature, actually. I'll see what I can do to make that easier to happen (without breaking everything). I can't promise a deadline, though. I haven't been having all the time I wanted to code, but I'll keep you posted! 🙂
Oh, I see! I didn't realize it worked using the JSON file as I felt more comfortable adding the entries in the plugin manager but as there's already a solution I don't want to pressure you on updating it. If you can sometime it'll be great but if you can't it's good knowing that by switching modes and adapting the info it can be done.
Thanks!
An issue has been reported at the MV thread which was actually for MZ, so I figured it would be important to add an explanation here if anyone else stumbles into it. I've also added this same text to the opening post, so it won't get lost as the thread grows.

MZ allows you to easily define you own custom font using the System 2 tab. What it doesn't tell you is that it gives any font configured there a "nickname" (which is rmmz-mainfont). So if you set it up to use your own ttf custom file and want to use that font in your books, you need to set all font parameters to rmmz-mainfont, otherwise the plugin will not recognize it. But that only applies if no other font handling plugins are enabled, as they will probably change this behavior to allow you to use multiple font setting.

I'm quoting the original post below for reference.

I figured out what is going on with the font issue. MZ allows you to easily input your own custom font right at the engine, at the System 2 tab. However, the code behind it gives it a nickname, which is what we should call it when we need to use it here (assuming you don have any other plugins enabled that give you more control over your fonts). I'll add a disclaimer for this at the MZ thread.

So, when setting up your plugin configurations just use this nickname (which is rmmz-mainfont) and your custom font will work as expected!

Those of you that have multiple fonts will probably have a plugin handling that, and should be able to reference the font with its real name (or any other key your plugin provides!).
Just released version 1.6.0 with a few bug fixes and some new features:
  • Changed method that checks if image file exists before trying to load so it can work properly on web and mobile deployments;
  • Fixed vertical alignment of item names in the book menu list;
  • Added a new parameter to enable / disable checking if files exists before loading;
  • Added a new feature to allow book text to change with plugin commands. New plugin parameters were added to allow including a list of texts and a list of visible texts. All changes were implemented to have backwards compatibility;
  • Added a "new" indicator for books learned / changed and not yet read in the book menu. This marking can be done with a static text, an icon or a picture. All settings for this feature are located under the Menu List Window parameter;
@Xelion , don't know if it's too late for you, but this version makes it easier to change books contents as the game progresses (regardless of you using a JSON file or the Plugin Manager as source). It is also backwards compatible, so you may be able to keep everything that's ready and still use the new features for new entries. 🙂

Spoiler
TAA_BookMenu_Changelog1.6.0.png
Just released version 1.6.0 with a few bug fixes and some new features:
  • Changed method that checks if image file exists before trying to load so it can work properly on web and mobile deployments;
  • Fixed vertical alignment of item names in the book menu list;
  • Added a new parameter to enable / disable checking if files exists before loading;
  • Added a new feature to allow book text to change with plugin commands. New plugin parameters were added to allow including a list of texts and a list of visible texts. All changes were implemented to have backwards compatibility;
  • Added a "new" indicator for books learned / changed and not yet read in the book menu. This marking can be done with a static text, an icon or a picture. All settings for this feature are located under the Menu List Window parameter;
@Xelion , don't know if it's too late for you, but this version makes it easier to change books contents as the game progresses (regardless of you using a JSON file or the Plugin Manager as source). It is also backwards compatible, so you may be able to keep everything that's ready and still use the new features for new entries. 🙂

Yeah I'm using the plugin in my project and it's still useful to me to be able to update existing entries so this is excellent, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/taa_bookmenu-v1-6-7.127880/