Post: I'm missing something...very basic
08-11-2015, 11:38 AM #1
seanhellen
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); Hi all - I think Im missing something obvious here...I can't get mods to work in a certain way (for clients)...

For example for Godmode, originally, I had;

    PS3.SetMemory(0x014E5429, new byte[] { 0xFF, 0xFF });


which switched it on...fine. now I want to be able to use it for other clients too. So I put;

    public static void GodmodeON(uint client)
{
PS3.SetMemory(0x014E5429 + 0x3700 * client, new byte[] { 0xFF, 0xFF });
}

And called by

Mods.GodmodeON(0);


Now, it doesn't work. I thought it was something to do with the client not being an int, so I changed it to;

    public static void GodmodeON(int client)
{
PS3.SetMemory(0x014E5429 + 0x3700 * (uint)client, new byte[] { 0xFF, 0xFF });
}


but still no luck.

What gets me is that I still have the SPRX Insidious menu on and in the source for that, it is written in exactly the same way, so I am not sure what I am missing here...please could someone enlighten me as it's driving me crazy!!!
(adsbygoogle = window.adsbygoogle || []).push({});
08-11-2015, 05:07 PM #2
NickBeHaxing
Stoner Zone
Originally posted by seanhellen View Post
Hi all - I think Im missing something obvious here...I can't get mods to work in a certain way (for clients)...

For example for Godmode, originally, I had;

    PS3.SetMemory(0x014E5429, new byte[] { 0xFF, 0xFF });


which switched it on...fine. now I want to be able to use it for other clients too. So I put;

    public static void GodmodeON(uint client)
{
PS3.SetMemory(0x014E5429 + 0x3700 * client, new byte[] { 0xFF, 0xFF });
}

And called by

Mods.GodmodeON(0);


Now, it doesn't work. I thought it was something to do with the client not being an int, so I changed it to;

    public static void GodmodeON(int client)
{
PS3.SetMemory(0x014E5429 + 0x3700 * (uint)client, new byte[] { 0xFF, 0xFF });
}


but still no luck.

What gets me is that I still have the SPRX Insidious menu on and in the source for that, it is written in exactly the same way, so I am not sure what I am missing here...please could someone enlighten me as it's driving me crazy!!!


Your missing brackets..

    
public static void GodmodeON(uint client)
{
PS3.SetMemory(0x014E5429 + (0x3700 * client), new byte[] { 0xFF, 0xFF });
}


you only put (uint) in front of client if the parameter is an int
08-11-2015, 06:15 PM #3
seanhellen
Are you high?
I tried the brackets but they didn't make a difference...I thought C# was a clever enough language to do simple math equations by itself. the thing is, in Insidious (C++), the code is this;

    *(char*)(0x014E5429 + 0x3700 * client) = 0xFF, 0xFF;


which works fine when I use the menu. I really am stuck Eek

I didn't think the uint would make a difference either, just thought I would check lol. Any other ideas?

As it stands, I have;

    public static void GodmodeON(uint client)
{
PS3.SetMemory(0x014E5429 + (0x3700 * client), new byte[] { 0xFF, 0xFF });
}
08-13-2015, 10:27 AM #4
seanhellen
Are you high?
Guess its not just me thats confused then Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo