ROM Hack [NTR Cheats Plugin] Ported from Gateshark

dsrules

Well-Known Member
Member
Joined
Sep 20, 2005
Messages
8,746
Trophies
2
XP
6,312
Country
Well I don't know, but this part :
Code:
            offset = READU32(0x0FFFFBF4);
            offset += 0xFFFFF930;
            offset = READU32(0x00000000);
            offset += 0xFFFFF208;
can be shortened to:
Code:
            offset = 0xFFFFF208;

Which will result in an error...
he is using negative offsets -0x6D0 , -0xDF8
 
  • Like
Reactions: chronoss

Nanquitas

Well-Known Member
Member
Joined
Sep 29, 2015
Messages
2,345
Trophies
0
Age
30
Location
South of France :)
XP
3,336
Country
France
Yep but he do nothing with that since just after he says that offset = *0x0 (NULL) then he substract to NULL which will result in a negative address and so, an invalid address to write in.
 

chronoss

Well-Known Member
OP
Member
Joined
May 26, 2015
Messages
3,009
Trophies
1
XP
4,906
Country
Congo, Republic of the
New entry

Fire Emblem Fates - Birthright (USA)
Fire Emblem Fates - Conquest (USA)
Fire Emblem Fates Special Edition (USA)
Inazuma Eleven - Go Light (EUR)
Inazuma Eleven (USA) REBUILD
Justice Chronicles (EUR)
Nintendo Badge Arcade (USA)
Super Smash Bros (EUR)
Super Smash Bros (USA)

@AlphaSapphire , @Garblant ............
 
Last edited by chronoss,
  • Like
Reactions: Thunder Kai

Nanquitas

Well-Known Member
Member
Joined
Sep 29, 2015
Messages
2,345
Trophies
0
Age
30
Location
South of France :)
XP
3,336
Country
France
A much cleaner code:
Code:
void    cheat(void)
{
    if (key == BUTTON_X + BUTTON_DR)
    {
        u16        *id = (u16  *)0x16F4C160;
        u16        result;
        char       id_str[5] = { 0 };
        size_t    i;

        for (i = 0; i < 4; i++)
        {
            id_str[i] = READU8(id + i);
        }
        result = (u16)strtoul(id_str, NULL, 16);
        WRITEU16(0x15FBEAD0, result);
        waitKeyUp();
    }
}
For being able to read the error:
- open a terminal in the folder (Shift + left click -> open a terminal here)
- Type build.bat
- The compilation will begin and the terminal will stay open after so ou can read the errors. ;)
 
  • Like
Reactions: chronoss and RyDog

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: I went to the drive thru lady hands me me receipt go up to the 2nd window same lady hands me my...