SetINIInt only works if player has it already in the INI?

Post » Wed Feb 05, 2014 10:33 am

for SetINIInt wiki says:

"This function can only change the values of pre-defined ini settings in Skyrim.ini and SkyrimPrefs.ini and only during the current game session. It cannot create new settings and does not save them to an ini file."
I am a little confused, does this mean the player must FIRST manually write the setting in the INI if it is not already in his/her ini file for this function to work? (GOD I hope not) :confused:
Or does it only mean that this function will not EDIT the TEXT based ini file with the called setting via the script.

User avatar
Anna Kyselova
 
Posts: 3431
Joined: Sun Apr 01, 2007 9:42 am

Post » Wed Feb 05, 2014 7:58 am

I think what they are trying to get across is that you can't arbitrarily create a new INI setting yourself like "iEyesPerCyclops=1". You should be able to modify the values of any INI setting that has been verified as existing, for example "bDisableGearedUp" comes to mind, even if the user doesn't have a value set for it in an INI file (I would assume that every setting has a default value).

User avatar
Liv Staff
 
Posts: 3473
Joined: Wed Oct 25, 2006 10:51 pm

Post » Tue Feb 04, 2014 10:03 pm

Yes, after some testing with the arrow settings I SEEM to be able to use this function to change the said settings even if they are NOT already written into the INI text file.

wow, so some people thought that this (any) function could "create" new settings that did not exist? Is that note really necessary?

But thank you for the second opinion on the intent of that Wiki note.

User avatar
Josh Dagreat
 
Posts: 3438
Joined: Fri Oct 19, 2007 3:07 am


Return to V - Skyrim