Jump to content

MCM display debug variables without sliders?


Halstrom

Recommended Posts

Posted

I want to create a page in MCM of debug info of major variables etc so users who can't do the log file thing can just screenshot it. Is there a way to do it without a bunch of sliders? I've looked through the demo but can't see nay example of that or anything on the MCM Wiki, its probably just infront of my face and something I don't know how to do yet :tongue:

Posted

You can use text replacers that don't do anything.  Use a property value as a buffer in your psc

 

So, something like this


 

Int Property iVariableToReport Auto Hidden
GlobalVariable Property GlobalToReport Auto

Event OnInit()
	RegisterForExternalEvent("OnMCMOpen", "OnMCMOpen")
EndEvent

Function OnMCMOpen()
	iVariableToReport = GlobalToReport.GetValue() as int
	MCM.RefreshMenu()
EndFunction

 

This way, your text replacer doesn't accidentally overwrite the value you want to display

 

In your config.json, this is how you would want to display the value

 

{
			"id": "GlobalCheck",
			"text": "Text if you want it",
			"type": "textinputInt",
			"valueOptions": {
				"sourceType": "PropertyValueInt",
				"sourceForm": "Checker.esp|####",
				"propertyName": "iVariableToReport"
			}
		}

 

I have an independent leveling system that has it's own separate perk structure and leveling from vanilla, so i can't use LevelUpMenuEX to insert my perks.  My workaround is to use MCM and display the perk points with this method.  The users can change the value, but it won't do anything.

Posted

Yeaha most of my globals can't be changed anyway as they read from script values, but I just wanted to make it simple to put 30 of them on one screen :smile:

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...