WOOHOO! Avatar/Asset loading works!

brokenplugins
gareth 2007-03-01 02:02:01 +00:00
parent 0eabb4b98c
commit 1122aa3efe
2 changed files with 4 additions and 4 deletions

View File

@ -68,9 +68,9 @@ namespace OpenSim
this.RegionHandle = Helpers.UIntsToLong((RegionLocX*256), (RegionLocY*256));
this.IPListenPort = 9000;
this.IPListenAddr = "4.78.190.75";
this.AssetURL = "http://osgrid.org/ogs/assetserver/";
this.AssetURL = "http://www.osgrid.org/ogs/assetserver/";
this.AssetSendKey = "1234";
this.GridURL = "http://osgrid.org/ogs/gridserver/";
this.GridURL = "http://www.osgrid.org/ogs/gridserver/";
this.GridSendKey = "1234";
}

View File

@ -89,7 +89,6 @@ namespace OpenSim
BinaryReader br = new BinaryReader(AssetResponse.GetResponseStream());
idata = br.ReadBytes((int)AssetResponse.ContentLength);
br.Close();
AssetResponse.Close();
TransferInfoPacket Transfer = new TransferInfoPacket();
Transfer.TransferInfo.ChannelType = 2;
@ -127,6 +126,7 @@ namespace OpenSim
TransferPacket.TransferData.Data = idata;
OutPacket(TransferPacket);
}
AssetResponse.Close();
}
public void ProcessInPacket(Packet Pack) {
@ -134,10 +134,10 @@ namespace OpenSim
switch(Pack.Type) {
case PacketType.CompleteAgentMovement:
ClientAvatar.CompleteMovement(OpenSim_Main.local_world);
ClientAvatar.SendInitialPosition();
break;
case PacketType.RegionHandshakeReply:
OpenSim_Main.local_world.SendLayerData(this);
ClientAvatar.SendInitialPosition();
break;
case PacketType.AgentWearablesRequest:
ClientAvatar.SendInitialAppearance();