[Spider] Animal Crossing: New Leaf RAM Editing Thread

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by AquaX101, Mar 24, 2015.

  1. AquaX101
    OP

    AquaX101 GBAtemp Advanced Fan

    Member
    714
    165
    Apr 15, 2014
    United States
    Somewhere
    Margen67 likes this.


  2. Kippy

    Kippy GBAtemp Regular

    Member
    145
    21
    Mar 21, 2015
    United States
    Map editor: https://mega.co.nz/#!2s5BDJTD!rgjqceDxkrnQZf56L-IZbg1E0hWTpvTH89eZ-9PaX_M
    And now for some things I would suggest you to use
    Powersaves- in case you brick your game which is (i think) when your game won't load and says there is an error. You can't inject a working file if this happens, but Powersaves restores backups to the cart, so you never need to get in-game
    Physical cart- Powersaves only works on this
    If you use a digital copy for minor hacks, that's fine. But don't edit the cliff with the waterfall going to the beach to make an island, the game won't work then. If you are going to make a map edit and are not sure if it will work, ask. I learned this the hard way, I bricked 2 save files, had to start all over.
     
  3. AquaX101
    OP

    AquaX101 GBAtemp Advanced Fan

    Member
    714
    165
    Apr 15, 2014
    United States
    Somewhere
  4. Kippy

    Kippy GBAtemp Regular

    Member
    145
    21
    Mar 21, 2015
    United States
    Oh i found and added the map editor too! Had to use a link that was posted in the old thread, the original link led to a 404. It works though, I downloaded it.
     
    AquaX101 likes this.
  5. MasterLel

    MasterLel /x69/x73/x73/x6f/x75

    Member
    1,244
    450
    Mar 14, 2015
    France
    France
    Things I'm gonna try :

    -Change the island tours : X
    -Move the big waterfall / place multiple waterfalls
    -Change the TPC birth date, registration date and dream code (to be able to visit your own dream)
    -Change game's region : ~
    -Change the island map, place PWP/houses there
    -Add best friends in the ram
     
  6. Cey

    Cey Advanced Member

    Newcomer
    96
    33
    Mar 21, 2015
    United States
    In regards to relocating your plaza: I discovered all events are tied to the COBBLESTONE acre, not to the Plaza Tree itself (the event plaza is two separate pieces -- the plaza tile / ground itself, and the plaza tree).

    Wherever you move the PLAZA COBBLESTONE acre via the Map Editor, that is where the events and vendor tents will now take place (including things like Hide and Seek!), REGARDLESS of where your Plaza Tree is (which also has to be moved separately through the RAM editor). I thought they were going to be tried to the tree, but it's actually tied to the ground. This is true regardless of which plaza cobblestone you use, even if you changed it from the one you had prior.

    The location of your plaza tree has no effect on events. Also, it doesn't seem to be required to be on the corresponding cobblestone tile. By that I mean, you can have your plaza tree anywhere, separate from the plaza cobblestone -- of course it makes more sense to have it in the middle of the cobblestone, but it's not necessary. My tree is currently sitting in the middle of a lake, under water, several tiles away, and I'm still able to play hide-and-seek and visit the plaza vendors on the cobblestone tile. I've been too lazy to move it yet while I work on the development permit in this new town. It hasn't affected anything at all while I do things / talk to villagers / play games.

    I haven't tested removing the plaza entirely, but I assume this would a) prevent the game from loading or b) at least prevent you from experiencing events related to the plaza.
     
    MasterLel likes this.
  7. MasterLel

    MasterLel /x69/x73/x73/x6f/x75

    Member
    1,244
    450
    Mar 14, 2015
    France
    France
    What if you put two plaza cobblestone acres ?
     
    Cey likes this.
  8. Cey

    Cey Advanced Member

    Newcomer
    96
    33
    Mar 21, 2015
    United States
    Changing Your Town's Fruit Type / Native Fruit

    This change currently requires hex editing through a hex editor (I'm using HxD Hex Editor). If you don't know how to hex edit, you might do a little research first.

    That said...

    [ credit to sopheroo for locating offset ]

    I've determined the remaining fruit byte identifiers, and they are as follows:

    01 = apples as native fruit
    02 = oranges as native fruit
    03 = pears as native fruit
    04 = peaches as native fruit
    05 = cherries as native fruit

    (That order also mathematically explains the probability of getting apples or cherries as your town fruit when generating a town. Ugh.)

    I also confirmed that changing your native fruit in the HEX also changes your native fruit in the dialogue with all NPCs and characters; even if changed at the very beginning of the game when you are still talking to Isabelle about advice for living in town. If changed before you talk to Isabelle about the town native fruit, she will indeed state that the new fruit is the town fruit. So, town fruit can be changed at any time without any ill effect I have found.

    Changing your native fruit type DOES NOT CHANGE ALL OF YOUR TOWN TREES TO THAT FRUIT. So, say you just started your town and you have peaches and want cherries. If you change your native fruit type to cherries, the change WILL go through. Everyone will now acknowledge that the town fruit is cherries. However, all of your peach trees in town will REMAIN peach trees (and yes, if one of them has the perfect peach on it, that tree will remain with the original perfect peach on it as well, and you can shake the tree and harvest the perfect peach if you wish -- however, planting the perfect peach would now cause it to produce a normal peach tree). You must now manually cut down all the peach trees and replace them with cherry trees if you want cherries to be your new fruit trees. Once you change your native fruit to cherries, however, you can plant perfect cherries at will and they will grow into perfect cherry trees as they should. All other fruits will grow into normal fruit trees.
     
    matrix likes this.
  9. MasterLel

    MasterLel /x69/x73/x73/x6f/x75

    Member
    1,244
    450
    Mar 14, 2015
    France
    France
    How to change the TPC region (reset after reloads) :

    So I found how to change the tpc region just for fun, it's not permanent.

    1) Open your hex editor and open your ram file in it
    2) Go at the offset 000055F2
    3) This byte is the town map card region, but the game is configured so that it will, after every reloads, check the console region and then update the town pass region. So you can not permanetly change it this way, impossible.
    4) Replace that byte with another one, 00 for no region, 01 for Japan, 4D for France, etc
    5) Save and inject the same day (day in-game) you've dumped the ram file (so it won't trigger the new day reloading)
    6) ??????
    7) Profit

    Warning: Spoilers inside!
     
  10. CodyMKW

    CodyMKW Advanced Member

    Newcomer
    95
    61
    Mar 23, 2015
    United States
    is there a way to change the town name?

    I found this I guessed was the town name I changed it but nothing changed ingame so apperently it isn't?
    [​IMG]
     
  11. Sopheroo

    Sopheroo Actually Homestuck

    Member
    200
    54
    Mar 13, 2015
    Canada
    Alright, house editing time. I showed what I did to get the golden exterior on a house earlier, now I'm getting in more detail concerning full exterior editing. At the time being, I haven't researched interior (room size) editing. Maybe I'll check how it works this weekend, maybe not. Depends how I feel.

    [​IMG]

    This is the house I'm working with today. It's my player 2's house, but it works with any house (I successfully edited my player 3's house to test)

    House properties are 2 loops of 9 bits, which are in order

    - House size
    - House shape
    - Door shape
    - House color
    - Roof color
    - Door model
    - Fence
    - Pavement
    - Mailbox

    Unlike other items modifier, who use item values, the changes are done with the hex values of the items in Tom Nook's shop. This is because the roof, mailbox, fences and such do not officially exist as items. However, it makes it easy to remember how to change things.

    To know the hex values for each item, I used Marc's hex editor, in the unused item section.

    [​IMG]

    Each category starts again at 00. I just calculated everything using this list.

    Knowing that my basic house over here has

    - A size 2 exterior (It's slightly bigger than the size 1) = 02
    - Mansion shaped (Every house is mansion unless you changed the size after fully expanding, which I obviously didn't do) = 00
    - Arched door = 00
    - Brick exterior (Which is the default for new houses) = 00
    - Blue roof. According to the list, the blue roof has a value of 20. = 20
    - Basic door = 00
    - Hedge fence = 03

    I forgot which pavement I had, but I remembered I had the basic mailbox, so I needed to find a hex string who was pretty much 02 00 00 00 20 00 03 ? 00

    I searched with ctrl+f and I got

    [​IMG]

    A matching string. As you can see, you can see both consecutive loops there. You need to edit both for changes to stick. Otherwise, the changes will go away at 6am.

    I'm going to keep the exterior size and shape the way it is. So, bits 0x590ac and 0x590ad, as well as the loop on 0x590b5 and 0x590b6 are staying the same.

    I'm going to change the door shape for rectangular, though. The bit value for the door shape is binary. It's either rectangular (01) or it's not (00) So, I'm going to change bits 0x590ae and the looping on 0x590b7 for a 01, instead of 00

    Then, I chose the garden exterior. According to Marc's list, the garden exterior's value is 16. Gotta change bit 0x590af's values of 00 to 16, so that I can have the proper exterior. Obviously, you need to change bit 0x590xb8 as well. Always change both bits. Always.

    Next is the roof. I'm going for the mint fairy-tale roof, which has a value of 1b. So, going to replace my blue roof's value of 20 for my other roof at bits 0x590b0 and 0x590b9

    Doing the same with the door, switching the bits at 0x590b1 and 0x590ba for 0d instead of 00 and ta-da! Green door! Since I chose earlier to have a rectangular door, the door will be rectangular. All doors, except for the golden door, come in both shapes.

    I'm keeping my hedge and my pavement, so no change on bits 0x590b2 and 0x590b3 // 0x590bb and 0x590bc

    Finally, the white mailbox is much cuter than the default one, so I just go and change bits 0x590b4 and 0x590bd from 00 to 08.

    Meaning

    [​IMG]

    My values for the house exterior are now this.

    Time to push them, so that I can have a pretty house!

    [​IMG]

    I gave the coordinates for the mayor's house earlier, here they are again.

    Again, the ones above are for the second player, but if you want to edit for another player, here are the informations. For more details concerning what I did to edit the mayor's house, all of my work is on page 59.

     
    Goshi and Cey like this.
  12. MasterLel

    MasterLel /x69/x73/x73/x6f/x75

    Member
    1,244
    450
    Mar 14, 2015
    France
    France
    How to change names / town names :



    1) Open HxD (or any other hex editor) and then open your acnlram.bin file in it

    2) Go to Search > Replace

    3) In the "Search for" field, type your exact actual name in hexadecimal, if it's Chris, it would be 43 68 72 69 73
    But you have to add nullbytes after each bytes of letters to separate them, so you have to type 43 00 68 00 72 00 69 00 73
    This is an example, put your own values.

    Warning: Spoilers inside!

    4) Still in the Replace tab, this time in the "Replace with" field, you type here your desired name the same way as above.

    Let's say our name is Chris (43 00 68 00 72 00 69 00 73), we want Elvis (45 00 6C 00 76 00 69 00 73), so we put "45 00 6C 00 76 00 69 00 73" in this field. This is an example, put your own values. Add nullbytes if needed, don't forget what I said in the spoiler.

    5) Set the datatype as "Hex-values", Check "All" for the search direction, uncheck "Prompt on replace", then click "Replace all"

    6) ???????

    7) Profit

    It's the same process if you want to do it for the town name.
     
    ParfaitDream, neko00, Crezut and 2 others like this.
  13. MasterLel

    MasterLel /x69/x73/x73/x6f/x75

    Member
    1,244
    450
    Mar 14, 2015
    France
    France
    Island tours list seems to not be in the ram file...
    I changed the day to change the tours, then injected an old ram file, they are still the same tours.
     
  14. Kippy

    Kippy GBAtemp Regular

    Member
    145
    21
    Mar 21, 2015
    United States
    How did you figure out the hex codes on the list? I see it goes up from 00 to 09 but then it goes to 1a...and the list has 03 as a mailbox but you then say 03 is a fence...I'm really confused as to how the listing goes
     
  15. Kippy

    Kippy GBAtemp Regular

    Member
    145
    21
    Mar 21, 2015
    United States
    I MADE AN ISLAND!!!!! HOLD ON LET ME POST PICS. THIS ACTUALLY WORKS!!!!
     
    Cey and AquaX101 like this.
  16. AquaX101
    OP

    AquaX101 GBAtemp Advanced Fan

    Member
    714
    165
    Apr 15, 2014
    United States
    Somewhere
    Be sure to show us the map made using the editor too please!
     
  17. Kippy

    Kippy GBAtemp Regular

    Member
    145
    21
    Mar 21, 2015
    United States
    WOOT.PNG
    Game saved and quit because the card thought it was a new day. The game didn't crash
     
  18. Kippy

    Kippy GBAtemp Regular

    Member
    145
    21
    Mar 21, 2015
    United States
    How do I change my town tree's location? It doesn't show up on the buildings tab, and I have no idea how the coordinates work, you can't see them on the map...
     
  19. JJarmon

    JJarmon Advanced Member

    Newcomer
    82
    22
    Mar 10, 2015
    United States
    Somewhere rubbing soap.

    Darn. That's too bad. Thank you for letting us know! I was thinking of removing the cobblestone entirely from the plaza, but something was telling me that the events are coded in there instead. It would love so much prettier without the tiling, but ah well. x'D
     
  20. Cey

    Cey Advanced Member

    Newcomer
    96
    33
    Mar 21, 2015
    United States

    Since the coordinates on the map themselves aren't labeled, you're going to want to do a bit of guesswork. The best thing to do is locate the building or PWP NEAREST where you want to move the plaza, check those coordinates, and then count the squares away (both x and y axis) where you want to put the plaza. It seems hard at first until you visualize it in your head correctly.

    The axis works like this:
    [​IMG]

    So once you know that you can generally make a good guess where things are going to go, and fine-tune it from there. It's easier to count away from a PWP or building that's close by like I said earlier, but you can also make a pretty good guess with the above chart if you play around a bit and see how things move, if you don't have a point to go from.

    The tree itself is on the building list under "town plaza", item number 12 for me.
     
    Goshi likes this.