Jump to content

Photo

Using with SkyUI/MCM Configuration Mods


  • Please log in to reply
No replies to this topic

#1
drmmrdude22

drmmrdude22

    Journeyman

  • Members
  • Pip
  • 28 posts
I have a bit of a recommendation for anyone trying to use this mod with SKYUI and other mods that involve remapping controls through the MCM interface, and may be most efficient to release two "versions" of this mod: one for those with SkyUI, and one for those without (using stock game controls with no MCM interface mods).

I was looking a bit at the SDK for SkyUI, and I think the structure of it has some limitations when it comes to the nature of how this mod allows players to map commands to their controller buttons. In particular, it appears that the event proc'ed when a key is remapped is proc'ed on the buttondown event of the system. Meaning, if one were trying to remap a key using this mod to Hotkeys 5-8 (or any command that requires a modifier key be pressed first),the modifier key is the key first recognized and passed through the event function in SkyUI. However, if that function were to be adjusted to be fired on a buttonpressed/buttonreleased event then the argument passed through the event function for remapping a key in SkyUI would contain all the keys pressed (i.e. a modifier key AND the main key, in this case LB+DPAD Up/Down/Left/Right). That is a hardcoded limitation of the SkyUI code though, and would need the developers working on it to release a fix for that. I plan on dropping a line over there about this, and possibly on their Github repository page where SkyUI is being developed. It would help get the developer's attention if more people were on board with me about this suggestion I'm sure. This kind of fix grants robustness not just to expanding controller remaps within SkyUI's favorites groups, but also other mods that use the MCM configuration menu as well. For instance:

- I use Wearable Lanterns, iHUD, Frostfall, and Realistic Needs and Diseases. These mods all use very useful buttons that will trigger various updates or toggles related the mods.
- If SkyUI could be edited to allow the aforementioned suggestions, then all of these mods could benefit. My intention would be to map DPAD Up to toggle iHUD/Compass/Frostfall Meters, DPAD Left, Right, and Down would trigger my 3 primary favorite groups from within SkyUI, and then my modified DPAD Keys (which are pressed while LB is held down) would toggle my wearable lantern light, Realistic Needs and Diseases status's, Survival menu for Frostfall, etc.

As far as getting the most functionality out of this mod without SkyUI being edited yet, I will make these recommendations:

- It may be best to edit the controlmap file of this mod and remove the bindings to directional pad buttons (0x0001,0x0002,0x0003, or whatever they are) and replace them with 0xff. BACKGROUND IF INTERESTED: SkyUI and MCM configuration menus run a check to see if any button sent conflicts with a stock Skyrim key binding, as well as checking if that key is binded to an MCM configured mod. If it is, it sends a message to let you know. Some mods let you rewrite that button anyway, for instance: I can bind the "A" controller button to favorite group 1 in SkyUI, even though it is also the stock "Activate" button in the game. I will get a message saying so, but SkyUI will let me do it anyway. That is not the case with all mods though; Wearable Lanterns does not let you rebind a stock game key to toggle the lantern. So I could not use Hotkey 4 (DPAD Left in this mod) to toggle my wearable lantern. However, if this controlmap file is edited and you replace the hotkey buttons with "0xff", then the game doesn't see any controller button mapped to that command and I can assign the button appropriately in Wearable Lanterns.
- So if you want to be able to tie at most 4 directional buttons to the SkyUI favorite groups (or any of the other MCM configuration menu mods), simply replace the directional button assignments in this controlmap file to "0xff" for the GAMEPAD column, and then assign the key as you usually would within SkyUI.

If you have any questions regarding how to do this, reply on this thread and I'll try to help as best I can. It would be awesome of the @Waldkoenig saw this and could copy it and sticky it to this commend thread!

If this helped you, definitely give some kudos and head over to SkyUI to let them know about this potential solution!




Page loaded in: 1.197 seconds