Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Hello I'm having an issue getting books I created in the book.json to appear

Now they are there and they work, I call it with Plugin>Read and it shows up, everything looks good. But when I access the menu and select my section I changed imputiom what ever it was, to PlayerHelpBooks and the books I read show up there.

But.... When I open the Category, and soon as I  select the name of the book. It loads the text for a 1/2 second, then disappears with just a background?

And It locks me into that menu. So what am I missing?

I called the book with this Plugin Command.

Inside Event:
"Plugin Command: LibraryData learn book GatheringTools"
"Text Popup: You found an old book about organizing tools more efficiently."
And then Made a Varaible to store each book name. Just to reference it when they collect it "You found \V[113], in this old chest"

And it pops up in the menu, but soon as I select it it disappears.
Using the latest Steam>RPGM MZ

Hello!

I changed a bit of code on version 1.6.1 to prevent this behavior when background images are not correctly set... I tested this a bit, but something may have slipped unnoticed. Are you using version 1.6.1, right?

If yes, can you setup a test project for me with the issue present?
You can send me a download link here, or send me a private message on facebook or the official RM forums.

With that I can check exactly how your parameters are set, reproduce the issue and debug to discover what is going on.

(5 edits)

Sorry it took me so long to respond, yes the issue is still present after updating the plugin. I'll try to setup a test and link it. I'll edit this post in a while.

Edit: Ok this is weird. I made a test project, it works fine.

Does it have to be high/Low in the list? And is it compatible with these plugins. I really need 5 of them.


Ok I found out what was causing this issue, it's the

CGMZ_ToastManager.js it crashed the Boo Menu.
Turning it off, all is ok. So just letting you know. I might have to find a alternative if it's not an easy fix on my end.

Here is the link, in case you need to check something.
https://www.caspergaming.com/plugins/cgmz/toastmanager/


Edit off topic, you do a lot of plugin stuff. How would one go about toggling a custom Menu I made in Hud Maker Ultra?
I mean I know i can just flip a switch, but I want to be able for the player to press [Tab] or [Q] to show hide this menu.

It's all rigged to show when the switch is on, I just bot sure how to toggle it. But thanks, have a great weekend.

Hi there!

Oh boy... I had made a patch for compatibility with CGMZ_ToastManager in previous versions, but I completely forgot to double check that after 1.6.1 changes. I'll take a look after work, it's probably an easy fix.

As for the off topic question... if all you want is to have a key input to toggle the switch, it should be quite simple actually. Just create a new "plugin" with the following code (untested), changing <number> to your switch number:

Input.keyMapper[9] = 'tab';
var alias_sceneMap_updateScene = Scene_Map.prototype.updateScene;
Scene_Map.prototype.updateScene = function(){
   alias_sceneMap_updateScene.call(this);
   if(!SceneManager.isSceneChanging() && Input.isTriggered('tab')){
       $gameSwitches.setValue(<number>, !$gameSwitches.value(<number>));
   }
}

This should work for the map scene. If you need that to work on battle as well we would need to add a bit more of code.

Dude thanks so much. It was driving me nuts trying to get it working.
I am  dumb when it comes to code, but love creating.

(1 edit)

Is it possible to call more than 1? I tried this.

Never Mind, I fixed it lol.

Input.keyMapper[9] = 'tab';

Input.keyMapper[80] = 'p';

var alias_sceneMap_updateScene = Scene_Map.prototype.updateScene;

Scene_Map.prototype.updateScene = function(){

   alias_sceneMap_updateScene.call(this);

   if(!SceneManager.isSceneChanging() && Input.isTriggered('tab')){

       $gameSwitches.setValue(1, !$gameSwitches.value(1));

   }

   if(!SceneManager.isSceneChanging() && Input.isTriggered('p')){

       $gameSwitches.setValue(2, !$gameSwitches.value(2));

   }

}


Just got to figure out how to call a sound, looking up tutorials.

Hello again!

So... can you send me that test project (or at least the plugins.js file)? :|

I'm unable to replicate the error. I have an MZ test project with all my plugins, I added ToastManager there and run some tests, but everything is working fine here. I'm thinking that there may be a specific set of parameters triggering the error...

(1 edit)

Ok, let me try linking it. Slow upload speed.

My project is to big, it'll take forever. I'll try to help the best I can to explain it. It only glitches out while this plugin is active. And it's at it's default settings.

If it's disabled, it works fine, but if it's on the text just disappears. And you get locked in the menu.

I'm going to see if there is a way to compress the game to upload, if I can.

So I just made sure it was updated, bot the Plugin and Core, still does it. Is it possible I'm adding the books to the players library wrong?


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! :)