0
Not Reproducible

[STATS] Bug

Michael Bay 3 months ago in Stats updated by Marti (Lead Developer) 2 months ago 1

I've been getting this message

"Stat called  not present in TLB. Did you remove it?"

Obviously, I changed or deleted something... but tracking it down is a problem. 


Line 863 of the Stats.cs script is this: 

Debug.LogError("Stat called " + stat + " not present in TLB. Did you remove it?"


The value of stat is not being returned.

Unity version:
2019.4.0f1
Game Creator version:
1.1.9
Not Reproducible

When it says "Stat called '' not present" means that you're trying to use an empty stat. Look over your Formulas and see if you're doing something like:

stat[]

The empty space in the error informs of the name of the stat that's not found. Since that value is empty, means you have a Formula using a stat without a name.

If that's not the case, would you mind creating a minimum reproduction steps scene? Otherwise it's impossible for us to narrow down where the problem is.