Post: Release: Huds elements [1.06]
12-14-2013, 09:30 AM #1
ZeiiKeN
Group 935
(adsbygoogle = window.adsbygoogle || []).push({}); Hi,

I'll share the Huds Elements for 1.06 because I updated my mode menu.

All credits will to Bad Luck Kevin this is the source share in 1.03 I just updated for 1.06.

C# Source:

THIS IS IMPORTANT

Add this:

    Hud.Enable_Cacher();


in code attach process.

add this in your form:

    class PS3
{
public static uint[] ProcessIDs;
public static uint ProcessID;
public static void Connect()
{
PS3TMAPI.InitTargetComms();
PS3TMAPI.Connect(0, null);
}
public static void TurnOFF()
{
PS3TMAPI.PowerOff(0, true);
}
public static void Attach()
{
PS3TMAPI.GetProcessList(0, out ProcessIDs);
ulong uProcess = ProcessIDs[0];
ProcessID = Convert.ToUInt32(uProcess);
PS3TMAPI.ProcessAttach(0, PS3TMAPI.UnitType.PPU, ProcessID);
PS3TMAPI.ProcessContinue(0, ProcessID);
}

public static void SetMemory(uint Address, byte[] Bytes)
{
PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, Address, Bytes);
}
public static byte[] ReadMemory(uint addr, int lenght)
{
byte[] Get = new byte[lenght];
PS3.GetMemory(addr, ref Get);
return Get;
}
public static void GetMemory(uint Address, ref byte[] bytes)
{
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, Address, ref bytes);
}

public static string ReadString(uint addr)
{
byte[] Reader = new byte[1]; uint i = 0;
List<byte> StringBuilder = new List<byte>();
while (true)
{
PS3.GetMemory(addr + i, ref Reader);
if (Reader[0] == 0x00)
break;
else
StringBuilder.Add(Reader[0]);
i++;
}
System.Text.UTF8Encoding Encode = new System.Text.UTF8Encoding();
return Encode.GetString(StringBuilder.ToArray());
}
public static void WriteFloat(uint addr, float f)
{
byte[] Float = BitConverter.GetBytes(f);
Array.Reverse(Float);
PS3.SetMemory(addr, Float);
}
public static float ReadFloat(uint addr, int lenght)
{
byte[] F = PS3.ReadMemory(addr, 4);
if (BitConverter.IsLittleEndian)
{
Array.Reverse(F);
}
float myFloat = BitConverter.ToSingle(F, 0);
return myFloat;
}


}
class Conversions
{
public static byte[] ReverseBytes(byte[] input)
{
Array.Reverse(input);
return input;
}
public static byte[] RandomizeRGBA()
{
byte[] RGBA = new byte[4];
Random randomize = new Random();
RGBA[0] = BitConverter.GetBytes(randomize.Next(0, 255))[0];
RGBA[1] = BitConverter.GetBytes(randomize.Next(0, 255))[0];
RGBA[2] = BitConverter.GetBytes(randomize.Next(0, 255))[0];
RGBA[3] = BitConverter.GetBytes(randomize.Next(0, 255))[0];
return RGBA;
}
}

public static class Hud
{
public static class HElems
{
public static uint
ELEM = 0xD55F88,
FIX_ELEM = 0x3314F,
FPS = 0x363148,
xOffset = 0x04,
yOffset = 0x08,
textOffset = 0x40,
fontOffset = 0x24,
fontSizeOffset = 0x14,
colorOffset = 0x30,
relativeOffset = 0x28,
widthOffset = 0x44,
heightOffset = 0x48,
shaderOffset = 0x4C,
GlowColor = 0x8C,
clientOffset = 0x10,
alignOffset = 0x2C;
}


public static void Enable_Cacher()
{
SetMemory(0x2100000, new byte[32]);
SetMemory(0x2105000, new byte[32]);
SetMemory(Hud.HElems.FPS, new byte[] { 0x3C, 0x60, 0x02, 0x10, 0x80, 0x63, 0x00, 0x00, 0x2C, 0x03, 0x00, 0x00, 0x40, 0x82, 0x00, 0x08, 0x48, 0x00, 0x00, 0x88, 0x3C, 0x60, 0x02, 0x10, 0x4B, 0xCC, 0xFF, 0xA9, 0x3C, 0x80, 0x02, 0x10, 0x90, 0x64, 0x50, 0x00, 0x38, 0x60, 0x00, 0x00, 0x90, 0x64, 0x00, 0x00, 0x48, 0x00, 0x00, 0x6C });
SetMemory(HElems.FIX_ELEM, new byte[] { 0x01 });
}


public static void ActivateIndex(int index, int type)
{

byte[] Typ = BitConverter.GetBytes(type);
Array.Reverse(Typ);
PS3.SetMemory(Hud.HElems.ELEM + 0xb8 * (uint)index, Typ);


}

public static byte[] ToHexFloat(float Axis)
{

byte[] bytes = BitConverter.GetBytes(Axis);
Array.Reverse(bytes);
return bytes;
}


public static byte[] RGBA(decimal R, decimal G, decimal B, decimal A)
{
byte[] RGBA = new byte[4];
byte[] RVal = BitConverter.GetBytes(Convert.ToInt32(R));
byte[] GVal = BitConverter.GetBytes(Convert.ToInt32(G));
byte[] BVal = BitConverter.GetBytes(Convert.ToInt32(B));
byte[] AVal = BitConverter.GetBytes(Convert.ToInt32(A));
RGBA[0] = RVal[0];
RGBA[1] = GVal[0];
RGBA[2] = BVal[0];
RGBA[3] = AVal[0];
return RGBA;
}


public static void StoreIcon(uint elemIndex, decimal client, int shader, int width, int height, float x, float y, uint align, float sort, int r, int g, int b, int a)
{
uint elem = HElems.ELEM + ((elemIndex) * 0xbCool Man (aka Tustin);
byte[] ClientID = ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(client)));
PS3.SetMemory(elem, new byte[0xB8]);
PS3.SetMemory(elem, new byte[] { 0x00, 0x00, 0x00, 0x04 });
PS3.SetMemory(elem + HElems.shaderOffset, ReverseBytes(BitConverter.GetBytes(shader)));
PS3.SetMemory(elem + HElems.heightOffset, ReverseBytes(BitConverter.GetBytes(height)));
PS3.SetMemory(elem + HElems.widthOffset, ReverseBytes(BitConverter.GetBytes(width)));
PS3.SetMemory(elem + HElems.alignOffset, ReverseBytes(BitConverter.GetBytes(0)));
PS3.SetMemory(elem + HElems.relativeOffset, ReverseBytes(BitConverter.GetBytes(0)));
PS3.SetMemory(elem + HElems.xOffset, ToHexFloat(x));
PS3.SetMemory(elem + HElems.yOffset, ToHexFloat(y));
PS3.SetMemory(elem + HElems.colorOffset, RGBA(r, g, b, a));
PS3.SetMemory(elem + HElems.clientOffset, ClientID);


}

public static byte[] CacheString(string Text)
{
PS3.SetMemory(HElems.FIX_ELEM, new byte[] { 0x01 }); //must patch this to make it work
PS3.SetMemory(0x2100000, Encoding.ASCII.GetBytes(Text + "\0"));
byte[] result = new byte[4];
Thread.Sleep(10);
PS3.GetMemory(0x2105000, ref result);
return result;
}



public static void StoreTextElem(uint elemIndex, int client, string Text, int font, float fontScale, int x, int y, uint align, float sort, int r, int g, int b, int a, int r1, int g1, int b1, int a1)
{
uint elem = HElems.ELEM + ((elemIndex) * 0xBCool Man (aka Tustin);
byte[] ClientID = ReverseBytes(BitConverter.GetBytes(client));
PS3.SetMemory(elem, new byte[0xB4]);
PS3.SetMemory(elem, new byte[] { 0x00, 0x00, 0x00, 0x01 });
PS3.SetMemory(elem + HElems.textOffset, CacheString(Text));
PS3.SetMemory(elem + HElems.fontOffset, ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(font))));
PS3.SetMemory(elem + HElems.alignOffset, ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(0))));
PS3.SetMemory(elem + HElems.relativeOffset, ReverseBytes(BitConverter.GetBytes(0)));
PS3.SetMemory(elem + HElems.fontSizeOffset, ToHexFloat(fontScale));
PS3.SetMemory(elem + HElems.xOffset, ToHexFloat(x));
PS3.SetMemory(elem + HElems.yOffset, ToHexFloat(y));
PS3.SetMemory(elem + HElems.colorOffset, RGBA(r, g, b, a));
PS3.SetMemory(elem + HElems.GlowColor, RGBA(r1, g1, b1, a1));
PS3.SetMemory(elem + HElems.clientOffset, ClientID);


}

public static byte[] UInt32ToBytes(uint input)
{
byte[] bytes = BitConverter.GetBytes(input);
Array.Reverse(bytes);
return bytes;
}

public static byte[] ReverseBytes(byte[] inArray)
{
Array.Reverse(inArray);
return inArray;
}
public static byte[] uintBytes(uint input)
{
byte[] data = BitConverter.GetBytes(input);
Array.Reverse(data);
return data;
}
}


Example of use, the example below I made ​​a black shader appear in the center of screen.

    Hud.StoreIcon((uint)10, 0, (int)12, (int)267, (int)500, (int)210, (int)0, 0, 0, (int)1, (int)1, (int)1, (int)200);


You must login or register to view this content.

Credits:

Bad Luck Kevin ( C# Source, You must login or register to view this content.)
ZeiiKeN ( Update for 1.06 )
(adsbygoogle = window.adsbygoogle || []).push({});

The following 8 users say thank you to ZeiiKeN for this useful post:

AlexNGU, Gendjisan, iMoDz-Baptiste, M-alShammary, Mango_Knife, Raz0rMind
12-14-2013, 09:52 AM #2
Raz0rMind
I love BadChoicesZ
"Project Inside"?

Sounds nasty. stare

The following user thanked Raz0rMind for this useful post:

ZeiiKeN
12-14-2013, 10:23 AM #3
Looking great!

Originally posted by ZeiiKeN View Post
Hi,

I'll share the Huds Elements for 1.06 because I updated my mode menu.

All credits will to Bad Luck Kevin this is the source share in 1.03 I just updated for 1.06.

C# Source:

THIS IS IMPORTANT

Add this:

    Hud.Enable_Cacher();


in code attach process.

add this in your form:

    class PS3
{
public static uint[] ProcessIDs;
public static uint ProcessID;
public static void Connect()
{
PS3TMAPI.InitTargetComms();
PS3TMAPI.Connect(0, null);
}
public static void TurnOFF()
{
PS3TMAPI.PowerOff(0, true);
}
public static void Attach()
{
PS3TMAPI.GetProcessList(0, out ProcessIDs);
ulong uProcess = ProcessIDs[0];
ProcessID = Convert.ToUInt32(uProcess);
PS3TMAPI.ProcessAttach(0, PS3TMAPI.UnitType.PPU, ProcessID);
PS3TMAPI.ProcessContinue(0, ProcessID);
}

public static void SetMemory(uint Address, byte[] Bytes)
{
PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, Address, Bytes);
}
public static byte[] ReadMemory(uint addr, int lenght)
{
byte[] Get = new byte[lenght];
PS3.GetMemory(addr, ref Get);
return Get;
}
public static void GetMemory(uint Address, ref byte[] bytes)
{
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, Address, ref bytes);
}

public static string ReadString(uint addr)
{
byte[] Reader = new byte[1]; uint i = 0;
List<byte> StringBuilder = new List<byte>();
while (true)
{
PS3.GetMemory(addr + i, ref Reader);
if (Reader[0] == 0x00)
break;
else
StringBuilder.Add(Reader[0]);
i++;
}
System.Text.UTF8Encoding Encode = new System.Text.UTF8Encoding();
return Encode.GetString(StringBuilder.ToArray());
}
public static void WriteFloat(uint addr, float f)
{
byte[] Float = BitConverter.GetBytes(f);
Array.Reverse(Float);
PS3.SetMemory(addr, Float);
}
public static float ReadFloat(uint addr, int lenght)
{
byte[] F = PS3.ReadMemory(addr, 4);
if (BitConverter.IsLittleEndian)
{
Array.Reverse(F);
}
float myFloat = BitConverter.ToSingle(F, 0);
return myFloat;
}


}
class Conversions
{
public static byte[] ReverseBytes(byte[] input)
{
Array.Reverse(input);
return input;
}
public static byte[] RandomizeRGBA()
{
byte[] RGBA = new byte[4];
Random randomize = new Random();
RGBA[0] = BitConverter.GetBytes(randomize.Next(0, 255))[0];
RGBA[1] = BitConverter.GetBytes(randomize.Next(0, 255))[0];
RGBA[2] = BitConverter.GetBytes(randomize.Next(0, 255))[0];
RGBA[3] = BitConverter.GetBytes(randomize.Next(0, 255))[0];
return RGBA;
}
}

public static class Hud
{
public static class HElems
{
public static uint
ELEM = 0xD55F88,
FIX_ELEM = 0x3314F,
FPS = 0x363148,
xOffset = 0x04,
yOffset = 0x08,
textOffset = 0x40,
fontOffset = 0x24,
fontSizeOffset = 0x14,
colorOffset = 0x30,
relativeOffset = 0x28,
widthOffset = 0x44,
heightOffset = 0x48,
shaderOffset = 0x4C,
GlowColor = 0x8C,
clientOffset = 0x10,
alignOffset = 0x2C;
}


public static void Enable_Cacher()
{
SetMemory(0x2100000, new byte[32]);
SetMemory(0x2105000, new byte[32]);
SetMemory(Hud.HElems.FPS, new byte[] { 0x3C, 0x60, 0x02, 0x10, 0x80, 0x63, 0x00, 0x00, 0x2C, 0x03, 0x00, 0x00, 0x40, 0x82, 0x00, 0x08, 0x48, 0x00, 0x00, 0x88, 0x3C, 0x60, 0x02, 0x10, 0x4B, 0xCC, 0xFF, 0xA9, 0x3C, 0x80, 0x02, 0x10, 0x90, 0x64, 0x50, 0x00, 0x38, 0x60, 0x00, 0x00, 0x90, 0x64, 0x00, 0x00, 0x48, 0x00, 0x00, 0x6C });
SetMemory(HElems.FIX_ELEM, new byte[] { 0x01 });
}


public static void ActivateIndex(int index, int type)
{

byte[] Typ = BitConverter.GetBytes(type);
Array.Reverse(Typ);
PS3.SetMemory(Hud.HElems.ELEM + 0xb8 * (uint)index, Typ);


}

public static byte[] ToHexFloat(float Axis)
{

byte[] bytes = BitConverter.GetBytes(Axis);
Array.Reverse(bytes);
return bytes;
}


public static byte[] RGBA(decimal R, decimal G, decimal B, decimal A)
{
byte[] RGBA = new byte[4];
byte[] RVal = BitConverter.GetBytes(Convert.ToInt32(R));
byte[] GVal = BitConverter.GetBytes(Convert.ToInt32(G));
byte[] BVal = BitConverter.GetBytes(Convert.ToInt32(B));
byte[] AVal = BitConverter.GetBytes(Convert.ToInt32(A));
RGBA[0] = RVal[0];
RGBA[1] = GVal[0];
RGBA[2] = BVal[0];
RGBA[3] = AVal[0];
return RGBA;
}


public static void StoreIcon(uint elemIndex, decimal client, int shader, int width, int height, float x, float y, uint align, float sort, int r, int g, int b, int a)
{
uint elem = HElems.ELEM + ((elemIndex) * 0xbCool Man (aka Tustin);
byte[] ClientID = ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(client)));
PS3.SetMemory(elem, new byte[0xB8]);
PS3.SetMemory(elem, new byte[] { 0x00, 0x00, 0x00, 0x04 });
PS3.SetMemory(elem + HElems.shaderOffset, ReverseBytes(BitConverter.GetBytes(shader)));
PS3.SetMemory(elem + HElems.heightOffset, ReverseBytes(BitConverter.GetBytes(height)));
PS3.SetMemory(elem + HElems.widthOffset, ReverseBytes(BitConverter.GetBytes(width)));
PS3.SetMemory(elem + HElems.alignOffset, ReverseBytes(BitConverter.GetBytes(0)));
PS3.SetMemory(elem + HElems.relativeOffset, ReverseBytes(BitConverter.GetBytes(0)));
PS3.SetMemory(elem + HElems.xOffset, ToHexFloat(x));
PS3.SetMemory(elem + HElems.yOffset, ToHexFloat(y));
PS3.SetMemory(elem + HElems.colorOffset, RGBA(r, g, b, a));
PS3.SetMemory(elem + HElems.clientOffset, ClientID);


}

public static byte[] CacheString(string Text)
{
PS3.SetMemory(HElems.FIX_ELEM, new byte[] { 0x01 }); //must patch this to make it work
PS3.SetMemory(0x2100000, Encoding.ASCII.GetBytes(Text + "\0"));
byte[] result = new byte[4];
Thread.Sleep(10);
PS3.GetMemory(0x2105000, ref result);
return result;
}



public static void StoreTextElem(uint elemIndex, int client, string Text, int font, float fontScale, int x, int y, uint align, float sort, int r, int g, int b, int a, int r1, int g1, int b1, int a1)
{
uint elem = HElems.ELEM + ((elemIndex) * 0xBCool Man (aka Tustin);
byte[] ClientID = ReverseBytes(BitConverter.GetBytes(client));
PS3.SetMemory(elem, new byte[0xB4]);
PS3.SetMemory(elem, new byte[] { 0x00, 0x00, 0x00, 0x01 });
PS3.SetMemory(elem + HElems.textOffset, CacheString(Text));
PS3.SetMemory(elem + HElems.fontOffset, ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(font))));
PS3.SetMemory(elem + HElems.alignOffset, ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(0))));
PS3.SetMemory(elem + HElems.relativeOffset, ReverseBytes(BitConverter.GetBytes(0)));
PS3.SetMemory(elem + HElems.fontSizeOffset, ToHexFloat(fontScale));
PS3.SetMemory(elem + HElems.xOffset, ToHexFloat(x));
PS3.SetMemory(elem + HElems.yOffset, ToHexFloat(y));
PS3.SetMemory(elem + HElems.colorOffset, RGBA(r, g, b, a));
PS3.SetMemory(elem + HElems.GlowColor, RGBA(r1, g1, b1, a1));
PS3.SetMemory(elem + HElems.clientOffset, ClientID);


}

public static byte[] UInt32ToBytes(uint input)
{
byte[] bytes = BitConverter.GetBytes(input);
Array.Reverse(bytes);
return bytes;
}

public static byte[] ReverseBytes(byte[] inArray)
{
Array.Reverse(inArray);
return inArray;
}
public static byte[] uintBytes(uint input)
{
byte[] data = BitConverter.GetBytes(input);
Array.Reverse(data);
return data;
}
}


Example of use, the example below I made ​​a black shader appear in the center of screen.

    Hud.StoreIcon((uint)10, 0, (int)12, (int)267, (int)500, (int)210, (int)0, 0, 0, (int)1, (int)1, (int)1, (int)200);


You must login or register to view this content.

Credits:

Bad Luck Kevin ( C# Source, You must login or register to view this content.)
ZeiiKeN ( Update for 1.06 )
12-14-2013, 10:24 AM #4
Mango_Knife
In my man cave
Originally posted by ZeiiKeN View Post
Hi,

I'll share the Huds Elements for 1.06 because I updated my mode menu.

All credits will to Bad Luck Kevin this is the source share in 1.03 I just updated for 1.06.

C# Source:

THIS IS IMPORTANT

Add this:

    Hud.Enable_Cacher();


in code attach process.

add this in your form:

    class PS3
{
public static uint[] ProcessIDs;
public static uint ProcessID;
public static void Connect()
{
PS3TMAPI.InitTargetComms();
PS3TMAPI.Connect(0, null);
}
public static void TurnOFF()
{
PS3TMAPI.PowerOff(0, true);
}
public static void Attach()
{
PS3TMAPI.GetProcessList(0, out ProcessIDs);
ulong uProcess = ProcessIDs[0];
ProcessID = Convert.ToUInt32(uProcess);
PS3TMAPI.ProcessAttach(0, PS3TMAPI.UnitType.PPU, ProcessID);
PS3TMAPI.ProcessContinue(0, ProcessID);
}

public static void SetMemory(uint Address, byte[] Bytes)
{
PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, Address, Bytes);
}
public static byte[] ReadMemory(uint addr, int lenght)
{
byte[] Get = new byte[lenght];
PS3.GetMemory(addr, ref Get);
return Get;
}
public static void GetMemory(uint Address, ref byte[] bytes)
{
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, Address, ref bytes);
}

public static string ReadString(uint addr)
{
byte[] Reader = new byte[1]; uint i = 0;
List<byte> StringBuilder = new List<byte>();
while (true)
{
PS3.GetMemory(addr + i, ref Reader);
if (Reader[0] == 0x00)
break;
else
StringBuilder.Add(Reader[0]);
i++;
}
System.Text.UTF8Encoding Encode = new System.Text.UTF8Encoding();
return Encode.GetString(StringBuilder.ToArray());
}
public static void WriteFloat(uint addr, float f)
{
byte[] Float = BitConverter.GetBytes(f);
Array.Reverse(Float);
PS3.SetMemory(addr, Float);
}
public static float ReadFloat(uint addr, int lenght)
{
byte[] F = PS3.ReadMemory(addr, 4);
if (BitConverter.IsLittleEndian)
{
Array.Reverse(F);
}
float myFloat = BitConverter.ToSingle(F, 0);
return myFloat;
}


}
class Conversions
{
public static byte[] ReverseBytes(byte[] input)
{
Array.Reverse(input);
return input;
}
public static byte[] RandomizeRGBA()
{
byte[] RGBA = new byte[4];
Random randomize = new Random();
RGBA[0] = BitConverter.GetBytes(randomize.Next(0, 255))[0];
RGBA[1] = BitConverter.GetBytes(randomize.Next(0, 255))[0];
RGBA[2] = BitConverter.GetBytes(randomize.Next(0, 255))[0];
RGBA[3] = BitConverter.GetBytes(randomize.Next(0, 255))[0];
return RGBA;
}
}

public static class Hud
{
public static class HElems
{
public static uint
ELEM = 0xD55F88,
FIX_ELEM = 0x3314F,
FPS = 0x363148,
xOffset = 0x04,
yOffset = 0x08,
textOffset = 0x40,
fontOffset = 0x24,
fontSizeOffset = 0x14,
colorOffset = 0x30,
relativeOffset = 0x28,
widthOffset = 0x44,
heightOffset = 0x48,
shaderOffset = 0x4C,
GlowColor = 0x8C,
clientOffset = 0x10,
alignOffset = 0x2C;
}


public static void Enable_Cacher()
{
SetMemory(0x2100000, new byte[32]);
SetMemory(0x2105000, new byte[32]);
SetMemory(Hud.HElems.FPS, new byte[] { 0x3C, 0x60, 0x02, 0x10, 0x80, 0x63, 0x00, 0x00, 0x2C, 0x03, 0x00, 0x00, 0x40, 0x82, 0x00, 0x08, 0x48, 0x00, 0x00, 0x88, 0x3C, 0x60, 0x02, 0x10, 0x4B, 0xCC, 0xFF, 0xA9, 0x3C, 0x80, 0x02, 0x10, 0x90, 0x64, 0x50, 0x00, 0x38, 0x60, 0x00, 0x00, 0x90, 0x64, 0x00, 0x00, 0x48, 0x00, 0x00, 0x6C });
SetMemory(HElems.FIX_ELEM, new byte[] { 0x01 });
}


public static void ActivateIndex(int index, int type)
{

byte[] Typ = BitConverter.GetBytes(type);
Array.Reverse(Typ);
PS3.SetMemory(Hud.HElems.ELEM + 0xb8 * (uint)index, Typ);


}

public static byte[] ToHexFloat(float Axis)
{

byte[] bytes = BitConverter.GetBytes(Axis);
Array.Reverse(bytes);
return bytes;
}


public static byte[] RGBA(decimal R, decimal G, decimal B, decimal A)
{
byte[] RGBA = new byte[4];
byte[] RVal = BitConverter.GetBytes(Convert.ToInt32(R));
byte[] GVal = BitConverter.GetBytes(Convert.ToInt32(G));
byte[] BVal = BitConverter.GetBytes(Convert.ToInt32(B));
byte[] AVal = BitConverter.GetBytes(Convert.ToInt32(A));
RGBA[0] = RVal[0];
RGBA[1] = GVal[0];
RGBA[2] = BVal[0];
RGBA[3] = AVal[0];
return RGBA;
}


public static void StoreIcon(uint elemIndex, decimal client, int shader, int width, int height, float x, float y, uint align, float sort, int r, int g, int b, int a)
{
uint elem = HElems.ELEM + ((elemIndex) * 0xbCool Man (aka Tustin);
byte[] ClientID = ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(client)));
PS3.SetMemory(elem, new byte[0xB8]);
PS3.SetMemory(elem, new byte[] { 0x00, 0x00, 0x00, 0x04 });
PS3.SetMemory(elem + HElems.shaderOffset, ReverseBytes(BitConverter.GetBytes(shader)));
PS3.SetMemory(elem + HElems.heightOffset, ReverseBytes(BitConverter.GetBytes(height)));
PS3.SetMemory(elem + HElems.widthOffset, ReverseBytes(BitConverter.GetBytes(width)));
PS3.SetMemory(elem + HElems.alignOffset, ReverseBytes(BitConverter.GetBytes(0)));
PS3.SetMemory(elem + HElems.relativeOffset, ReverseBytes(BitConverter.GetBytes(0)));
PS3.SetMemory(elem + HElems.xOffset, ToHexFloat(x));
PS3.SetMemory(elem + HElems.yOffset, ToHexFloat(y));
PS3.SetMemory(elem + HElems.colorOffset, RGBA(r, g, b, a));
PS3.SetMemory(elem + HElems.clientOffset, ClientID);


}

public static byte[] CacheString(string Text)
{
PS3.SetMemory(HElems.FIX_ELEM, new byte[] { 0x01 }); //must patch this to make it work
PS3.SetMemory(0x2100000, Encoding.ASCII.GetBytes(Text + "\0"));
byte[] result = new byte[4];
Thread.Sleep(10);
PS3.GetMemory(0x2105000, ref result);
return result;
}



public static void StoreTextElem(uint elemIndex, int client, string Text, int font, float fontScale, int x, int y, uint align, float sort, int r, int g, int b, int a, int r1, int g1, int b1, int a1)
{
uint elem = HElems.ELEM + ((elemIndex) * 0xBCool Man (aka Tustin);
byte[] ClientID = ReverseBytes(BitConverter.GetBytes(client));
PS3.SetMemory(elem, new byte[0xB4]);
PS3.SetMemory(elem, new byte[] { 0x00, 0x00, 0x00, 0x01 });
PS3.SetMemory(elem + HElems.textOffset, CacheString(Text));
PS3.SetMemory(elem + HElems.fontOffset, ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(font))));
PS3.SetMemory(elem + HElems.alignOffset, ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(0))));
PS3.SetMemory(elem + HElems.relativeOffset, ReverseBytes(BitConverter.GetBytes(0)));
PS3.SetMemory(elem + HElems.fontSizeOffset, ToHexFloat(fontScale));
PS3.SetMemory(elem + HElems.xOffset, ToHexFloat(x));
PS3.SetMemory(elem + HElems.yOffset, ToHexFloat(y));
PS3.SetMemory(elem + HElems.colorOffset, RGBA(r, g, b, a));
PS3.SetMemory(elem + HElems.GlowColor, RGBA(r1, g1, b1, a1));
PS3.SetMemory(elem + HElems.clientOffset, ClientID);


}

public static byte[] UInt32ToBytes(uint input)
{
byte[] bytes = BitConverter.GetBytes(input);
Array.Reverse(bytes);
return bytes;
}

public static byte[] ReverseBytes(byte[] inArray)
{
Array.Reverse(inArray);
return inArray;
}
public static byte[] uintBytes(uint input)
{
byte[] data = BitConverter.GetBytes(input);
Array.Reverse(data);
return data;
}
}


Example of use, the example below I made ​​a black shader appear in the center of screen.

    Hud.StoreIcon((uint)10, 0, (int)12, (int)267, (int)500, (int)210, (int)0, 0, 0, (int)1, (int)1, (int)1, (int)200);


You must login or register to view this content.

Credits:

Bad Luck Kevin ( C# Source, You must login or register to view this content.)
ZeiiKeN ( Update for 1.06 )


Good job man :yes:

The following user thanked Mango_Knife for this useful post:

ZeiiKeN
12-14-2013, 12:05 PM #5
Esker
Samurai Poster
Thanks man and the menu look awesome but the name of it is very creepy stare
12-14-2013, 12:21 PM #6
ZeiiKeN
Group 935
Originally posted by zMoDzV
Thanks man and the menu look awesome but the name of it is very creepy stare


Thank you, Project Inside name comes from my old mw2 menu

Mw2 (1.11) Project Inside v1 : You must login or register to view this content.
Mw2 (1.11) Project Inside v2: You must login or register to view this content.
Cod4 (1.40) Project Inside v1: You must login or register to view this content.

The following user thanked ZeiiKeN for this useful post:

Mango_Knife
12-14-2013, 12:25 PM #7
Esker
Samurai Poster
Originally posted by ZeiiKeN View Post
Thank you, Project Inside name comes from my old mw2 menu

Mw2 (1.11) Project Inside v1 : You must login or register to view this content.
Mw2 (1.11) Project Inside v2: You must login or register to view this content.
Cod4 (1.40) Project Inside v1: You must login or register to view this content.


Ohhh right ok Happy
12-14-2013, 04:47 PM #8
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by ZeiiKeN View Post
Hi,

I'll share the Huds Elements for 1.06 because I updated my mode menu.

All credits will to Bad Luck Kevin this is the source share in 1.03 I just updated for 1.06.

C# Source:

THIS IS IMPORTANT

Add this:

    Hud.Enable_Cacher();


in code attach process.

add this in your form:

    class PS3
{
public static uint[] ProcessIDs;
public static uint ProcessID;
public static void Connect()
{
PS3TMAPI.InitTargetComms();
PS3TMAPI.Connect(0, null);
}
public static void TurnOFF()
{
PS3TMAPI.PowerOff(0, true);
}
public static void Attach()
{
PS3TMAPI.GetProcessList(0, out ProcessIDs);
ulong uProcess = ProcessIDs[0];
ProcessID = Convert.ToUInt32(uProcess);
PS3TMAPI.ProcessAttach(0, PS3TMAPI.UnitType.PPU, ProcessID);
PS3TMAPI.ProcessContinue(0, ProcessID);
}

public static void SetMemory(uint Address, byte[] Bytes)
{
PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, Address, Bytes);
}
public static byte[] ReadMemory(uint addr, int lenght)
{
byte[] Get = new byte[lenght];
PS3.GetMemory(addr, ref Get);
return Get;
}
public static void GetMemory(uint Address, ref byte[] bytes)
{
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, Address, ref bytes);
}

public static string ReadString(uint addr)
{
byte[] Reader = new byte[1]; uint i = 0;
List<byte> StringBuilder = new List<byte>();
while (true)
{
PS3.GetMemory(addr + i, ref Reader);
if (Reader[0] == 0x00)
break;
else
StringBuilder.Add(Reader[0]);
i++;
}
System.Text.UTF8Encoding Encode = new System.Text.UTF8Encoding();
return Encode.GetString(StringBuilder.ToArray());
}
public static void WriteFloat(uint addr, float f)
{
byte[] Float = BitConverter.GetBytes(f);
Array.Reverse(Float);
PS3.SetMemory(addr, Float);
}
public static float ReadFloat(uint addr, int lenght)
{
byte[] F = PS3.ReadMemory(addr, 4);
if (BitConverter.IsLittleEndian)
{
Array.Reverse(F);
}
float myFloat = BitConverter.ToSingle(F, 0);
return myFloat;
}


}
class Conversions
{
public static byte[] ReverseBytes(byte[] input)
{
Array.Reverse(input);
return input;
}
public static byte[] RandomizeRGBA()
{
byte[] RGBA = new byte[4];
Random randomize = new Random();
RGBA[0] = BitConverter.GetBytes(randomize.Next(0, 255))[0];
RGBA[1] = BitConverter.GetBytes(randomize.Next(0, 255))[0];
RGBA[2] = BitConverter.GetBytes(randomize.Next(0, 255))[0];
RGBA[3] = BitConverter.GetBytes(randomize.Next(0, 255))[0];
return RGBA;
}
}

public static class Hud
{
public static class HElems
{
public static uint
ELEM = 0xD55F88,
FIX_ELEM = 0x3314F,
FPS = 0x363148,
xOffset = 0x04,
yOffset = 0x08,
textOffset = 0x40,
fontOffset = 0x24,
fontSizeOffset = 0x14,
colorOffset = 0x30,
relativeOffset = 0x28,
widthOffset = 0x44,
heightOffset = 0x48,
shaderOffset = 0x4C,
GlowColor = 0x8C,
clientOffset = 0x10,
alignOffset = 0x2C;
}


public static void Enable_Cacher()
{
SetMemory(0x2100000, new byte[32]);
SetMemory(0x2105000, new byte[32]);
SetMemory(Hud.HElems.FPS, new byte[] { 0x3C, 0x60, 0x02, 0x10, 0x80, 0x63, 0x00, 0x00, 0x2C, 0x03, 0x00, 0x00, 0x40, 0x82, 0x00, 0x08, 0x48, 0x00, 0x00, 0x88, 0x3C, 0x60, 0x02, 0x10, 0x4B, 0xCC, 0xFF, 0xA9, 0x3C, 0x80, 0x02, 0x10, 0x90, 0x64, 0x50, 0x00, 0x38, 0x60, 0x00, 0x00, 0x90, 0x64, 0x00, 0x00, 0x48, 0x00, 0x00, 0x6C });
SetMemory(HElems.FIX_ELEM, new byte[] { 0x01 });
}


public static void ActivateIndex(int index, int type)
{

byte[] Typ = BitConverter.GetBytes(type);
Array.Reverse(Typ);
PS3.SetMemory(Hud.HElems.ELEM + 0xb8 * (uint)index, Typ);


}

public static byte[] ToHexFloat(float Axis)
{

byte[] bytes = BitConverter.GetBytes(Axis);
Array.Reverse(bytes);
return bytes;
}


public static byte[] RGBA(decimal R, decimal G, decimal B, decimal A)
{
byte[] RGBA = new byte[4];
byte[] RVal = BitConverter.GetBytes(Convert.ToInt32(R));
byte[] GVal = BitConverter.GetBytes(Convert.ToInt32(G));
byte[] BVal = BitConverter.GetBytes(Convert.ToInt32(B));
byte[] AVal = BitConverter.GetBytes(Convert.ToInt32(A));
RGBA[0] = RVal[0];
RGBA[1] = GVal[0];
RGBA[2] = BVal[0];
RGBA[3] = AVal[0];
return RGBA;
}


public static void StoreIcon(uint elemIndex, decimal client, int shader, int width, int height, float x, float y, uint align, float sort, int r, int g, int b, int a)
{
uint elem = HElems.ELEM + ((elemIndex) * 0xbCool Man (aka Tustin);
byte[] ClientID = ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(client)));
PS3.SetMemory(elem, new byte[0xB8]);
PS3.SetMemory(elem, new byte[] { 0x00, 0x00, 0x00, 0x04 });
PS3.SetMemory(elem + HElems.shaderOffset, ReverseBytes(BitConverter.GetBytes(shader)));
PS3.SetMemory(elem + HElems.heightOffset, ReverseBytes(BitConverter.GetBytes(height)));
PS3.SetMemory(elem + HElems.widthOffset, ReverseBytes(BitConverter.GetBytes(width)));
PS3.SetMemory(elem + HElems.alignOffset, ReverseBytes(BitConverter.GetBytes(0)));
PS3.SetMemory(elem + HElems.relativeOffset, ReverseBytes(BitConverter.GetBytes(0)));
PS3.SetMemory(elem + HElems.xOffset, ToHexFloat(x));
PS3.SetMemory(elem + HElems.yOffset, ToHexFloat(y));
PS3.SetMemory(elem + HElems.colorOffset, RGBA(r, g, b, a));
PS3.SetMemory(elem + HElems.clientOffset, ClientID);


}

public static byte[] CacheString(string Text)
{
PS3.SetMemory(HElems.FIX_ELEM, new byte[] { 0x01 }); //must patch this to make it work
PS3.SetMemory(0x2100000, Encoding.ASCII.GetBytes(Text + "\0"));
byte[] result = new byte[4];
Thread.Sleep(10);
PS3.GetMemory(0x2105000, ref result);
return result;
}



public static void StoreTextElem(uint elemIndex, int client, string Text, int font, float fontScale, int x, int y, uint align, float sort, int r, int g, int b, int a, int r1, int g1, int b1, int a1)
{
uint elem = HElems.ELEM + ((elemIndex) * 0xBCool Man (aka Tustin);
byte[] ClientID = ReverseBytes(BitConverter.GetBytes(client));
PS3.SetMemory(elem, new byte[0xB4]);
PS3.SetMemory(elem, new byte[] { 0x00, 0x00, 0x00, 0x01 });
PS3.SetMemory(elem + HElems.textOffset, CacheString(Text));
PS3.SetMemory(elem + HElems.fontOffset, ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(font))));
PS3.SetMemory(elem + HElems.alignOffset, ReverseBytes(BitConverter.GetBytes(Convert.ToInt32(0))));
PS3.SetMemory(elem + HElems.relativeOffset, ReverseBytes(BitConverter.GetBytes(0)));
PS3.SetMemory(elem + HElems.fontSizeOffset, ToHexFloat(fontScale));
PS3.SetMemory(elem + HElems.xOffset, ToHexFloat(x));
PS3.SetMemory(elem + HElems.yOffset, ToHexFloat(y));
PS3.SetMemory(elem + HElems.colorOffset, RGBA(r, g, b, a));
PS3.SetMemory(elem + HElems.GlowColor, RGBA(r1, g1, b1, a1));
PS3.SetMemory(elem + HElems.clientOffset, ClientID);


}

public static byte[] UInt32ToBytes(uint input)
{
byte[] bytes = BitConverter.GetBytes(input);
Array.Reverse(bytes);
return bytes;
}

public static byte[] ReverseBytes(byte[] inArray)
{
Array.Reverse(inArray);
return inArray;
}
public static byte[] uintBytes(uint input)
{
byte[] data = BitConverter.GetBytes(input);
Array.Reverse(data);
return data;
}
}


Example of use, the example below I made ​​a black shader appear in the center of screen.

    Hud.StoreIcon((uint)10, 0, (int)12, (int)267, (int)500, (int)210, (int)0, 0, 0, (int)1, (int)1, (int)1, (int)200);


You must login or register to view this content.

Credits:

Bad Luck Kevin ( C# Source, You must login or register to view this content.)
ZeiiKeN ( Update for 1.06 )


Me and Kevin beat you to the update Smile
12-14-2013, 05:39 PM #9
ZeiiKeN
Group 935
Originally posted by D34TH View Post
Me and Kevin beat you to the update Smile


Ah ah, yeah I know :p
12-14-2013, 05:40 PM #10
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by ZeiiKeN View Post
Ah ah, yeah I know :p


whats your skype man?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo