]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'martin-t/testing-balance' into 'master'
authorMario <mario.mario@y7mail.com>
Sun, 5 Apr 2020 17:38:26 +0000 (17:38 +0000)
committerMario <mario.mario@y7mail.com>
Sun, 5 Apr 2020 17:38:26 +0000 (17:38 +0000)
Granular testing balance using votes

See merge request xonotic/xonotic-data.pk3dir!766

1  2 
check-cvars.sh
commands.cfg
xonotic-server.cfg

diff --combined check-cvars.sh
index 8525385d98ba3e2b5d6a1638d1168f98e5800ce7,7366f0cbbaf632aa7009fb96440a7d250dcc0e8e..387d93720392d660fccf6b43b8dd9ca37c05a0ad
@@@ -6,16 -6,20 +6,20 @@@ check_files(
  {
        countw=`awk ''"$3"' { print $2; }' "$1" | sort -u | tr -d '\r' | git hash-object --stdin | cut -c 1-32`
        for b in $2; do
+               if [ "$b" = "balance-testing.cfg" ] || [ "$b" = "balance-testingxpm.cfg" ]; then
+                       continue
+               fi
                countb=`awk ''"$3"' { print $2; }' "$b" | sort -u | tr -d '\r' | git hash-object --stdin | cut -c 1-32`
                if [ "$countw" != "$countb" ]; then
-                       echo "Mismatch between "$1" and $b. Aborting."
+                       echo "Mismatch between $1 and $b. Aborting."
                        echo "Differences are:"
                        echo "< missing in $b"
                        echo "> must get removed from $b"
                        A=`mktemp || echo a.tmp`
                        B=`mktemp || echo b.tmp`
-                       awk ''"$3"' { print $2; }' "$1"      | sort -u | tr -d '\r' > "$A"
-                       awk ''"$3"' { print $2; }' "$b"                     | sort -u | tr -d '\r' > "$B"
+                       awk ''"$3"' { print $2; }' "$1" | sort -u | tr -d '\r' > "$A"
+                       awk ''"$3"' { print $2; }' "$b" | sort -u | tr -d '\r' > "$B"
                        diff "$A" "$B" | grep '^[<>]' | sort
                        rm -f "$A" "$B"
                        errord=true
@@@ -24,7 -28,6 +28,7 @@@
  }
  
  check_files "balance-xonotic.cfg" "balance-*.cfg" "/^seta? g_/"
 +check_files "bal-wep-xonotic.cfg" "bal-wep-*.cfg" "/^seta? g_/"
  check_files "_hud_descriptions.cfg" "hud_*.cfg" "/^seta? hud_/"
  
  if $errord; then
diff --combined commands.cfg
index d3a22cabc0d41e7c249d6f0927d5b3ae828eda61,cb1cd56e8433bbd5c29253151bdebbc130f809d1..1375a78871d11b51c9abb68ccbc2f801f46f1af5
@@@ -88,7 -88,9 +88,9 @@@ alias g_maplist_shufflenow    "qc_cmd_svme
  alias g_maplist_cleanup       "qc_cmd_svmenu maplist cleanup" // removes maps that don't exist from the map list
  
  alias addfav "qc_cmd_svmenu addtolist net_slist_favorites ${* ?}"
+ alias delfav "qc_cmd_svmenu removefromlist net_slist_favorites ${* ?}"
  alias addvote "qc_cmd_svmenu addtolist sv_vote_commands ${* ?}"
+ alias delvote "qc_cmd_svmenu removefromlist sv_vote_commands ${* ?}"
  
  
  // ========================
@@@ -324,7 -326,7 +326,7 @@@ set sv_vote_command_help_gotomap "\nUsa
  // =================================
  set sv_vote_call 1 "Allow users to call a vote for the commands in sv_vote_commands"
  set sv_vote_change 1 "Allow voters to change their mind after already voting"
 -set sv_vote_commands "restart fraglimit chmap gotomap nextmap endmatch reducematchtime extendmatchtime allready kick cointoss movetoauto shuffleteams bots nobots" "these commands can be voted by players or used directly by masters (vdo) in addition to sv_vote_master_commands"
 +set sv_vote_commands "restart fraglimit gotomap nextmap endmatch reducematchtime extendmatchtime allready kick cointoss movetoauto shuffleteams bots nobots" "these commands can be voted by players or used directly by masters (vdo) in addition to sv_vote_master_commands"
  set sv_vote_only_commands ""
  set sv_vote_limit 160 "Maximum allowed length of a vote command"
  set sv_vote_master_commands "movetored movetoblue movetoyellow movetopink movetospec" "Extra commands which vote masters can execute by themselves, along with the normal sv_vote_commands." // maybe add kickban here (but then sv_vote_master 0)
diff --combined xonotic-server.cfg
index 0edaf7ea4cbff865ad8db7f75e1c3b61e23cbcff,6be9124c432205f4bc21e6e1efa46e9b56fdf599..187de7e364460e5e81c60b2726f6fd4c1f2cca8f
@@@ -126,8 -126,7 +126,8 @@@ set bot_typefrag 0 "Allow bots to shoo
  set bot_ai_thinkinterval 0.05 "Frame rate at which bots update their navigation and aiming, scales by skill"
  set bot_ai_strategyinterval 7 "How often a new objective is chosen"
  set bot_ai_strategyinterval_movingtarget 5.5 "How often a new objective is chosen when current objective can move"
 -set bot_ai_enemydetectioninterval 2 "How often bots pick a new target"
 +set bot_ai_enemydetectioninterval 2 "How often bots try to pick a new target if no suitable target is found"
 +set bot_ai_enemydetectioninterval_stickingtoenemy 4 "How often bots try to pick a new target while targetting an enemy"
  set bot_ai_enemydetectionradius 10000 "How far bots can see enemies"
  set bot_ai_dodgeupdateinterval 0.2 "How often scan for items to dodge. Currently not in use."
  set bot_ai_chooseweaponinterval 0.5 "How often the best weapon according to the situation will be chosen"
@@@ -153,11 -152,9 +153,11 @@@ set bot_ai_weapon_combo_threshold 0.4 "
  set bot_ai_friends_aware_pickup_radius "500" "Bots will not pickup items if a team mate is this distance near the item"
  set bot_ai_ignoregoal_timeout 3 "Ignore goals making bots to get stuck in front of a wall for N seconds"
  set bot_ai_bunnyhop_skilloffset 7 "Bots with skill equal or greater than this value will perform the \"bunnyhop\" technique"
 -set bot_ai_bunnyhop_startdistance 200 "Run to goals located further than this distance"
 -set bot_ai_bunnyhop_stopdistance 300 "Stop jumping after reaching this distance to the goal"
 -set bot_ai_bunnyhop_firstjumpdelay 0.2 "Start running to the goal only if it was seen for more than N seconds"
 +set bot_ai_bunnyhop_dir_deviation_max 20 "bunnyhop if speed - direction deviation is <= this amount"
 +set bot_ai_bunnyhop_downward_pitch_max 30 "bunnyhop if downard pitch towards the next waypoint is <= this amount"
 +set bot_ai_bunnyhop_turn_angle_max 80 "bunnyhop if next turn angle is <= this amount at walk speed (sv_maxspeed)"
 +set bot_ai_bunnyhop_turn_angle_min 4 "bunnyhop regardless of speed if next turn angle is <= this amount"
 +set bot_ai_bunnyhop_turn_angle_reduction 40 "linearly reduce max turn angle by this amount when speed increases by sv_maxspeed"
  set bot_god 0 "god mode for bots"
  set bot_ai_navigation_jetpack 0 "Enable bots to navigate maps using the jetpack"
  set bot_ai_navigation_jetpack_mindistance 3500 "Bots will try fly to objects located farther than this distance"
@@@ -194,6 -191,7 +194,6 @@@ set g_antilag_nudge 0 "don't touch
  set g_shootfromeye 0 "shots are fired from your eye/crosshair; visual gun position can still be influenced by cl_gunalign 1 and 2"
  set g_shootfromcenter 0 "weapon gets moved to the center, shots still come from the barrel of your weapon; visual gun position can still be influenced by cl_gunalign 1 and 2"
  set g_shootfromfixedorigin "" "if set to a string like 0 y z, the gun is moved to the given y and z coordinates. If set to a string like x y z, the whole shot origin is used"
 -set g_pinata 0 "if set to 1 you will not only drop your current weapon when you are killed, but you will drop all weapons that you possessed"
  set g_weapon_stay 0 "1: ghost weapons can be picked up but give no ammo, thrown guns have ammo 2: ghost weapons can be picked up and refill ammo to one pickup size, thrown guns have no ammo (to prevent infinite ammo abuse)"
  set g_weapon_throwable 1 "if set to 1, weapons can be dropped"
  set g_powerups -1 "if set to 0 the strength and shield (invincibility) will not spawn on the map, if 1 they will spawn in all game modes, -1 is game mode default"
@@@ -396,8 -394,6 +396,8 @@@ sv_gameplayfix_delayprojectiles 
  sv_gameplayfix_q2airaccelerate 1
  sv_gameplayfix_stepmultipletimes 1
  sv_gameplayfix_stepdown 2
 +// only available in qc physics
 +set sv_gameplayfix_stepdown_maxspeed 0 "maximum speed walking entities can be moving for stepping down to apply - requires sv_qcphysics 1"
  
  // delay for "kill" to prevent abuse
  set g_balance_kill_delay 2 "timer before death when using the kill command"
@@@ -553,7 -549,8 +553,8 @@@ set g_mod_balance "" "Current balance c
  set g_mod_config  "" "Current config mod name"
  
  // other config files
- exec balance-xonotic.cfg
+ exec testing.cfg
+ exec balance-xonotic.cfg // depends on testing.cfg
  exec physicsX.cfg
  exec turrets.cfg
  exec vehicles.cfg