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.
- 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)
- (Optional) Open console(as Admin if needed) and execute:
- 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
)
- (To delete submenu run
- Put
- Simple (direct script file):
- (Optional) create shortcut to the script with empty work directory
- Set desired mod variation in-game and press
F10
- Advanced setup:
- Simple setup:
- Copy
Global Persist Swapkey.py
(or prepared shortcut) inside needed mod folder and run it
- Copy
- Script will look for all
.ini
files inside given mod folder(skippingDISABLED
) and set new swapvalues:
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).
- Place
SwapLock.ini
insideBufferValues
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.
- To restore backuped version run
SwapLock.py -r
from console within needed folder(s)