• Pepsyz Modding est de retour sur xfnolimit.fr !

    Le forum est en cours de modernisation. Vous pouvez déjà retrouver la communauté, consulter les anciens sujets et partager vos projets autour du gaming, du modding et de la programmation.

    Important : merci de respecter la loi, les droits d’auteur et le règlement du forum. Les téléchargements illégaux et les contenus piratés ne sont pas autorisés. Sauvegardez toujours vos données avant toute modification de votre matériel ou de vos logiciels.






  • Salut Invité notre forum PepsyzModding recrute en tant que staff !

RPC 1.16

Louise Giverne

TOP Gameuse
Gameuse
private static UInt32 function_address = 0x629ED0;

private static PS3API PS3 = new PS3API();



public static int Init()

{

if (function_address == 0) return -1;

Enable_RPC();

return 0;

}



public static void Enable_RPC()

{

PS3.SetMemory(function_address, new byte[] { 0x4E, 0x80, 0x00, 0x20 });

System.Threading.Thread.Sleep(20);

byte[] func = new byte[] { 0x7C, 0x08, 0x02, 0xA6, 0xF8, 0x01, 0x00, 0x80, 0x3C, 0x60, 0x10, 0x05, 0x81, 0x83, 0x00, 0x4C, 0x2C, 0x0C, 0x00, 0x00, 0x41, 0x82, 0x00, 0x64, 0x80, 0x83, 0x00, 0x04, 0x80, 0xA3, 0x00, 0x08, 0x80, 0xC3, 0x00, 0x0C, 0x80, 0xE3, 0x00, 0x10, 0x81, 0x03, 0x00, 0x14, 0x81, 0x23, 0x00, 0x18, 0x81, 0x43, 0x00, 0x1C, 0x81, 0x63, 0x00, 0x20, 0xC0, 0x23, 0x00, 0x24, 0xC0, 0x43, 0x00, 0x28, 0xC0, 0x63, 0x00, 0x2C, 0xC0, 0x83, 0x00, 0x30, 0xC0, 0xA3, 0x00, 0x34, 0xC0, 0xC3, 0x00, 0x38, 0xC0, 0xE3, 0x00, 0x3C, 0xC1, 0x03, 0x00, 0x40, 0xC1, 0x23, 0x00, 0x48, 0x80, 0x63, 0x00, 0x00, 0x7D, 0x89, 0x03, 0xA6, 0x4E, 0x80, 0x04, 0x21, 0x3C, 0x80, 0x10, 0x05, 0x38, 0xA0, 0x00, 0x00, 0x90, 0xA4, 0x00, 0x4C, 0x90, 0x64, 0x00, 0x50, 0xE8, 0x01, 0x00, 0x80, 0x7C, 0x08, 0x03, 0xA6, 0x38, 0x21, 0x00, 0x70, 0x4E, 0x80, 0x00, 0x20 };

PS3.SetMemory(function_address + 0x4, func);

PS3.SetMemory(0x10050000, new byte[0x2854]);

PS3.SetMemory(function_address, new byte[] { 0xF8, 0x21, 0xFF, 0x91 });

}



public static int Call(uint func_address, params object[] parameters)

{

int num_params = parameters.Length;

uint num_floats = 0;

for (uint i = 0; i < num_params; i++)

{

if (parameters is int)

{

byte[] val = BitConverter.GetBytes((int)parameters);

Array.Reverse(val);

PS3.SetMemory(0x10050000 + (i + num_floats) * 4, val);

}

else if (parameters is uint)

{

byte[] val = BitConverter.GetBytes((uint)parameters);

Array.Reverse(val);

PS3.SetMemory(0x10050000 + (i + num_floats) * 4, val);

}

else if (parameters is string)

{

byte[] str = Encoding.UTF8.GetBytes(Convert.ToString(parameters) + "\0");

PS3.SetMemory(0x10050054 + i * 0x400, str);

uint addr = 0x10050054 + i * 0x400;

byte[] address = BitConverter.GetBytes(addr);

Array.Reverse(address);

PS3.SetMemory(0x10050000 + (i + num_floats) * 4, address);

}

else if (parameters is float)

{

num_floats++;

byte[] val = BitConverter.GetBytes((float)parameters);

Array.Reverse(val);

PS3.SetMemory(0x10050024 + ((num_floats - 1) * 0x4), val);

}

}

byte[] fadd = BitConverter.GetBytes(func_address);

Array.Reverse(fadd);

PS3.SetMemory(0x1005004C, fadd);

System.Threading.Thread.Sleep(20);

byte[] ret = new byte[4];

PS3.GetMemory(0x1050050, ret);

Array.Reverse(ret);

return BitConverter.ToInt32(ret, 0);

}



public static void SV_GSSC(int client, String Command)

{

RPC.Call(0x42D9A4, new object[] { client, 0, Command });

}

}
 
private static UInt32 function_address = 0x629ED0;

private static PS3API PS3 = new PS3API();



public static int Init()

{

if (function_address == 0) return -1;

Enable_RPC();

return 0;

}



public static void Enable_RPC()

{

PS3.SetMemory(function_address, new byte[] { 0x4E, 0x80, 0x00, 0x20 });

System.Threading.Thread.Sleep(20);

byte[] func = new byte[] { 0x7C, 0x08, 0x02, 0xA6, 0xF8, 0x01, 0x00, 0x80, 0x3C, 0x60, 0x10, 0x05, 0x81, 0x83, 0x00, 0x4C, 0x2C, 0x0C, 0x00, 0x00, 0x41, 0x82, 0x00, 0x64, 0x80, 0x83, 0x00, 0x04, 0x80, 0xA3, 0x00, 0x08, 0x80, 0xC3, 0x00, 0x0C, 0x80, 0xE3, 0x00, 0x10, 0x81, 0x03, 0x00, 0x14, 0x81, 0x23, 0x00, 0x18, 0x81, 0x43, 0x00, 0x1C, 0x81, 0x63, 0x00, 0x20, 0xC0, 0x23, 0x00, 0x24, 0xC0, 0x43, 0x00, 0x28, 0xC0, 0x63, 0x00, 0x2C, 0xC0, 0x83, 0x00, 0x30, 0xC0, 0xA3, 0x00, 0x34, 0xC0, 0xC3, 0x00, 0x38, 0xC0, 0xE3, 0x00, 0x3C, 0xC1, 0x03, 0x00, 0x40, 0xC1, 0x23, 0x00, 0x48, 0x80, 0x63, 0x00, 0x00, 0x7D, 0x89, 0x03, 0xA6, 0x4E, 0x80, 0x04, 0x21, 0x3C, 0x80, 0x10, 0x05, 0x38, 0xA0, 0x00, 0x00, 0x90, 0xA4, 0x00, 0x4C, 0x90, 0x64, 0x00, 0x50, 0xE8, 0x01, 0x00, 0x80, 0x7C, 0x08, 0x03, 0xA6, 0x38, 0x21, 0x00, 0x70, 0x4E, 0x80, 0x00, 0x20 };

PS3.SetMemory(function_address + 0x4, func);

PS3.SetMemory(0x10050000, new byte[0x2854]);

PS3.SetMemory(function_address, new byte[] { 0xF8, 0x21, 0xFF, 0x91 });

}



public static int Call(uint func_address, params object[] parameters)

{

int num_params = parameters.Length;

uint num_floats = 0;

for (uint i = 0; i < num_params; i++)

{

if (parameters is int)

{

byte[] val = BitConverter.GetBytes((int)parameters);

Array.Reverse(val);

PS3.SetMemory(0x10050000 + (i + num_floats) * 4, val);

}

else if (parameters is uint)

{

byte[] val = BitConverter.GetBytes((uint)parameters);

Array.Reverse(val);

PS3.SetMemory(0x10050000 + (i + num_floats) * 4, val);

}

else if (parameters is string)

{

byte[] str = Encoding.UTF8.GetBytes(Convert.ToString(parameters) + "\0");

PS3.SetMemory(0x10050054 + i * 0x400, str);

uint addr = 0x10050054 + i * 0x400;

byte[] address = BitConverter.GetBytes(addr);

Array.Reverse(address);

PS3.SetMemory(0x10050000 + (i + num_floats) * 4, address);

}

else if (parameters is float)

{

num_floats++;

byte[] val = BitConverter.GetBytes((float)parameters);

Array.Reverse(val);

PS3.SetMemory(0x10050024 + ((num_floats - 1) * 0x4), val);

}

}

byte[] fadd = BitConverter.GetBytes(func_address);

Array.Reverse(fadd);

PS3.SetMemory(0x1005004C, fadd);

System.Threading.Thread.Sleep(20);

byte[] ret = new byte[4];

PS3.GetMemory(0x1050050, ret);

Array.Reverse(ret);

return BitConverter.ToInt32(ret, 0);

}



public static void SV_GSSC(int client, String Command)

{

RPC.Call(0x42D9A4, new object[] { client, 0, Command });

}

}
Cest pas bien le C/C ;)
 
tu peut aller dans l'outils "ajouter" et selectione code




Code :
private static UInt32 function_address = 0x629ED0;

          private static PS3API PS3 = new PS3API();
            public static int Init()
            {

                if (function_address == 0) return -1;

                Enable_RPC();

                return 0;

            }
            public static void Enable_RPC()
            {
                PS3.SetMemory(function_address, new byte[] { 0x4E, 0x80, 0x00, 0x20 });

                System.Threading.Thread.Sleep(20);

                byte[] func = new byte[] { 0x7C, 0x08, 0x02, 0xA6, 0xF8, 0x01, 0x00, 0x80, 0x3C, 0x60, 0x10, 0x05, 0x81, 0x83, 0x00, 0x4C, 0x2C, 0x0C, 0x00, 0x00, 0x41, 0x82, 0x00, 0x64, 0x80, 0x83, 0x00, 0x04, 0x80, 0xA3, 0x00, 0x08, 0x80, 0xC3, 0x00, 0x0C, 0x80, 0xE3, 0x00, 0x10, 0x81, 0x03, 0x00, 0x14, 0x81, 0x23, 0x00, 0x18, 0x81, 0x43, 0x00, 0x1C, 0x81, 0x63, 0x00, 0x20, 0xC0, 0x23, 0x00, 0x24, 0xC0, 0x43, 0x00, 0x28, 0xC0, 0x63, 0x00, 0x2C, 0xC0, 0x83, 0x00, 0x30, 0xC0, 0xA3, 0x00, 0x34, 0xC0, 0xC3, 0x00, 0x38, 0xC0, 0xE3, 0x00, 0x3C, 0xC1, 0x03, 0x00, 0x40, 0xC1, 0x23, 0x00, 0x48, 0x80, 0x63, 0x00, 0x00, 0x7D, 0x89, 0x03, 0xA6, 0x4E, 0x80, 0x04, 0x21, 0x3C, 0x80, 0x10, 0x05, 0x38, 0xA0, 0x00, 0x00, 0x90, 0xA4, 0x00, 0x4C, 0x90, 0x64, 0x00, 0x50, 0xE8, 0x01, 0x00, 0x80, 0x7C, 0x08, 0x03, 0xA6, 0x38, 0x21, 0x00, 0x70, 0x4E, 0x80, 0x00, 0x20 };

                PS3.SetMemory(function_address + 0x4, func);

                PS3.SetMemory(0x10050000, new byte[0x2854]);

                PS3.SetMemory(function_address, new byte[] { 0xF8, 0x21, 0xFF, 0x91 });

            }
            public static int Call(uint func_address, params object[] parameters)
            {

                int num_params = parameters.Length;

                uint num_floats = 0;

                for (uint i = 0; i < num_params; i++)

                {

                    if (parameters is int)

                    {

                        byte[] val = BitConverter.GetBytes((int)parameters);

                        Array.Reverse(val);

                        PS3.SetMemory(0x10050000 + (i + num_floats) * 4, val);

                    }

                    else if (parameters is uint)

                    {

                        byte[] val = BitConverter.GetBytes((uint)parameters);

                        Array.Reverse(val);

                        PS3.SetMemory(0x10050000 + (i + num_floats) * 4, val);

                    }

                    else if (parameters is string)

                    {

                        byte[] str = Encoding.UTF8.GetBytes(Convert.ToString(parameters) + "\0");

                        PS3.SetMemory(0x10050054 + i * 0x400, str);

                        uint addr = 0x10050054 + i * 0x400;

                        byte[] address = BitConverter.GetBytes(addr);

                        Array.Reverse(address);

                        PS3.SetMemory(0x10050000 + (i + num_floats) * 4, address);

                    }

                    else if (parameters is float)

                    {

                        num_floats++;

                        byte[] val = BitConverter.GetBytes((float)parameters);

                        Array.Reverse(val);

                        PS3.SetMemory(0x10050024 + ((num_floats - 1) * 0x4), val);

                    }

                }

                byte[] fadd = BitConverter.GetBytes(func_address);

                Array.Reverse(fadd);

                PS3.SetMemory(0x1005004C, fadd);

                System.Threading.Thread.Sleep(20);

                byte[] ret = new byte[4];

                PS3.GetMemory(0x1050050, ret);

                Array.Reverse(ret);

                return BitConverter.ToInt32(ret, 0);

            }
            public static void SV_GSSC(int client, String Command)

            {

                RPC.Call(0x42D9A4, new object[] { client, 0, Command });

            }

        }






















private static UInt32 function_address = 0x629ED0;

private static PS3API PS3 = new PS3API();



public static int Init()

{

if (function_address == 0) return -1;

Enable_RPC();

return 0;

}



public static void Enable_RPC()

{

PS3.SetMemory(function_address, new byte[] { 0x4E, 0x80, 0x00, 0x20 });

System.Threading.Thread.Sleep(20);

byte[] func = new byte[] { 0x7C, 0x08, 0x02, 0xA6, 0xF8, 0x01, 0x00, 0x80, 0x3C, 0x60, 0x10, 0x05, 0x81, 0x83, 0x00, 0x4C, 0x2C, 0x0C, 0x00, 0x00, 0x41, 0x82, 0x00, 0x64, 0x80, 0x83, 0x00, 0x04, 0x80, 0xA3, 0x00, 0x08, 0x80, 0xC3, 0x00, 0x0C, 0x80, 0xE3, 0x00, 0x10, 0x81, 0x03, 0x00, 0x14, 0x81, 0x23, 0x00, 0x18, 0x81, 0x43, 0x00, 0x1C, 0x81, 0x63, 0x00, 0x20, 0xC0, 0x23, 0x00, 0x24, 0xC0, 0x43, 0x00, 0x28, 0xC0, 0x63, 0x00, 0x2C, 0xC0, 0x83, 0x00, 0x30, 0xC0, 0xA3, 0x00, 0x34, 0xC0, 0xC3, 0x00, 0x38, 0xC0, 0xE3, 0x00, 0x3C, 0xC1, 0x03, 0x00, 0x40, 0xC1, 0x23, 0x00, 0x48, 0x80, 0x63, 0x00, 0x00, 0x7D, 0x89, 0x03, 0xA6, 0x4E, 0x80, 0x04, 0x21, 0x3C, 0x80, 0x10, 0x05, 0x38, 0xA0, 0x00, 0x00, 0x90, 0xA4, 0x00, 0x4C, 0x90, 0x64, 0x00, 0x50, 0xE8, 0x01, 0x00, 0x80, 0x7C, 0x08, 0x03, 0xA6, 0x38, 0x21, 0x00, 0x70, 0x4E, 0x80, 0x00, 0x20 };
 
Retour
Haut de la page