« on: March 19, 2015, 12:06:53 pm »
This was a write up I had for TSB3 on the SNES. Not sure if the RAM location is universal for all SNES roms. So you may have to look for the RAM location in a different location. But if its the same for all SNES roms then hopefully you'll be able to understand. If not just let me know what doesn't make any sense and i'll try to explain better.
Download the following editing tools:
SNESpal - Use this to edit color pallets.
NOSSNS Emulator with debugger - (This is best for finding graphical things) Has VRAM Veiwer
SNES9X1.43 with Geiger debugger - (This is best for finding codes) *these emulators aren't very good for playing, but great for hacking. This emulator has a disassembler attached. Basically, you type in a location in your rom and the number of bytes that you want disassembled, and it'll break it down into assembly language. This is the best thing you can have when tracking down coding and adding coding. This emulator will allow you to dump ram, disassemble, see color pallet coding, graphic mapping, what's being used, locations codes use and open ram locations when you want to add things.
Cygnus Hex editor - My main hex veiwer/editor.
HxD Hex editor - I use this to compare files. Haven't tried using it to edit hex, but Cygnus is perfect so why bother.
Tile Molestor - This is THE TILE EDITING TOOL. Every bit of graphical editing I've done has been with this. This thing is massive at first but when you get the hang of it, it's the bomb.
zSNES emulator - Might be better ones out there but I haven't looked. This is just the emulator I use to play the game.
Open Office Free - I use this instead of excel cause I'm not paying for excel.
Heres the quick how-to:
SNES Color Pallets (Need Geiger, Hex editor, and SNES Pal)
Color pallets - Pretty simple concept here.
You have to find the color pallets location to use SNESpal, but that's fairly easy.
Open Geiger, run your rom. Click show hex (this will pause the game automatically) You'll see a button marked ROM. Click to reveal the drop down list and change it to RAM. Scroll down and look at RAM location x7E2000. This beginning of the RAM location that the game loads colors into.
It loads in Tecmo Super Bowl 3 like so:
x7E2000 - x7E203F for small pallets (Like the ones used in NES games). These are in 4bit format. These only have 3 colors available (4 total but the first color is always clear.)
x7E2040 - x7E20FF are background colors. These are in 16bit format. Thats 15 colors with first clear.
x7E2100 - x7E210FF are sprite colors. 16 bit format like backgrounds.
Go back to the game and get to the screen of the pallet you're looking for. Go back to the Ram Window and go to these locations. When you get to the screen, just click on show hex and the game will pause. Geiger allows you to edit on the fly with certain things, and colors is one of them. You can 00 out locations in Ram and click back on the game window. This will unpause the game and black out colors. (00 00 = black in hex). Once you find the right RAM location with the right pallet, open your hex editor and your rom. Do a Find command. Type in the remaining hex numbers (about 3 - 4 more color codes, 1D20 1DE5 1E00 ect) from the RAM location you found. Make sure you do Find Next as there are some pallets that use the same Color sequences. Use the hex editor to change the coding and save. Now go back in the game and check to make sure it's the right location. If you found the right location, make note of the ROM location and open up SNESpal. File open your rom, and in the address window type in the location you found. About 99% of the time, the first color will be black. (This doesn't always hold true, but most times it does). Use the little arrows to scroll forward and back in the rom to get to the colors. The color you change it to in SNESpal will be the color the Rom will use. When your done changing the colors, save your rom.
Hope this helps!! Honkey Vanish!!