Commit Graph

551 Commits

Author SHA1 Message Date
Thomas S
493a3a82fa
feat(newserver): soulmask (#4590)
* feat: reference new smserver

* feat: add default config

* feat: add stop command using telnet

* fix: remove duplicate unused telnetpassword var

* feat: add soulmask to config & info functions

* fix: remove ini config for now

* fix: startparameter initialization fix

* feat: remove pve fixed param in startparameters

* fix: update default gamelogdir

* fix: handle telnet response during stop process

* add sm fix

* add fix_sm.sh

* add ss command

* and

* add memory requirements

* adjust start parameters

* remove telnetpassword

* add backup interval

a

* comments

* rename variables to telnetpassword

* var name change

---------

Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
2024-06-16 19:18:00 +01:00
Maciej Głowacki
a2bea8d791
feat(vhserver): enable crossplay support (#4544)
* Install valheim dependencies for crossplay on Ubuntu

* Setup minimal required dependencies for valheim crossplay

* will set crossplay to default on and add instance id

* add ubuntu 24.04

---------

Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
2024-05-22 22:16:33 +01:00
Daniel Gibbs
1387ee0dfd
fix(vh): update binary name (#4551) 2024-04-04 10:53:56 +01:00
Daniel Gibbs
95c34edaf2
fix(pw): change query mode to check only 2024-04-04 10:46:59 +01:00
Josh Gelman
9d489d56dc
fear(wf): Update Warfork path (#4541)
As of the latest update on Steam, the installation directory for Linux has been moved out of `Warfork.app/Contents/Resources/`

Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
2024-03-23 11:01:23 +00:00
Cristopfer Luis
7cc5b6b520
feat(new server): humanitz (#4518)
* feat: add config for humanitz

* fix: pending changes required

* fix: install config

* bug

---------

Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
2024-03-14 15:38:01 +00:00
MicLieg
181c84508d
feat(alerts): add support for telegram thread/topic ids (#4526) 2024-03-08 22:03:23 +00:00
MicLieg
c5ca762655
fix(pw): fix updated start parameters (#4516)
* fix(pw): fix updated  start parameters

* fix(pw): remove unneeded RCON parameters
2024-03-02 09:46:11 +00:00
Daniel Gibbs
a2406a510c
fix(hw): correct start parameter for addadmin 2024-02-28 23:15:12 +00:00
Daniel Gibbs
fce9f65d6a
feat(monitor): prepare for gamedig 5 (#4510)
* feat: gamedig 5

* install gamedig in lgsm dir if node exists

* and

* use local gamedig version

* local

* palworld

* pw query port

* mbe

* fix ro

system

system

a

* public ip

* jc2m

* fix(ti): update default map

The default map in the tiserver configuration file has been updated from "/Game/TheIsle/Maps/Game/Isla_Spiro/Isla_Spiro" to "/Game/TheIsle/Maps/Game/Gateway/Gateway". This change ensures that the server starts with the correct default map.

* fix: _default.cfg NOT SET

* download package.json and run npm install

* update samp

* disable query for squad

* correct name

* feat: update querymode and querytype in server configs

Changed querymode to 3 and set querytype to "eco" for ecoserver.
Updated querymode to 2 and changed querytype to "protocol-valve" for sdtdserver.

* feat: add new port command for bfv game

Added a new port command for the "bfv" game in the info_messages script.

* queryport eco

* add eco rconport

* adding message

* if node 16 or above

* rename to check_gamedig
2024-02-26 15:55:12 +00:00
Daniel Gibbs
9a7670ea8a
Merge branch 'hotfix/v24.1.4' into develop 2024-02-21 21:35:35 +00:00
Antonin CLAUZIER
ab3404c188
feat(dayz): switch appid to stable release (#4502)
* feat(dayzserver): switch appid to stable release

* feat(dayzserver): add steam login
2024-02-21 21:30:15 +00:00
Daniel Gibbs
40a79bd198
fix(ti): update default map
The default map in the tiserver configuration file has been updated from "/Game/TheIsle/Maps/Game/Isla_Spiro/Isla_Spiro" to "/Game/TheIsle/Maps/Game/Gateway/Gateway". This change ensures that the server starts with the correct default map.
2024-02-11 01:20:19 +00:00
Armin
64e9e82462
feat(pw): port & steamport setting for palworld (#4479)
* fix: servername variable assignment for sf and unt

The servername variable was incorrectly assigned using the selfname variable instead of the correct servername variable. This has been fixed to ensure accurate information is displayed for each game type.

* add: port & steamport setting for palworld

---------

Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
2024-02-04 20:07:49 +00:00
Daniel Gibbs
cb2ced76d3
fix(pw): correct executable location 2024-01-21 21:29:29 +00:00
Daniel Gibbs
9bad6cfea9
feat(new server): Palworld (#4449)
* add palworld

* add palworld

* add palworld to ubuntu

* add server to serverlist

* rework _default.cfg for pwserver

* fix servercfgdir for palworld

* edit _default.cfg for pwserver

* first try info_game.sh

* debug info_game.sh

* update info_game.sh

* update info_game.sh

* update info_game.sh

* add package check for rhel, rocky, debian & ubuntu

* add details port info

* add details port change

* improve _default.cfg for pwserver

* improve _default.cfg for pwserver

* fix issues mentioned in pr

* change servername parameter for pwserver

* add: steamport var for Palworld

* fix: info_game for palworld

* change: load palworld settings from serverconfig file & change unknow port

* update ports info

* change to binary file from .sh

prevents issues with ss command

---------

Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
add palworld game icon

add missing pw
2024-01-21 20:54:19 +00:00
JuliusZet
ae3deee7a8
feat(rust): Add server browser tags to rustserver config (#4418) 2024-01-19 19:55:42 +00:00
Daniel Gibbs
2fff61f41a
feat(cs2): update parameters and add workshop support (#4405)
* feat(cs2): update config and parameter settings

* remove serverlogging

* add authkey for workshop

* add cs2 label
2024-01-19 18:44:34 +00:00
Daniel Gibbs
38079bac84
feat(new server): Quake 4 (#4398) 2023-11-30 21:21:11 +00:00
Daniel Gibbs
746c413314
feat(ns2c): tidy parameters 2023-11-30 21:01:00 +00:00
Daniel Gibbs
ef6410efec
feat: deprecate crafting dead 2023-11-30 21:00:29 +00:00
Daniel Gibbs
6a56a18b1f
feat: added more checks for insecure passwords 2023-11-29 23:01:59 +00:00
Daniel Gibbs
366701fe36
fix(ns2): adjusted player numbers for ranked 2023-11-29 22:54:32 +00:00
Daniel Gibbs
ddb61478f1
fix: move exec to end of parameters idtech 2023-11-27 14:14:32 +00:00
Daniel Gibbs
3961a22430
fix(q3): mapcycle now working correctly
#3749
2023-11-27 00:03:23 +00:00
Daniel Gibbs
b59eeecb54
feat(ns2): update start parameters to add mod server (#4396)
also removed mod2 as no longer required as per NS2 dedi server docs
2023-11-26 23:44:06 +00:00
Daniel Gibbs
3ebc5febbf
fix(kf): ensure newer steamclient.so is copied to serverfiles (#4391)
* master server true
* move samp fix to pre start
* bug
* fix(kf): ensure newer steamclient.so is copied to serverfiles
will allow KF Server to how in steam game server list
2023-11-25 23:25:11 +00:00
Daniel Gibbs
e78a9dfbd7
feat(dayz): enable Steam master server
Enables the Steam master server in the default configuration file for DayZ servers.
2023-11-24 13:04:59 +00:00
Daniel Gibbs
c7aedf5a77
fix(rust): add default-terminal setting for Oxide (#4383)
* fix(rust): add default-terminal setting for Oxide

This commit fixes issue #4268 by adding the line "set -g default-terminal "screen-256color"" to the ~/.tmux.conf file. This ensures compatibility with tmux version 3.3 or higher when running RustDedicated servers with Oxide.Rust.dll.

* add gamelog to start parameters
2023-11-22 15:16:35 +00:00
Daniel Gibbs
8bc716b456
fix(ark): remove -log parameter as deprecated 2023-11-22 11:42:52 +00:00
Phillip Birmingham
f80a1b69fd
fix(arma3server): remove quotes from around mod list in Arma3 server command line (#4288)
* build(deps): bump github/issue-labeler from 3.1 to 3.2 (#4258)

Bumps [github/issue-labeler](https://github.com/github/issue-labeler) from 3.1 to 3.2.
- [Release notes](https://github.com/github/issue-labeler/releases)
- [Commits](https://github.com/github/issue-labeler/compare/v3.1...v3.2)

---
updated-dependencies:
- dependency-name: github/issue-labeler
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* remove quotes from around modlist

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-17 22:03:25 +00:00
Sascha Moser
c17c41139b
fix(gmod): Remove authkey (#4370)
Fixes #4369
2023-11-14 00:01:08 +00:00
Daniel Gibbs
283e6257a0
feat: Update UE4/UE5 parameters and configs (#4378)
* feat(ark): move rconport and maxplayers to config

* feat(sbots): removed ? from parameters

* feat(tu): shuffle parameters and use pascal case

* feat(mom): Pascal Case parameters

* add ohd configs

* re order

* sync with configs

* feat(btl): standardise configs and parameters to match other ue4 games

* standardise

* feat(sf): upgrade to ue5

* add ram requirements to satisfactory

* sf fix

* tidy up parameters

* update ark parameters

* minor changes

* updated the isle to UE5

* add game server docs

* move log

* tidy
2023-11-13 23:59:21 +00:00
Daniel Gibbs
bbcadfb196
Merge branch 'hotfix/v23.6.2' into develop 2023-11-05 21:35:37 +00:00
Daniel Gibbs
00cc5364ac
fix(cs2): added some missing parameters
The start parameters are still a work in progress but I have added some key ones that are missing.
2023-11-05 21:28:20 +00:00
Daniel Gibbs
536c65cc5d
fix: correct consoleverbose settings 2023-11-05 14:50:13 +00:00
Daniel Gibbs
118bb7a229
feat(cs2): remove SteamCMD login credentials
The commit removes the SteamCMD login credentials from the default configuration file for Counter-Strike 2 server. Valve has removed the login requirement for cs2
2023-11-03 21:26:28 +00:00
Daniel Gibbs
64e8a50d0b
fix(tf): remove server configs
The Front only uses start parameters
2023-10-29 22:59:51 +00:00
Daniel Gibbs
67472a824f
feat(new server): The Front (#4359)
* add the front

* config

* appid

* config

* parameters

* params

* params

* ports

* update parameters

* verbose

* variable

* fix

* multihome

* update ip addressing

* add ip vars

* info

* add ft-icon

* add missing tf
2023-10-29 21:27:21 +00:00
Renato
35a535bfa1
feat(vh): add an additional config string for valheim world modifiers (#4341)
* feat(vhserver): added additional config string for valheim world modifiers

* added instructions on how modifiers are stored in the save files and how to go back to default

* small typo

---------

Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
2023-10-28 09:25:55 +01:00
Daniel Gibbs
f33bfdf47c
feat(new server): Counter Strike 2 (#4356)
* cs2

* config

* fix: remove lo code

* config

* params

* source2

* game info

* messages

* config changes

* dirs

* config

* refactor: refactor info message functions in alert.sh, command_details.sh, command_dev_query_raw.sh, and command_postdetails.sh

- Refactored the info message functions in multiple files to have consistent naming conventions.
- Renamed fn_info_message_* functions to fn_info_messages_* for clarity and consistency.
- Updated function calls accordingly.

* refactor: remove unnecessary code duplication in info_game.sh

The commit removes duplicated code for retrieving server information from the game configuration file. Specifically, it removes redundant lines related to rconpassword, rconport, and serverpassword. This improves code readability and maintainability.

* cs2

* cs2

* cs2 icon

* remove lo

* remove file

* remove lo

* update url

* ignore games with no configs

* remove configs from games that have non

* details check fix

* details check

* details check

* ignore systemdir check if running github actions

* fix name
2023-10-27 23:59:57 +01:00
Daniel Gibbs
8b0d98c887
feat: deprecate Last Oasis (#4349)
The commit removes the Last Oasis game server configuration file `_default.cfg` and the corresponding module `fix_lo.sh`. These files are no longer needed as Last Oasis is being removed from the supported games list.
2023-10-22 23:24:29 +01:00
Daniel Gibbs
120023dcae
feat: alerts refactor (#4345)
* feat(alert): add new alert types

- Added new alert types for different scenarios such as stopped, started, restarted, monitor session failure, monitor query failure, wipe, and info.
- Updated the `alert.sh` script to include functions for each new alert type.
- Modified the `command_monitor.sh` script to use the appropriate alert type based on the monitoring results.

* feat: remove more info if not enabled

* refactor: refactor alert functions and add color codes

This commit refactors the alert functions in the `alert.sh` module. It adds color codes for different types of alerts, such as green for started/restarted alerts, red for stopped/monitor session/query/permissions alerts, and blue for update/config/wipe/info alerts. The commit also updates the alert emoji to better represent each type of alert.

* feat: add colour to discord alert

* refactor: improve Pushbullet alert sending

The code in the `alert_pushbullet.sh` file has been refactored to improve the way Pushbullet alerts are sent. The curl command now includes the access token as a header instead of in the URL, resulting in more secure communication with the Pushbullet API. This change enhances the reliability and security of sending Pushbullet alerts.

* feat: add alert icon and footer to Discord alerts

- Added a new variable `alerticon` to store the URL of the alert icon image.
- Included the `alerticon` in the JSON payload for both short info and no info alerts.
- Added a footer with text "Sent by LinuxGSM v23.5.3" to the JSON payload for both short info and no info alerts.

This commit enhances the appearance of Discord alerts by adding an icon, a footer, and additional information about the sender.

* refactor(alert): refactor alert functions

- Refactored the alert functions to improve code readability and maintainability.
- Renamed variables for better clarity and consistency.
- Updated function names to be more descriptive of their purpose.
- Reorganized the order of function definitions for better organization.

* feat: add first batch of icons

* refactor: improve serverlist validation script

The commit refactors the serverlist validation script to include a new check. It now compares all game servers listed in `serverlist.csv` to `$shortname-icon.png` files in `lgsm/data/gameicons`. If a game server is listed in `serverlist.csv`, it should have a corresponding `$shortname-icon.png` file. The commit adds a loop that checks for the existence of these files and outputs an error message if any are missing.

* another batch of icons

* more icons

* updated icons

a

* feat: add serverlist game icon validation

This commit adds a new script `serverlist-validate-game-icons.sh` that checks if all the game servers listed in `serverlist.csv` have a corresponding `shortname-icon.png` file. It also verifies that the number of game icons matches the number of servers in `serverlist.csv`. The script is executed as part of the workflow defined in `serverlist-validate.yml`.

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

* refactor: improve game icon validation script

The commit refactors the game icon validation script to improve its functionality. It adds a check for unexpected game icons and ensures that the number of game icons matches the number of servers in serverlist.csv. The commit also updates error messages for better clarity and readability.

* refactor: remove unused mumble-icon.png game icon

The code changes involve removing the unused mumble-icon.png game icon. This change helps to clean up the codebase by removing unnecessary files.

* feat: update game icons

Updated the game icons for bf1942, pmc, vints, vpmc, and wmc. Changed resolution to 32px

* feat(alert): add alert action and information to Discord message

- Added a new variable `alertaction` to store the action performed in the alert
- Modified the Discord message template to include the alert action and information
- Updated the author name in the Discord message template to "LinuxGSM Alert"

The changes allow for more informative and descriptive alerts in Discord messages.

* feat(alert.sh): add alertaction variable

This commit adds the `alertaction` variable to the `fn_alert_*` functions in the `alert.sh` module. The `alertaction` variable is used to specify the action that triggered the alert, such as "Started", "Stopped", "Restarted", etc. This allows for more informative and descriptive alerts.

* refactor: rework email alert

* feat: add environment detail

* refactor: simplify Discord and Pushbullet alert message handling

The code changes in this commit refactor the way Discord and Pushbullet alert messages are handled. The previous implementation used separate variables for short information and no information scenarios, but now it uses a single variable for both cases. Additionally, the code now checks if the "alerturl" is empty instead of comparing it to a specific value.

These changes improve code readability and maintainability by reducing redundancy and simplifying conditional logic.

* title

* fix: update Pushover alert message formatting

The commit fixes the formatting of the Pushover alert message by removing unnecessary information and adding a conditional check for the presence of an alert URL.

* refactor: improve formatting of server IP value in Discord alert

The code changes in this commit refactor the formatting of the server IP value in the Discord alert. The value is now enclosed in single quotes for better readability.

* refactor: improve alert message formatting and remove unnecessary code

The commit refactors the alert message formatting in the `alert_pushbullet.sh`, `alert_slack.sh`, and `alert_telegram.sh` files. It improves the structure and readability of the messages by using proper markdown syntax. Additionally, it removes unnecessary code from the files to simplify their implementation.

* more changes

* feat: add server name and information fields to Discord alert

The code changes in the `alert_discord.sh` file include adding new fields for server name and information to the JSON payload sent in a Discord alert. This allows for more detailed information about the server to be included in the alert message.

refactor: improve conditional logic for Gotify alerts

In the `alert_gotify.sh` file, the code changes involve improving the conditional logic for determining which JSON payload to use when sending a Gotify alert. The updated logic checks if an alert URL is provided and selects the appropriate JSON payload accordingly.

chore: update field names in IFTTT alerts

The changes made in `alert_ifttt.sh` involve updating field names in the JSON payloads used for IFTTT alerts. The field names have been modified to match a consistent format across all fields.

fix: correct body formatting in Pushbullet alerts

The code changes made in `alert_pushbullet.sh` address an issue with incorrect body formatting in Pushbullet alerts. The body of the alert now includes separate lines for each piece of information, such as server name, information, game, server IP, hostname, and more info.

refactor: improve attachment structure in RocketChat alerts

In `alert_rocketchat.sh`, the code changes involve improving the attachment structure of RocketChat alerts. The updated structure includes separate sections for server name, information, game, server IP, hostname, and more info.

feat: add additional sections to Slack alerts

The changes made in `alert_slack.sh` include adding additional sections to Slack alerts. These sections provide separate blocks of text for server name and information within each message.

feat: add HTML formatting to Telegram alerts

In `alert_telegram.sh`, HTML formatting has been added to Telegram alerts. This allows for bold text styling and clickable links within each message sent via Telegram.

* bug

* bug

* refactor: improve alert message formatting

- Refactored the code in `alert_pushover.sh` and `alert_telegram.sh` to improve the formatting of the alert messages.
- Updated the message structure to include the server name before other information.
- Added line breaks for better readability.
- Made sure that all variables are properly interpolated within the messages.

* bug

* remove rocketchattoken

* feat: add alert types for server start, stop, restart, and wipe

- Added new alert types for server start, stop, restart, and wipe.
- Updated the `alert.sh` module to include functions for handling these new alert types.
- Modified the `command_start.sh`, `command_stop.sh`, and `command_wipe.sh` modules to trigger the corresponding alerts when appropriate.
- Updated the `alert_rocketchat.sh` module to display the relevant information for each alert type in Rocket.Chat notifications.

* refactor: update alert messages in lgsm/modules/alert.sh

- Updated the alert messages for when the game server is stopped, started, restarted, and when an LinuxGSM update is received.
- Changed the wording to use "has been" instead of "has" for consistency.
- Added a mention that the server has been restarted after receiving an LinuxGSM update.

* bug

* refactor: update alert emojis and add server time

- Updated the alert emojis in the `alert.sh` module.
- Added the server time to the alert messages in various modules (`alert_discord.sh`, `alert_gotify.sh`, `alert_ifttt.sh`, `alert_pushbullet.sh`, `alert_pushover.sh`, `alert_rocketchat.sh`, and `alert_slack.sh`).

* refactor: remove date from alert messages

The commit refactors the code in `alert_discord.sh` and `alert_slack.sh` to remove the date from the alert messages sent by LinuxGSM. This change simplifies the message content while still indicating that it was sent by LinuxGSM and includes the version number.

* feat: add statusalert option to server configs

This commit adds the "statusalert" option to the default configuration files for various game servers. The "statusalert" option allows users to enable or disable alerts on server start, stop, and restart events. This feature provides more flexibility in managing server notifications.

* feat: add alert for update and restart if necessary

The code change adds an alert for updates and restarts the service if necessary. This ensures that the service is restarted after an update to prevent any issues.

* feat: add backup alert functionality

This commit adds a new function `fn_alert_backup` to the `alert.sh` module. This function sends an alert when the system has been backed up. The alert includes a message, action, emoji, sound, and color.

In addition, this commit modifies the `command_backup.sh` module to trigger the backup alert by setting the variable `alert` to "backup" and calling `alert.sh`.

The purpose of these changes is to provide notifications when backups are created.

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

* refactor: change alert color to green

The code in the `alert.sh` file has been refactored to change the alert color from blue to green. This change updates the `alertcolourhex` and `alertcolourdec` variables accordingly.

---------

Co-authored-by: AI Assistant <assistant@example.com>
2023-10-22 21:47:18 +01:00
Daniel Gibbs
e0b77391bc
feat: various UI changes (#4326)
* refactor: remove unnecessary comments in default server configurations

The commit removes unnecessary comments from the default server configurations. The comments were providing instructions to edit the configuration files with care, but they are not needed and can be safely removed.

* 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.

* refactor: rename fn_script_log_fatal to fn_script_log_faail

to create more consistency with naming

* 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.

* better standardise random

* removed bold where not required
2023-10-07 23:06:09 +01:00
Daniel Gibbs
099412730c
feat(alerts): deprecate mailgun (#4324)
mailgun is no longer free and stats suggest it is not used at all. Removing support
2023-10-01 23:21:01 +01:00
Daniel Gibbs
13c62431d0
refactor: improve log file display in info_messages.sh
The code change modifies the tail command in the fn_info_logs function to exclude lines containing "==>". This improves the display of log files by filtering out unnecessary information.
2023-09-26 00:30:54 +01:00
Daniel Gibbs
4f2acdd12a
refactor: minor _default.cfg changes
- Updated the IP and port settings for ckserver, colserver, fctrserver, hwserver, ohdserver, rustserver, and untserver.
- Added a link to the documentation for predefined parameters in ckserver and hwserver.
- Modified the startparameters value in colserver to include additional parameters.
- Changed the branch value in fctrserver to "stable".
- Updated the servername value in hwserver and ohdserver to "LinuxGSM".
- Modified the defaultmap value in hwserver to "nullius".
- Removed optional comments from hwerver regarding defaultmap and creativemode values.
- Updated gamemode values in rusterver and untserer with their respective options.
2023-09-19 16:55:16 +01:00
Daniel Gibbs
a05c6a5c18
fix(ps): move _default.cfg to new name 2023-09-10 21:58:02 +01:00
Daniel Gibbs
fe610f3ec9 feat(inss): enable master server checking 2023-09-07 21:25:20 +01:00
Daniel Gibbs
3959fa4bf4 fix(pstbs): correct gamename 2023-09-06 19:22:23 +01:00