diff options
author | Justin Clark-Casey (justincc) | 2013-08-14 18:26:11 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-08-14 18:26:11 +0100 |
commit | 3a62f39044403e7bf453c7b5b1fe825a48e908f3 (patch) | |
tree | a9e28aa2b25e58f19b235e68ae9915b91564a1a2 /OpenSim/Tools/pCampBot/BotManager.cs | |
parent | Add the ability to explicitly specify a login start location to pCampbot via ... (diff) | |
download | opensim-SC_OLD-3a62f39044403e7bf453c7b5b1fe825a48e908f3.zip opensim-SC_OLD-3a62f39044403e7bf453c7b5b1fe825a48e908f3.tar.gz opensim-SC_OLD-3a62f39044403e7bf453c7b5b1fe825a48e908f3.tar.bz2 opensim-SC_OLD-3a62f39044403e7bf453c7b5b1fe825a48e908f3.tar.xz |
Add a -form switch to pCampbot to allow one to login a sequence of bots starting from numbers other than 0
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tools/pCampBot/BotManager.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Tools/pCampBot/BotManager.cs b/OpenSim/Tools/pCampBot/BotManager.cs index 57bd737..0fdfa0e 100644 --- a/OpenSim/Tools/pCampBot/BotManager.cs +++ b/OpenSim/Tools/pCampBot/BotManager.cs | |||
@@ -157,6 +157,7 @@ namespace pCampBot | |||
157 | string password = startupConfig.GetString("password"); | 157 | string password = startupConfig.GetString("password"); |
158 | string loginUri = startupConfig.GetString("loginuri"); | 158 | string loginUri = startupConfig.GetString("loginuri"); |
159 | string startLocation = startupConfig.GetString("start", "last"); | 159 | string startLocation = startupConfig.GetString("start", "last"); |
160 | int fromBotNumber = startupConfig.GetInt("from", 0); | ||
160 | string wearSetting = startupConfig.GetString("wear", "no"); | 161 | string wearSetting = startupConfig.GetString("wear", "no"); |
161 | 162 | ||
162 | string startUri = ParseInputStartLocationToUri(startLocation); | 163 | string startUri = ParseInputStartLocationToUri(startLocation); |
@@ -178,7 +179,7 @@ namespace pCampBot | |||
178 | 179 | ||
179 | for (int i = 0; i < botcount; i++) | 180 | for (int i = 0; i < botcount; i++) |
180 | { | 181 | { |
181 | string lastName = string.Format("{0}_{1}", lastNameStem, i); | 182 | string lastName = string.Format("{0}_{1}", lastNameStem, i + fromBotNumber); |
182 | 183 | ||
183 | // We must give each bot its own list of instantiated behaviours since they store state. | 184 | // We must give each bot its own list of instantiated behaviours since they store state. |
184 | List<IBehaviour> behaviours = new List<IBehaviour>(); | 185 | List<IBehaviour> behaviours = new List<IBehaviour>(); |