• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Game Modifications › Cheats, Hacks, & Game Patches v
« Previous 1 2 3 4 5 6 ... 18 Next »

New to Making Gecko Codes - Animal Crossing City Folk
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
New to Making Gecko Codes - Animal Crossing City Folk
08-10-2021, 07:34 AM
#1
pseudo Offline
Junior Member
**
Posts: 1
Threads: 1
Joined: Aug 2021
Bug 
So I've already Ctrl + Z'ed my entire post multiple times and couldn't get it back somehow so I guess I'll try to make it quicker this time.

I learned basic gecko code-making from this this tutorial: https://mkwii.com/showthread.php?tid=830

Using that I tried to make a code for City Folk that allows the player to choose what skin color he/she will be so we don't have to run across the beach every day or use ACToolkit (the tan will fade every day). However the code doesn't work properly as only the limbs and face change color, the rest of the head does not:
[Image: OIDd8mL.png]

I found the address by having 7 additional copies of the save each with a different skin color, searching for the values 0 - 7 in memory engine as I save and quit and replace the game save with that of a different skin color. After repeating the process numerous times just to make sure, I got 80E63963.

I set a memory breakpoint on read at the address, it breaks the game twice. The code looks similar:

lwz r4, 0x221C (r3)

lwz r4, 0x221C (r29)

The game seems to be storing the value at 0x221C + r3 and r29 in r4, but that address isn't exactly 80E63963, its 80E63960. I didn't know if that mattered so I just added "li r4, 01" to the end of both instructions where "01" can be replaced with the skin color of choice. Since both parts require different insertion addresses I made them two separate codes.

The problem with this is I get the result you see above, as the codes I wrote affect the limbs and face but not the rest of the head. The game didn't crash a third time when I tested the breakpoint so I have no idea how to fix this. Also I presume that it will change the skin color of any villager that plays and ideally I'd like to write the codes so it only affects the villager of choice (have a separate code for each villager). There are multiple City Folk codes out there that edit specific villagers inventory, which I'd like to convert back to ASM and reverse engineer but CodeWrite says they aren't valid ASM codes. If these codes can modify values in the game save, and skin color is stored in the game save, I should be able to change the skin color properly too right?

Any thoughts would be appreciated.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode