* If there are backups in backup dir. Fixes#1140
* mainly improves logging #1098
* Better logging, output & compatibility #1098
* fn_check_cfgdir for Rust fixes#1141
* fn_set_config_vars is not for every game
removing some games i know don't use it
* Install config if missing fixes#1142
* Clear more logs #1137
* Putting all this into functions & prepare noprompt
* noprompt & shutdownonbackup #1098
* fix syntax & messages #1098
* messages that make more sense #1098
* New backup vars
# Backup
maxbackups="4"
maxbackupdays="30"
stoponbackup="on"
* Should fix missing cached mem #1143
* fix the fix for #1143 (close double quote)
* move -type f before -mtime
* New gameservers & features (#1158)
* Two # is now one block of settings & descriptions
* directories comments and logs naming
* dgibbs revision and root check
* update_steamcmd.sh Check is now done out of functions
* Better way to detect screen #1154 and #1156
* Backup function improvements (#1161)
* Added no of days since last backup
* Added lock file creation to logs
* Improvements up command_backup.sh
Changes to the messages displayed on screen
added trap and improved lockfile support
renamed some functions
other misc changes
* Updated Version numbers
Fixes https://github.com/dgibbs64/linuxgsm/issues/685
Tickrate needs to be lowered in order to be able to handle a large amount of players.
Default tickrate is 66.66, but the -tickrate commnand will round numbers to the lower integer. So i'll default at 66 and not -the more accurate- 67 to not worry anyone with a "non standard" value.
For the +r_hunkalloclightmaps 0, it fixes the hunk overflow crash on server startup when using maps with too much lights (and there are a lot of them). It changes the way lights are stored in RAM, the 0 mode (default one a few years ago, and still default one on clients) can handle a way larger amount of lights, but a theoretically a bit slower way. I noticed no difference, so it's a good thing to fix it by default.
I useful feature for developers.
This will enable a log to be created of everything that ran when
executing a command. It uses the set command.
When you run a command a file dev-debug.log is created and will output
set -x
--no-check-certificate presents a possible security risk.
--no-check-certificate is only used because older distros do not
recognise githubusercontent.com and will fail to download files. I have
decided to remove remove this option for now. It may be the case later
that I all this with older distros if there is a need for it.
It is possible to have maps in the gamemodes folder. in that case its a requirement for the game to know the gamemode is before it can change to a map.
* All functions names have been reviewed and renamed to make it easier
to identify what the function is for. This is for my benefit as there
are now over 50 functions to manage.
* New details feature. It has been reworked to add more useful info and
fix any bugs with details not always being displayed.
* Main script file e.g csgoserver should no longer require any updates
from this point. All code modifications should be made from the
functions. Any future edits would relate to server specific config.
* servername variable has been moved to its own function if name is
gathered from a config file. The same applies for ports, usernames and
passwords.
* new function fn_details_distro gathers all the required OS info for
fn_details and other functions that require this info
* Various improvements and bug fixes that I cannot remember.
All servers have now been migrated to the new functions code. All
functions are now separated in there own file allowing to make quicker
changes to all servers code and simpler management of the code. For the
developer the code is now very scalable.
sometimes the code was not in the correct dir causing the function to be
re downloaded or not function. Now using absolute paths to make sure the
script uses the correct dir
* fixed some distros not downloading functions becuase of old
certificates. Added --no-check-certificate to anything wget code
relating to githubusercontent.com
* fixed tmux-error.tmp not being deleted correctly
All scripts now have the new split functions system in-place.
Some functions now have there own file rather than being in the main
script file.
If the main script requires the file is will automatically download it
in the the functions dir for use.
Only a few functions currently do this. However if a change is made to a
function it will be migrated. In the long term this will reduce the need
for me to copy the same code over 20 times and drastically reduce the
time it takes me to make changes.
Coverted the following functions to the new function file method
fn_debugserver
fn_details
fn_steamfix
fn_details added the parms to the details.
fn_debug mode minor change to how parms are displayed