• Welcome to Smashboards, the world's largest Super Smash Brothers community! Over 250,000 Smash Bros. fans from around the world have come to discuss these great games in over 19 million posts!

    You are currently viewing our boards as a visitor. Click here to sign up right now and start on your path in the Smash community!

Using Dolphin Debug to write Gecko Codes?

Ebola16

Smash Rookie
Joined
May 8, 2016
Messages
7
I posted this on Dolphin Emulator's forums and KCMM but I thought I'd join this forum and see if anyone could offer assistance here too.

(Original Post: https://forums.dolphin-emu.org/Thread-using-dolphin-debug-to-write-gecko-codes)
"Hello,

I recently registered on this forum but I'm pretty familiar with Dolphin. I want to attempt to make a Gecko code but I have no programming background (or USB Gecko). I'm attempting to modify the Brawl Expansion Project (Brawlex) for Super Smash Bros. Brawl (http://forums.kc-mm.com/index.php?topic=65113.0). Brawlex increased Brawl's moveset limit to 100 but I'd like to expand that limit to 105.

Theoretically, Brawlex supports up to ~120 movesets but support was stopped at 100 due to character select screen's (CSS) limitations. I recently figured out how edit the CSS slot alignment using Brawlbox and added 5 more slots (http://i.imgur.com/Odmh1HK.png). I have properly configured the new 5 movesets's files to load however Dolphin's logs indicate that Dolphin doesn't even try reading files for the added 5 movesets.
Also, this code is able to modify the number and order of slots that appear on the CSS:
Custom CSS V3 [spunit262]
0668310C 00000030
387E006C 3B600000
3C808068 38840DE0
7CBB20AE 7CA50775
41800014 94A30004
3B7B0001 2C1B0032
4180FFE8 48000038
04690338 48000068
066900d8 00000008
2c170028 41820168
02680DE0 0022FFFF
06680DE0 000000YY <---- CSS Icon Count
ZZZZZZZZ ZZZZZZZZ <---- Icon data


Brawlex integrated the functionality of this code into common3.pac's sora_menu_sel_char.rel and reads the Icon data from a new file called CSSRoster.dat. This also shifted how the addresses load so the code cannot be used anymore.

Since I am using the max number of CSS slots (100 or 0x64), I suspect that the game is hard coded to not accept more than 0x00000064 for the CSS icon count. My idea is to find and increase this value to 0x00000069 and see if that solves the problem. I was able to load my codes into debug mode by loading them through GeckoOS's .elf file but Dolphin's memory and code tabs are a bit confusing to me. The best information I could find was a tutorial for using Wiird but I do not have a USB Gecko (https://www.youtube.com/watch?v=TaEtr3AviYg). This has led to the following questions:

1. For what I want to do, should I use normal dolphin with the /d argument or a DEBUGFAST build? If I need a DEBUGFAST build, can someone point me to a download for a working one? Apparently DEBUGFAST occasionally has broken functionality on certain builds.
2. Which tab in Dolphin should I be looking at and where is the box where I can enter values that I want to search for? I'd like to see some information on how to repeatedly search for a u32 value of 0x00000064 using dolphin debug while removing changed entries from previous searches. I'll then attempt to write a Gecko code using that address and the Gecko Codetype information (http://geckocodes.org/index.php?arsenal=1#)

Feel free to let me know if I'm misunderstanding something too. I'd at least like to try changing that value even if it doesn't fix the problem. Thanks!"
 

Ebola16

Smash Rookie
Joined
May 8, 2016
Messages
7
Found what I was looking for in Dolphin.
Enable Cheats must be on.
Tools -> Cheat Manager -> Cheat Search
Now I can move forward.
 
Top Bottom