Star Sonata
http://forum.starsonata.com/

Client skinning, XML basics & example modifications
http://forum.starsonata.com/viewtopic.php?f=111&t=50359
Page 1 of 1

Author:  Blue Dwarf [ Tue Feb 07, 2012 9:14 am ]
Post subject:  Client skinning, XML basics & example modifications

This a tutorial or guide to modifying/skinning your client.

Skinning
http://wiki.starsonata.com/index.php/Skinning_System

XML Basics
http://wiki.starsonata.com/index.php/XML_Basics

Example modifications
http://wiki.starsonata.com/index.php/Ex ... ifications


UV Mapping in Maya
A nice guide Biggee has pointed me to for UV Mapping in Maya. Hopefully getting guides for making and using things like glowmaps and models themselves too.

http://xn--m3h.net/umbrella/2010/08/the ... maya-2011/

Author:  rand4505 [ Wed Apr 10, 2013 1:52 pm ]
Post subject:  Re: Client skinning, XML basics & example modifications

What about the chat text streams? More specifically, the teamchat and pm stream buffers. I have a mod that I would like to make but I need direct access to those and of course to the window the text is displayed in.

Author:  Blue Dwarf [ Wed Apr 10, 2013 1:55 pm ]
Post subject:  Re: Client skinning, XML basics & example modifications

A lot of the chat is hard coded and isn't particlarly modifiable in terms of skinning.

I suppose it really depends what it is you want to do.

Author:  rand4505 [ Wed Apr 10, 2013 1:56 pm ]
Post subject:  Re: Client skinning, XML basics & example modifications

I don't want to skin it, I want to encrypt the team chat and pm chat.

Author:  Blue Dwarf [ Wed Apr 10, 2013 5:00 pm ]
Post subject:  Re: Client skinning, XML basics & example modifications

rand4505 wrote:
I don't want to skin it, I want to encrypt the team chat and pm chat.

Uhh... That'd require server side changes? XD

Author:  sabre198 [ Thu Apr 11, 2013 8:51 am ]
Post subject:  Re: Client skinning, XML basics & example modifications

y u no want admin reading your chat

Author:  rand4505 [ Thu Apr 11, 2013 10:32 pm ]
Post subject:  Re: Client skinning, XML basics & example modifications

I don't care if the admins see it, I am just fed up with all the crap sent in plain text across my connection. With the solution I have in mind it is 3 lines of code on both ends, a set to encrypt the data stream and on the other a decrypt, 2x2 for a complete system and no more logins or passwords or anything else sent in plain fucking text again.

Author:  rand4505 [ Thu Apr 11, 2013 10:49 pm ]
Post subject:  Re: Client skinning, XML basics & example modifications

//Note I didnt write this class, snagged it from a post on stackoverflow but I use a similar version of this


using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Data;
using System.IO;
using System.Text;

namespace StarSonata
{
public class SimplerAES
{
private byte[] key = { 101, 15, 178, 54, 31, 97, 6, 50, 163, 215, 124, 12, 17, 12, 152, 189, 41, 45, 95, 70, 68, 144, 196, 134, 125, 129, 117, 235, 135, 176, 153, 115 };
private byte[] vector = { 244, 74, 21, 11, 143, 37, 17, 15, 94, 105, 62, 27, 76, 28, 14, 116 };
private ICryptoTransform encryptor, decryptor;
private UTF8Encoding encoder;

public SimplerAES()
{
RijndaelManaged rm = new RijndaelManaged();
encryptor = rm.CreateEncryptor(key, vector);
decryptor = rm.CreateDecryptor(key, vector);
encoder = new UTF8Encoding();
}

~SimplerAES()
{
for (int x = 0; (x < 31); x++)
{
key[x] = (byte)0;
}
for (int x = 0; x < 15; x++)
{
vector[x] = (byte)0;
}
}

public string Encrypt(string unencrypted)
{
return Convert.ToBase64String(Encrypt(encoder.GetBytes(unencrypted)));
}

public string Decrypt(string encrypted)
{
return encoder.GetString(Decrypt(Convert.FromBase64String(encrypted)));
}

public string EncryptToUrl(string unencrypted)
{
return HttpUtility.UrlEncode(Encrypt(unencrypted));
}
public string EncryptAndReturn(string unencrypted)
{
return (Encrypt(unencrypted));
}

public string DecryptFromUrl(string encrypted)
{
return Decrypt(HttpUtility.UrlDecode(encrypted));
}
public string DecryptAndReturn(string encrypted)
{
return Decrypt(encrypted);
}

public byte[] Encrypt(byte[] buffer)
{
return Transform(buffer, encryptor);
}

public byte[] Decrypt(byte[] buffer)
{
return Transform(buffer, decryptor);
}

protected byte[] Transform(byte[] buffer, ICryptoTransform transform)
{
MemoryStream stream = new MemoryStream();
using (CryptoStream cs = new CryptoStream(stream, transform, CryptoStreamMode.Write))
{
cs.Write(buffer, 0, buffer.Length);
}
return stream.ToArray();
}
}
}


//In program

private string PreptoSend(string Data)
{
SimplerAES Package = new SimplerAES();

return Package.Encode(Data);
}

private string DecodeRec(string Data)
{
SimplerAES Package = new SimplerAES();

return Package.Decode(Data);
}

Author:  notfaggot [ Wed Nov 27, 2013 11:54 pm ]
Post subject:  Re: Client skinning, XML basics & example modifications

End-to-end encryption would only require client modification.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/