For a while now, we've been having a problem with certain scripts from the Yanfly package not quite working as intended. I didn't know where else to ask but figured this would probably have the most experienced people available to give me their advice.
The issue right now is, we wanted the BattleSysCTB (Final Fantasy 10 turn based system) with the ability to change rows using the RowFormation plugins. We sat down to try figuring out what the issue was. Tried turning off all other plugins aside from just the ones needed for those to function and also tried using Yanfly's other custom battle scripts. The plugins look as though they are working, you can change row in battle and out of battle, that works fine. The FF10 style battle system works great, you can choose actions strategically based on the displayed turn order. The issue we're having is, changing characters from the front row to the back row doesn't appear to change the physical attack damage dealt or received and strangely, the Defend/Guard command doesn't actually work. They perform the action, but no damage dealt was reduced in any way. When switching to the Active Time Battle script, Defend/Guard then works correctly again, but the Row function still doesn't work. If anyone has any experience or advice for this, I would really appreciate it.
The most important part of all yanfly plugins is their order.
whenever someone reported strange behaviour from yanfly's plugins, in 99% of all cases the reason was that they were placed in the wrong order.
In your case, at least the core one is missing and I think several plugins are in the wrong position as well, so please check the correct order on yanfly.moe
remember to start new game after reordering because the reordering will make your old savefiles incompatible
1 - You need to fix the order of your plugins. They are only guaranteed to work correctly when they're in the specific order listed on the Yanfly Engine Web site, and I see just from the first few that yours are incorrect.
2 - You seem to have some misconceptions. Rows don't inherently do anything to damage. You need to configure that via notetags provided by the Selection Core, inclusion in your damage formulae/action sequences, or putting traits onto the states that can be applied on the rows via plugin parameters.
Guarding, obviously, should work, which is why I refer you to the first step with the correct plugin order. But as for anything else, it seems like you're assuming the plugin does something it's relying on you to configure.
When you fix the plugin order, save your project and start a new game (not a battle test, not loading a save). Let us know what works and what doesn't.
I attempted to change the load order, and added the one script that was missing, CoreEngine, but it didn't seem to have any noticeable effect. I'll look into this more, but it looks as though, even with the correct load order, it isn't working as intended.
So when you say it isn't working as intended, you mean Guard?
Check that you didn't modify the Guard skill or state by accident - the skill should apply the Guard state, and the state should have the Guard Special Flag.
Yes, all of that is correct. When I switch to the custom battle script, ATB, Guard works correctly, but in CTB, it doesn't.
I think there must be something wrong still in your order or setup or configuration of something.
The only mention of guard in the code of the CTB plugin is when calculating how many ticks the action takes.
It doesn't touch the applyGuard() or makeDamageValue() functions, which is where the damage reduction from Guard comes into play.
Agreed. After reviewing the tutorial video on how the ATB works, that plugin clearly isn't working correctly either. It's acting as though I'm using the standard engines Side-view Battle system and doesn't engage the active time meter at all. I'm confused as to why it is the way it is right now. The only other idea I have is to figure out a time when you're available and we can link up on discord so I can share my screen with you and you can see everything in real time.
You have item synthesis, but not item core.
and while many users don't know that, internally the engine handles all skills as variants of items.
so even while it is not listed as a requirement, I strongly suggest to test if the errors are solved by adding the item core - in a copy if you want to prevent changes to the main game until they're tested.
Please keep in mind that the item core changes a lot if configured wrong, and several of the defaults have surprised other people like randomized equipment values.
After adding Item Core I tested and the issues still persisted. I did also notice another issue, that looked like screen tearing, the sprites seem to have a one pixel strip cut horizontally below their shoulders. The harder I try to understand and fix this, the harder it fights against me. I'm more confused about whats going on now than when I started this post.
The more you say and the more we analyze, the more it appears plugins were put into your project without being careful about their placement, prerequisites, and possibly configuration.
It sucks, but I make the following suggestion:
- Make one more pass comparing your list to the Yanfly Engine order. Make sure to check anything where you see the parentheses about a required plugin.
- Turn off all of your plugins except the Battle Engine Core and CTB. Make one more pass slowly and carefully through the parameters, make sure everything is set up as you need.
- Save your project, start a new playtest (not a battle test, not a save game) and get into a fight. See if the battle system is the CTB and Guard works.
- If no, you have borked something in your setup.
- If yes, start turning on plugins a few at a time, save, test a fight. Do this until you find where the problem is.
Alright, back to this thread again.
I did a bunch of testing, following your suggestions, turned everything off that you recommended and went over all the video tutorials that touch on the battle system being used in our project. I did some battle testing and for a moment, Defend worked and then didn't. Supposedly the CTB battle system uses a tick based thing for calculating turns. This is something we noticed before when trying to make status effects that lasted X amount of turns. Between actors turns, we would see as many as 5 turns get shaved off the status effects. I think whats happening is, the Defend action is being run, than immediately turning off as the actors turn is ending before the enemy attacks. I didn't realize what was happening until now, the reason with the status effects and why Defend were not working as intended.
Now that this issue is understood, how do we fix this so that it works correctly?