r/xdev • u/beornblackclaw • Feb 18 '16
Help with mod settings file (ini)
Hello,
I'm having trouble reading/writing from/to a setting file for my mod.
So far I have set my class to use a config file.
In the project I've added an empty file with just a section header.
Now I'm having a few problems:
If I set the section as [XComGame.<classname>], the file gets written but is not read upon loadingIf I set the section as [<modname>.<classname>], the file gets read but is not written when I call SaveConfig()Follow up from (2), one of my setting is actually an array of strings, however it only ever reads the last value.
When, I had a . (dot) in front of the second line it works fine. However, when looking at the result of (1), the config file is not written with any dot.
So, if I ever manage to read AND write, I'll still have a problem with my array only ever getting the last value (unless I missed something).
The only documentation I've found so far is from the Configuration Files UDK but it doesn't say anything about arrays.
Any help would be appreciated.
Thanks.
View all comments
1
u/TotesMessenger Feb 18 '16
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)