- Joined
- Jan 27, 2017
- Messages
- 133
- Reaction score
- 158
- First Language
- Portuguese
- Primarily Uses
- RMMV
Probably most of the time delaying title screen before all books are loaded may not be needed. As you pointed out, they usually are not needed at the title screen. But, I can add a parameter for those who do need it that way. I'll probably hold on to that feature for now though, wait for more features before releasing a new version.Looks like that fixes ReadBook, and my localization plugin also properly picks up my library now without any modifications to your code. The only other thing is if using files as a source (whether JSON or BookFiles) the timing might cause it to sometimes notice it and sometimes miss it. For my purposes I've added this code to my local copy of BookFiles:
You might consider doing something similar for the JSON source. Obviously it's not needed with the Plugin Manager source.JavaScript:const old_isLoaded = DataManager.isDatabaseLoaded; DataManager.isDatabaseLoaded = function() { if($dataBooks && $dataBooks._source === 'Book Files' && !$dataBooks._doneLoading) return false; return old_isLoaded.call(this); };
This means that if it takes a long time to load the books, the game will display "Now Loading..." until it's finished. I guess you can decide whether you actually want this; the books aren't needed at the title screen, after all.
I'll take a look there. If it's something on your file I'll answer through PM, otherwise I'll reply here in case someone stumbles into the same issue.Thanks for the tips !
I sent you my JSON.
everything is working fine except the
Code:LibraryData UnreadBooks show
EDIT: Well, it turned out PLUEVNR's issue was a well hidden bug :/
So, I ended up releasing version 1.4.2 to fix it, and also included Solar_Flare suggestion with a parameter to enable / disable loading all book data before hitting the title screen.
Last edited: