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

● ARCHIVED · READ-ONLY
Started by Theguysayshi 10 posts View original ↗
  1. 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 ><;
  2. [move]RGSSx Script Support[/move]
  3. Let me make a wild guess. Are u using existing save game?
  4. TheoAllen said:
    Let me make a wild guess. Are u using existing save game?
    ...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?
  5. 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.
  6. 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!
  7. 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
  8. 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.
  9. 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.
  10. 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.