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

Theguysayshi

Villager
Member
Joined
Jul 18, 2018
Messages
27
Reaction score
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:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
[move]RGSSx Script Support[/move]
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
First Language
Indonesian
Primarily Uses
RMVXA
Let me make a wild guess. Are u using existing save game?
 

Theguysayshi

Villager
Member
Joined
Jul 18, 2018
Messages
27
Reaction score
2
First Language
English
Primarily Uses
RMVXA
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?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,359
Reaction score
7,672
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.
 

Theguysayshi

Villager
Member
Joined
Jul 18, 2018
Messages
27
Reaction score
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!
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
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
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,359
Reaction score
7,672
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.
 

Theguysayshi

Villager
Member
Joined
Jul 18, 2018
Messages
27
Reaction score
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.
 

Theguysayshi

Villager
Member
Joined
Jul 18, 2018
Messages
27
Reaction score
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:

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

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top