Hello, everyone. This is really my first post so I hope this is the right place to do so. I'm using VX Ace and have run into issues that all seem to have the same root issue, or at least would be solved by the same solution, I think. Essentially, when my game starts, a younger version of the main character is already in the party by default. After an opening event and cutscene, there's a timeskip and what happens is the younger version is removed and the present day version is added. All of this works fine.
The problem is that because the younger version of the character was in the party first, many of the windows in the menu (Yanfly + Mog EX), specifically the individual screens for each party member like the equipment screen, the status screens, etc. all default back to the younger character when first opened. It doesn't seem to notice that the younger character has been removed and that another character has been added until I use q/w to scroll through party members in the status/equipment screens. Once I do this, the younger character's screen disappears from the list. That needs to happen without the player having to open the menu and scroll away from one of the younger character's screen's manually.
What I would like to know is if there is a script call or something to 'refresh' the menus so that they only show the current party members screens. Otherwise, is there a script call to scroll through character screens in the menu (maybe for a tutorial system or something), especially if that script call let's you do so without opening the menu. Any help would be appreciated. I think any solution from this would also help with an issue I'm having with Victor's Materia script.
Adding and removing an actor should never be done by script call, only by event commands.
And somehow you made a mistake in removing the actor, because if the actor is removed in the correct way then such a problem should not happen.
Can you give us a screenshot of the event where you remove the first actor you had? then we can check what mistake you made on removal.
I assume that "Heir to the divide" is the younger character and "Decid" is the older character? Why do you have the wait between the two commands and why do you add the older actor before removing the younger one?
That bit is somewhat necessary, but it seems unrelated. There is a sprite animation script that I am using (idle animations, sprinting, etc) and it crashes the game whenever there is no one in the party. So I have to add before I remove to avoid this, the wait is just to give the script a chance to realize the change in the party.
If such a script crashes the game, then that script is either configured wrong or defective - every script should work without actors in the party.
Or it is an indication that some of your scripts are not compatible with each other.
Instead of trying to hide that other problem you should solve it - I suggest you follow the link "how to use a script" in my signature and use the backtracer to identify the cause of that crash, because bughunting is almost impossible if such errors are in the background and hidden by suboptimal solutions.
The tutorial on bughunting I wrote (also linked in my signature) might also help you understand why you need to solve a problem at the beginning.
Your problem is that somehow the data is not updated in the correct order, and you need to find out why (which is most probably caused by scripts) instead of trying to hide the problem.
You're probably right. I've been applying 'band-aids' to issues instead of actually healing them. No doubt, these issues will only snowball as development continues. I just have no scripting experience at all (I worked with RM2K3 for years). It's a bit daunting, but I suppose being thorough is important. I just installed Hime's bug tracter script, as your tutorial explained. Several google and forum searches didn't seem to locate anyone else having my issues, so it would seem there are either load order issues or incompatibilities that I need to iron out. Thanks.
Sometimes the order you have the scripts in can make a difference. Is the sprite animation script above or below Yanfly's ? How many scripts do you have which affect the menu in some way?
Why are you using two actors? You can just use the 'change actor ...' plugin commands to change the graphics, name (if necessary), class, etc or the existing actor to make them look older. No need to add or remove anybody.
I'm using two different actors because the actors will have different names. Without going too much into plot, the character as a child and as an adult will have two different names, both of which can be determined by the player. It's important that I be able to use both of these names via \n[] in the text boxes, etc. The name 'Decid' is just the default name that actor has as an adult.
The scripts that I have that affect the menu are 99% Yanfly, although I do use Moghunter's background for the menu. It looks like I'll have to disable some scripts one by one and do some test plays to see if it's compability/load order issues.
At what point do you get the player to enter the names? You can use Name Input Processing on the same actor. You can also use Change Actor Name or a script call to change the actor's name at the appropriate time. "I want to change the actor's name" is not a reason to have two different actors, even if you want to show both names in the same text box (in that case you just have a dummy actor that has the name, but still just use one actor in the game).
There will be a point in the game where the character interacts with his younger self, up to and including having your younger self join the party. There's a degree of time-travel involved, which in and of itself is pretty complicated, but this is why I didn't want to go into plot too much. It's weird, I feel like I'm spoiling my own story.
ah, okay. Yes, if they're actually two separate characters who will be in the party at the same time, you can't get around having two actors.
Some of the party manager scripts allow you to 'lock' the first character. Could that be a part of your original problem?
I originally was using Yanfly's party Manager and Yanfly Party scripts, but ran into problem where 'Decid' was somehow getting locked into spot # 2 with no way to unlock him. Forum searches revealed other's with this problem ended up removing Yanfly's party system. When I did, I stopped having that particular issue. But it the 'Heir' still showing up in the menu after he's left the party wouldn't have anything to do with that, I don't think. It seems to me whichever process that's supposed to update the menu windows after changing the party isn't doing what it's supposed to, which is why I was hoping there was a way to either manually 'refresh' the menu windows, or a way to scroll through the characters (the same way you can scroll through your party in the status menu) and preferrably with a script call. After the heir leaves the party and Decid comes in, if the player opens the status/equip, etc. menu, it still shows the heir. When the player scrolls through the characters, it moves over to Decid and the Heir disappears. I just want to know if it's possible to force the menu to scroll to the next actor with a script call. I would imagine there are menu tutorial scripts that allow a developer to 'control' the menu during a demonstration and this would be exactly what I was looking for.
So far, disabling the scripts I figured would be most likely culpable has yielded nothing. I've seen that their are scripts that llow you to change the party order with a key press, maybe that'll do it.
It's only because of your scripts. If you had no scripts, this issue wouldn't happen.
If you disable all of your scripts and save, you should be able to confirm that only one party member shows up.