Teleports, Asset upload / download, Restructure stuff, Fix varlength read bug, BVH parser, agent initial appearance and animation glitches, LLSD + Caps + Event queue

This commit is contained in:
Casper Warden
2017-11-30 04:11:59 +00:00
parent fc6d77a893
commit d0658438b9
247 changed files with 3470 additions and 459 deletions

View File

@@ -106,17 +106,17 @@ export class ScriptDialogMessage implements MessageBase
newObjData['ObjectID'] = new UUID(buf, pos);
pos += 16;
varLength = buf.readUInt8(pos++);
newObjData['FirstName'] = buf.slice(pos, pos + (varLength - 1));
newObjData['FirstName'] = buf.slice(pos, pos + varLength);
pos += varLength;
varLength = buf.readUInt8(pos++);
newObjData['LastName'] = buf.slice(pos, pos + (varLength - 1));
newObjData['LastName'] = buf.slice(pos, pos + varLength);
pos += varLength;
varLength = buf.readUInt8(pos++);
newObjData['ObjectName'] = buf.slice(pos, pos + (varLength - 1));
newObjData['ObjectName'] = buf.slice(pos, pos + varLength);
pos += varLength;
varLength = buf.readUInt16LE(pos);
pos += 2;
newObjData['Message'] = buf.slice(pos, pos + (varLength - 1));
newObjData['Message'] = buf.slice(pos, pos + varLength);
pos += varLength;
newObjData['ChatChannel'] = buf.readInt32LE(pos);
pos += 4;
@@ -133,7 +133,7 @@ export class ScriptDialogMessage implements MessageBase
ButtonLabel: Buffer.allocUnsafe(0)
};
varLength = buf.readUInt8(pos++);
newObjButtons['ButtonLabel'] = buf.slice(pos, pos + (varLength - 1));
newObjButtons['ButtonLabel'] = buf.slice(pos, pos + varLength);
pos += varLength;
this.Buttons.push(newObjButtons);
}