SKSE GetINIxxxx, anyone?

Post » Sat Nov 17, 2012 12:11 am

Has anyone had any luck at all with any of the SKSE GetINI functions mentioned on the http://www.creationkit.com/Utility_Script page? Specifically,
http://www.creationkit.com/GetINIString_-_Utility and http://www.creationkit.com/GetINIFloat_-_Utility?

I tried reading ini settings from the:
Skyrim.ini
SkyrimPrefs.ini
.ini <== this would have been prefered!

I have tried the following function calls:
Utility.GetINIString("sLanguage:General") ;Skyrim.ini
Utility.GetINIString("General:sLanguage") ;Skyrim.ini
Utility.GetINIFloat("Display:fShadowLODMaxStartFade");Skyrim.ini
Utility.GetINIFloat("fShadowLODMaxStartFade:Display");Skyrim.ini
Utility.GetINIFloat("fShadowDistance:Display") ;SkyrimPrefs.ini
Utility.GetINIFloat("Display:fShadowDistance") ;SkyrimPrefs.ini
Utility.GetINIFloat("fShadowDistance:Display") ;.ini (I copied the entries from the SkyrimPrefs.INI)
Utility.GetINIFloat("Display:fShadowDistance") ;.ini (I copied the entries from the SkyrimPrefs.INI)

Nothing has worked. Am I missing something?

I really need this functionality as I don't see any other way to pass a string to my mod. Unless I'm missing something and this actually works or someone has another option, I'll be looking at a SKSE plugin next.
User avatar
Far'ed K.G.h.m
 
Posts: 3464
Joined: Sat Jul 14, 2007 11:03 pm

Post » Sat Nov 17, 2012 3:54 am

Is no one is actually using the GetINIString, GetINIFloat, GetINIBool functions? And btw, when I saw they don't work, I mean they all return the default value (nothinng, zero and false, respectively).

Anyone have any clue what file these functions are supposed to be reading from, since they don't seem to be reading from the default ini files? Or is there a way to set the file to read from?
User avatar
Madeleine Rose Walsh
 
Posts: 3425
Joined: Wed Oct 04, 2006 2:07 am

Post » Sat Nov 17, 2012 2:49 am

The Get functions are - sadly - not documented in the wiki ... However the opposite SET functions are documented ...

There is a note to say they (Set funcions) will only work with vanilla settings from the two vanilla ini files (so you're preferred option is a no go).

Can't help with why it isn't working, though ... Your examples look good to me (given the GET methods are identical in syntax to the SET functions) ...

... I hope not, but maybe the lack of GET documentation means those functions are not working?



(I saw a post, a few days ago, mentioning GetINI ... but I can't remember which post :()
User avatar
BrEezy Baby
 
Posts: 3478
Joined: Sun Mar 11, 2007 4:22 am


Return to V - Skyrim