aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot/Bot.cs
diff options
context:
space:
mode:
authorRobert Adams2013-11-05 21:42:27 -0800
committerRobert Adams2013-11-05 21:42:27 -0800
commita75ce7423c008414528c1031bb9645478972a70f (patch)
tree3c96d914351c75948a2becf35a5775ead07d3f8f /OpenSim/Tools/pCampBot/Bot.cs
parentvarregion: properly sense size of terrain heightmap and store as (diff)
parentAdded sending (for now hard-coded) sim isze in SendMapBlockSplit() (diff)
downloadopensim-SC_OLD-a75ce7423c008414528c1031bb9645478972a70f.zip
opensim-SC_OLD-a75ce7423c008414528c1031bb9645478972a70f.tar.gz
opensim-SC_OLD-a75ce7423c008414528c1031bb9645478972a70f.tar.bz2
opensim-SC_OLD-a75ce7423c008414528c1031bb9645478972a70f.tar.xz
Merge branch 'master' into varregion
Diffstat (limited to 'OpenSim/Tools/pCampBot/Bot.cs')
-rw-r--r--OpenSim/Tools/pCampBot/Bot.cs19
1 files changed, 13 insertions, 6 deletions
diff --git a/OpenSim/Tools/pCampBot/Bot.cs b/OpenSim/Tools/pCampBot/Bot.cs
index ccc24fa..de464ab 100644
--- a/OpenSim/Tools/pCampBot/Bot.cs
+++ b/OpenSim/Tools/pCampBot/Bot.cs
@@ -264,9 +264,10 @@ namespace pCampBot
264 newClient.Throttle.Total = 400000; 264 newClient.Throttle.Total = 400000;
265 } 265 }
266 266
267 newClient.Network.LoginProgress += this.Network_LoginProgress; 267 newClient.Network.LoginProgress += Network_LoginProgress;
268 newClient.Network.SimConnected += this.Network_SimConnected; 268 newClient.Network.SimConnected += Network_SimConnected;
269 newClient.Network.Disconnected += this.Network_OnDisconnected; 269 newClient.Network.SimDisconnected += Network_SimDisconnected;
270 newClient.Network.Disconnected += Network_OnDisconnected;
270 newClient.Objects.ObjectUpdate += Objects_NewPrim; 271 newClient.Objects.ObjectUpdate += Objects_NewPrim;
271 272
272 Client = newClient; 273 Client = newClient;
@@ -276,7 +277,7 @@ namespace pCampBot
276 //add additional steps and/or things the bot should do 277 //add additional steps and/or things the bot should do
277 private void Action() 278 private void Action()
278 { 279 {
279 while (ConnectionState != ConnectionState.Disconnecting) 280 while (ConnectionState == ConnectionState.Connected)
280 { 281 {
281 lock (Behaviours) 282 lock (Behaviours)
282 { 283 {
@@ -583,7 +584,13 @@ namespace pCampBot
583 public void Network_SimConnected(object sender, SimConnectedEventArgs args) 584 public void Network_SimConnected(object sender, SimConnectedEventArgs args)
584 { 585 {
585 m_log.DebugFormat( 586 m_log.DebugFormat(
586 "[BOT]: Bot {0} connected to {1} at {2}", Name, args.Simulator.Name, args.Simulator.IPEndPoint); 587 "[BOT]: Bot {0} connected to region {1} at {2}", Name, args.Simulator.Name, args.Simulator.IPEndPoint);
588 }
589
590 public void Network_SimDisconnected(object sender, SimDisconnectedEventArgs args)
591 {
592 m_log.DebugFormat(
593 "[BOT]: Bot {0} disconnected from region {1} at {2}", Name, args.Simulator.Name, args.Simulator.IPEndPoint);
587 } 594 }
588 595
589 public void Network_OnDisconnected(object sender, DisconnectedEventArgs args) 596 public void Network_OnDisconnected(object sender, DisconnectedEventArgs args)
@@ -591,7 +598,7 @@ namespace pCampBot
591 ConnectionState = ConnectionState.Disconnected; 598 ConnectionState = ConnectionState.Disconnected;
592 599
593 m_log.DebugFormat( 600 m_log.DebugFormat(
594 "[BOT]: Bot {0} disconnected reason {1}, message {2}", Name, args.Reason, args.Message); 601 "[BOT]: Bot {0} disconnected from grid, reason {1}, message {2}", Name, args.Reason, args.Message);
595 602
596// m_log.ErrorFormat("Fired Network_OnDisconnected"); 603// m_log.ErrorFormat("Fired Network_OnDisconnected");
597 604