SKSE's Utility.GetINIBool() Method Broken?

Post » Thu Feb 05, 2015 4:06 pm

Given this code:

Scriptname ADVSMEntryTriggerScript extends ObjectReferenceImport DebugImport UtilityQuest Property ADVSMQuest  AutoObjectReference Property ADSMEntryMarker  AutoEvent OnTriggerEnter( ObjectReference akActionRef )	ADVSMQuestScript Mover = ADVSMQuest as ADVSMQuestScript	if ( akActionRef == Game.GetPlayer() )		akActionRef.MoveTo( ADSMEntryMarker )		Mover.MoveFollowers( Mover.DirectionIn )		Bool bSOT = GetINIBool( "bSaveOnTravel:MAIN" )		Notification("bSOT = "+bSOT)		if ( bSOT )			Game.RequestAutoSave()		EndIf	EndIfEndEvent

bSaveOnTravel is in the [MAIN] section of SkyrimPrefs.ini, and regardless of whether it's set to 1 or 0, GetINIBool always returns 0, so obviously, we'll never RequestAutoSave(). I've tried this with GetINIInt() as well, with the same result.

I've scoured the web for information about this problem, and come up empty-handed. All I find is complaints that the GetINI* methods don't work. Perhaps someone from the SKSE team could chime in here?

Thanks in advance!

-HB

User avatar
Toby Green
 
Posts: 3365
Joined: Sun May 27, 2007 5:27 pm

Return to V - Skyrim