Fix broken auto-updater path, sync readme with updator.bat filename
CheckSoundpackVersion's auto-launch of updator.bat was resolving to worlds\updator.bat (dir + one "..") instead of the repo root where the file actually lives (dir + three ".."), so the automatic update prompt silently failed to launch anything. Verified the corrected path resolves to the real file. Also fixed readme.md referring to "updater.bat" when the actual shipped file is "updator.bat".
This commit is contained in:
@@ -116,7 +116,9 @@ Note("You are currently running version " .. tostring(CURRENT_SP_VERSION).." of
|
|||||||
ColourNote("yellow", "", "Warning: Your soundpack is " .. version_diff .. " version(s) out of date. We are now on version " .. user_version .. " of the soundpack.")
|
ColourNote("yellow", "", "Warning: Your soundpack is " .. version_diff .. " version(s) out of date. We are now on version " .. user_version .. " of the soundpack.")
|
||||||
ColourNote("yellow", "", "Launching the updater...")
|
ColourNote("yellow", "", "Launching the updater...")
|
||||||
ppi.play(dir.."sounds/ogg/general/comms/announcement.ogg", 0, 0, 100)
|
ppi.play(dir.."sounds/ogg/general/comms/announcement.ogg", 0, 0, 100)
|
||||||
local bat_path = dir .. "..\\updator.bat"
|
-- dir is the world's own folder (cosmic rage\worlds\Cosmic Rage\);
|
||||||
|
-- updator.bat lives at the repo root, three levels up from there.
|
||||||
|
local bat_path = dir .. "..\\..\\..\\updator.bat"
|
||||||
-- Signature is (filename, params, defdir, operation, show) - this was
|
-- Signature is (filename, params, defdir, operation, show) - this was
|
||||||
-- previously passing "open" as the filename, so it never actually
|
-- previously passing "open" as the filename, so it never actually
|
||||||
-- launched cmd.exe/updator.bat at all.
|
-- launched cmd.exe/updator.bat at all.
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ Getting the soundpack up and running is simple:
|
|||||||
2. **Extract the Files**: Extract the downloaded zip file to a location of your choice.
|
2. **Extract the Files**: Extract the downloaded zip file to a location of your choice.
|
||||||
* **Important**: Ensure the extracted folder does not contain any special or non-English characters (e.g., ö, ğ, ü) as this can cause issues with MushClient.
|
* **Important**: Ensure the extracted folder does not contain any special or non-English characters (e.g., ö, ğ, ü) as this can cause issues with MushClient.
|
||||||
3. **Run the Installer**: Locate the `installer.bat` file within the extracted folder. Right-click it and select "Run as administrator". Wait for the installation process to complete.
|
3. **Run the Installer**: Locate the `installer.bat` file within the extracted folder. Right-click it and select "Run as administrator". Wait for the installation process to complete.
|
||||||
4. **Update the Soundpack**: To update the soundpack in the future, simply run `updater.bat` as an administrator.
|
4. **Update the Soundpack**: To update the soundpack in the future, simply run `updator.bat` as an administrator.
|
||||||
5. **Restart MushClient**: Close and reopen MushClient for the soundpack to be loaded.
|
5. **Restart MushClient**: Close and reopen MushClient for the soundpack to be loaded.
|
||||||
|
|
||||||
## Connecting to Cosmic Rage
|
## Connecting to Cosmic Rage
|
||||||
|
|||||||
Reference in New Issue
Block a user