Possible to set skyrim.ini settings through mod?

Post » Mon Jun 18, 2012 8:49 pm

Hi, I'm new to coding for Papyrus (I do know some Java, C# coding though) so I'm totally green on everything. I want to create a simple mod to start with that will allow you to ride the horse in first person view. I know this has been done but I still want to do it so I can get the hang of how it all works. The only mod I've found though is one that gives instructions to change the Skyrim.ini file. Rather than doing that I'd like to set those options through a script that checks for the player sitting on a horse. Here's the .ini settings -



[Camera]
fVanityModeMaxDist=6000.0000
fVanityModeMinDist=10.0000
fMouseWheelZoomMinDelta=0.0050
fMouseWheelZoomSpeed=0.8000
fMouseWheelZoomIncrement=0.01
fMinCurrentZoom=0.001
fActorFadeOutLimit=-100
fOverShoulderHorseAddY=88.0000
fOverShoulderHorsePosZ=80.0000
fOverShoulderHorsePosX=0.0000

So what I want to know is, can I set those during runtime on the player sitting on a horse event? If so, how. Can I just use them "as is" or do I need to reference them in some way?

Thanks for any help.

EDIT* While I'm here I may aswell ask this too.

This is the event to check if an actor is sitting on a horse

ActorID.GetSitting

That will return a number depending on what he/she is sitting on. The thing I need to know is, what is the ActorID for the player? How do I find this? Thanks.
User avatar
-__^
 
Posts: 3420
Joined: Mon Nov 20, 2006 4:48 pm

Post » Tue Jun 19, 2012 1:08 am

Add those values to a YourPluginName.ini and they'll override the default values when YourPluginName.esp is loaded. There's no SetGameSetting() for Papyrus, so you can't do anything of the sort on-the-fly. *is hoping SKSE remedies this*
User avatar
Eibe Novy
 
Posts: 3510
Joined: Fri Apr 27, 2007 1:32 am

Post » Mon Jun 18, 2012 2:04 pm

Also of relevance:
  • http://www.creationkit.com/SetINIBool_-_Utility
  • http://www.creationkit.com/SetINIFloat_-_Utility
  • http://www.creationkit.com/SetINIInt_-_Utility
  • http://www.creationkit.com/SetINIString_-_Utility
Cipscis
User avatar
dav
 
Posts: 3338
Joined: Mon Jul 30, 2007 3:46 pm


Return to V - Skyrim