installer.bat will now create cosmic rage.set regardless of whether it exists or not, which should fix the issue of the file being empty upon completion of the soundpack installation.

This commit is contained in:
Augustus
2025-07-02 08:02:34 +03:00
parent 0851ee107f
commit 0e21739b51

View File

@@ -102,17 +102,17 @@ if not exist "%SOUNDS_DIR%\%REPO_SUBFOLDER%" (
popd popd
echo [%DATE% %TIME%] Sounds successfully cloned. >> "%LOG_FILE%" echo [%DATE% %TIME%] Sounds successfully cloned. >> "%LOG_FILE%"
:: --------- Create cosmic rage.set --------- :: --------- Create or Recreate cosmic rage.set ---------
if not exist "%SET_FILE%" ( echo [%DATE% %TIME%] Creating or replacing cosmic rage.set >> "%LOG_FILE%"
echo [%DATE% %TIME%] Creating cosmic rage.set >> "%LOG_FILE%" if exist "%SET_FILE%" del /f /q "%SET_FILE%"
( (
echo #Load ^{%%CharInfo^(MudName^)/loader.set^} echo #Load ^{%%CharInfo^(MudName^)/loader.set^}
echo #If ^{%%Defined^(scpath^)=1 and %%Defined^(sppath^)=1^} ^{ #Load @scpath/Main.set^} ^{ #Say ^{WARNING! The scripts path and/or the sounds path are not defined. Unable to load the soundpack!^}^} echo #If ^{%%Defined^(scpath^)=1 and %%Defined^(sppath^)=1^} ^{ #Load @scpath/Main.set^} ^{ #Say ^{WARNING! The scripts path and/or the sounds path are not defined. Unable to load the soundpack!^}^}
) > "%SET_FILE%" ) > "%SET_FILE%"
echo Created: cosmic rage.set
) else ( echo [%DATE% %TIME%] Created: cosmic rage.set >> "%LOG_FILE%"
echo cosmic rage.set already exists. echo Created: %SET_FILE%)
)
:: --------- Create loader.set --------- :: --------- Create loader.set ---------
echo [%DATE% %TIME%] Creating loader.set >> "%LOG_FILE%" echo [%DATE% %TIME%] Creating loader.set >> "%LOG_FILE%"