[VX] Party Changer

So far so good.

one problem.  The script doesn't include the call script command to add actors to the reserve.

Also, there isn't an explanation of "on-map party switching".
Hmm, I seem to be getting the following error when I try to open up the menu.

Content Hidden Spoiler
Script 'Party Changer' line 1282: NoMethodError occured.

undefined method `selection' for #


As for background information:
I am using Custom Commands (top of my custom scripts below materials, followed by the party changer script)
I am using your Large Party script.
The Party Changer script is the most recent version.

EDIT: It was an error due to an old version of the custom commands script. However, I now seem to be having the same problem as Deiviara and Shut48.
@Deiviara, Shut48, Kafei
Would it be possible to send me your Scripts.rvdata please? I can't see what's causing the error. Maybe it'll be easier to understand with your files.
Sure, would you like me to e-mail it?
Sure, or you can also upload it on rapidshare, megaupload or whatever.
http://www.megaupload.com/?d=XHU17O4Q

There ya go.

EDIT: Any idea what's wrong, or are you even encountering the problem yourself?
    The link to the Script is not loading for me; it says website not found.
By the way, nice scripts....I am currently new to RPG Maker VX and scripting...so playing around to see how things work.
@Kafei
Quote:
EDIT: Any idea what's wrong, or are you even encountering the problem yourself?

That's odd, the script you gave me seems to work correctly...

@whitefire7
Maybe the site was temporarily down when you tried. It should be working now.
That's very strange indeed. All I did was take the custom commands, party changer and large party scripts and slap them into a new project and try it out. When I attempted to open the party changer from the menu, I got the error, and those were the only three scripts I was using.
I tried to do exactly what you did, but nothing happened. Could you send me the whole project via PM or e-mail please? I really don't understand what's the problem.
Well, I'm about to save you a big headache (although we've probably already caused you one :P).

After messing around for a while, I figured out that the problem occurred because of the locked.png. I must've saved it improperly (and I assume the others did as well), and so when the game attempted to load it up for the party changer scene, it caused an error because it was improperly formatted. After going back, and fixing the locked.png, it seems to work properly. This would also explain why you didn't encounter the error yourself.

Sorry for all the trouble, and thanks for your help in trying to figure the problem out! You're doing a great job, and I greatly appreciate all your hard work and dedication.

EDIT: If you open the party changer menu, place actor [1] or [2] in your party and then select reset, an error comes up:

Content Hidden Spoiler
Script 'Window_Selectable' line 35: RGSSError occurred.

failed to create bitmap


Curiously, it didn't seem to happen with actor [3]. Also, more of a minor thing, but I think something might be up with the actor opacity in the selection screen. They start out solid, when you select them, they turn semi-transparent, but they never seem to go back to solid after that. I'm not really concerned with that personally, but I thought I'd mention it.
Quote:
After messing around for a while, I figured out that the problem occurred because of the locked.png. I must've saved it improperly (and I assume the others did as well), and so when the game attempted to load it up for the party changer scene, it caused an error because it was improperly formatted. After going back, and fixing the locked.png, it seems to work properly. This would also explain why you didn't encounter the error yourself.

That's interesting. I'll be more specific about that in the first post. Thanks ^^

Quote:
If you open the party changer menu, place actor [1] or [2] in your party and then select reset, an error comes up

I'll take a look at it. Thanks for the report.

Quote:
Also, more of a minor thing, but I think something might be up with the actor opacity in the selection screen. They start out solid, when you select them, they turn semi-transparent, but they never seem to go back to solid after that.

I noticed too. That's easy to fix.

I'll update the script tomorrow.
Take care!
-Dargor
Sounds good, I'll look forward to it.


EDIT: I know you're probably very busy, but could I ask for maybe an update on what's going on? =)
Ok I finally updated the script to version 2.2.
Hey Dargor, amazing script, friggen sick add-ons and features.
I'm tempted to use this one over the others i've seen, it's just this one conflicts with some of the other scripts i have (MOG's menu and status system).

If it's not too much trouble, I was hoping you could send me an older version of this script (if you still have it) with all the basic features excluding the ones that mess with my other scripts. Please, and thanks if you can.
I'd like to, but I don't know which features are conflicting with MOG's scripts.
Maybe you can tell me more about it.
Oh, well i think the ones conflicting are the menu addons, like party order, and party changer in the menu. I think the in battle changer is fine and doesn't mess up, but the ones added to the menu are the only ones i think. If you could take those out, i'd really appreciate it. Thanks!
I can't seem to add more than 4 members, even with the large party script (the max members is set to 5). Any ideas?
Make sure the @max_members variable in the Large Party script is higher than 4.
I'll update the script in a coupe of minutes.

EDIT:
@J4iru5
If you don't want the menu modification, look for this line
def create_command_window
Expand to see the code.

There's 2 of them, the one you're looking for is somewhere around line 1270. Simply delete or comment out the whole method.

EDIT2L
I have updated the script to version 2.3
Oh sweet! I love you dargor, thanks for the updated version 2.3 script. Not nothin conflicts, honestly, i'm using a whole lot of your scripts out there, so i'll be sure to credit you for everything! Thanks!
Dargor wrote:
Make sure the @max_members variable in the Large Party script is higher than 4.


The @max_members variable is currently set to 5.  It allows me to place 5 members on the party in the changer menu, but the 5th person is never actually added to the party, and is excluded once I leave the changer menu.

EDIT: I still seem to be getting that bitmap error I described in an earlier post as well. Sorry, I don't necessarily like having to give you all these problems to fix. >.> I hope you don't hate me for it. :P
Kafei wrote:
Dargor wrote:
Make sure the @max_members variable in the Large Party script is higher than 4.


The @max_members variable is currently set to 5.  It allows me to place 5 members on the party in the changer menu, but the 5th person is never actually added to the party, and is excluded once I leave the changer menu.

EDIT: I still seem to be getting that bitmap error I described in an earlier post as well. Sorry, I don't necessarily like having to give you all these problems to fix. >.> I hope you don't hate me for it. :P
If you are not using the side view battle system go to the game_party script under game objects and try changing  MAX_MEMBERS = x as well. That seemed to work for me after playing around. xP
mudducky is right. Even if I added my own max_members variable, you still need you modify the default Constants MAX_MEMBERS. Sorry if I wasn't clear enough about it.

@Kafei
You still got this error even with version 2.3?
Just to verify Kafei, I know I still get the bitmap error under the same circumstances.
Dargor wrote:
@Kafei
You still got this error even with version 2.3?


Correct.
@Kafei
The error is caused by clearing the party members on the script at around line 458 when you press the Reset button:
  #--------------------------------------------------------------------------
  # * Clear Members
  #--------------------------------------------------------------------------
  def clear_members
    for member in $game_party.all_members
      remove_member(member)
    end
  end
Expand to see the code.


The for..in is accessing the every party member even if only one member is selected.. The problem arises when the height of the window is remade.. I really can't explain the exact detail on what's causing the error... but just consider this code:

  #--------------------------------------------------------------------------
  # * Clear Members
  #--------------------------------------------------------------------------
  def clear_members
    remove_member(@members[0]) until @members.size <=0
  end
Expand to see the code.


Instead of iterating through all members, why not just remove the members that were added?
That seems to work. Thanks. :P

EDIT: Another bug. Disabling the save feature with an event causes the order feature to gray out on the menu (although it doesn't actually prevent you from using it.) It disables saving, but doesn't gray out the save option. I assume that it's simply graying out the wrong the on the menu.
@vekou
That's it. I forgot to clean up this method before posting version 2.0.

@Kafei
Probably just a little error with the Custom Commands script.
I'll update both scripts as soon as possible. :thumb:

Take care!
-Dargor
@Kafei
In the create_command_window of Custom Commands Script, just replace @command_window.draw_item(4, false) with @command_window.draw_item($game_system.menu_commands.index(Vocab::save),false) so, no matter where the Save command is, it will be disabled correctly. also, do that on the other commands as well if you wish... or just wait for Dargor's update ^__^

@Dargor
I found another bug, when you disable the Party menu, it will be grayed out. But when you put your cursor there, it will continuously play the buzzer.. the bug is in the  update_command_selection.
@vekou 
I'm aware of it. I'll update the script tomorrow.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=42719