Skip to content

NightLancer/ScriptTools

Repository files navigation

Global Persist Swapkey

Automatically saves(writes to mod's ini) all active swapkey values for given mod(s).
Supports XXMI/GIMI/SRMI/ZZMI/3dmigoto/etc as long as d3dx_user.ini is located on same level as main Mods folder.

Setup:

  • Ensure Python is installed (and was added to Path variable during install)
    • (Optional) Open console(as Admin if needed) and execute: pip install colorama (coloring library for better readability)
  • Advanced (regedit submenu) [*recommended*]:
    • Put Global Persist Swapkey.py, S.ico, Add Context-menu command.bat, Delete Context-menu command.bat inside any stable path(folder) that won't be renamed/moved
    • Run Add Context-menu command.bat to register submenu
      • (To delete submenu run Delete Context-menu command.bat)
  • Simple (direct script file):
    • (Optional) create shortcut to the script with empty work directory

Usage:

  • Set desired mod variation in-game and press F10
  • Advanced setup:
    • Open mod folder and click on command from context menu(RMB):
      subm
  • Simple setup:
    • Copy Global Persist Swapkey.py(or prepared shortcut) inside needed mod folder and run it
  • Script will look for all .ini files inside given mod folder(skipping DISABLED) and set new swapvalues:
    disp

SwapLock

Lock all mods' swapkeys behind desired master key. Helps to prevent unintended accidental swapping for mods having a lot of keyboard mapped(especially over in-game keys).

Setup:

  • Place SwapLock.ini inside BufferValues folder (if you don't have one - can just place in 'Mods' folder)
  • Run SwapLock.py inside single modfolder - or outside several modfolders to process all at once.
    Before overwriting ini backup will be created.
    1
    • running it over already processed inis will not take effect 2
  • To restore backuped version run SwapLock.py -r from console within needed folder(s) 3

Usage:

  • Press \ key (main keyboard) to toggle lock state. Key can be changed in the SwapLock.ini
    Information about lock state will be displayed for 2 seconds upon change.
    4

About

Quick swapkeys saving using context menu

Resources

License

Stars

Watchers

Forks