Help Please! Game crashing when opening the Item Book!

mphi

Villager
Member
Joined
Jan 8, 2016
Messages
12
Reaction score
0
First Language
English
Hello good people of the Rpg Maker forums :p
I'm using the ItemBookEX plugin by Soulpour777 and for some reason it crashes every time I try to open it.
I've been trying to fix it for the past 2 hours but I haven't gotten any closer to fixing it...
Help please!
Thanks in advance!
~Mphi

Here's a picture of the console.
 

Jeremiah Eastman

Gladiator
Veteran
Joined
Apr 24, 2017
Messages
510
Reaction score
315
First Language
English
Primarily Uses
RMMV
Hey there, I'm not the most skilled with those errors but to me it looks like it is looking in the img/titles1 folder of your project for the picture named Chapter1.png. Make sure that picture exists in your project database and is named properly ie. capital C in chapter. and it probably need to be of or near the same dimensions of the other pics in that folder. Hope this helps you out.
 

mphi

Villager
Member
Joined
Jan 8, 2016
Messages
12
Reaction score
0
First Language
English
Hey there, I'm not the most skilled with those errors but to me it looks like it is looking in the img/titles1 folder of your project for the picture named Chapter1.png. Make sure that picture exists in your project database and is named properly ie. capital C in chapter. and it probably need to be of or near the same dimensions of the other pics in that folder. Hope this helps you out.
Hello,
Thanks so much for the reply :p
The problem is though, it crashes for the item book menu.
The chapter 1 error I've had for a long time but never got around to fixing xD
It never crashes cause of that though so I ignore it most of the time xD
Thanks for the help!
 

Jeremiah Eastman

Gladiator
Veteran
Joined
Apr 24, 2017
Messages
510
Reaction score
315
First Language
English
Primarily Uses
RMMV
Dang, I'm sorry about that I saw that part and figured it was connected. I just dl'd the plugin however and gave it a look. I get the exact same crash and couldn't get it to work either. I also use rmmv version 4.0.3 like you. I'm wondering if maybe the plugin isn't updated to that version. In the demo that comes with the plugin it all works correctly and the files like rpg manager.js are old, from 2015 so they aren't the newer updated ones that it's working off of. If this is the case you may have to use the regular item book for the time being.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
link to plugin?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,370
Reaction score
7,678
First Language
German
Primarily Uses
RMMV
Please edit your directory names to follow networking rules.
Spaces are not allowed under networking rules - that is why they're replaced by %20 in the error messages, and any space like that can prevent the loading of any file.

That said, did you start a new game after installing that plugin? You have to start a new game after installing 95% of all plugins, and that goes double for plugins requiring complex setup.
If you don't start a new game but continue a saved game, the data is not correctly defined and it results in exactly those errors you have (cannot read property of NULL, because the data does not exist)
 

mphi

Villager
Member
Joined
Jan 8, 2016
Messages
12
Reaction score
0
First Language
English
Thanks for all the help everyone!
I did start a new game but it didn't seem to work either xD
I think it's as Jeremiah said cause updates for the plugin have been discontinued for a while.

I'll just use a different item book plugin
Thanks a lot for all the help everyone!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
It seems to be indicating that you have a null weapon. If the demo works for you but your own doesn't, then I'd expect there to be a null other than the first data element in your Weapons.json file. So it's not the plugin, but your database, that is causing the issue. The good news is you can make a small change to the plugin to cater for it.

Find the Window_ItemBookIndex.prototype.refresh function, starting on line 505. Replace the whole thing with the following:

Code:
    Window_ItemBookIndex.prototype.refresh = function() {
        var i, item;
        this._list = [];
        for (i = 1; i < $dataItems.length; i++) {
            item = $dataItems[i];
            if (item && item.name && (item.itypeId === 1 || item.itypeId === 2)) {
                if (!item.note.match(/<item book exclude>/)) {
                    this._list.push(item);
                }
            }
        }
        for (i = 1; i < $dataWeapons.length; i++) {
            item = $dataWeapons[i];
            if (item && item.name && !item.note.match(/<item book exclude>/)) {
                this._list.push(item);
            }
        }
        for (i = 1; i < $dataArmors.length; i++) {
            item = $dataArmors[i];
            if (item && item.name && !item.note.match(/<item book exclude>/)) {
                this._list.push(item);
            }
        }
        this.createContents();
        this.drawAllItems();
    };
I haven't tested this, but I believe it should work.

btw, 4.0.3 is the Pixi.js version, not the MV version. You get the MV version via Help > About. The latest is 1.4.1
 

mphi

Villager
Member
Joined
Jan 8, 2016
Messages
12
Reaction score
0
First Language
English
Ohhhhhhh
Thank you so much Shaz!
I have lots of blanks in my database to make things look organized xD
I'll go try it out right away
Thank you so much Shaz and Jeremiah and Andar!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,883
Messages
1,017,232
Members
137,607
Latest member
Maddo
Top