It first occured when I made a string array. Something along
string[] myStringArray
myStringArray = new string[8]
myStringArray[4] = "mild"
Note the lowercase "m" in "mild"
A
debug.notification(myStringArray[4])
showed "Mild" in-game instead of "mild".
It has nothing to do with the script. First I thought that "Mild" was somehow baked in the save game I loaded. So I started a new game - with the same result. I put the code including the debug.notification directly in the OnInit() event - with the same result. When I changed "mild" to "nild", "sild" or even "mmild", these strings showed up correctly in-game (with lowercase "n", "s" and "mm"). In the end I had to subtitute "mild" for something else.
Today I made a mcm menu and used something like
AddHeaderOption("Damage") or
AddToggleOption("Shader", myVar)
And what did I see in the mcm menu? "damage" and "shader"! Note the lowercase "d" and "s". So this also "works" the other way round. However, other strings used in the menu showed up correctly. Can this somehow be related to codepages? I use ISO 8859-1.
It's driving me nuts at the moment and I'm sure it's some kind of embarassing oversight of mine.
Any idea?
Thanks, Granson