mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +08:00
fix(steamcmd): resolve steamcmd goldsource download issues (#4297)
* add appmanifest files to data * refactor: improve appmanifest check and force update logic The code changes refactor the `fn_appmanifest_check` function in the `core_steamcmd.sh` file. The improvements include: - Checking if `BytesDownloaded` and `BytesToDownload` match, and forcing an update if they don't. - Checking if `BytesStaged` and `BytesToStage` match, and forcing an update if they don't. - For GoldSrc engine, checking if `SharedDepots` exists in the appmanifest file, and forcing an update if it doesn't. - Fetching missing appmanifest files from GitHub for specific game shortnames. These changes enhance the reliability of the appmanifest check process and ensure that updates are forced when necessary. * refactor: improve removal of appinfo.vdf file The code has been refactored to improve the removal of the appinfo.vdf file. The find command now redirects error output to /dev/null for a cleaner execution. * fn_check_steamcmd_appmanifest is now a full check * feat: add support for fetching appmanifest files This commit adds support for fetching appmanifest files from the GitHub repository. The code now fetches the appropriate appmanifest files based on the game's shortname and updates them in the serverfiles/steamapps directory. This change ensures that the correct appmanifest files are used, fixing an issue related to updating certain games. * more appmanifest files * feat: add appmanifest_10.acf for Counter-Strike Added the appmanifest_10.acf file for Counter-Strike to resolve an issue with missing SharedDepots. This commit fetches the necessary files from GitHub and forces an update to correct the issue. * fix: fix missing SharedDepots in appmanifest_90.acf The code changes fix a bug where the SharedDepots entry was missing from the appmanifest_90.acf file. The commit updates the error messages and logs to reflect the correct filename. Additionally, it forces an update to resolve the issue.
This commit is contained in:
parent
4ddd8ee184
commit
2d6092186c
@ -355,8 +355,8 @@ fn_check_steamcmd_appmanifest() {
|
||||
if [ "${engine}" == "goldsrc" ]; then
|
||||
shareddepotsexists=$(grep -c SharedDepots "${serverfiles}/steamapps/appmanifest_90.acf")
|
||||
if [ ! -f "${serverfiles}/steamapps/appmanifest_90.acf" ] || [ "${shareddepotsexists}" == "0" ]; then
|
||||
fn_print_error_nl "SharedDepots missing from appmanifest_${appid}.acf"
|
||||
fn_script_log_error "SharedDepots missing from appmanifest_${appid}.acf"
|
||||
fn_print_error_nl "SharedDepots missing from appmanifest_90.acf"
|
||||
fn_script_log_error "SharedDepots missing from appmanifest_90.acf"
|
||||
fn_print_info_nl "Forcing update to correct issue"
|
||||
fn_script_log_info "Forcing update to correct issue"
|
||||
if [ "${shortname}" == "ahl" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user