TP and Buff display broken...

After I set up Luna Engine's battle components, both the TP and Buff Display get broken.
exYGjVx.png

I have placed the scripts as shown in DoubleX's CATB demo, but it still doesn't fix it.

Demo link: https://1drv.ms/u/s!AowFk9JrOHXgh_hKPnfIabe4gFes1g
Try changing the Z Index
Okay, this did fix the TP gauge, but it didn't fix the issue with the State display freaking out in some states:
p1iDNCb.png
Hi @AceOfAces_Mod I don't understand how it's freaking out?
@Archeia , some of the states don't show the correct numbers. Rather than showing that it's remved after 4 actions (for example), it either shows 0 or 0.0 .
Huh, I just noticed: If I move the States to a specific z offset (in relation to the TP Display) it breaks the TP Display. If I move that TP Display into something higher, it fixes itself. Weird...
Uhh... Hello?
I'm still scratching my head with this. Tried Type 1 rendering with TP numbers, but it still causes display issues.
EDIT: Figured out why the TP Counter goes nuts at the start of the battles. Luna has the bug. It doesn't like the Preserve TP flag. I was able to fix Buff and State Manager showing weird numbers with a different compatibility script.
Thanks for the tip and demo. I got my buff states working now.
And miraculously I got the tp working just now. I was having the same issue as you. I'm using custom graphics for the numbers and it always showed 000 for the starting tp with preserve tp on. Then when gaining some tp (say 6) the next battle would show 6000.
I got this fixed by added a .to_i on line 1784 for the tp under def real_number.

Original thread: https://forums.rpgmakerweb.com/threads/tp-and-buff-display-broken.76667/