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:
@@ -102,17 +102,17 @@ if not exist "%SOUNDS_DIR%\%REPO_SUBFOLDER%" (
|
||||
popd
|
||||
echo [%DATE% %TIME%] Sounds successfully cloned. >> "%LOG_FILE%"
|
||||
|
||||
:: --------- Create cosmic rage.set ---------
|
||||
if not exist "%SET_FILE%" (
|
||||
echo [%DATE% %TIME%] Creating cosmic rage.set >> "%LOG_FILE%"
|
||||
(
|
||||
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!^}^}
|
||||
) > "%SET_FILE%"
|
||||
echo Created: cosmic rage.set
|
||||
) else (
|
||||
echo cosmic rage.set already exists.
|
||||
)
|
||||
:: --------- Create or Recreate cosmic rage.set ---------
|
||||
echo [%DATE% %TIME%] Creating or replacing cosmic rage.set >> "%LOG_FILE%"
|
||||
if exist "%SET_FILE%" del /f /q "%SET_FILE%"
|
||||
|
||||
(
|
||||
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!^}^}
|
||||
) > "%SET_FILE%"
|
||||
|
||||
echo [%DATE% %TIME%] Created: cosmic rage.set >> "%LOG_FILE%"
|
||||
echo Created: %SET_FILE%)
|
||||
|
||||
:: --------- Create loader.set ---------
|
||||
echo [%DATE% %TIME%] Creating loader.set >> "%LOG_FILE%"
|
||||
|
||||
Reference in New Issue
Block a user