diff --git a/README.md b/README.md index ffd709e..3ae01b7 100644 --- a/README.md +++ b/README.md @@ -3,15 +3,14 @@ Utility scripts that can be used as helper tools for various purposes ### All of these script files should be saved or copied to, and then run from, the profile folder to be looked at. -- **empty-config-finder.bat** - Searches through a Minecraft profile to help find and remove config files which may be corrupted. Run it from th main profile folder. +- **empty-config-finder.bat** - Searches through a Minecraft profile to help find and remove config files which may be corrupted. Run it from the main profile folder. ([**right click 'save link as' to download** / left click to view](https://raw.githubusercontent.com/CurseForgeCommunity/Script-Tools/main/files/empty-config-finder.bat)) - **mcreator-finder.bat** - Searches through found JAR files for folders and files known to indicate the JAR being made using the mcreator tool. Run it from th main profile folder. ([**right click 'save link as' to download** / left click to view](https://raw.githubusercontent.com/CurseForgeCommunity/Script-Tools/main/files/mcreator-finder.bat)) - **modIDlist.bat** - Generates a formatted list of modIDs and their corresponding filenames. Works for Forge / Neoforge / Fabric profiles! Fabric files list their required dependency mods. - - ([**right click 'save link as' to download** / left click to view](https://raw.githubusercontent.com/CurseForgeCommunity/Script-Tools/main/files/modIDlist.bat))) + ([**right click 'save link as' to download** / left click to view](https://raw.githubusercontent.com/CurseForgeCommunity/Script-Tools/main/files/modIDlist.bat)) - **mod_searcher.bat** - Searches for user-entered string names inside of mod files. Good for finding problematic mods when it isn't clear where a problem is coming from. Run while placed in the main directory of a profile or server. ([**right click 'save link as' to download** / left click to view](https://raw.githubusercontent.com/CurseForgeCommunity/Script-Tools/main/files/mod_searcher.bat)) diff --git a/files/modIDlist.bat b/files/modIDlist.bat index a055ff4..aca2a4c 100644 --- a/files/modIDlist.bat +++ b/files/modIDlist.bat @@ -19,7 +19,7 @@ ECHO: & ECHO MAKING LIST OF FILES - PLEASE WAIT... & ECHO: :: Goes to mods folder and gets file names lists. FINDSTR prints only files with .jar found :: Creates list of all mod file names. Sends the working dir to the mods folder and uses a loop and the 'dir' command to create an array list of file names. -:: A For loop is used with delayedexpansion turned off with a funciton called to record each filename because this allows capturing +:: A For loop is used with delayedexpansion turned off with a function called to record each filename because this allows capturing :: filenames with exclamation marks in the name. eol=| ensures that filenames with some weird characters aren't ignored. SET SERVERMODSCOUNT=0 PUSHD mods @@ -52,7 +52,7 @@ IF NOT EXIST "minecraftinstance.json" GOTO :askmodloadertype ECHO FOUND A CURSEFORGE minecraftinstance.json - USING IT TO SET PROFILE TYPE! & ECHO: -REM Character escaping special characters that break the powershell calls below. Please stop putting speical characters in names, thx. +REM Character escaping special characters that break the powershell calls below. Please stop putting special characters in names, thx. SET "THISLOC=%CD%" SET "THISLOC=!THISLOC:'=`'!" SET "THISLOC=!THISLOC:[=`[!" diff --git a/files/mod_searcher.bat b/files/mod_searcher.bat index c072566..e8272e5 100644 --- a/files/mod_searcher.bat +++ b/files/mod_searcher.bat @@ -28,7 +28,7 @@ CD "%CD%/mods" :: If it doesn't exist yet create a temp folder for holding temp files, and then extract contents of the JAR files out into txt files. IF NOT EXIST "%CD%/mod_searcher_working" MD mod_searcher_working -:: Disalbing delayed expansion and sending to a function allows correctly using file names containing exlamation marks ! +:: Disalbing delayed expansion and sending to a function allows correctly using file names containing exclamation marks ! setlocal enableextensions setlocal disabledelayedexpansion FOR %%i IN ("*.jar") DO ( @@ -46,7 +46,7 @@ GOTO :EOF PUSHD mod_searcher_working -ECHO: & ECHO %RANDOCOLOR% Prepartion done %black% +ECHO: & ECHO %RANDOCOLOR% Preparation done %black% :search_start ECHO: & ECHO: & ECHO: SET /p "SEARCHFOR=%RANDOCOLOR% Enter string to look for: %black%"