JP Choices Script brings an error, how can I make it work?

Discussion in 'RGSSx Script Support' started by Theguysayshi, Jul 19, 2018.

  1. Theguysayshi

    Theguysayshi Villager Member

    Messages:
    27
    Likes Received:
    2
    First Language:
    English
    Primarily Uses:
    RMVXA
    Apologies in advance for anything stupid, this is my first post on the forums.
    So, I have this great script made by a Japanese Creator that adds more options to choices, specifically:

    - More than four choices
    - Menu positioning
    - Display info for choices etc...

    But most importantly, it is able to set the default choice option. This is important for a game idea I have.
    Unfortunatly, when I run the game with the script, I get the error:
    "Script 'Choice_EX' Line 324: NoMethodError occurred
    undefined method 'empty?' for nil:NilClass"
    which is
    "update_help if active && !$game_message.choice_help.empty?" for me.

    Could someone please tell me a fix for this to get it working (it works fine on the game I discovered it on) and what I can do to get it to work please? I suspect that it might be a conflicting script that I have on the game I want it on, but I have no idea what one, and I have no idea what I need to do to have both working at the same time.

    Any help is appreciated.
    You can find the Script (and description of what it does) here: http://woodpenguin.web.fc2.com/rgss3/choice_ex.html (I used Google Translate to understand the details)
    And before you ask yes, I didn't translate the script itself before using it ><;
     
    Last edited: Jul 19, 2018
    #1
  2. Kes

    Kes Global Moderators Global Mod

    Messages:
    21,048
    Likes Received:
    10,699
    First Language:
    English
    Primarily Uses:
    RMVXA

    I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

     
    #2
  3. TheoAllen

    TheoAllen Self-proclaimed jack of all trades Veteran

    Messages:
    4,485
    Likes Received:
    5,093
    Location:
    Riftverse
    First Language:
    Indonesian
    Primarily Uses:
    RMVXA
    Let me make a wild guess. Are u using existing save game?
     
    #3
    cji3bp62000 likes this.
  4. Theguysayshi

    Theguysayshi Villager Member

    Messages:
    27
    Likes Received:
    2
    First Language:
    English
    Primarily Uses:
    RMVXA
    ...oh my goodness, that was exactly it! Thanks a bunch!
    Man, I feel really stupid now.

    I guess the question then becomes, how can I update my saves so they work with this new script? Is it possible? What do I need to do?
     
    #4
  5. Andar

    Andar Veteran Veteran

    Messages:
    28,672
    Likes Received:
    6,594
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    You can't.
    If you add a script or a plugin that changed the savegame structure, then you have to start a new game.

    Which is why we usually suggest to decide on plugins and scripts first, before going too far into development and playtests.
     
    #5
  6. Theguysayshi

    Theguysayshi Villager Member

    Messages:
    27
    Likes Received:
    2
    First Language:
    English
    Primarily Uses:
    RMVXA
    Oh... that's a huge problem considering what I'm working on. That really sucks...

    I guess I'm better off searching for a different script that "sets the default choice option", that doesn't destroy saves. I believe it's in RPGMakerMV but not in VXAce.
    I guess I'll create another post in the necessary forum with that question in mind. Thank you to you all, you've been very helpful!
     
    #6
  7. TheoAllen

    TheoAllen Self-proclaimed jack of all trades Veteran

    Messages:
    4,485
    Likes Received:
    5,093
    Location:
    Riftverse
    First Language:
    Indonesian
    Primarily Uses:
    RMVXA
    Most of time, you can't.

    HOWEVER, the reason you can't is usually because of how the scripter designed the code. And it's already been common practice. With a little patch, it should works.

    Here, try to put this on new slot below the script
    Code:
    class Game_Message
      def choice_row_max; @choice_row_max ||= WdTk::ChoiceEX::RowMax; end
      def choice_help; @choice_help ||= {}; end
      def choice_var_id; @choice_var_id ||= 0; end
      def choice_background; @choice_background ||= 0; end
    end
    
     
    #7
  8. Andar

    Andar Veteran Veteran

    Messages:
    28,672
    Likes Received:
    6,594
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    Sorry, Bad news:
    80% of all plugins (MV) and scripts (Ace) will destroy savefiles.
    For a lot of functions that is required for the script to work.

    Why is that such a Problem? You'll have to start new games for playtests dozens of times before you can finish your game anyway.
     
    #8
    cji3bp62000 likes this.
  9. Theguysayshi

    Theguysayshi Villager Member

    Messages:
    27
    Likes Received:
    2
    First Language:
    English
    Primarily Uses:
    RMVXA
    Oh great googly moogly! You're the best TheoAllen! Thank you so much ^^

    The saves are back and usable! With that in mind, script should work as intended now.
    Thank you so so much! You may have saved me from a world of frustration haha

    I'm going to test out the script functions in a bit. So far they seem to work just fine.
     
    #9
  10. Theguysayshi

    Theguysayshi Villager Member

    Messages:
    27
    Likes Received:
    2
    First Language:
    English
    Primarily Uses:
    RMVXA
    Turns out the script conflicts with Galv's Visual Novel Choices script. Oh well.

    I’m going to post another topic requesting a script that allows me to change the default choice option (changed through a variable). Would someone be willing to point me to the right forum, or is it ok to ask for scripts here?
    Edit: Don’t worry. I found it.

    Thanks in advance for everyone the helped/posted in the topic. I really appreciate it.
     
    Last edited: Jul 20, 2018
    #10

Share This Page