diff --git a/installer.bat b/installer.bat index a85040c..9e34e28 100644 --- a/installer.bat +++ b/installer.bat @@ -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%"