Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Nah, you're using the plugin commands right. You're using MV's commands, but should work fine too. Also, I've seen this behavior you describe on past versions and it would regardless of how many or which books were available for the player. If it is what I think it is, there may be a combination of parameters for BookMenu causing some kind of scenario I didn't foresee (probably related to background image settings).

Can you send me the plugins.js file from your project (it's inside the js folder)? It stores all your plugin parameter settings. With that I can copy all your BookMenu settings into my test project.

Also, run your project, then press F12 (usually, if it doesn't work press F8) to open the console. If there is any error already there, print it and paste it here for me. If there's nohing on console, run this set of commands and send me the output after accessing the book menu, but before selecting any book:

SceneManager._scene._bgStackSize
SceneManager._scene.children

Then select a book and have the error occur. If any errors pop up in the console, send them to me. Also, run the following commands and send the output as well:

SceneManager._scene._bgStackSize
SceneManager._scene.children
SceneManager._scene._textWindow._bookKey

$dataBooks._books["<BOOK KEY>"].customBgMode
$dataBooks._books["<BOOK KEY>"].customBg

For the last two commands, replace <BOOK KEY> with whatever is returned by the third command (the one ending with _bookKey).

I hope that helps me find out what's going on. I tried all the parameter values I thought could cause this, but it's all working on my test project. There may be something else that I'm missing.

(1 edit)

I sent  you a link to the download, I think I included everything needed. But not sure.


Never mind, no private messages. Silly.

https://mega.nz/file/tCg1yIqD#IpUI2sNXvNeP8wYj3sTzgcl75XKL2AJpZ_d2XWAzVC0

Was that able to help you?

Unfortunately, I'm still unable to replicate the issue ='(

I created a clean project and copied your files over the default ones, then added a single event that adds some books to the library and run the project. But it works fine, no errors, even if I load all books at once.

The behavior you describe would happen when the plugin tries to handle dynamic background images (even if there is none configured). The ToastManager plugin adds a new layer to the scene stack, which caused issues in the past. I thought I had reinserted the same issue on version 1.6.1, but that does not seem to be the case, as the steps to replicate it then are not triggering it now.

The files you sent me... are they from your current project or a test project?

If you can setup a test project with a single map and only default resources where we can easily replicate the issue it would be really helpful. You don't need to send me the whole project, just the data and js folder, and the book json file if you use one.

I have tried several times, I copy the whole project to the desktop. And test it before I put it into a a zip. And the error is not there.
But in the default directory, "C:\Users\Home\Documents\RMMZ" it bugs out only in this game folder "\My Game Project".

But if i copy the book plugins and .json to a different project, it works fine. Only thing I can think of is that folder hates me lol.
So I copied all the files inside, made a brand new folder called "MyGameProject" and pasted them in there. Now it works.

So sorry for any trouble. It's just that one folder. I even deleted all the files, and imported new files from another working project.
And it still bugs out even knowing it was working in the other folder. 

That is a fine example of programming black magic hahaha

Don't worry, I'm glad to be of help. Let me know if you need more bug hunting! :)

Actually there might be something you can help with.
How can I add a simple "Menu" with ha scroll bar, to show my relationships I'm making?

I was going to buy one but it's not compatible with MZ. I've bought several plugins already.
But I've done quite a bit of work on my own Plugin for it, but one thing still missing is how to display a custom menu.

The easiest way (for me, using javascript) is to create a window inside your scene that extends the Window_Selectable class. It already includes scrolling functions, so you won't need to code them yourself unless you want to change the scrolling behavior.

At least that's how I would make it.