Commit Graph

6681 Commits

Author SHA1 Message Date
Daniel Gibbs
39c781380f update var 2025-01-07 19:58:02 +00:00
Daniel Gibbs
66f9be1c15 push 2025-01-07 19:31:19 +00:00
Daniel Gibbs
4e19c9b92f bug 2025-01-07 19:18:50 +00:00
Daniel Gibbs
181cd50e02 fix: broken download url for name-left.csv name-right.csv 2025-01-07 18:15:22 +00:00
Daniel Gibbs
f49c2b3aa7
feat(bfv): add query for bfv (#4740)
* fix quake2 and formatted

* correct bfv ports

* update bf config info

* remove curl

* tidy

* fix jc2mp query name
2025-01-05 23:38:17 +00:00
Daniel Gibbs
06166045bc
fix(sof2): correct config location (#4739) 2025-01-05 23:28:35 +00:00
Daniel Gibbs
d0fbe4a7b6 feat: replace mailx with s-nail for email alerts 2025-01-05 17:21:42 +00:00
Jimmy Maple
6adf4da6d8
fix(mc): correct the of counting players online on Minecraft servers via gamedig 2025-01-05 16:59:36 +00:00
Daniel Gibbs
1639bd5d0d
feat: add extra checks to fail if jq is not installed (#4731) 2025-01-05 13:27:03 +00:00
Daniel Gibbs
abfe5c1a67
fix(st): resolve Stationeers config issues (#4733)
* feat(st): add config install

* update start parameters

* bug

* ui fix

* rename worldname to worldsave

* add worldname to legacy vars
2025-01-05 11:53:50 +00:00
Daniel Gibbs
9495437a84 chore: update gamedig 2025-01-04 23:38:59 +00:00
github-actions[bot]
2b171da14c
docs(license): update copyright year(s) (#4726)
Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
Co-authored-by: github-actions <github-actions@github.com>
2025-01-04 23:34:34 +00:00
Christian
f3edc74de1
fix(sm): remove config install as it is not used (#4730) 2025-01-04 23:34:02 +00:00
Zechiax
bcb40baef6
fix(papermc): update API URL to prevent update failures (#4728) 2025-01-04 23:33:30 +00:00
Daniel Gibbs
8649aa8c1e fix: adminpassword not generating 2024-12-31 03:23:18 +00:00
Daniel Gibbs
0ad6df3e21 fix(armar): add rcon details 2024-12-31 03:19:30 +00:00
Daniel Gibbs
3e4c9b28dd minor ui fix 2024-12-31 02:32:40 +00:00
Daniel Gibbs
77eea02b29 Add error 0x6A6 2024-12-31 02:24:16 +00:00
Daniel Gibbs
5d9a74428e Merge branch 'hotfix/v24.3.3' into develop 2024-12-19 21:34:32 +00:00
Daniel Gibbs
1e07895f09 Release v24.3.3 2024-12-19 21:32:34 +00:00
Daniel Gibbs
d8d833ac49 fix(steamcmd): update remotebuildversion variable to work with recent steamcmd changes 2024-12-19 21:22:55 +00:00
Christian
d7e820c21a
fix(sf): add tcp gameport to details (#4681) 2024-12-18 22:09:36 +00:00
Tom Burnett
36717af4f2
fix(q3): Fix q3-only typo in install_config.sh (#4709) 2024-12-11 22:29:44 +00:00
Daniel Gibbs
ee20e18be3
feat: User interface refactor (#4716)
* refactor: improve log directory creation

- Changed the variable `checklogs` from being set to `1` to being set to `true`.
- Improved the logic for creating log directories and files.
- Added more informative console output for each step of the process.
- Refactored code to use conditional statements instead of nested if statements.
- Removed unnecessary print statements.

This commit improves the way log directories are created and handles cases where logs already exist. It also provides clearer console output during the process.

* refactor: improve console output formatting

- Added color support for console output using tput commands
- Updated print functions to display formatted messages with colors and bold text

* refactor: improve console log creation

The code in `install_logs.sh` has been refactored to improve the creation of the console log. The commit removes unnecessary whitespace and updates the echo statement to provide a more concise output.

* a

* refactor: improve log directory creation messages

- Changed the format of log directory creation messages to include parentheses around the directory path.
- Updated the messages in `install_logs.sh` file to reflect this change.

* refactor: improve log directory symlink creation

The code has been refactored to improve the creation of symlinks for game log directories. The commit removes unnecessary echo statements and updates the output format to provide clearer information about the created symlinks.

* feat: create server directory

- Updated the script to create a server directory
- Removed unnecessary check for existing server directory

* refactor: improve console output for fetching files

The commit refactors the code in `install_server_dir.sh` and `linuxgsm.sh` to improve the console output when fetching files. The message now includes more descriptive information about the file being fetched, such as the source URL and local filename. Additionally, the success message has been updated to include brackets around "OK" for better readability.

* refactor: improve formatting of success message

The success message in the core_messages.sh file has been updated to include square brackets around "OK" for better visibility.

* ui

* refactor: improve console output for checking and fetching files

- Updated the console output in `command_update_linuxgsm.sh` to include formatting and improved readability.
- Improved the console output in `core_dl.sh` to include formatting and better indicate the progress of file fetching.

* refactor: improve logging message in fn_fetch_file

The logging message in the fn_fetch_file function has been improved to provide a more concise and informative output. Instead of mentioning the local filename separately, it is now included within the same line as the file URL name. This change enhances readability and clarity when fetching files.

* refactor: improve console output in core_dl.sh and linuxgsm.sh

- Refactored code to improve the console output in core_dl.sh and linuxgsm.sh.
- Updated echo statements to provide more informative messages.
- Removed unnecessary characters from the console output.

* refactor: improve code readability and remove unnecessary comments

The commit message summarizes the changes made to the code. In this case, the code has been refactored to improve its readability and remove unnecessary comments.

* refactor: improve readability and consistency in code

- Refactored echo statements to provide more informative messages.
- Renamed variables for better clarity.
- Removed unnecessary comments and unused code.

* refactor: improve logging message in core_dl.sh

The logging message in the `fn_fetch_file` function has been updated to provide a more concise and informative description of the file being fetched.

* refactor(core_messages): update print functions

- Updated the print functions in the core_messages.sh file to improve readability and consistency.
- Replaced the use of "tputreset" with "${default}" for better code clarity.
- Modified the formatting of the output messages to follow a consistent pattern.
- Removed unnecessary escape sequences from the echo statements.

* refactor: improve header and server directory installation messages

- Updated ASCII logo formatting for better visibility.
- Added emphasis to the LinuxGSM name in the header message.
- Changed the contributor and sponsor links to be more descriptive.
- Modified the server directory installation message to indicate if a game server already exists at the specified location.

* refactor: improve log directory creation messages

- Changed the log directory creation messages to include square brackets around the directory paths.
- Updated the console log and game log directory creation messages to use square brackets as well.
- Modified the symlink creation messages for game logs and Steam logs to also include square brackets.

This commit improves the readability of the log directory creation process by adding square brackets around the relevant paths.

* refactor: improve log directory creation and server directory installation

- Change log directory creation message to use bold font for emphasis.
- Update symlink creation message to clarify that it is creating a symlink to the game log directory.
- Add a check to skip creating a symlink if it already exists for the Steam log directory.
- Change server directory installation message to use bold font for emphasis.

* refactor: improve log directory symlink creation

This commit refactors the code in `install_logs.sh` to improve the creation of symlinks for game log directories. The commit fixes a typo in the echo statement and updates the symlink paths for both game logs and Steam logs.

* feat: create serverfiles directory

- Updated the message to indicate that a serverfiles directory is being created
- Improved clarity and readability of the code

* refactor: improve consistency and readability of print functions

- Refactored the print functions in the core_messages.sh file to improve consistency and readability.
- Updated the output format by adding ellipsis (...) before each status message for better visual separation.
- Replaced hard-coded color codes with variables for easier maintenance.

Co-authored-by: AI Assistant <assistant@example.com>

* refactor: improve readability of code in command_update_linuxgsm.sh

- Replaced "checking" with "checking [filename]" for better clarity
- Changed echo statements to use fn_print_update_eol_nl instead of fn_print_ok_eol_nl
- Updated comments for better understanding of the code flow

* refactor: improve logging and error handling in command_update_linuxgsm.sh

- Refactored log messages for better clarity and readability.
- Improved error handling by checking the return value of curl command.
- Updated backup location log message to include brackets.

* refactor: simplify code for checking file differences

The commit simplifies the code for checking file differences in the `command_update_linuxgsm.sh` script. It replaces the function `fn_print_ok_eol_nl` with `fn_print_skip_eol_nl` to improve readability and maintainability.

* refactor: improve print message in command_update_linuxgsm.sh

The code change refactors the print message in the command_update_linuxgsm.sh file. Instead of printing "OK", it now prints "SKIP" to indicate that a module is being removed. This improves clarity and consistency in the script's output.

* skip

* refactor: improve readability and add emphasis to file names in code

- Refactored code to improve readability and maintainability.
- Added emphasis to file names by using italics.
- Updated echo statements to reflect the changes.

* feat: improve fetch file output

- Updated the fetch file function in core_dl.sh and linuxgsm.sh to provide more informative output.
- Replaced the parentheses with square brackets to enclose the local filename.
- Added italics formatting to highlight the local filename.

* feat: improve log directory creation

- Updated log directory creation to include italic formatting for directory names.
- Added italic formatting for script log, console log, game log, and steam log directories.
- Improved serverfiles directory creation by including italic formatting for the directory name.

* refactor: improve readability and consistency in code

- Updated the echo statement to include formatting for script name
- Added bold formatting to EULA acceptance message
- Removed unnecessary line breaks and added italic formatting to EULA URL
- Refactored code to remove duplicate calls to install_eula.sh

* feat: add new line before Y/N prompt

The commit adds a new line before the Y/N prompt in the `fn_prompt_yn` function. This improves readability and user experience.

refactor: improve formatting in install_server_files.sh

The commit improves the formatting in the `install_server_files.sh` file by adding bold styling to the installation header. It also adds bold styling to the separator line for better visual separation. These changes enhance the overall appearance of the installation process.

fix: correct formatting issue in install_server_files.sh

The commit fixes a formatting issue in the `install_server_files.sh` file where an extra separator line was not properly formatted with bold styling. The fix ensures consistent and correct formatting throughout the script.

chore: update prompt message in install_server_files.sh

The commit updates a prompt message in the `install_server_files.sh` file to make it more informative and user-friendly. The updated message asks if the installation was successful, providing clearer instructions for users.

refactor: remove redundant separator line in install_server_files.sh

The commit removes a redundant separator line from the `install_server_files.sh` file that was causing unnecessary visual clutter. This improves code readability and simplifies the installation process.

* changes

* refactor: improve logging and error handling in install_config.sh

- Refactored the code to use more descriptive function names.
- Improved logging by using fn_print_ok_eol and fn_print_failure_eol functions.
- Added error handling for copying config files, displaying failure messages if necessary.
- Updated comments for better clarity.

* refactor: improve logging and remove unnecessary code

- Changed `fn_print_failure_eol` to `fn_print_fail_eol` for consistency.
- Removed redundant log messages and sleep time.
- Simplified the logic for changing hostname and rcon/admin password.
- Removed warning message when config file is not found.

Co-authored-by: AI Assistant <assistant@example.com>

* refactor: update server names in default configuration files

- Updated the servername value in multiple default configuration files to "LinuxGSM" for consistency.
- Refactored the code to reflect the changes made.

This commit refactors the default configuration files for various game servers by updating the servername value to "LinuxGSM". This change ensures consistency across different game servers.

* refactor: remove unused code and files

This commit removes unused code and files from the project. The deleted files include default configuration files and test scripts that are no longer needed.

* refactor: improve readability and error handling in install_config.sh

- Refactored the code to improve readability by adding bold formatting to console output.
- Improved error handling by using the exit status of commands instead of a separate variable.
- Replaced repetitive sleep calls with fn_sleep_time function.
- Updated log messages for clarity and consistency.
- Added conditional checks for successful file copying and printing appropriate status messages.

Co-authored-by: AI Assistant <aiassistant@example.com>

* refactor: simplify config file copying and error handling

This commit simplifies the code for copying default config files from the Game-Server-Configs repository to the server's config location. It also improves error handling by printing appropriate messages and logging them.

* misc changes

* reword of dst config install

Removed install settings as it complicates setup. The admin  how has to manually setup a slave shard using configs. By default LinuxGSM will setup a Master shard. Docs will need to be updated.

* refactor: improve config location listing

- Renamed the function `fn_list_config_locations` to better reflect its purpose.
- Updated the output messages to provide clearer information about the config locations.
- Added formatting enhancements for better readability.

This commit refactors the code related to listing config locations, making it more user-friendly and informative.

* ui changes

* refactor: improve code readability and fix typos

- Refactored the code to improve readability and organization.
- Fixed typos in the comments and echo statements.
- Changed some echo statements to use variables for better consistency.
- Updated URLs in the echo statements to be clickable links.

Co-authored-by: [co-author name]

* ui changes

* ui changes

* fix: update warning message for missing SteamCMD

The commit updates the warning message in the code to indicate that SteamCMD is not installed instead of being missing. Additionally, it modifies the log message accordingly.

* refactor: simplify directory creation in install_config.sh

This commit simplifies the code for creating config directories in the install_config.sh file. Instead of using separate variables for each directory path, it now uses a single variable to create the necessary directories. This improves readability and reduces redundancy in the code.

* feat: add installation and information for SteamCMD

- Added code to install SteamCMD if it is missing or the steamcmd directory is missing.
- Modified the check_steamcmd function to print a warning message if SteamCMD is not installed.
- Modified the info_game_dst function to retrieve additional information from server and cluster configuration files.
- Updated the installation script to display a bold header before installing SteamCMD.

* refactor: improve error message in install_config.sh

The commit refactors the code in `install_config.sh` to improve the error message when copying a config file. The function `fn_print_failure_eol_nl` is renamed to `fn_print_fail_eol_nl` for clarity and consistency. This change enhances the readability and maintainability of the code.

* refactor: improve conditional statements in install_config.sh

The code changes refactor the conditional statements in the `install_config.sh` file. Instead of checking if `${shortname}` is equal to "dst" or "arma3", it now checks if `${clustercfgdir}` or `${networkcfgdir}` are not empty, respectively. This improves readability and maintainability of the code.

a

* refactor: simplify config directory creation and copying

The code changes simplify the logic for creating config directories and copying config files. The function `fn_check_cfgdir` now only creates the server config directory if it exists, removing unnecessary checks for other directories. Additionally, the function `fn_default_config_remote` no longer duplicates the call to `fn_check_cfgdir`.

* refactor: improve variable naming and remove unnecessary code duplication

The commit refactors the code in `install_config.sh` to improve variable naming and remove unnecessary code duplication. Specifically, it renames the variables for better clarity and removes redundant lines of code.

refactor: improve installation and configuration process

- Refactored the fix_dst.sh script to keep the shard name in server.ini consistent with the LinuxGSM config.
- Updated install_config.sh to provide clearer messages during the default config download and copy processes.

refactor: update shard name in server.ini

The code has been refactored to update the shard name in the server.ini file. This change ensures that the shard name in the LinuxGSM config matches the one in server.ini.

* feat: improve console output formatting

- Added separator function to improve readability of console output.
- Replaced multiple instances of manual separators with the new function.
- Updated commit message to follow conventional commit standard.

* refactor: remove unnecessary fn_sleep_time calls

This commit removes the fn_sleep_time function calls that are no longer needed in multiple modules. The fn_sleep_time function was used to introduce a delay, but it is no longer necessary for the current implementation.

* refactor: remove unused functions

This commit removes a large number of unused functions from the core_functions.sh module. These functions were not being called or used anywhere in the codebase and were therefore unnecessary. Removing them helps to clean up the code and improve maintainability.

* refactor: improve consistency and readability of code

- Changed the color of "Missing Server Details" to bold yellow
- Changed the color of "Query IP Addresses" to bold yellow
- Changed the color of "Game Server Ports" to bold yellow
- Changed the color of "SS Output" to bold yellow
- Changed the color of "Query Port - Raw Output" to bold yellow
- Changed the color of "Gamedig Raw Output" to bold yellow
- Changed the color of "gsquery Raw Output" to bold yellow
- Changed the color of "TCP Raw Output" to bold yellow
- Changed the color of "Game Port - Raw Output" to bold yellow
- Changed the color of "Steam Master Server Response" to bold yellow
- Updated commit message formatting for better readability

* refactor: improve code readability and efficiency in command_dev_query_raw.sh

- Simplify conditionals by replacing [ -v var ] with [ -n "${var}" ]
- Remove unnecessary checks for the presence of jq and gamedig
- Update output headers to be more descriptive and consistent
- Use italic formatting for curl command in Steam Master Server Response section

* refactor: improve query output formatting

The code changes refactor the query output formatting in the command_dev_query_raw.sh file. The changes include:
- Adding italics to certain command outputs for better readability
- Removing unnecessary echo statements
- Updating comments and indentation for clarity

* refactor: simplify storage information display

The code in `info_messages.sh` has been refactored to improve the readability and conciseness of the storage information display. The labels for total and used space have been shortened to "Total" and "Used" respectively.

* refactor: renamed fatal to fail to improve consistency

- Updated the log level from "fatal" to "fail" in the alert scripts.

* feat: add conditional printing of alert messages

This commit adds conditional statements to only print alert messages if the corresponding alerts are turned on. This improves the readability of the output by only displaying relevant information.

- Added conditionals for Discord, Email, Gotify, IFTTT, Pushbullet, Pushover, Rocketchat, Slack, and Telegram alerts
- Only prints alert messages if the corresponding alerts are turned on

* feat: improve console and post details commands

- Updated the console command to display a link in italics to the documentation.
- Updated the post details command to display the URL in italics for support.
- Renamed "Donation options" to "Sponsorship options" in the sponsor command.
- Added Minecraft as an example of a game with query enabled in info messages.

Closes #123

* quit

* update fn_bootstrap_fetch_file

* ui changes

* bootstrap trap

* ui updates

* att bootstrap fetch module

* ui updates

* bug

* merge 2 functions

* ui changes

* config ui changes

* installer ui changes

* installer ui changes

* add fn_print and fn_print_nl

* remove space

* add new dev command ui

* bug

* skip to light blue

* update to light blue

* reset to default

* update ui changes

* steamui changes

* print

* fix

* sleep time

* validate

* remote location

* italic url

* fastdl

* fn_print

* fix

* ui

* speed up

* fastdl ui

* ui fix

* ui fix

* update some headers

* header updates

* minor changes

* install changes

* messages refactor

* ui changes

* bug

* standardise exitcode

* tidy

* bug

* bug

* revert

* updating dev ui

* ui changes

* bug

* skip

* bug

* change minimum required message

* fix incorrect var name

* ui updates

* remove ) from results

* revert

* ensure command action capitals are consistant

* revert

* revert

* revert

* codacy

* revert

* revert

---------

Co-authored-by: AI Assistant <assistant@example.com>
Co-authored-by: AI Assistant <aiassistant@example.com>
2024-12-11 22:29:17 +00:00
Daniel Gibbs
eae2f42db7
Merge branch 'hotfix/v24.3.2' 2024-10-26 21:59:04 +01:00
Daniel Gibbs
78fc90542c
Merge branch 'hotfix/v24.3.2' into develop 2024-10-26 21:59:04 +01:00
Daniel Gibbs
aa404f2033
Release v24.3.2 2024-10-26 21:46:35 +01:00
Alex Linde
3dabf33eaf
fix(fctrserver): parse updated version string correctly (#4688) 2024-10-26 21:46:01 +01:00
Alex Linde
53a7c70560
fix(fctrserver): parse updated version string correctly (#4688) 2024-10-26 21:45:36 +01:00
Daniel Gibbs
cac8b81a57
fix(cs2): add gslt variable 2024-10-06 17:05:49 +01:00
Emmanuel Ferdman
e5fabecdad
fix: update license reference (#4678)
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2024-09-28 21:35:41 +01:00
Daniel Gibbs
3335ca53a0
fix: datadir bug 2024-09-28 13:55:10 +01:00
Daniel Gibbs
72deed15a6
Merge branch 'hotfix/v24.3.1' 2024-09-28 13:20:42 +01:00
Daniel Gibbs
928e42864a
Merge branch 'hotfix/v24.3.1' into develop 2024-09-28 13:20:41 +01:00
Daniel Gibbs
764032b050
Release v24.3.1 2024-09-28 13:20:31 +01:00
Armin
d4ffe39505
fix(mcbserver): Wrong download url for serverfiles (#4675)
* fix(mcbserver): update download url

* change(core_dl/fn_fetch_file): add useragent to fix mcbedrock download
2024-09-28 13:16:03 +01:00
Daniel Gibbs
5c31f33446
fix: change exitcode to 0 if dependency install was successful 2024-09-25 11:37:16 +01:00
Daniel Gibbs
108dd27c32
feat: add arch check to prevent arm devices from working as not supported 2024-09-24 23:38:13 +01:00
Daniel Gibbs
72bb39ec04
fix: revert urls to correct data dir 2024-09-24 22:38:44 +01:00
Daniel Gibbs
56e422be45
feat: upgrade docker containers to ubuntu 24.04 (#4669) 2024-09-24 22:06:20 +01:00
Daniel Gibbs
975511fcd4
fix: ensure lgsm/data refers to datadir variable 2024-09-23 23:57:40 +01:00
Daniel Gibbs
aa4e4d9f94
chore: update gamedig version v5.1.3 2024-09-23 23:32:02 +01:00
Daniel Gibbs
42333c6a32
Merge branch 'release/v24.3.0' 2024-09-23 21:28:31 +01:00
Daniel Gibbs
4ecaeb71ee
Merge branch 'release/v24.3.0' into develop 2024-09-23 21:28:31 +01:00
Daniel Gibbs
b510672e25
revert cp change 2024-09-22 22:50:37 +01:00
Daniel Gibbs
d2bb7d1af6
fix: add check for npm 2024-09-22 22:38:01 +01:00
Daniel Gibbs
3fadfac2d1
remove code that is not ready 2024-09-22 22:33:02 +01:00
Daniel Gibbs
608a2fb3c3
Release v24.3.0 2024-09-22 22:26:36 +01:00
dependabot[bot]
e9f6836aa1
build(deps): bump actions/add-to-project from 1.0.1 to 1.0.2 (#4603)
Bumps [actions/add-to-project](https://github.com/actions/add-to-project) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/actions/add-to-project/releases)
- [Commits](https://github.com/actions/add-to-project/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: actions/add-to-project
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-22 22:14:11 +01:00
Daniel Gibbs
5ebeb1379b
remove mom icon 2024-09-22 22:12:50 +01:00