Post new topic Reply to topic  [ 9 posts ] 
Author Message
Content Dev
User avatar
Team: JMC
Rank: Director
Main: Blue Dwarf
Level: 2058

Joined: Fri Apr 29, 2011 5:39 pm
Posts: 3312
Post 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/

_________________
"What you mean you killed him cha cha cha?!"

Support


Tue Feb 07, 2012 9:14 am
Profile
User avatar
Team: Star Revolution X
Rank: Peon
Main: Hooch Dealer
Level: 2787

Joined: Sun Aug 07, 2005 2:20 pm
Posts: 1353
Location: Who is John Galt?
Post 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.

_________________
3 Basic types of players(quitters, losers, and winners) Choose your own fate.

http://www.gbtv.com
http://www.theblaze.com


Wed Apr 10, 2013 1:52 pm
Profile YIM
Content Dev
User avatar
Team: JMC
Rank: Director
Main: Blue Dwarf
Level: 2058

Joined: Fri Apr 29, 2011 5:39 pm
Posts: 3312
Post 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.

_________________
"What you mean you killed him cha cha cha?!"

Support


Wed Apr 10, 2013 1:55 pm
Profile
User avatar
Team: Star Revolution X
Rank: Peon
Main: Hooch Dealer
Level: 2787

Joined: Sun Aug 07, 2005 2:20 pm
Posts: 1353
Location: Who is John Galt?
Post Re: Client skinning, XML basics & example modifications
I don't want to skin it, I want to encrypt the team chat and pm chat.

_________________
3 Basic types of players(quitters, losers, and winners) Choose your own fate.

http://www.gbtv.com
http://www.theblaze.com


Wed Apr 10, 2013 1:56 pm
Profile YIM
Content Dev
User avatar
Team: JMC
Rank: Director
Main: Blue Dwarf
Level: 2058

Joined: Fri Apr 29, 2011 5:39 pm
Posts: 3312
Post 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

_________________
"What you mean you killed him cha cha cha?!"

Support


Wed Apr 10, 2013 5:00 pm
Profile
Member
User avatar
Team: Resident Evil
Rank: Officer
Main: topbuzzz
Level: 4589

Joined: Sun Dec 21, 2008 12:31 pm
Posts: 4258
Post Re: Client skinning, XML basics & example modifications
y u no want admin reading your chat

_________________
Image


Thu Apr 11, 2013 8:51 am
Profile WWW
User avatar
Team: Star Revolution X
Rank: Peon
Main: Hooch Dealer
Level: 2787

Joined: Sun Aug 07, 2005 2:20 pm
Posts: 1353
Location: Who is John Galt?
Post 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.

_________________
3 Basic types of players(quitters, losers, and winners) Choose your own fate.

http://www.gbtv.com
http://www.theblaze.com


Thu Apr 11, 2013 10:32 pm
Profile YIM
User avatar
Team: Star Revolution X
Rank: Peon
Main: Hooch Dealer
Level: 2787

Joined: Sun Aug 07, 2005 2:20 pm
Posts: 1353
Location: Who is John Galt?
Post 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);
}

_________________
3 Basic types of players(quitters, losers, and winners) Choose your own fate.

http://www.gbtv.com
http://www.theblaze.com


Thu Apr 11, 2013 10:49 pm
Profile YIM
Team: Immortal Silver
Rank: Peon
Main: Reimu
Level: 361

Joined: Mon Nov 11, 2013 2:38 pm
Posts: 1
Post Re: Client skinning, XML basics & example modifications
End-to-end encryption would only require client modification.


Wed Nov 27, 2013 11:54 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © phpBB Group.