Darthatron
巨大なトロール。
- 1,152
- Posts
- 19
- Years
- Age 33
- Melbourne, Australia
- Seen Feb 3, 2015
I don't know the capabilities of NSE, but this should work fine; At 0x3A5158 in the ROM, there is a list of data structures:Wow, I can't beleive I missed the most important bit of information. x.x Anyways I am using fire red, and I want to be able to use that palette in NSE (Nameless Sprite Editor).
Code:
0x0 - Pointer to palette
0x4 - Half-word for palette number.
0x6 - Buffer (0x0000)
So, in the ROM it's this data:
Code:
Pointer # Buf
------------------
28D83608 0311 0000 ;Pal #03
48D83608 0411 0000 ;Pal #04
68D83608 0511 0000 ;Pal #05
88D83608 0611 0000 ;Pal #06
A8D83608 0711 0000 ;Pal #07
C8D83608 0811 0000 ;Pal #08
E8D83608 0911 0000 ;Pal #09
08D93608 0A11 0000 ;Pal #10
68B93508 0011 0000 ;Pal #00
68E93508 0111 0000 ;Pal #01
88E93508 0211 0000 ;Pal #02
08803908 0B11 0000 ;Pal #11
28803908 0C11 0000 ;Pal #12
68B93508 1011 0000 ;Pal #16
68E93508 1111 0000 ;Pal #17
A84E3908 1311 0000 ;Pal #19
E85A3908 1511 0000 ;Pal #21
C8523908 1411 0000 ;Pal #20
00000000 0000 0000 ;End structure
What you have to do is repoint this data to somewhere with free space. There are pointers at 0x05F4D8, 0x05F570 and 0x05F5C8.
So, the repointed data will look as such:
Code:
;Pointer # Buf
;-----------------
28D83608 0311 0000 ;Pal #03
48D83608 0411 0000 ;Pal #04
68D83608 0511 0000 ;Pal #05
88D83608 0611 0000 ;Pal #06
A8D83608 0711 0000 ;Pal #07
C8D83608 0811 0000 ;Pal #08
E8D83608 0911 0000 ;Pal #09
08D93608 0A11 0000 ;Pal #10
68B93508 0011 0000 ;Pal #00
68E93508 0111 0000 ;Pal #01
88E93508 0211 0000 ;Pal #02
08803908 0B11 0000 ;Pal #11
28803908 0C11 0000 ;Pal #12
68B93508 1011 0000 ;Pal #16
68E93508 1111 0000 ;Pal #17
A84E3908 1311 0000 ;Pal #19
E85A3908 1511 0000 ;Pal #21
C8523908 1411 0000 ;Pal #20
;New Palette stored at 0x800000 in the ROM.
00008008 1611 0000 ;Pal #22
00000000 0000 0000 ;End structure
Also, you will have to edit which palette it overwrites in game, which is done by editing a half-byte in the OW Data. Once you get this part done, PM me and I will tell you how to do that.