Last active
July 16, 2025 14:07
-
-
Save NAEL2XD/d3e8af05388a5b451b23c31f6d6c2b36 to your computer and use it in GitHub Desktop.
FNF Utils: No -normal prefix to with -normal prefix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| ## ## ### ######## ## ####### ## ## ######## | |
| ### ## ## ## ## ## ## ## ## ## ## ## | |
| #### ## ## ## ## ## ## ## ## ## ## | |
| ## ## ## ## ## ###### ## ####### ### ## ## | |
| ## #### ######### ## ## ## ## ## ## ## | |
| ## ### ## ## ## ## ## ## ## ## ## | |
| ## ## ## ## ######## ######## ######### ## ## ######## | |
| Required Libraries: | |
| glob - pip install glob2 | |
| How to use: | |
| 1. Go to any Psych Engine mods directory. | |
| 2. Go to the "data" directory. | |
| 3. Assuming you copied this script, paste that in and launch CLI|Terminal | |
| 4. In the CLI|Terminal, type "python normal-support.py" | |
| """ | |
| import glob | |
| import os | |
| import sys | |
| import shutil | |
| if not os.getcwd().endswith("data"): | |
| print('You are not in the DATA directory (which contains the charts), go to that directory and try again.') | |
| sys.exit(1) | |
| backup = input("Would you like to make a backup of your normal JSON charts?\n [Y] = YES | [N] = NO").lower() == "y" | |
| for file in glob.glob("**", recursive=True): | |
| #print(file) | |
| if not file.__contains__("-normal") and not file.__contains__("-nerfed") and file.endswith(".json") and not file.endswith("events.json"): | |
| file2 = list(file) | |
| file2[file.rfind(".")] = "-normal." | |
| file2 = ''.join(file2) | |
| shutil.copyfile(file, file2) if backup else os.rename(file, file2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment