Converting to the new decrypted message_template.msg file shipped with Second Life, and some primexport fixes
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@201 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -37,7 +37,7 @@ using libsecondlife;
|
||||
class Decoder {
|
||||
private static int BUFSIZE = 8096;
|
||||
|
||||
private static ProtocolManager protocol = new SecondLife("keywords.txt", "protocol.txt").Protocol;
|
||||
private static ProtocolManager protocol = new SecondLife("keywords.txt", "message_template.msg").Protocol;
|
||||
private static string grep = null;
|
||||
private static byte[] data = new byte[BUFSIZE];
|
||||
private static byte[] temp = new byte[BUFSIZE];
|
||||
|
||||
@@ -127,13 +127,5 @@
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Core\PrefsManager.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="keywords.txt">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="protocol.txt">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -50,7 +50,7 @@ namespace SLNetworkComm
|
||||
|
||||
private void InitializeClient()
|
||||
{
|
||||
client = new SecondLife("keywords.txt", "protocol.txt");
|
||||
client = new SecondLife("keywords.txt", "message_template.msg");
|
||||
client.Network.RegisterCallback("ChatFromSimulator", new PacketCallback(ChatIncoming));
|
||||
client.Network.RegisterCallback("ImprovedInstantMessage", new PacketCallback(InstantMessageIncoming));
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace SLIRC
|
||||
{
|
||||
try
|
||||
{
|
||||
client = new SecondLife("keywords.txt", "protocol.txt");
|
||||
client = new SecondLife("keywords.txt", "message_template.msg");
|
||||
client.Avatar.OnChat += new ChatCallback(Avatar_OnChat);
|
||||
grpLogin.Enabled = true;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class Analyst {
|
||||
|
||||
public static void Main(string[] args) {
|
||||
// configure the proxy
|
||||
client = new SecondLife("keywords.txt", "protocol.txt");
|
||||
client = new SecondLife("keywords.txt", "message_template.msg");
|
||||
protocolManager = client.Protocol;
|
||||
ProxyConfig proxyConfig = new ProxyConfig("Analyst", "austin.jennings@gmail.com", protocolManager, args);
|
||||
proxy = new Proxy(proxyConfig);
|
||||
|
||||
@@ -45,7 +45,7 @@ public class ChatConsole {
|
||||
|
||||
public static void Main(string[] args) {
|
||||
// configure the proxy
|
||||
client = new SecondLife("keywords.txt", "protocol.txt");
|
||||
client = new SecondLife("keywords.txt", "message_template.msg");
|
||||
protocolManager = client.Protocol;
|
||||
ProxyConfig proxyConfig = new ProxyConfig("ChatConsole", "austin.jennings@gmail.com", protocolManager, args);
|
||||
proxy = new Proxy(proxyConfig);
|
||||
|
||||
@@ -209,7 +209,7 @@ namespace SecondSuite
|
||||
|
||||
try
|
||||
{
|
||||
client = new SecondLife("keywords.txt", "protocol.txt");
|
||||
client = new SecondLife("keywords.txt", "message_template.msg");
|
||||
}
|
||||
catch (Exception error)
|
||||
{
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -362,7 +362,11 @@ namespace libsecondlife.InventorySystem
|
||||
// while still enumerating it.
|
||||
ArrayList alRestartList = new ArrayList();
|
||||
|
||||
Console.WriteLine( htFolderDownloadStatus[0].GetType() );
|
||||
if (htFolderDownloadStatus[0] != null)
|
||||
{
|
||||
Console.WriteLine(htFolderDownloadStatus[0].GetType());
|
||||
}
|
||||
|
||||
foreach( DescendentRequest dr in htFolderDownloadStatus )
|
||||
{
|
||||
Console.WriteLine( dr.FolderID + " " + dr.Expected + " / " + dr.Received + " / " + dr.LastReceived );
|
||||
@@ -449,11 +453,11 @@ namespace libsecondlife.InventorySystem
|
||||
{
|
||||
case "Name":
|
||||
invItem._Name = System.Text.Encoding.UTF8.GetString( (byte[])field.Data).Trim();
|
||||
invItem._Name = invItem.Name.Substring(0,invItem.Name.Length-1);
|
||||
invItem._Name = invItem.Name.Replace("\0", "");
|
||||
break;
|
||||
case "Description":
|
||||
invItem._Description = System.Text.Encoding.UTF8.GetString( (byte[])field.Data).Trim();
|
||||
invItem._Description = invItem.Description.Substring(0,invItem.Description.Length-1);
|
||||
invItem._Description = invItem.Description.Replace("\0", "");
|
||||
break;
|
||||
|
||||
case "InvType":
|
||||
@@ -566,7 +570,7 @@ namespace libsecondlife.InventorySystem
|
||||
{
|
||||
case "Name":
|
||||
name = System.Text.Encoding.UTF8.GetString( (byte[])field.Data).Trim();
|
||||
name = name.Substring(0,name.Length-1);
|
||||
name = name.Replace("\0", "");
|
||||
break;
|
||||
case "FolderID":
|
||||
folderid = new LLUUID(field.Data.ToString());
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace libsecondlife.Utils
|
||||
{
|
||||
try
|
||||
{
|
||||
client = new SecondLife("keywords.txt", "protocol.txt");
|
||||
client = new SecondLife("keywords.txt", "message_template.msg");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
/*
|
||||
* Copyright (c) 2006, Second Life Reverse Engineering Team
|
||||
* All rights reserved.
|
||||
*
|
||||
* - Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* - Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* - Neither the name of the Second Life Reverse Engineering Team nor the names
|
||||
* of its contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
/*
|
||||
* Copyright (c) 2006, Second Life Reverse Engineering Team
|
||||
* All rights reserved.
|
||||
*
|
||||
* - Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* - Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* - Neither the name of the Second Life Reverse Engineering Team nor the names
|
||||
* of its contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
using System;
|
||||
@@ -52,7 +52,7 @@ namespace ParcelDownloader
|
||||
|
||||
try
|
||||
{
|
||||
client = new SecondLife("keywords.txt", "protocol.txt");
|
||||
client = new SecondLife("keywords.txt", "message_template.msg");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
/*
|
||||
* Copyright (c) 2006, Second Life Reverse Engineering Team
|
||||
* All rights reserved.
|
||||
*
|
||||
* - Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* - Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* - Neither the name of the Second Life Reverse Engineering Team nor the names
|
||||
* of its contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
/*
|
||||
* Copyright (c) 2006, Second Life Reverse Engineering Team
|
||||
* All rights reserved.
|
||||
*
|
||||
* - Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* - Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* - Neither the name of the Second Life Reverse Engineering Team nor the names
|
||||
* of its contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
using System;
|
||||
@@ -36,8 +36,8 @@ namespace name2key
|
||||
|
||||
//
|
||||
public static void QueryHandler(Packet packet, Simulator simulator)
|
||||
{
|
||||
if (packet.Layout.Name.IndexOf("Dir") > -1)
|
||||
{
|
||||
if (packet.Layout.Name.IndexOf("Dir") > -1)
|
||||
{
|
||||
ArrayList blocks = packet.Blocks();
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace name2key
|
||||
}
|
||||
}
|
||||
|
||||
Done:
|
||||
Done:
|
||||
waiting = false;
|
||||
}
|
||||
}
|
||||
@@ -82,7 +82,7 @@ namespace name2key
|
||||
|
||||
try
|
||||
{
|
||||
client = new SecondLife("keywords.txt", "protocol.txt");
|
||||
client = new SecondLife("keywords.txt", "message_template.msg");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
@@ -144,7 +143,6 @@ namespace primexport
|
||||
this.cmdCapture.Size = new System.Drawing.Size(560, 49);
|
||||
this.cmdCapture.TabIndex = 52;
|
||||
this.cmdCapture.Text = "Start Capture";
|
||||
this.cmdCapture.UseVisualStyleBackColor = true;
|
||||
this.cmdCapture.Click += new System.EventHandler(this.cmdCapture_Click);
|
||||
//
|
||||
// txtLog
|
||||
@@ -158,8 +156,6 @@ namespace primexport
|
||||
//
|
||||
// frmPrimExport
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(587, 299);
|
||||
this.Controls.Add(this.txtLog);
|
||||
this.Controls.Add(this.cmdCapture);
|
||||
@@ -187,7 +183,7 @@ namespace primexport
|
||||
|
||||
try
|
||||
{
|
||||
client = new SecondLife("keywords.txt", "protocol.txt");
|
||||
client = new SecondLife("keywords.txt", "message_template.msg");
|
||||
grpLogin.Enabled = true;
|
||||
}
|
||||
catch (Exception error)
|
||||
@@ -271,12 +267,22 @@ namespace primexport
|
||||
output += "<rotation x=\"" + prim.Rotation.X +
|
||||
"\" y=\"" + prim.Rotation.Y +
|
||||
"\" z=\"" + prim.Rotation.Z +
|
||||
"\" s=\"" + /* HACK: libsl doesn't set prim.Rotation.S +*/ "1.0\" />" + Environment.NewLine;
|
||||
"\" s=\"" + prim.Rotation.S + "\" />" + Environment.NewLine;
|
||||
output += "<size x=\"" + prim.Scale.X +
|
||||
"\" y=\"" + prim.Scale.Y +
|
||||
"\" z=\"" + prim.Scale.Z + "\" />" + Environment.NewLine;
|
||||
output += "<cut x=\"" + prim.ProfileBegin + "\" y=\"" + prim.ProfileEnd + "\" />" + Environment.NewLine;
|
||||
output += "<dimple x=\"" + prim.PathBegin + "\" y=\"" + prim.PathEnd + "\" />" + Environment.NewLine;
|
||||
|
||||
if (type == 1)
|
||||
{
|
||||
output += "<cut x=\"" + prim.ProfileBegin + "\" y=\"" + prim.ProfileEnd + "\" />" + Environment.NewLine;
|
||||
output += "<dimple x=\"" + prim.PathBegin + "\" y=\"" + prim.PathEnd + "\" />" + Environment.NewLine;
|
||||
}
|
||||
else
|
||||
{
|
||||
output += "<cut x=\"" + prim.PathBegin + "\" y=\"" + prim.PathEnd + "\" />" + Environment.NewLine;
|
||||
output += "<dimple x=\"" + prim.ProfileBegin + "\" y=\"" + prim.ProfileEnd + "\" />" + Environment.NewLine;
|
||||
}
|
||||
|
||||
output += "<advancedcut x=\"" + prim.ProfileBegin + "\" y=\"" + prim.ProfileEnd + "\" />" + Environment.NewLine;
|
||||
output += "<hollow val=\"" + prim.ProfileHollow + "\" />" + Environment.NewLine;
|
||||
output += "<twist x=\"" + prim.PathTwistBegin + "\" y=\"" + prim.PathTwist + "\" />" + Environment.NewLine;
|
||||
@@ -285,8 +291,8 @@ namespace primexport
|
||||
output += "<holesize x=\"" + (1.0F - prim.PathScaleX) + "\" y=\"" + (1.0F - prim.PathScaleY) + "\" />" + Environment.NewLine;
|
||||
output += "<topshear x=\"" + prim.PathShearX + "\" y=\"" + prim.PathShearY + "\" />" + Environment.NewLine;
|
||||
// prim.blender stores taper values a bit different than the SL network layer
|
||||
output += "<taper x=\"" + Math.Abs(prim.PathScaleX - 1.0F) + "\" y=\"" +
|
||||
Math.Abs(prim.PathScaleY - 1.0F) + "\" />" + Environment.NewLine;
|
||||
output += "<taper x=\"" + /*Math.Abs(prim.PathScaleX - 1.0F)*/ prim.PathTaperX + "\" y=\"" +
|
||||
/*Math.Abs(prim.PathScaleY - 1.0F)*/ prim.PathTaperY + "\" />" + Environment.NewLine;
|
||||
output += "<revolutions val=\"" + prim.PathRevolutions + "\" />" + Environment.NewLine;
|
||||
output += "<radiusoffset val=\"" + prim.PathRadiusOffset + "\" />" + Environment.NewLine;
|
||||
output += "<skew val=\"" + prim.PathSkew + "\" />" + Environment.NewLine;
|
||||
|
||||
@@ -32,96 +32,6 @@ namespace primexport
|
||||
{
|
||||
class primexport
|
||||
{
|
||||
//
|
||||
static void PrimSeen(Simulator simulator, PrimObject prim, U64 regionHandle, ushort timeDilation)
|
||||
{
|
||||
uint type = 0;
|
||||
string output = "";
|
||||
|
||||
output += "<primitive name=\"Object\" description=\"\" key=\"Num_000" + prim.LocalID + "\" version=\"2\">\n";
|
||||
output += "<states>\n" +
|
||||
"<physics params=\"\">FALSE</physics>\n" +
|
||||
"<temporary params=\"\">FALSE</temporary>\n" +
|
||||
"<phantom params=\"\">FALSE</phantom>\n" +
|
||||
"</states>\n";
|
||||
output += "<properties>\n" +
|
||||
"<levelofdetail val=\"9\" />\n";
|
||||
|
||||
if (prim.ProfileCurve == 1 && prim.PathCurve == 16)
|
||||
{
|
||||
type = 0;
|
||||
}
|
||||
else if (prim.ProfileCurve == 0 && prim.PathCurve == 16)
|
||||
{
|
||||
type = 1;
|
||||
}
|
||||
else if (prim.ProfileCurve == 3 && prim.PathCurve == 16)
|
||||
{
|
||||
type = 2;
|
||||
}
|
||||
else if (prim.ProfileCurve == 5 && prim.PathCurve == 32)
|
||||
{
|
||||
type = 3;
|
||||
}
|
||||
else if (prim.ProfileCurve == 0 && prim.PathCurve == 32)
|
||||
{
|
||||
type = 4;
|
||||
}
|
||||
else if (prim.ProfileCurve == 1 && prim.PathCurve == 32)
|
||||
{
|
||||
type = 5;
|
||||
}
|
||||
else if (prim.ProfileCurve == 3 && prim.PathCurve == 32)
|
||||
{
|
||||
type = 6;
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Unhandled prim type, ProfileCurve=" +
|
||||
prim.ProfileCurve + ", PathCurve=" + prim.PathCurve);
|
||||
type = 0;
|
||||
}
|
||||
|
||||
output += "<type val=\"" + type + "\" />\n";
|
||||
output += "<position x=\"" + prim.Position.X +
|
||||
"\" y=\"" + prim.Position.Y +
|
||||
"\" z=\"" + prim.Position.Z + "\" />\n";
|
||||
output += "<rotation x=\"" + prim.Rotation.X +
|
||||
"\" y=\"" + prim.Rotation.Y +
|
||||
"\" z=\"" + prim.Rotation.Z +
|
||||
"\" s=\"" + /* HACK: libsl doesn't set prim.Rotation.S +*/ "1.0\" />\n";
|
||||
output += "<size x=\"" + prim.Scale.X +
|
||||
"\" y=\"" + prim.Scale.Y +
|
||||
"\" z=\"" + prim.Scale.Z + "\" />\n";
|
||||
output += "<cut x=\"" + prim.ProfileBegin + "\" y=\"" + prim.ProfileEnd + "\" />\n";
|
||||
output += "<dimple x=\"" + prim.PathBegin + "\" y=\"" + prim.PathEnd + "\" />\n";
|
||||
output += "<advancedcut x=\"" + prim.ProfileBegin + "\" y=\"" + prim.ProfileEnd + "\" />\n";
|
||||
output += "<hollow val=\"" + prim.ProfileHollow + "\" />\n";
|
||||
output += "<twist x=\"" + prim.PathTwistBegin + "\" y=\"" + prim.PathTwist + "\" />\n";
|
||||
output += "<topsize x=\"" + Math.Abs(prim.PathScaleX - 1.0F) + "\" y=\"" +
|
||||
Math.Abs(prim.PathScaleY - 1.0F) + "\" />\n";
|
||||
output += "<holesize x=\"" + (1.0F - prim.PathScaleX) + "\" y=\"" + (1.0F - prim.PathScaleY) + "\" />\n";
|
||||
output += "<topshear x=\"" + prim.PathShearX + "\" y=\"" + prim.PathShearY + "\" />\n";
|
||||
// prim.blender stores taper values a bit different than the SL network layer
|
||||
output += "<taper x=\"" + Math.Abs(prim.PathScaleX - 1.0F) + "\" y=\"" +
|
||||
Math.Abs(prim.PathScaleY - 1.0F) + "\" />\n";
|
||||
output += "<revolutions val=\"" + prim.PathRevolutions + "\" />\n";
|
||||
output += "<radiusoffset val=\"" + prim.PathRadiusOffset + "\" />\n";
|
||||
output += "<skew val=\"" + prim.PathSkew + "\" />\n";
|
||||
output += "<material val=\"" + prim.Material + "\" />\n";
|
||||
// TODO: Hollowshape. 16-21 = circle, 32-37 = square, 48-53 = triangle
|
||||
output += "<hollowshape val=\"0\" />\n";
|
||||
|
||||
output += "<textures params=\"\">\n" +
|
||||
"</textures>\n" +
|
||||
"<scripts params=\"\">\n" +
|
||||
"</scripts>\n" +
|
||||
"</properties>\n" +
|
||||
"</primitive>\n";
|
||||
|
||||
Console.WriteLine(output);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
|
||||
@@ -471,7 +471,7 @@ namespace SLAccountant
|
||||
|
||||
try
|
||||
{
|
||||
client = new SecondLife("keywords.txt", "protocol.txt");
|
||||
client = new SecondLife("keywords.txt", "message_template.msg");
|
||||
|
||||
// Install our packet handlers
|
||||
client.Network.RegisterCallback("AvatarAppearance", new PacketCallback(AvatarAppearanceHandler));
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
/*
|
||||
* Copyright (c) 2006, Second Life Reverse Engineering Team
|
||||
* All rights reserved.
|
||||
*
|
||||
* - Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* - Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* - Neither the name of the Second Life Reverse Engineering Team nor the names
|
||||
* of its contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
/*
|
||||
* Copyright (c) 2006, Second Life Reverse Engineering Team
|
||||
* All rights reserved.
|
||||
*
|
||||
* - Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* - Redistributions of source code must retain the above copyright notice, this
|
||||
* list of conditions and the following disclaimer.
|
||||
* - Neither the name of the Second Life Reverse Engineering Team nor the names
|
||||
* of its contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
using System;
|
||||
@@ -35,7 +35,7 @@ namespace sldump
|
||||
// Default packet handler, registered for all packet types
|
||||
public static void DefaultHandler(Packet packet, Simulator simulator)
|
||||
{
|
||||
//Console.Write(packet.ToString());
|
||||
Console.Write(packet.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -69,7 +69,7 @@ namespace sldump
|
||||
|
||||
try
|
||||
{
|
||||
client = new SecondLife("keywords.txt", "protocol.txt");
|
||||
client = new SecondLife("keywords.txt", "message_template.msg");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
@@ -88,6 +88,12 @@
|
||||
<nant target="${project.config} build">
|
||||
<buildfiles refid="lib" />
|
||||
</nant>
|
||||
<copy todir="bin" overwrite="true">
|
||||
<fileset basedir="data">
|
||||
<include name="*.txt" />
|
||||
<include name="*.msg" />
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="build-apps" depends="init"
|
||||
@@ -135,20 +141,21 @@
|
||||
<call target="build" />
|
||||
<mkdir dir="${archive.dir}" failonerror="false" />
|
||||
<copy todir="${archive.dir}" overwrite="true">
|
||||
<fileset basedir=".">
|
||||
<include name="LICENSE" />
|
||||
<include name="README" />
|
||||
</fileset>
|
||||
<fileset basedir=".">
|
||||
<include name="LICENSE" />
|
||||
<include name="README" />
|
||||
</fileset>
|
||||
</copy>
|
||||
<copy todir="${archive.dir}" overwrite="true">
|
||||
<fileset basedir="bin">
|
||||
<include name="*.exe" />
|
||||
<include name="*.dll" />
|
||||
</fileset>
|
||||
</fileset>
|
||||
</copy>
|
||||
<copy todir="${archive.dir}" overwrite="true">
|
||||
<fileset basedir="data">
|
||||
<fileset basedir="data">
|
||||
<include name="*.txt" />
|
||||
<include name="*.msg" />
|
||||
</fileset>
|
||||
</copy>
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user