ROM Hack [Spider] Animal Crossing: New Leaf RAM Editing Thread

PikaStitch

Well-Known Member
Newcomer
Joined
Mar 19, 2015
Messages
89
Trophies
0
Age
34
XP
87
Country
United States
I've been analyzing several RAM dumps and I thought I should share my findings:

The byte at offset 0x49526 corresponds with the size of your town tree. If you change the byte's value, the tree's size will update to reflect your change, but it will revert to what it should be next time you load the game. I'm fairly certain this is because it cross-references the values stored at offset 0x5C730 and 0x5C7BA when you load the game. 0x5C730 logs your total playtime (in seconds), and 0x5C7BA keeps track of how many days you've played.

In my RAM dump of my test town, there are 2 bytes from offset 0x5C730-0x5C731: 3B B6. Reversing the order (this has something to do with endianness if I'm not mistaken) of the bytes and then converting them to decimal leaves me with 46651 seconds. At offset 0x5C7BA is the byte 1F which is 31 in decimal. So I've played 31 days with nearly 13 hours of playtime. You need to have played 500 days and have 500 hours of playtime for a fully grown tree. Knowing that, I converted 1800000 (500 hours in seconds) to hex, reversed the order, and came up with 40 77 1B. I did the same for the days: converted 500 to hex, reversed the order, and came up with F4 01. I replaced the bytes from 0x5C730-0x5C732 with 40 77 1B, and the bytes from 0x5C7BA-0x5C7BB with F4 01. I then injected my edited RAM dump, and reloaded my game. The result:
mmsu4cT.jpg

(I time traveled to summer to take this screenshot)
Now, remember what I said about offset 0x49526? As you might've guessed, you don't have to change it at all. It will adjust itself to be in accordance with the values found at offset 0x5C730 and 0x5C7BA after saving, quitting, and reloading. For what it's worth, the byte at offset 0x49526 is 07 when fully grown, and 00 when at its smallest (00 also appears as a sapling for the duration of the first day in a newly created town).

I'm still pretty new to hex editing, so sorry if I didn't explain it well, or if I missed something.


I can back up this and say I got the exact result DON'T INJECT FROM INSIDE A BUILDING I did a few tests and every time I injected from a building I would get a crash data + my town would go into fall wheather mode, so inject outside. :D
 

Kippy

Well-Known Member
Member
Joined
Mar 21, 2015
Messages
145
Trophies
0
Age
23
XP
121
Country
United States
I'm making a list of all of the values of house exteriors. I ignored the non arched doors as the type of door is determined by editing a byte in hex, so there are only arched versions listed.
 

Kippy

Well-Known Member
Member
Joined
Mar 21, 2015
Messages
145
Trophies
0
Age
23
XP
121
Country
United States
aaand here it is. The bytes for house exteriors and such. I think it's all correct.
MAILBOXES
Red mailbox: 00
Metal mailbox: 01
Blue mailbox: 02
Yellow mailbox: 03
Orange mailbox: 04
Green mailbox: 05
Golden mailbox: 06
Wooden mailbox: 07
White mailbox: 08
Pink mailbox: 09
Zen mailbox: 0a
Shabby mailbox: 0b
Stainless mailbox: 0c
Square mailbox: 0d
Light blue mailbox: 0e
Cyan mailbox: 0f
Mermaid mailbox: 10
Cabana mailbox: 11
Fairy tale mailbox: 12
Royal mailbox: 13
Barrel mailbox: 14
Sweets mailbox: 15
DOORS
* THERE ARE SQUARE VARIATONS ON SOME DOORS BUT NOT ALL I AM CONFUSED BY THIS PART. Weather or not the door is square or arched depends on binary, 00 being not rectangular and 01 being rectangular. This isn’t true for the gold door, there is only an arched variation. Each square rectangular door has an arched counterpart so this should work.*
Arched circle door- 00
Arched fish door- 01
Arched astro door- 02
Arched door- 03
Arched yellow door-04
Arched metal door-05
Arched patched door- 06
Arched sweets door-07
Arched mermaid door- 08
Arched zen door- 09
Arched cabin door- 0a
Arched fairy tale door- 0b
Arched brown door- 0c
Arched green door- 0d
Arched heavy door- 0e
Arched blue door- 0f
Arched beige door- 10
Arched imperial door- 11
Arched pink door- 12
Arched kiddie door- 13
Arched bamboo door- 14
Arched gold door-15
ROOFS
Red roof- 00
Green tile roof- 01
Blue shingle roof- 02
Astro roof- 03
Kiddie roof-04
Black modern roof- 05
Straw thatched roof- 06
Black tile roof- 07
Fairy tale roof-08
Ranch roof- 09
Shanty roof- 0a
Concrete roof- 0b
Sweets roof- 0c
White roof- 0d
Purple shingle roof- 0e
Black straw roof- 0f
Mermaid roof- 10
Simple blue roof- 11
Purple roof- 12
Pink roof- 13
Black roof- 14
Yellow roof-15
Fuchsia roof- 16
Black shingle roof- 17
Brown roof- 18
Grass roof- 19
Stone roof- 1a
Mint fairy tale roof- 1b
Uneven stone roof- 1c
Simple green roof- 1d
Simple gray roof- 1e
Golden roof- 1f
Blue roof- 20
Yellow roof- 21
Green roof- 22
FENCES
Rope fence- 00
Picket fence- 01
Country fence- 02
Hedge- 03
Pink mermaid fence- 04
Blue mermaid fence- 05
Red brick fence- 06
Gray brick fence- 07
Pink fence- 08
Fairy tale fence- 09
Corral fence- 0a
Curvy fence- 0b
Blue fence- 0c
Fancy fence- 0d
Zen fence- 0e
Barbed wire fence- 0f
Sweets fence- 10
Concrete fence- 11
Shanty fence- 12
Bamboo fence- 13
Sculpted hedge- 14
Cinder block wall- 15
Golden fence- 16
EXTERIORS
Brick exterior- 00
Exotic exterior- 01
Cobblestone exterior- 02
Astor exterior- 03
Kiddie exterior- 04
Simple exterior- 05
Cabana exterior- 06
Zen exterior- 07
Fairy tale exterior- 08
Cabin exterior- 09
Shanty exterior- 0a
Concrete exterior- 0b
Sweets exterior- 0c
White brick exterior- 0d
Chalet exterior- 0e
Brown brick exterior- 0f
Mermaid exterior- 10
Red barn exterior- 11
Blue chalet exterior- 12
Pink exterior- 13
Blue exterior- 14
Orange exterior- 15
Garden exterior- 16
Yellow exterior- 17
White exterior- 18
Stucco exterior- 19
Stone exterior- 1a
Melon exterior- 1b
Earthy exterior- 1c
Fancy exterior- 1d
Black exterior- 1e
Golden exterior- 1f
PAVEMENT
Colorful gravel- 00
Stone pavement- 01
Brick pavement- 02
Pebble pavement- 03
Square pavement- 04
Concrete pavement- 05
Blue brick pavement- 06
Pink pavement- 07
Brown pavement- 08
HOUSE TYPES
Mansion- 00
Zen castle- 01
Castle- 02
Modern house- 03
HOUSE SIZE
01- Smallest
02- One 8x8 room
03- Same as 2???
04- Second floor
05- Room on east
06- Room on west
07- Complete (I think.)
 

TidusWulf

Real Aloha
Member
Joined
Jul 27, 2007
Messages
654
Trophies
1
Location
Hawaii
XP
782
Country
United States
aaand here it is. The bytes for house exteriors and such. I think it's all correct.
MAILBOXES
Red mailbox: 00
Metal mailbox: 01
Blue mailbox: 02
Yellow mailbox: 03
Orange mailbox: 04
Green mailbox: 05
Golden mailbox: 06
Wooden mailbox: 07
White mailbox: 08
Pink mailbox: 09
Zen mailbox: 0a
Shabby mailbox: 0b
Stainless mailbox: 0c
Square mailbox: 0d
Light blue mailbox: 0e
Cyan mailbox: 0f
Mermaid mailbox: 10
Cabana mailbox: 11
Fairy tale mailbox: 12
Royal mailbox: 13
Barrel mailbox: 14
Sweets mailbox: 15
DOORS
* THERE ARE SQUARE VARIATONS ON SOME DOORS BUT NOT ALL I AM CONFUSED BY THIS PART. Weather or not the door is square or arched depends on binary, 00 being not rectangular and 01 being rectangular. This isn’t true for the gold door, there is only an arched variation. Each square rectangular door has an arched counterpart so this should work.*
Arched circle door- 00
Arched fish door- 01
Arched astro door- 02
Arched door- 03
Arched yellow door-04
Arched metal door-05
Arched patched door- 06
Arched sweets door-07
Arched mermaid door- 08
Arched zen door- 09
Arched cabin door- 0a
Arched fairy tale door- 0b
Arched brown door- 0c
Arched green door- 0d
Arched heavy door- 0e
Arched blue door- 0f
Arched beige door- 10
Arched imperial door- 11
Arched pink door- 12
Arched kiddie door- 13
Arched bamboo door- 14
Arched gold door-15
ROOFS
Red roof- 00
Green tile roof- 01
Blue shingle roof- 02
Astro roof- 03
Kiddie roof-04
Black modern roof- 05
Straw thatched roof- 06
Black tile roof- 07
Fairy tale roof-08
Ranch roof- 09
Shanty roof- 0a
Concrete roof- 0b
Sweets roof- 0c
White roof- 0d
Purple shingle roof- 0e
Black straw roof- 0f
Mermaid roof- 10
Simple blue roof- 11
Purple roof- 12
Pink roof- 13
Black roof- 14
Yellow roof-15
Fuchsia roof- 16
Black shingle roof- 17
Brown roof- 18
Grass roof- 19
Stone roof- 1a
Mint fairy tale roof- 1b
Uneven stone roof- 1c
Simple green roof- 1d
Simple gray roof- 1e
Golden roof- 1f
Blue roof- 20
Yellow roof- 21
Green roof- 22
FENCES
Rope fence- 00
Picket fence- 01
Country fence- 02
Hedge- 03
Pink mermaid fence- 04
Blue mermaid fence- 05
Red brick fence- 06
Gray brick fence- 07
Pink fence- 08
Fairy tale fence- 09
Corral fence- 0a
Curvy fence- 0b
Blue fence- 0c
Fancy fence- 0d
Zen fence- 0e
Barbed wire fence- 0f
Sweets fence- 10
Concrete fence- 11
Shanty fence- 12
Bamboo fence- 13
Sculpted hedge- 14
Cinder block wall- 15
Golden fence- 16
EXTERIORS
Brick exterior- 00
Exotic exterior- 01
Cobblestone exterior- 02
Astor exterior- 03
Kiddie exterior- 04
Simple exterior- 05
Cabana exterior- 06
Zen exterior- 07
Fairy tale exterior- 08
Cabin exterior- 09
Shanty exterior- 0a
Concrete exterior- 0b
Sweets exterior- 0c
White brick exterior- 0d
Chalet exterior- 0e
Brown brick exterior- 0f
Mermaid exterior- 10
Red barn exterior- 11
Blue chalet exterior- 12
Pink exterior- 13
Blue exterior- 14
Orange exterior- 15
Garden exterior- 16
Yellow exterior- 17
White exterior- 18
Stucco exterior- 19
Stone exterior- 1a
Melon exterior- 1b
Earthy exterior- 1c
Fancy exterior- 1d
Black exterior- 1e
Golden exterior- 1f
PAVEMENT
Colorful gravel- 00
Stone pavement- 01
Brick pavement- 02
Pebble pavement- 03
Square pavement- 04
Concrete pavement- 05
Blue brick pavement- 06
Pink pavement- 07
Brown pavement- 08
HOUSE TYPES
Mansion- 00
Zen castle- 01
Castle- 02
Modern house- 03
HOUSE SIZE
01- Smallest
02- One 8x8 room
03- Same as 2???
04- Second floor
05- Room on east
06- Room on west
07- Complete (I think.)

Do you know the offset where the houses are found? o.o

It's all right here. https://docs.google.com/spreadsheets/d/1mhEyDcc76wNVrIS6qsx_bzK2lP5cBmCxiVeQFezTjpU/edit#gid=0
 
  • Like
Reactions: PikaStitch

katrain

Well-Known Member
Newcomer
Joined
Apr 3, 2015
Messages
79
Trophies
0
Location
Virginia
XP
94
Country
United States
Hey, just wondering if it be possible to force club lol to open via hex editing? I got the signatures, gave the sheet to shrunk, waited around a week for it to be built. But it never happened. It's been almost a month. I had no trouble with club lol on my last town. I've looked at other threads, nothing worked. I know main street upgrades haven't been fully figured out yet. Figured it'd be worth it to ask.

tldr; club lol hasn't opened after 2 months. do we yet know how to force it to open?
 

Kippy

Well-Known Member
Member
Joined
Mar 21, 2015
Messages
145
Trophies
0
Age
23
XP
121
Country
United States
Hey, just wondering if it be possible to force club lol to open via hex editing? I got the signatures, gave the sheet to shrunk, waited around a week for it to be built. But it never happened. It's been almost a month. I had no trouble with club lol on my last town. I've looked at other threads, nothing worked. I know main street upgrades haven't been fully figured out yet. Figured it'd be worth it to ask.

tldr; club lol hasn't opened after 2 months. do we yet know how to force it to open?

Hmmm...did you hack your game before building it? Oh and did you use the pwp unlocking qr code?
 

regigiygas

??? bees maybe
Member
Joined
Mar 17, 2015
Messages
172
Trophies
0
Age
30
XP
134
Country
United States
anyone know how to modify your bank account?

i dont want to max it out but i'm also too lazy to place bags & manually put them in there, lmao
 

regigiygas

??? bees maybe
Member
Joined
Mar 17, 2015
Messages
172
Trophies
0
Age
30
XP
134
Country
United States
leaftools has a qr for filling your open slots in your locker with 99k bell bags.
which still requires that i put the into my bank account manually.


i'm looking to directly modify the amount of bells i have in my bank account.
 

samiam144

Régulier
Member
Joined
Aug 19, 2007
Messages
2,875
Trophies
0
XP
1,742
Country
Canada
leaftools has a qr for filling your open slots in your locker with 99k bell bags.
which still requires that i put the into my bank account manually.


i'm looking to directly modify the amount of bells i have in my bank account.

If you have action replay knowledge, you can try making a cheat with ARCode
 

katrain

Well-Known Member
Newcomer
Joined
Apr 3, 2015
Messages
79
Trophies
0
Location
Virginia
XP
94
Country
United States
Hmmm...did you hack your game before building it? Oh and did you use the pwp unlocking qr code?
No, I started this town a month before the hacks came out. It should have been built long ago. I used the pwp unlocker, too. But club lol isn't supposed to be in the pwp list in the first place.
 

Kippy

Well-Known Member
Member
Joined
Mar 21, 2015
Messages
145
Trophies
0
Age
23
XP
121
Country
United States

Kippy

Well-Known Member
Member
Joined
Mar 21, 2015
Messages
145
Trophies
0
Age
23
XP
121
Country
United States
leaftools has a qr for filling your open slots in your locker with 99k bell bags.
which still requires that i put the into my bank account manually.


i'm looking to directly modify the amount of bells i have in my bank account.

Oh they have one for the bank too. It's called bank breaker I think...I tried it and it works.
 

regigiygas

??? bees maybe
Member
Joined
Mar 17, 2015
Messages
172
Trophies
0
Age
30
XP
134
Country
United States
Oh they have one for the bank too. It's called bank breaker I think...I tried it and it works.
thats the thing tho, I don't want to be filthy stinking rich but I don't want to be dirt poor either


and I'm a lazy sack of trash so I don't want to put the bells in my account in-game
I want to go up to my ABD and just see like 10mil or something, yanno???
 

kirekun

Well-Known Member
Newcomer
Joined
Nov 2, 2014
Messages
77
Trophies
0
XP
117
Country
I tested my theory. Here's a summary, for those who missed it: the game uses your hidden town ID to determine the colors of your town hall and station. 0x5C738-0x5C739 is just one instance of your town ID, it is also committed to memory at many other offsets. Changing one instance but not the others causes conflicts. (WARNING: when modifying the town ID, do NOT change both values to 00. Changing your town ID to 0000 bricks the game to the extent that even holding down ABXY won't bring up the prompt to format your data. Proceed with caution.) Here's what I did to test it:
I wrote a letter and saved it at the post office, then I made a pattern and saved it at Able Sisters. I then spoke to all my villagers. After that, I made a RAM dump:

9nKUDjW.png


My town ID is 1DB0. B0 = red station, so I changed it to 02 for a blue station. As I said in my original post, the town ID appears to always precede your town name. Just replacing all instances of 1DB0 with 1D02 (or worse, all instances of B0 with 02) would mean some unrelated bytes could get changed in the process. We don't want that, so I copied everything from 0x5C738 to 0x5C749 (the end of my town name):

Dr2O2sE.png


I then replaced the bytes, like so:

cUQSoyd.png


The underlined byte is the only one I changed, but as I said, I did it this way to ensure no unrelated instances of 1DB0 would get changed in the process. 88 instances (the number of instances will vary from game to game) of 1DB0 followed by my town name were replaced.

I then injected the modified file. My station changed to blue, but more importantly: all of my villagers continued to recognize me (or rather, recognized that we had last spoken earlier that day), and I could send mail. As I thought would be the case, the game no longer recognized the letter I stored as being composed in my town, nor did it recognize the pattern I stored as being of my creation (although I could place them in my inventory, I couldn't send the letter or edit the pattern). The way to fix this would be by dumping the RAM after moving old letters/patterns into the inventory, and replacing the old ID (in my case, 1DB0) appended to them with the new ID (in my case, 1D02). It'd be a hassle to do each time, but at least it's possible.

With that being said, it should be safe to modify your town ID in order to change the color of your town hall/station, as long as you update all other instances of the ID as well. However, any stored mail or patterns you have will retain the old town ID, as it isn't part of the RAM we're dumping. Similarly, villagers who moved to someone else's town from yours would retain your old town ID (however, they should still recognize you as long as your character's ID and name are the same. They just wouldn't know their origin town was the same as yours, I think). There may be more scenarios like this, but for now, these are the only ones that have crossed my mind.
My apologies, as the following information is somewhat redundant. The colors of the town hall and station loop in this order:
Town Hall:
00 = Gray
01 = Brown
02 = Green
03 = Blue

Station:
00 = Red
01 = Green
02 = Blue
03 = Brown
If you take a given number mod 4, it'll always coincide with 0-3 according to that list (F9 mod 4 is 1, C2 mod 4 is 2, 0F mod 4 is 3, and so on). Of course, this is because as Wizardy said, it uses the two least significant bits of a byte to determine the color.


Do I get this correctly?
0x5C738 Contains the information about the town hall. Yours is in 1D so the color of your town hall would be Brown (0x1D mod 0x4 = 0x1)
0x5C739 Contains the information about the the train station.

--- In the back of my mind
{0x5C738,0x5C739} <= { Town Color , Station Color };
 

ayaya

Member
Newcomer
Joined
Mar 30, 2015
Messages
8
Trophies
0
XP
74
Country
United States
Do I get this correctly?
0x5C738 Contains the information about the town hall. Yours is in 1D so the color of your town hall would be Brown (0x1D mod 0x4 = 0x1)
0x5C739 Contains the information about the the train station.

--- In the back of my mind
{0x5C738,0x5C739} <= { Town Color , Station Color };
Yes, that is correct.
 

Kippy

Well-Known Member
Member
Joined
Mar 21, 2015
Messages
145
Trophies
0
Age
23
XP
121
Country
United States
thats the thing tho, I don't want to be filthy stinking rich but I don't want to be dirt poor either


and I'm a lazy sack of trash so I don't want to put the bells in my account in-game
I want to go up to my ABD and just see like 10mil or something, yanno???

Yeah...I don't think there is anything else you can do.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    Thanks for signing up at LinusTechTips
  • QuarterCut @ QuarterCut:
    holey shmoley!
  • BigOnYa @ BigOnYa:
    Your credit card has been charged. Thank you.
  • K3Nv2 @ K3Nv2:
    Your screwdriverPlus will arrive in three weeks
    +1
  • QuarterCut @ QuarterCut:
    K64_Waddle_Dee_Artwork_1.jpg

    my reaction to such information
    +2
  • BigOnYa @ BigOnYa:
    Press 1 for English. Press 2 for Pig Latin. Or press 3 to speak to a representative.
  • BakerMan @ BakerMan:
    guys, i need help, i got into an argument about what genre radioactive is, and i forgot who made it
  • Sicklyboy @ Sicklyboy:
    @BakerMan, Imagine Dragons
  • Sicklyboy @ Sicklyboy:
    Dragon deez nuts across yo face GOTEEM
  • Sicklyboy @ Sicklyboy:
    lmao now I realize that was probably the joke in the first place
    +1
  • BakerMan @ BakerMan:
    IMAGINE DRAGON DEEZ NUTS ACROSS YO- FUCK HE BEAT ME TO IT
  • BigOnYa @ BigOnYa:
    You have selected 4 - Death by Snu Snu, please stand by...
    +1
  • BakerMan @ BakerMan:
    lucky bastard
    +1
  • Sicklyboy @ Sicklyboy:
    hahahaha I'm half way through a bag off my Volcano and my tolerance is way down because I haven't been smoking much lately, so I was a little slow to catch that that was what your angle was 🤣🤣
    +1
  • Sicklyboy @ Sicklyboy:
    Also I was just excited to know a music reference for once (I am the LAST person in the world that you want on your trivia team)
    +2
  • K3Nv2 @ K3Nv2:
    Bummer webos 7.4 isnt working with dejavuln-autoroot
  • Sicklyboy @ Sicklyboy:
    PS4 right? I think that's what mine's on. Or 5.6, maybe.
  • K3Nv2 @ K3Nv2:
    [!] Installation failed (devmode_enabled not recognized)
  • K3Nv2 @ K3Nv2:
    0.5 seemed to work whatever lol i wont bitch
  • Alysh_Graham @ Alysh_Graham:
    Hehehe
    Alysh_Graham @ Alysh_Graham: Hehehe