Hacking [Source] Cheat menu plugin demo for NTR CFW

  • Thread starter Thread starter cell9
  • Start date Start date
  • Views Views 63,200
  • Replies Replies 125
  • Likes Likes 22
Hmm, I'm not 100% sure but try this traduction:
Code:
void    dynamic_modifier(void)
{
    u16 data;

    if (getKey() == BUTTON_L + BUTTON_Y)
    {
        data = READU16(0x15FBEDD0);
        WRITEU16(0x170608E8, data);
        while (1)
        {
            if (getKey() != BUTTON_R + BUTTON_Y)
                break;
        }
        data = READU16(0x170608E8);
        WRITEU16(0x15FBEDD0, data);
       
    }
}
 
This is what I got:
source\gameplg.c: In function 'updateMenu':
source\gameplg.c:58:33: warning: implicit declaration of function 'getCurrentProcessId' [-Wimplicit-function-declaration]
plgLoaderInfo->gamePluginPid = getCurrentProcessId();
^
source\gameplg.c: In function 'dynamic_modifier':
source\gameplg.c:115:16: warning: implicit declaration of function 'READU16' [-Wimplicit-function-declaration]
data = READU16(0x15FBEDD0);
^
source\gameplg.c: In function 'updateCheatEnableDisplay':
source\gameplg.c:129:6: warning: type of 'id' defaults to 'int' [-Wimplicit-int]
void updateCheatEnableDisplay(id) {
^
source\gameplg.c: In function 'gamePluginEntry':
source\gameplg.c:172:3: warning: implicit declaration of function 'freezeCheatValue' [-Wimplicit-function-declaration]
freezeCheatValue();
^
gameplg.o: In function `dynamic_modifier':
I literally just replaced the void freezeCheatValue() and the cheat itself with what you posted... I presume it's trying use the menu but when I replaced the void freezeCheatValue() it doesn't find it any errors?
 
Last edited by Slattz,
It works but I don't think its displaying the right item id... a 99k bag of moneys item id is 1221 but this shows 8466... I presume its a problem with the gateshark code rather than the ntr plugin? Anyway, the plugin works without crashing :) I can use this as a template for a future code. Thanks so much! :D
 
  • Like
Reactions: chronoss
Yeah it's probably due to the gateway code...

You can check my github (Nanquitas) for cheat plugins sources, especially the cheats.c file. I put all the cheat that I've translated in this file.
 
I want to fill with 0x0 to 1000 bytes or so. Is there any way to do this with NTR? Could anyone tell me sample code for this?
 
Oh okay
sorry, what I meant is I want to fill with "0" from the address 0x000105B to 0x000109C2. (0x413 long)

Can I do this with NTR cheat?
Yes you can.
Exemple:
Code:
void    null_filler(void *start_addr, u32 length)
{
    while (length-- > 0)
    {
        *(vu8 *)(start_addr) = 0;
        start_addr++;
    }
}
Code:
null_filler((void *)0x000105B, 0x413);
 
  • Like
Reactions: Februarysn0w
Nanquitas, thank you for your help in this thread. Can you please help me convert this code in Super Mario 3D land:
D3000000 14000000
0218FAE4 000003E7

This is what I have:
if (cheatEnabled[0]) {
WRITEU16(0x1618FAE4, 0x03E7);
}

Thanks!
 
Nanquitas, thank you for your help in this thread. Can you please help me convert this code in Super Mario 3D land:
D3000000 14000000
0218FAE4 000003E7

This is what I have:
if (cheatEnabled[0]) {
WRITEU16(0x1618FAE4, 0x03E7);
}

Thanks!
Test this : WRITEU16(0x218FAE4, 0x03E7)
 
Nanquitas, thank you for your help in this thread. Can you please help me convert this code in Super Mario 3D land:
D3000000 14000000
0218FAE4 000003E7

This is what I have:
if (cheatEnabled[0]) {
WRITEU16(0x1618FAE4, 0x03E7);
}

Thanks!
No problem, I'm glad to help. ;)
Your code seems right, maybe you don't have the good version of the game (region, update ) ?
 
Maybe solve the issue, then..?
Maybe you should remember that it's a free work and he's doing whatever he want ?

There's no point in 10.4 for now and we just have to copy / paste firm.bin...
If that's too much for you, just don't use any plugins.
 

Site & Scene News

Popular threads in this forum