Jump to content
  • 0

Anyone know the interface color offsets in the debug ROM?


FixtySour
 Share

Question

I've been looking all over for them without success. I attempted to follow a tutorial I found by orbitaldecay in order to convert the virtual address into N64 addresses using Nemu, but the offset I came out with wasn't in the ROM. I tried again multiple times in the event that I screwed up a step, but still nothing. Anyone know what offsets the interface colors are located at? I'd really appreciate it.

 

Another issue that isn't nearly as important: I attempted to figure out the color offsets for the file select screen, but just like the interface, I came out with nothing. A search of the forums brought up a several year old thread by xdaniel which stated that most of the colors for the file selection were hard-coded, but a small amount of it could be changed via hex. Has anyone managed to figure out where those values are?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

When you say the interface, do you mean the HUD? Like A, B buttons and the like?

 

I am not sure if this has what you are looking for but it has a little bit on colors of interface items and it might prove a useful starting point:

http://wiki.spinout182.com/w/Code_notes

 

Also, if its the buttons, why not just import a different color button directly into the ROM with Texture Exporter?

Link to comment
Share on other sites

  • 0

I did take a look a those, but they're only usable as Gameshark codes. I'd like to modify the colors directly. And yeah, by interface I meant the HUD buttons. Sorry if I was unclear! Can't edit the HUD by importing a new texture because the format that the buttons are in doesn't support RGB, and changing the format screws things up with TE.

Link to comment
Share on other sites

  • 0

Something I made a while back.

;;;;;;;;;;;;;;;;;
;;A BUTTON
;;;;;;;;;;;;;;;;;
.org 0x80110F3C
ADDIU T6, R0, 0x0064 ;A Button Red
SH T6, 0x0AC0(T5)
.org 0x80110F08
ADDIU T7, R0, 0x00C8 ;A Button Green
.org 0x80110F1C
ADDIU T9, R0, 0x00FF ;A Button Blue
;;;;;;;;;;;;;;;;;
;;B BUTTON
;;;;;;;;;;;;;;;;;
.org 0x80110EE8
ADDIU T6, R0, 0x0064 ;B Button Red
.org 0x80110EF4
ADDIU V1, R0, 0x00FF ;B Button Green
.org 0x80110F10
ADDIU T9, R0, 0x0078 ;B Button Blue
SH T9, 0x06EE(T8)
;;;;;;;;;;;;;;;;;
;;C BUTTONS
;;;;;;;;;;;;;;;;;
.org 0x801110E8
ADDIU T5, R0, 0x00FF ;C Button Red
.org 0x80111494
ADDIU T8, R0, 0x00FF ;C Button Green
.org 0x801114B4
ADDIU T6, R0, 0x0000 ;C Button Blue
SH T6, 0x07E6(T9)
;;;;;;;;;;;;;;;;;
;;START BUTTON
;;;;;;;;;;;;;;;;;
.org 0x80089180
LUI AT, 0x7878 ;START Button Red & Green
ORI AT, AT, 0x7800 ;START Button Blue
And as a gameshark code:

 

81110F3C 240E
81110F3E 00XX ;XX = A Button Red (0x64 for MM color)
81110F40 A5AE
81110F42 0AC0
81110F08 240F
81110F0A 00XX ;XX = A Button Green (0xC8 for MM color)
81110F1C 2419
81110F1E 00XX ;XX = A Button Blue (0xFF for MM color)
81110EE8 240E
81110EEA 00XX ;XX = B Button Red (0x64 for MM color)
81110EF4 2403
81110EF6 00XX ;XX = B Button Green (0xFF for MM color)
81110F10 2419
81110F12 00XX ;XX = B Button Blue (0x78 for MM color)
81110F14 A719
81110F16 06EE
811110E8 240D
811110EA 00XX ;XX = C Button Red (0xFF for MM color)
81111494 2418
81111496 00XX ;XX = C Button Green (0xFF for MM color)
811114B4 240E
811114B6 00XX ;XX = C Button Blue (0x00 for MM color)
811114B8 A72E
811114BA 07E6
81089180 3C01
81089182 XXYY ;XX = START Button Red (0x78 for MM color) YY = START Button Green (0x78 for MM color)
81089184 3421
81089186 XX00 ;XX = START Button Blue (0x78 for MM color)
Edit:

Note that the addresses is for RAM as can be seen. But it's built to work as a ROM hack, since it changes that ASM. You'd need to recalculate the addresses.

You can do it automatically by using my ROM Patcher, here's the code for it:

var,dma,0x12F70
var,code,[{dma}+0x10*28]
var,codeRAMtoROM,{code}-0x8001CE60
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Patch
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;A Button Red (0x64)              RR
{codeRAMtoROM}+0x80110F3C, 240E 0064 A5AE 0AC0
;A Button Green (0xC8)            GG
{codeRAMtoROM}+0x80110F08, 240F 00C8
;A Button Blue (0xFF)             BB
{codeRAMtoROM}+0x80110F1C, 2419 00FF
;B Button Red (0x64)              RR
{codeRAMtoROM}+0x80110EE8, 240E 0064
;B Button Green (0xFF)            GG
{codeRAMtoROM}+0x80110EF4, 2403 00FF
;B Button Blue (0x78)             BB
{codeRAMtoROM}+0x80110F10, 2419 0078 A719 06EE
;C Button Red (0xFF)              RR
{codeRAMtoROM}+0x801110E8, 240D 00FF
;C Button Green (0xFF)            GG
{codeRAMtoROM}+0x80111494, 2418 00FF
;C Button Blue (0x00)             BB
{codeRAMtoROM}+0x801114B4, 240E 0000 A72E 07E6
;S Button RGB (0xFF,0x82,0x3C)  RRGG      BB
{codeRAMtoROM}+0x80089180, 3C01 FF82 3421 3C00
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  • Like 1
Link to comment
Share on other sites

  • 0

I at one time had all the conversions done and the physical addresses for the buttons listed and I think it's floating around in a thread somewhere but since then as CloudMax said, he created a patcher to do all this kind of work for you. He's been a big help to the Zelda hacking community. There's also places in the ROM that you can edit to move the buttons and icons/text around the screen and keep it permanent if that's also something you're interested in.

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.