]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Warn if there are too many parameters for a bot in bots.txt
authorterencehill <piuntn@gmail.com>
Mon, 8 Apr 2019 01:01:15 +0000 (03:01 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 8 Apr 2019 01:02:12 +0000 (03:02 +0200)
bots.txt
qcsrc/server/bot/default/bot.qc

index 2276d38b87dd969b6ad5490504806ddbee74235d..46f92a27c6b74624d6d125e84e8003bdeb368a51 100644 (file)
--- a/bots.txt
+++ b/bots.txt
@@ -1,8 +1,11 @@
 //bot configuration:
 // default team values (team-override): 1 = red, 2 = blue, 3 = yellow, 4 = pink
 // use -1 for shirt-color or pants-color to get random colors
-// note: only one tab is allowed as separator
-//       enable indentation with elastic tab stops if you want to make sense of it all
+//
+//   WARNING: Only ONE tab is allowed as separator.
+//
+//   TIP: Enable indentation with elastic tab stops if you want to make sense of it all.
+//
 //name model   skin    shirt   pants   team    keyboard use    moving  dodging ping    weapon use      aggressivity    range   aiming  calmhand        mouse   fightthink      aithink
 Hellfire       ignis   0       4       0       0       0       0       -0.5    -1      1       1       -0.5    -1      -1      2       0.5     -1
 Toxic  gakmasked       0       14      7       0       -1      -1.5    -0.5    0       1       0       0       0       2       -0.5    -0.5    1
index 7061ff91ce9b16f080c86b139f195e06599368ab..90338d20214e1e0ec3132f7af1c3b597bba4f4a3 100644 (file)
@@ -241,6 +241,9 @@ void bot_setnameandstuff(entity this)
        READSKILL(bot_thinkskill, 1, 0.5); // think skill
        READSKILL(bot_aiskill, 2, 0); // "ai" skill
 
+       if (file >= 0 && argv(prio) != "")
+               LOG_INFOF("^1Warning^7: too many parameters for bot %s, please check format of %s", bot_name, autocvar_bot_config_file);
+
        this.bot_config_loaded = true;
 
        // this is really only a default, TeamBalance_JoinBestTeam is called later