diff options
author | MW | 2007-04-26 17:29:41 +0000 |
---|---|---|
committer | MW | 2007-04-26 17:29:41 +0000 |
commit | a7c374ac5171f88f4a695d6b3065459b9833786b (patch) | |
tree | 1887f0fa8025086a382c106034311e3b04f53e97 /OpenSim.RegionServer/world/Avatar.cs | |
parent | Mostly working again. (diff) | |
download | opensim-SC-a7c374ac5171f88f4a695d6b3065459b9833786b.zip opensim-SC-a7c374ac5171f88f4a695d6b3065459b9833786b.tar.gz opensim-SC-a7c374ac5171f88f4a695d6b3065459b9833786b.tar.bz2 opensim-SC-a7c374ac5171f88f4a695d6b3065459b9833786b.tar.xz |
At last: avatar-template.dat is no more
Diffstat (limited to '')
-rw-r--r-- | OpenSim.RegionServer/world/Avatar.cs | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/OpenSim.RegionServer/world/Avatar.cs b/OpenSim.RegionServer/world/Avatar.cs index 917c893..4f13a4a 100644 --- a/OpenSim.RegionServer/world/Avatar.cs +++ b/OpenSim.RegionServer/world/Avatar.cs | |||
@@ -102,7 +102,7 @@ namespace OpenSim.world | |||
102 | 102 | ||
103 | public static void SetupTemplate(string name) | 103 | public static void SetupTemplate(string name) |
104 | { | 104 | { |
105 | int i = 0; | 105 | /*int i = 0; |
106 | FileInfo fInfo = new FileInfo(name); | 106 | FileInfo fInfo = new FileInfo(name); |
107 | long numBytes = fInfo.Length; | 107 | long numBytes = fInfo.Length; |
108 | FileStream fStream = new FileStream(name, FileMode.Open, FileAccess.Read); | 108 | FileStream fStream = new FileStream(name, FileMode.Open, FileAccess.Read); |
@@ -110,11 +110,12 @@ namespace OpenSim.world | |||
110 | byte[] data1 = br.ReadBytes((int)numBytes); | 110 | byte[] data1 = br.ReadBytes((int)numBytes); |
111 | br.Close(); | 111 | br.Close(); |
112 | fStream.Close(); | 112 | fStream.Close(); |
113 | * */ | ||
113 | 114 | ||
114 | libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock objdata = new ObjectUpdatePacket.ObjectDataBlock(); // new libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock(data1, ref i); | 115 | libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock objdata = new ObjectUpdatePacket.ObjectDataBlock(); // new libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock(data1, ref i); |
115 | 116 | ||
116 | SetDefaultPacketValues(objdata); | 117 | SetDefaultPacketValues(objdata); |
117 | objdata.ObjectData = data1; | 118 | //objdata.ObjectData = data1; |
118 | objdata.UpdateFlags = 61 + (9 << 8) + (130 << 16) + (16 << 24); | 119 | objdata.UpdateFlags = 61 + (9 << 8) + (130 << 16) + (16 << 24); |
119 | objdata.PathCurve = 16; | 120 | objdata.PathCurve = 16; |
120 | objdata.ProfileCurve = 1; | 121 | objdata.ProfileCurve = 1; |
@@ -155,9 +156,16 @@ namespace OpenSim.world | |||
155 | objdata.State = 0; | 156 | objdata.State = 0; |
156 | objdata.Data = new byte[0]; | 157 | objdata.Data = new byte[0]; |
157 | 158 | ||
158 | objdata.ObjectData = new byte[60]; | 159 | objdata.ObjectData = new byte[76]; |
159 | objdata.ObjectData[46] = 128; | 160 | objdata.ObjectData[15] = 128; |
160 | objdata.ObjectData[47] = 63; | 161 | objdata.ObjectData[16] = 63; |
162 | objdata.ObjectData[56] = 128; | ||
163 | objdata.ObjectData[61] = 102; | ||
164 | objdata.ObjectData[62] = 40; | ||
165 | objdata.ObjectData[63] = 61; | ||
166 | objdata.ObjectData[64] = 189; | ||
167 | |||
168 | |||
161 | } | 169 | } |
162 | 170 | ||
163 | public void CompleteMovement(World RegionInfo) | 171 | public void CompleteMovement(World RegionInfo) |