Skip to content

[csgoserver] A few additions/improvements? #198

Closed

Description

@marvinlehmann

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

  1. dgibbs64 commented on Oct 18, 2014

    @dgibbs64
    Member

    Some good stuff. I will review this code and look at adding this stuff I'm :-)

  2. self-assigned this
    on Dec 18, 2014
  3. dgibbs64 commented on Dec 18, 2014

    @dgibbs64
    Member

    Completed most of this already however I have not yet done the autoexec part. I will set this priority so finish the last part

  4. lock commented on Jul 20, 2018

    @lock

    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.

  5. locked as resolved and limited conversation to collaborators on Jul 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions