Letters converted from upper to lowercase in strings

Post » Fri Jul 10, 2015 10:07 am

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

User avatar
Tarka
 
Posts: 3430
Joined: Sun Jun 10, 2007 9:22 pm

Post » Fri Jul 10, 2015 2:48 pm

See if this topic answers your questions. Had to dig this one up with google, as for some reason this forums search function is broken... :/

http://www.gamesas.com/topic/1477370-papyrus-string-caching/

User avatar
Nims
 
Posts: 3352
Joined: Thu Jun 07, 2007 3:29 pm

Post » Fri Jul 10, 2015 6:05 pm

Thanks, mojo22, that's it! Kudos to you.

Doing some localization now for a 95% workaround :)

Can't thank you enough! That really drove me mad.

Granson

User avatar
Nathan Hunter
 
Posts: 3464
Joined: Sun Apr 29, 2007 9:58 am


Return to V - Skyrim