Yanfly's TP_Manager problems with SMALL values?

For the mechanic I want to create, I'm maxing out all actor's TP at 5, which resets at the end of every battle to zero. Depending on what character is doing an action, you gain TP. For example, the Healer only gains TP when Healing, and the Warrior only gains TP when dealing damage.
This is how I set up the general TP Settings.
1589077206341.png


Using Yanfly's TP_Manager I set up a default TP Mode to quickly test whether or not it worked.
Here I attempted to make a TP Mode where you gain 1 TP for either dealing damage, evading a move, or being the last one alive in the party.
1589076873800.png

When testing this in a battle, TP was added when my actor attacked, just like I wanted. However...
1589077052440.png

1589077100369.png

Instead of adding 1 TP, it added 5 and maxed it out. (I tried attacking again to see what would happen, and gained no more TP. The TP's limit is set correctly at 5 from what I can tell.)

Is there some sort of formula I have to follow to make the TP it adds only be 1 instead of maxing it out?

(Also, a sidenote, how do I make the TP graphic scale with the smaller values?)
Yanfly TP manager seems lacking one specific code. Try to put this patch below the script
Code:
class Game_BattlerBase
  # --------------------------------------------------------------------------
  # Overwrite TP rate
  # --------------------------------------------------------------------------
  def tp_rate
    @tp.to_f / max_tp
  end
end
This will fix the graphical glitch one.
Is there some sort of formula I have to follow to make the TP it adds only be 1 instead of maxing it out?
what you have done in the script should be good. What might be happening is that you have another script that is overwriting Yanfly's TP Manager. Look for charge_tp_by_damage (ctrl+shift+f).
Are there any scripts below tp manager that has this? if so that might be why.
Place yanfly's script below them.
lacking one specific code
my copy of the script has it.
Ruby:
  def tp_rate
    @tp.to_f / YEA::TP_MANAGER::TP_LIMIT
  end
Added on the code to fix the graphical bug. Looks just fine now! However, I don't have any other scripts under Materials other than Yanfly's TP Manager.
1589141412577.png



EDIT:

Found one of the issues! It completely slipped my mind to check the TP Gain of the attack I was using.
1589141739442.png

Almost perfect...
1589141868166.png

But after that round, I gained another 1 TP. I didn't see any options in Yanfly's TP Manager that should make this happen (other than regen_tp, which i had set to 0.)
1589141917671.png
it can either be a rounding error with TP for damage received (perhaps you should set that to zero in the actor traits as well) or it could be due to dealing damage, which is set to 1 in your configuration snippet above.
Can you explain how to set that to zero in the actor traits? Is it in the features tab for Actors, or is there a tag you need to put in the notes?
traits are what the features are called in RMMV, sorry. and yes it is one of the parameters.

notes have absolutely no functions by themselves, they need a script that reads them and then the script decides what effect they should have.
I didn't see any options in Yanfly's TP Manager that should make this happen
yes there is. You're configuration says only_alive => 1
the battler is the only one alive. Do a play test with two actors.
yes there is. You're configuration says only_alive => 1
the battler is the only one alive. Do a play test with two actors.

That did the trick, I can't believe I didn't think of that, haha. The system is working just fine now!
Thank you both for your help!

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-tp_manager-problems-with-small-values.121335/