Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim
commit
444b345cdf
|
@ -86,7 +86,9 @@ namespace OpenSim
|
||||||
|
|
||||||
if (networkConfig != null)
|
if (networkConfig != null)
|
||||||
m_consolePort = (uint)networkConfig.GetInt("console_port", 0);
|
m_consolePort = (uint)networkConfig.GetInt("console_port", 0);
|
||||||
|
|
||||||
m_timedScript = startupConfig.GetString("timer_Script", "disabled");
|
m_timedScript = startupConfig.GetString("timer_Script", "disabled");
|
||||||
|
|
||||||
if (m_logFileAppender != null)
|
if (m_logFileAppender != null)
|
||||||
{
|
{
|
||||||
if (m_logFileAppender is log4net.Appender.FileAppender)
|
if (m_logFileAppender is log4net.Appender.FileAppender)
|
||||||
|
@ -830,6 +832,7 @@ namespace OpenSim
|
||||||
{
|
{
|
||||||
MainConsole.Instance.Output("Usage: change region <region name>");
|
MainConsole.Instance.Output("Usage: change region <region name>");
|
||||||
}
|
}
|
||||||
|
|
||||||
string regionName = (m_sceneManager.CurrentScene == null ? "root" : m_sceneManager.CurrentScene.RegionInfo.RegionName);
|
string regionName = (m_sceneManager.CurrentScene == null ? "root" : m_sceneManager.CurrentScene.RegionInfo.RegionName);
|
||||||
MainConsole.Instance.Output(String.Format("Currently selected region is {0}", regionName));
|
MainConsole.Instance.Output(String.Format("Currently selected region is {0}", regionName));
|
||||||
m_console.DefaultPrompt = String.Format("{0} ({1}) ", m_custom_prompt, regionName);
|
m_console.DefaultPrompt = String.Format("{0} ({1}) ", m_custom_prompt, regionName);
|
||||||
|
|
|
@ -136,7 +136,7 @@ namespace pCampBot
|
||||||
if (behaviourSwitches.Contains("g"))
|
if (behaviourSwitches.Contains("g"))
|
||||||
behaviours.Add(new GrabbingBehaviour());
|
behaviours.Add(new GrabbingBehaviour());
|
||||||
|
|
||||||
startupBot(i, this, behaviours, firstName, lastName, password, loginUri);
|
StartBot(this, behaviours, firstName, lastName, password, loginUri);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -156,22 +156,21 @@ namespace pCampBot
|
||||||
// int newlen = len + botcount;
|
// int newlen = len + botcount;
|
||||||
// for (int i = len; i < newlen; i++)
|
// for (int i = len; i < newlen; i++)
|
||||||
// {
|
// {
|
||||||
// startupBot(i, Config);
|
// startupBot(Config);
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This starts up the bot and stores the thread for the bot in the thread array
|
/// This starts up the bot and stores the thread for the bot in the thread array
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="pos">The position in the thread array to stick the bot's thread</param>
|
|
||||||
/// <param name="bm"></param>
|
/// <param name="bm"></param>
|
||||||
/// <param name="behaviours">Behaviours for this bot to perform.</param>
|
/// <param name="behaviours">Behaviours for this bot to perform.</param>
|
||||||
/// <param name="firstName">First name</param>
|
/// <param name="firstName">First name</param>
|
||||||
/// <param name="lastName">Last name</param>
|
/// <param name="lastName">Last name</param>
|
||||||
/// <param name="password">Password</param>
|
/// <param name="password">Password</param>
|
||||||
/// <param name="loginUri">Login URI</param>
|
/// <param name="loginUri">Login URI</param>
|
||||||
public void startupBot(
|
public void StartBot(
|
||||||
int pos, BotManager bm, List<IBehaviour> behaviours,
|
BotManager bm, List<IBehaviour> behaviours,
|
||||||
string firstName, string lastName, string password, string loginUri)
|
string firstName, string lastName, string password, string loginUri)
|
||||||
{
|
{
|
||||||
Bot pb = new Bot(bm, behaviours, firstName, lastName, password, loginUri);
|
Bot pb = new Bot(bm, behaviours, firstName, lastName, password, loginUri);
|
||||||
|
@ -233,9 +232,12 @@ namespace pCampBot
|
||||||
}
|
}
|
||||||
|
|
||||||
private void HandleShutdown(string module, string[] cmd)
|
private void HandleShutdown(string module, string[] cmd)
|
||||||
|
{
|
||||||
|
Util.FireAndForget(o =>
|
||||||
{
|
{
|
||||||
m_log.Warn("[BOTMANAGER]: Shutting down bots");
|
m_log.Warn("[BOTMANAGER]: Shutting down bots");
|
||||||
doBotShutdown();
|
doBotShutdown();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void HandleShowStatus(string module, string[] cmd)
|
private void HandleShowStatus(string module, string[] cmd)
|
||||||
|
|
Loading…
Reference in New Issue