From: terencehill Date: Mon, 8 Apr 2019 01:01:15 +0000 (+0200) Subject: Warn if there are too many parameters for a bot in bots.txt X-Git-Tag: xonotic-v0.8.5~1558 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4ff672e240a351fbfa50f8152702d6199f89cdfa;p=xonotic%2Fxonotic-data.pk3dir.git Warn if there are too many parameters for a bot in bots.txt --- diff --git a/bots.txt b/bots.txt index 2276d38b8..46f92a27c 100644 --- 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 diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index 7061ff91c..90338d202 100644 --- a/qcsrc/server/bot/default/bot.qc +++ b/qcsrc/server/bot/default/bot.qc @@ -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