Hello everyone. An old lurker here that just started fooling around with Chrono Engine myself. Now please keep in mind I'd be considered a beginner around here compared to others when it comes to Java knowledge but I may have figured out a work around for the lack of walking animations for follower/party members when moving to attack and figured I'd share for anyone else that may be interested. I know it's a fairly old thread at this point but the topic I'm addressing is so specific I figured instead of starting a new topic I'd just add this here. Apologies to the mods in advanced.
First and foremost, I'm working off his modified versions of MOG's and Restart's following the plugin ordered pictured in this very thread. As far as I can tell the additions I've made should not cause any errors as the Wait pose itself is pretty self contained. All we are doing here is is telling the function we just really want to do one of two things pretty much. We either want to stand in our combat pose or we are moving so we want to actually show the dash pose while that happens.
Inside MOG_CharPoses.js you are going to want to search out this section of code and modify it with what I have highlighted.
The above is checking to see if we are currently in the wait pose. I noticed IsMoving is in there but I didnt see IsDashing.
Now my understanding is that Flintx's changes the state of a battler to dashing inside ChronoEngine.js whenever they move. We account for that with !this.IsDashing() to make sure it's added to the list of poses that are not the wait pose itself. This may be unnecessary as a whole but not being familiar with all the ins and outs of the other plugins I wanted to add it just to be on the safe side.
Next we're just going to move down to the next section and make the highlighted edits in the following picture
Here we are just checking to see if the battler is on the move and giving a new condition to set the dash pose if they are. Originally, I tried to call .isDashing but saw no change. Looking back through the code (i'm not 100 percent on this because I still haven't peeked too much into ChronoEngine too much) but it appears that isDashing(), as far as this plugin is concerned, is a return that operates solely on whether the pose already loaded is the dash pose. In light of this and figuring this would be a safer method anyhow I simply checked for if we are in motion or not. If we are, we need to display the dash pose, if not we default back to the wait pose.
Afterwards, save it and give it a try. Party members should dash while moving to attack now.
I hope this helps anyone that was in need of it.
Again, this shouldn't break anything over all as it is self contained to the Wait Pose Function itself. If I run into anything though and fix it I'll share it on the forum or in this thread if it is still open at that time.
Cheers!
Back with a couple of corrections to other parts of the code I ran into later and a small addition to the weak pose checking for states as well.
I'll get the weak pose out of the way since it needs one small fix and the state check will go here as well.
Find the "Is Weak Pose" function inside MOG_CharPoses.js(the modified one from Flintx) and adapt it to how I have here. var weakStates = [] is where you will put your state ID's at to determine whether the weak pose will flag off them. I haven't thoroughly tested it yet but I don't think the addition will trigger any mismatched posing. If it I run into anything odd though and fix it I'll of course update this thread.
If you made a change from my prior post about the wait post then to be consistent we need to update the weak pose as well. It suffers from the same issue as the wait pose did but it's a quick fix.
Right underneath the section we were in is now where we need to add the conditional check for if the player is moving here. Same as what we did with the wait pose in my prior post. Except this time we are just slapping weak pose in the face and letting it know it's brother, wait, is ahead of the curve.
Next for a strange error I ran into with my setup and may not hold true for everyone's project. That said, if you are experiencing the issue I'm about to describe this fix should help you.
The issue at the time was when the party leader dies in chrono mode the rest of the party would no longer perform a stepping animation on anything other than movement sprites. Attacks, waiting, etc poses no longer performed stepping. It took me a bit with this one to find what plugin in this puzzle was actually responsible but I finally managed to track the function down and add a fix that thus far seems to work... kind of. I'll explain after the fix.
Spoiler: stepAnime = false??? bugfix?
This particular fix is inside the FlintX Custom-CrossEngine.js. I added in this._stepAnime = true; to attempt to rectify the issue. So here is the catch, if you want to call it that. While it does work and returns the sprite step animations back on it does so at a strange pace... what I mean by that is say the leader dies and immediately after this happens you just do nothing. Just stare at the screen. you'll see the party members animations freeze signaling the appearance of the bug I mentioned. However after a few frames pass they will begin animating again. Now let's say the party leader stays down cause no one likes that guy anyway, after certain actions that momentary hiccup in animation will reappear but correct itself again due that line added. I'm assuming here that function is getting rechecked pretty often and the offending function is as well before it and I just have no idea at this point which it is. Maybe the core issue is coming from one of the engines update phases but I'm not entirely sure. If anyone with more knowledge on this would like to add some info or point me in the right direction to fix it completely it'd be appreciated but I will continue to poke and prod a bit myself to see if I can find where the little bugger is hiding.
That said it's really not all that noticeable when it does happen, especially if a lot is already going on onscreen, so it's not the end of the world or anything aesthetically in my opinion. However... it's there, lurking... waiting.
Anyhow, have fun everyone!
EDIT: A quick update as I've tested that odd behavior more I mentioned above and it seems to only happen whenever a party member is not the focus of an action by an enemy or when they are not acting themselves. That is the behavior observed now with this._stepAnime = true included in the code. So this leads me to believe that party members other than the leader lose the focus of the battle engine unless specifically being acted upon or acting.
EDIT 2:
Alright so I believe I've nailed this issue down to some extent at least. If you are having this issue as I am we need to look back inside FlintX Custom-CrossEngine.js again.
Spoiler: Party leader dead stops stepping animations for party members fix
This is my altered update Animation function within that plugin.
I started focusing on the update portions of the different plugins and seems like this particular function overwrites the original contained within Mog's Chrono engine. It seems the primary change here that was made by Restart I think was changing the original's isActing to isPosing. Not knowing what all either of these is tied to quite yet I tried to poke as little at it as possible by accounting for either or as they should only be an active state when taking an action of some sort, I think anyway. I know isPosing is definitely used for that purpose but I'm not sure if there is more that it encompasses other than one function of note in the code that is a literal Jojo reference lol. Hats off to whoever did that one, it caught me off guard and gave me a good chuckle.
Anyway in all instances I did check it seemed to be used for specifically actions. So its safe to assume that I can check for it OR isActing to determine whether the battler is doing something with his time or sitting in place like the lay about I know he is. If we know he's just sitting there we tell him you could at least breath some. That's important... Thus stepAnime = true gets set here now. If they are acting it'll just follow the original lines of the function. I'll check up on it more when I have more time and if he's still sitting there holding his breath when I'm not looking I'll try and figure out why and post an update if I manage to make headway on the issue.
Take care all!
UPDATE: So i've been looking around at different areas of chrono engine, in particular, how eventID's are handled within the code for my own purposes. I just want to log some observations here for anyone interested and show a possible usage for access eventIDs of a skill or action's target. All throughout mog's code the eventID tied to an "enemy" is never really directly referenced. Most of the time he passes them around as arguments but mostly indirectly within the tool system he created. At first my goal was focused on using the 'target' object to find the relevant data. As a matter of fact this was just a battle of finding the correct object that held target data that ALSO held the object that holds the event data tied to the target. Did some debug probing at different places in the code during the different 'Phases' of chrono mode. My purpose was specific for this so I settled on the "prepare move totarget" function after confirming that target is an event and exists. In chrono mode, specifically, enemies are instances of Game_Event. The 'target' object is retrieved from the makeTargetsCN function which is where the target is determined in the context of the action being taken. That said, eventId() will properly return the ID of the corresponding event that is tied to the enemy when the event is represented with the target object.
Here is the way I'm using it. I probed the target object at this point to see what it contains as probing it during the selection phase was difficult to say the least as targets are being shuffled around and pushed into arrays and such. It revealed that within this function I can now access the target object directly and retrieve the eventid. The rest is represented in my comments. i store the id in variable 43 for ease of use in the editor. my check for switch 110 is just for the purposes of common events that I'm using 43 in and thus not relevant to the actual process of extracting the id.
▶ YouTube video
Anyway, just some observations for anyone that wants or may need it. Above is a video demonstrating what my intentions were. I used the eventID of the target of the skill being pulled here and used switch 110 to flip on common event that controls camera and perspective manipulation so I can focus the camera at the target of spells. The logic for handling actor's as target is handled elsewhere and the rest of the camera movement are prior additions I've already made to the engine in different places. Most of the action is handled by common events but those common events are called by switches I nested through different parts of the chrono engine code. Also to address a few things that might be of question to someone; about 90 percent of the sprite work is my own creations. There are few stand ins until I get around to finishing out more of characters, monsters, tilesets etc. anything not made by me can be credited to finalbossblues (fantastic artist btw) or of course the default graphics and mog as I based a lot of my UI creations around the limits of his HUD plugin. this is just my debug map so its not meant to be appealing aesthetically, in fact it's going to get far more chaotic over time lol. Anyhow, that's my two cents for the day.
Take care all.