I almost got guerrilla in Visual Studio's. My problem is when i try to use a string as a header (I copied one from another) it does not work. So my question is that i know i have know have you use HEX but I am not familiar working with hex in Visual Studio.
I have C#/VB (2005/2008)
This is the code in hex
00000000000000000000000000000000000000000000000000000000000000000000000069746D63145E5590000000400000000000000000000000FF626C616D0000000110610F0180659C000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042C800006974656D80BD0C0100000023FFFFFFFF0000000000000000000000000000000000000000000000000000000000000000
Getting a Header
- {KaS} Korori
- Posts: 141
- Joined: Sun Jun 26, 2005 7:06 pm
- Location: Hopefully Kyoto Japan :)
- Contact:
Getting a Header
Please visit my forum and sign up. Ask question, request maps on xbox.
Establish in 2003 Visit my clan at kororigaming.com/kasclan
Establish in 2003 Visit my clan at kororigaming.com/kasclan
I'm assuming you want this to be constant in which case you'll need to declare it as a byte array.
Halo 2 Plugins | Lock-on To Just About Anything | My Sites | Snow Hog
Old Plugins you have, upgrade you must...
Always Maintain a High Quality-To-Crap Ratio.
Code: Select all
public static string BytesToHexString(byte[] data)
{
string hexString = "";
for (int i = 0; i < data.Length; i++)
{
string dataStr = data[i].ToString("X");
while (dataStr.Length != 2)
{
dataStr = "0" + dataStr;
}
hexString += dataStr;
}
return hexString;
}
public static byte[] HexStringToBytes(string hexString)
{
List<byte> data = new List<byte>();
for (int i = 0; i < hexString.Length; i+=2)
{
if (hexString.Length > i + 1)
{
data.Add(byte.Parse(hexString[i] + hexString[i + 1].ToString(), System.Globalization.NumberStyles.HexNumber));
}
}
return data.ToArray();
}
Just go
byte[] data = HexStringToBytes("FF0077"); //FF0077 being our hexString.., replace it with your own.
- {KaS} Korori
- Posts: 141
- Joined: Sun Jun 26, 2005 7:06 pm
- Location: Hopefully Kyoto Japan :)
- Contact: