Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions files/modIDlist.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:[=`[!"
Expand Down
4 changes: 2 additions & 2 deletions files/mod_searcher.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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%"
Expand Down