Forum Discussion

Jyotai's avatar
4 years ago

Understanding 'Invalid Tuning' report? "Incorrectly matched tuning types - Expected 'E', got 'T'"

I ran a scan of my mods last night, and while I was able to fix some actual errors it presented, I've got a lot of tuning reports that I'm trying to learn how to read.

First question: Is there documentation on the XML files for these? I assume there is. Is there a big FAQ link I missed?


When I see a report like this:

chingyu1023_KindTrait_KindTrait | Incorrectly matched tuning types found in tuning for tags in Instance: 4050330852 (chingyu1023_KindTrait_KindTrait), Types.TRAIT. Expected 'E', got 'T'


And the xml for that looks like:



0xF8CFDD00
0xF8CFDD00
2f7d0004:00000000:df886b8f13ce954b
0xE262988B


13005381102845573556

0xC762D10C




CHILD
TEEN
YOUNGADULT
ADULT
ELDER


HUMAN



168034
168032
168037
168038
168040


PERSONALITY

TraitPersonality
TraitGroup_Lifestyle




Is this something I can just fix by changing all those stuff into stuff ?

Perhaps the only line I want to edit is this one?
13005381102845573556

- the buff type?


With a few old mods like the traits pack this one comes from, I've got hundreds of reports like this. So if this is a common issue, has someone automated the fix for it?

I see a lot of other things where I get 'something' is loading a value of None... but most of the errors comes down to 'Expected this, got that'.


Lastly... are these issues important? Do they mean these trait mods are not working?

  • MR_TURBODRIVER's avatar
    MR_TURBODRIVER
    Seasoned Newcomer
    Hey!

    To start, the actual issue with the provided Trait tuning file you sent is in the "tags" section. A list of tags contains Enumerators, which means each tag has to be in a "" tag, not a "" tag. An Enumerator is a number disguised as a name, so you can just look at it and know what it is instead of just seeing a bunch of numbers. Because the game knows what it needs to read from the "tags" section, this still works, but it would rather know it is an enumerator, making it faster to read and load into the game.

    Using "" is technically an incorrect way to do this, as it shouts at you with warnings, but it's still working fine. I had to learn that lesson myself. The "" tag just means Tunable, so anything that refers to a tunable element, which is almost everything. It's the generic tag.

    Here's what each tag is:

    'M' is Module,
    'C' is Class,
    'I' is Instance,
    'T' is Tunable,
    'L' is List,
    'V' is Variant,
    'U' is Tuple,
    'E' is Enum


    And no, I don't think anybody automated it, and although automating it is possible, it's best the original creators learn about this and correct their mistakes.
  • Thanks, that helps explain a lot.

    Almost all of these errors come from one mod pack, that hasn't seen an update in a few years - so if I wanted to get rid of those reports I'll have to do it myself most likely.

    But now I think I'm understanding what I'm reading more, so thank you for the detailed info.