Repository navigation
[csgoserver] A few additions/improvements? #198
Description
Remove some of the console spam:
fn_botprofilefix(){
if ! grep -q "//Rank" "${systemdir}/botprofile.db"; then
fn_printdots "Applying botprofile.db fix."
sleep 1
fn_printinfo "Applying botprofile.db fix."
sleep 1
sed -i 's/\tRank/\t//Rank/g' "${systemdir}/botprofile.db"
echo -en "\n"
fi
}
fn_valvercfix(){
if ! grep -q "//exec default" "${servercfgdir}/valve.rc" || ! grep -q "//exec default" "${servercfgdir}/valve.rc"; then
fn_printdots "Applying valve.rc fix."
sleep 1
fn_printinfo "Applying valve.rc fix."
sleep 1
sed -i 's/exec default.cfg///exec default.cfg/g' "${servercfgdir}/valve.rc"
sed -i 's/exec joystick.cfg///exec joystick.cfg/g' "${servercfgdir}/valve.rc"
echo -en "\n"
fi
}
Some people have issues (like me) when they are trying to host workshop maps, so:
fn_workshopmapfix(){
if [ -f "${systemdir}/subscribed_collection_ids.txt" ] || [ -f "${systemdir}/subscribed_file_ids.txt" ] || [ -f "${systemdir}/ugc_collection_cache.txt" ]; then
fn_printdots "Applying workshop fix."
sleep 1
fn_printinfo "Applying workshop fix."
sleep 1
rm -f "${systemdir}/subscribed_collection_ids.txt"
rm -f "${systemdir}/subscribed_file_ids.txt"
rm -f "${systemdir}/ugc_collection_cache.txt"
echo -en "\n"
fi
}
And some changes to the config generation/content:
https://github.com/dgibbs64/linuxgameservers/blob/master/CounterStrikeGlobalOffensive/csgoserver#L853-L894
Maybe add:
//**The following commands manage kicks and bans
exec banned_user.cfg
exec banned_ip.cfg
writeid
writeip
Seperation (server.cfg / autoexec.cfg),
server logging stuff -> autoexec.cfg - should be enough
https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers#autoexec.cfg
https://forums.alliedmods.net/showthread.php?t=172855
And fix the spelling mistake ("rcon passsword") and make the "headlines" to lowercase. :p
And maybe "better" intending? I love tidy code^^ ( http://www.arachnoid.com/python/beautify_bash_program.html )
These were all my thoughts ^^
Activity
dgibbs64 commentedon Oct 18, 2014
Some good stuff. I will review this code and look at adding this stuff I'm :-)
dgibbs64 commentedon Dec 18, 2014
Completed most of this already however I have not yet done the autoexec part. I will set this priority so finish the last part
lock commentedon Jul 20, 2018
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.