Skip to content

UGC exec_off script does not properly end matches #26

@SizzlingCalamari

Description

@SizzlingCalamari

The UGC exec_off script is sometimes used to manually end a match. It performs a call to mp_tournament 0 without first calling mp_tournament_restart. This causes the SizzlingStats plugin to never end the match and prevents STV demos from uploading. A fix on the script side is to add a call to mp_tournament_restart before mp_tournament 0. A fix on the plugin side is to check the value of mp_tournament every frame and end the match if the value is 0.

//=== UGC  TF2  Reset Config ===
//=== THIS CONFIG IS USED TO REMOVE LEAGUE SETTINGS AND TO RETURN THE SERVER TO IT"S DEFAULT SERVER CFG FILE

//=== Stops SourceTV demo and unloads the STV bot
tv_stoprecord
tv_stop
tv_autorecord "0"
tv_enable "0"

//Closes current log file and opens a new one
log on

//Reset to standard Valve settings
sv_contact ""
tv_stoprecord
tv_stop
tv_autorecord "0"
tv_enable "0"
tv_maxclients "128"
tv_dispatchmode "1"

mp_autoteambalance "1"
mp_bonusroundtime "15"
mp_chattime "10"
mp_logdetail "3"
mp_match_end_at_timelimit "0"
mp_maxrounds "0"
mp_stalemate_timelimit "240"
mp_timelimit "30"
mp_tournament "0"
mp_tournament_stopwatch "0"
mp_teams_unbalance_limit "1"
mp_winlimit "0"
tf_damage_disablespread "0"
tf_ctf_bonus_time "10"
tf_weapon_criticals "1"
tf_tournament_hide_domination_icons "0"
tf_tournament_classlimit_demoman "-1"
tf_tournament_classlimit_engineer "-1"
tf_tournament_classlimit_heavy "-1"
tf_tournament_classlimit_medic "-1"
tf_tournament_classlimit_pyro "-1"
tf_tournament_classlimit_scout "-1"
tf_tournament_classlimit_sniper "-1"
tf_tournament_classlimit_soldier "-1"
tf_tournament_classlimit_spy "-1"
sv_allow_color_correction "1"

servercfgfile "server.cfg"

say "executing ugc_off.cfg - reloading your server default configuration"

//=== SET ALL OF YOUR CUSTOM SERVER SETTINGS IN YOUR OWN "server.cfg"
//=== LOADS your default server cfg file
exec server.cfg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions