ROM Hack [Release] Animal Crossing New Leaf Multi Cheat NTR Plugin

  • Thread starter RyDog
  • Start date
  • Views 1,135,789
  • Replies 4,613
  • Likes 77

RyDog

Lazy Animal Crossing hacks
OP
Member
Joined
Apr 26, 2015
Messages
1,698
Trophies
1
Age
24
XP
2,850
Country
United States
2.2.3 is out; changed the layout from your votes.
And EUR and JAP finally have smooth moon jump and coordinates modifer in the latest beta :)
 
D

Deleted User

Guest
If you enabled the speed hack outside that is your problem. Activate all cheat codes inside or the menu. Make sure to cut them off when you visit towns or the island then turn them back when you boot its how the game saves and the injection code. I'm hoping the will patch it.
 
D

Deleted User

Guest
How do I remove the poll? I no longer need it.
Do you have this button?
image.png

--------------------- MERGED ---------------------------

If you enabled the speed hack outside that is your problem. Activate all cheat codes inside or the menu. Make sure to cut them off when you visit towns or the island then turn them back when you boot its how the game saves and the injection code. I'm hoping the will patch it.
You don't have to disable the movement codes if you go to the island or visit towns, you just can't execute them

--------------------- MERGED ---------------------------

@itsRyan, do you know how to completely get rid of the poll? Or do you have to ask mods?
 
D

Deleted User

Guest
ah my bad i know the inventory codes have the problem the most. Town Codes have the problem randomly. I know one movement code that has this problem the only reason why i know this one does it is because i use it the most because of how fun it is the Coordinates modifier. But still i'm willing to go threw the extra trouble to cut them off and on they codes are fun and addicting for some reason i really ike this menu because it go me back into animal crossing again.

--------------------- MERGED ---------------------------

i do wonder what do you use to make your cheat codes?
 
D

Deleted User

Guest
ah my bad i know the inventory codes have the problem the most. Town Codes have the problem randomly. I know one movement code that has this problem the only reason why i know this one does it is because i use it the most because of how fun it is the Coordinates modifier. But still i'm willing to go threw the extra trouble to cut them off and on they codes are fun and addicting for some reason i really ike this menu because it go me back into animal crossing again.

--------------------- MERGED ---------------------------

i do wonder what do you use to make your cheat codes?
Ok cool! Glad you like them! We make them out of................ Love :P
 
  • Like
Reactions: Deleted User

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
@itsRyan:

I just read a bit of the update and I saw that you're not using the float type.
Float allows you to use decimal value.
So instead of writing:
Code:
    if (loc == -1) //FFFFFFFF=outdoors
    {
        if (is_pressed(BUTTON_A + BUTTON_DD))
            ADDTOFLOAT(0x17321518, 0x00000001);
        if (is_pressed(BUTTON_A + BUTTON_DU))
            SUBTOFLOAT(0x17321518, 0x00000001);
        if (is_pressed(BUTTON_A + BUTTON_DL))
            SUBTOFLOAT(0x17321510, 0x00000001);
        if (is_pressed(BUTTON_A + BUTTON_DR))
            ADDTOFLOAT(0x17321510, 0x00000001);
    }
You can write:
Code:
    if (loc == -1) //FFFFFFFF=outdoors
    {
        if (is_pressed(BUTTON_A + BUTTON_DD))
            ADDTOFLOAT(0x17321518, 1.0);
        if (is_pressed(BUTTON_A + BUTTON_DU))
            SUBTOFLOAT(0x17321518, 0.5);
        if (is_pressed(BUTTON_A + BUTTON_DL))
            SUBTOFLOAT(0x17321510, 1002.456);
        if (is_pressed(BUTTON_A + BUTTON_DR))
            ADDTOFLOAT(0x17321510, 99.005);
    }

Of course those values are completely random, it's just to illustrate. ;)
 
  • Like
Reactions: Deleted User

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
I also thought of this improvement of the search and replace:
Code:
void    find_and_replace_multiple(void *start_addr, u32 length, int nbyte, int pitch)
{
    u32 find_value;
    u32 replace_value;
    int i;

    if (pitch == 0 || start_addr == NULL || length == 0)
        return;
    if (nbyte != 1 && nbyte != 2 && nbyte != 4)
        nbyte = 4;
    i = 0;
    length /= pitch;
    while (length-- > 0)
    {
        for (i = 0; i < g_i; i++)
        {
            find_value = g_find[i];
            replace_value = g_replace[i];
            if (nbyte == 1)
            {
                if (*(u8 *)start_addr == (u8)find_value)
                {
                    *(u8 *)start_addr = (u8)replace_value;
                    break;
                }
            }
            else if (nbyte == 2)
            {
                if (*(u16 *)start_addr == (u16)find_value)
                {
                    *(u16 *)start_addr = (u16)replace_value;
                    break;
                }
            }
            else
            {
                if (*(u32 *)start_addr == find_value)
                {
                    *(u32 *)start_addr = replace_value;
                    break;
                }
            }
        }
        start_addr += pitch;
    }
}
void find_and_replace_multiple(void *start_addr, u32 length, int nbyte, int pitch);
start_addr = address to start the search
length = the range of the search
nbyte = type of data to search and replace, can be 1 (u8), 2 (u16) and 4 (u32)
pitch = the pitch for the search. Must be superior to 0. This can be useful to restrain the range implicitly if you know the alignment of the data you're searching for.

Also this new version have the advantage to let you search and replace for any of the 3 types (u8, u16, u32) when before it was restrained to u16.

edit:
You can also reduce your quench code to:
Code:
void quench_usa(void)
{
    u32 address;
    u32 item;
   
    if (is_pressed(BUTTON_R + BUTTON_A))
    {
        for(address = OFFSET_TOWN_ITEMS; address < OFFSET_TOWN_ITEMS + RANGE_TOWN_ITEMS; address += ITEM_BYTES)
        {
            item = READU16(address);
            if (item >= 0x9F && item <= 0xF7)            //flower
            {
                if (item >= 0xC9 && item <= 0xF7)        //wilted flower
                    item -= 0x2F;                        //wilted to normal
                item |= (0x40 << 16);                    //water flag
                WRITEU32(address, item);
            }
        }
    }
}
With this you gain the data table space and you'll only have one loop instead of traversing the whole table for each iteration of the loop.
 
Last edited by Nanquitas,
  • Like
Reactions: Deleted User

RyDog

Lazy Animal Crossing hacks
OP
Member
Joined
Apr 26, 2015
Messages
1,698
Trophies
1
Age
24
XP
2,850
Country
United States
itsryan you are working on omega ruby?
I tried looking for coordinates in the game but all I could find was coordinates for sprite data so I'm going to put Pokemon on standby for now. There's already an amazing cheat plugin anyways.
And @Nanquitas lol it was a simple mistake, I got so used to writing everything in that syntax, so I thought that macro used 0xDATA; so I guess everything can be converted to float easily because I think 0x1 is 1.0 in float.
@SirBeethoven there's no option to remove the poll. We should contact a mod so they can remove the poll unless I'm not looking in the right area... :unsure:

--------------------- MERGED ---------------------------

@itsRyan how about an unlock cheat for the 40 emotes?
Good idea, also I can add a text to item for multiple players right now for you. Do you want it in EUR? I'll start with that version first
 
D

Deleted User

Guest
@SirBeethoven there's no option to remove the poll. We should contact a mod so they can remove the poll unless I'm not looking in the right area... :unsure:
Maybe our two favorites, @Bortz or @raulpica could help! :)

P.S. Thank you for any mod that helps get rid of the GBATemp poll (the "Do you like Moon Jump in the latest beta?" Poll)
 
Last edited by ,
  • Like
Reactions: RyDog

RyDog

Lazy Animal Crossing hacks
OP
Member
Joined
Apr 26, 2015
Messages
1,698
Trophies
1
Age
24
XP
2,850
Country
United States
not quite helpful if i never find it on appstore... :P a list would be cool
Do you know how to use NTR debugger? My EUR copy of the game only has one character and I think I found the difference between characters so I want you to load up your save on your second character and tell me what data is stored at the offset I give you
 

Slattz

Easygoing Fairy
Member
Joined
Nov 21, 2015
Messages
1,259
Trophies
1
XP
1,797
Country
Ireland
Do you know how to use NTR debugger? My EUR copy of the game only has one character and I think I found the difference between characters so I want you to load up your save on your second character and tell me what data is stored at the offset I give you
I could do it?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://youtu.be/i_aGG1BhMxw?si=jqRMd3OH503msvZq