My mods MCM page won't show up

Post » Wed Nov 20, 2013 9:15 pm

After returning to skyrim it was time to update my mods and give them a MCM menu...

following the quickguide https://github.com/schlangster/skyui/wiki/MCM-Quickstart I stumbled by not able to see my page when at the point when the guide states my MCM page should be visible.

- downloaded and installed the SkyUI SDK 4.1 ( same version as my SkyUI )

- made new quest ( run on startup )

- made new script extending SKI_ConfigBase

- added string property ModName and entered my mod name as a value

- added PlayerAlias under Quest Aliases like shown in the guide ( For Fill Type, select the player reference (Specific Reference, Cell any, Ref PlayerRef ) )

- Added script to the PlayerAlias ( SKI_PlayerLoadGameAlias ) ... same way as in this http://i.imgur.com/2LHw0.png

- compiled quest script

- attached quest script to quest

- saved esp

no MCM page for my mod...

The script itself

Spoiler

Scriptname dyReanimateQSmcm extends SKI_ConfigBase

; OIDs
int aOID
int bOID

; Toggle states
bool aVal = false;
bool bVal = true;

event OnPageReset(string page)
AddHeaderOption("Group 1")
aOID = AddToggleOption("A", aVal)
bOID = AddToggleOption("B", bVal)
endEvent

event OnOptionSelect(int option)
if (option == aOID)
; ... handle A select
elseIf (option == bOID)
; ... handle B select
endIf
endEvent

I oblivionsly did something wrong..

User avatar
Noraima Vega
 
Posts: 3467
Joined: Wed Jun 06, 2007 7:28 am

Post » Wed Nov 20, 2013 6:03 pm

Try adding the following to dyReanimateQSmcm.psc

Event OnConfigInit()  ModName = "My Mod"  ;init any other variables like the pagelist or text labels here, tooEndEventEvent OnGameReload()	Parent.OnGameReload()	OnConfigInit()EndEvent
User avatar
Laura Ellaby
 
Posts: 3355
Joined: Sun Jul 02, 2006 9:59 am

Post » Wed Nov 20, 2013 5:40 pm

This looks like its going to work.. trying... well , the code makes sense

Ah.. skyrim scripting is nothing like tesIII/tesIV scripting.. still slowly getting warm with it

EDIT: Doesn't work for me. Tried to give the ModName an empty value in the property window .. then the same name as in Event OnConfigInit() ModName = "My Mod Name" .. yada.. nothing.. no MCM page for my mod

EDIT 2: Works now.. forgot to change the quest to "run once" and wait for it to be registered

User avatar
james reed
 
Posts: 3371
Joined: Tue Sep 18, 2007 12:18 am


Return to V - Skyrim