Help Please! Game crashing when opening the Item Book!

Discussion in 'RPG Maker MV' started by mphi, Jun 6, 2017.

  1. mphi

    mphi Villager Member

    Messages:
    12
    Likes Received:
    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.
    [​IMG]
     
    #1
  2. Jeremiah Eastman

    Jeremiah Eastman Gladiator Veteran

    Messages:
    419
    Likes Received:
    188
    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.
     
    #2
  3. mphi

    mphi Villager Member

    Messages:
    12
    Likes Received:
    0
    First Language:
    English
    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!
     
    #3
  4. Jeremiah Eastman

    Jeremiah Eastman Gladiator Veteran

    Messages:
    419
    Likes Received:
    188
    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.
     
    #4
  5. Shaz

    Shaz Veteran Veteran

    Messages:
    37,164
    Likes Received:
    11,027
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    link to plugin?
     
    #5
  6. Jeremiah Eastman

    Jeremiah Eastman Gladiator Veteran

    Messages:
    419
    Likes Received:
    188
    First Language:
    English
    Primarily Uses:
    RMMV
  7. Andar

    Andar Veteran Veteran

    Messages:
    27,713
    Likes Received:
    6,227
    Location:
    Germany
    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)
     
    #7
  8. mphi

    mphi Villager Member

    Messages:
    12
    Likes Received:
    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!
     
    #8
  9. Shaz

    Shaz Veteran Veteran

    Messages:
    37,164
    Likes Received:
    11,027
    Location:
    Australia
    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
     
    #9
  10. Jeremiah Eastman

    Jeremiah Eastman Gladiator Veteran

    Messages:
    419
    Likes Received:
    188
    First Language:
    English
    Primarily Uses:
    RMMV
    Apologies Shaz
     
    #10
  11. mphi

    mphi Villager Member

    Messages:
    12
    Likes Received:
    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!
     
    #11

Share This Page