aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-08-22 23:43:33 +0100
committerJustin Clark-Casey (justincc)2013-08-22 23:43:33 +0100
commit70f89ae65b09e9c2f0dc63cb416fea4cceb7dd13 (patch)
tree85fb3175f7d446039b27dcc3a562f9cd79545975
parentAdd "set bots" command to make it possible to set SEND_AGENT_UPDATES on all b... (diff)
downloadopensim-SC_OLD-70f89ae65b09e9c2f0dc63cb416fea4cceb7dd13.zip
opensim-SC_OLD-70f89ae65b09e9c2f0dc63cb416fea4cceb7dd13.tar.gz
opensim-SC_OLD-70f89ae65b09e9c2f0dc63cb416fea4cceb7dd13.tar.bz2
opensim-SC_OLD-70f89ae65b09e9c2f0dc63cb416fea4cceb7dd13.tar.xz
Make it possible to adjust the pCampbot login delay via the [BotManager] LoginDelay parameter of pCampbot.ini
-rw-r--r--OpenSim/Tools/pCampBot/pCampBot.cs7
-rw-r--r--bin/pCampbot.ini.example4
2 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Tools/pCampBot/pCampBot.cs b/OpenSim/Tools/pCampBot/pCampBot.cs
index fc67398..aee5864 100644
--- a/OpenSim/Tools/pCampBot/pCampBot.cs
+++ b/OpenSim/Tools/pCampBot/pCampBot.cs
@@ -82,6 +82,13 @@ namespace pCampBot
82 82
83 IConfigSource configSource = new IniConfigSource(iniFilePath); 83 IConfigSource configSource = new IniConfigSource(iniFilePath);
84 84
85 IConfig botManagerConfig = configSource.Configs["BotManager"];
86
87 if (botManagerConfig != null)
88 {
89 bm.LoginDelay = botManagerConfig.GetInt("LoginDelay", bm.LoginDelay);
90 }
91
85 IConfig botConfig = configSource.Configs["Bot"]; 92 IConfig botConfig = configSource.Configs["Bot"];
86 93
87 if (botConfig != null) 94 if (botConfig != null)
diff --git a/bin/pCampbot.ini.example b/bin/pCampbot.ini.example
index f44feae..2952bb0 100644
--- a/bin/pCampbot.ini.example
+++ b/bin/pCampbot.ini.example
@@ -1,6 +1,10 @@
1; This is the example config file for pCampbot 1; This is the example config file for pCampbot
2; To use it, copy this file to pCampbot.ini and change settings if required 2; To use it, copy this file to pCampbot.ini and change settings if required
3 3
4[BotManager]
5 ; Number of milliseconds to wait between bot logins
6 LoginDelay = 5000
7
4[Bot] 8[Bot]
5 ; Control whether bots should regularly send agent updates 9 ; Control whether bots should regularly send agent updates
6 ; Not doing this will reduce CPU requirements for pCampbot but greatly 10 ; Not doing this will reduce CPU requirements for pCampbot but greatly