Honestly, it feels like most of your problems are derived from using old save data. It seems that for some reason your person objects don't have a member variable. You will likely need to add the "dietexpanded" dictionary from person.gd to your slaves in the save file. It's strange that they didn't gain it when being loaded, but there is no way to add it to the person objects afterwards. Though you could transfer all the slave's data from objects loaded from file to freshly created objects, it's a fair amount of work.
Viewing post in Aric's Expansion Rebred
'treatment' is also a old save file problem, though it is missing an entry in the function "backwardsCompatibility" . At the end of the "person.mind" entries add:
if !person.mind.has('treatment'):
person.mind['treatment'] = []
Though, there are a lot more entries in "person.mind" that do not have compatibility entries. At some point, I'll have to see if I can put together a more comprehensive compatibility fix.
The 'fetish' problem is not a direct error message, as there are 2 errors but we are only seeing the second. In this line:
text = "[color=red]Error at getting description for " + value + ": " + person.fetish[value] + '[/color]. '
"person" is never given any value, nor is there any way to get such a value in the current function. Simply replacing it with:
text = "[color=red]Error at getting description for " + value + '[/color]. '
Will fix that error and reveal the first error, which is likely also an old save file problem as "person.knownfetishes" contains a value which is not listed in "fetishdict" of the "getFetishDescription" function .
It’s actually no trouble at all, my primary programming language is java, so it’s good to learn more about others, I’ll be away from my computer for the weekend, so I won’t be able to help you during that time, however, I fixed the errors using your help, now the only error I’ve noticed is the stress_mod one, which isn’t your mods fault (it’s most likely mine) I’ll let you know if I have any further issues.