Where are the... Sprites

Share and discuss all facets of DKC ROM hacking...

Where are the... Sprites

Postby Cyclone » October 26th, 2024, 9:50 am

Hi,

I can't find the addresses of the sprite heads that are on the map screen.
Expedition Leader
Bananas received 559
Posts: 1253
Joined: 2008

Re: Where are the map 'Head' sprites?

Postby Mattrizzle » October 28th, 2024, 11:56 pm

The map heads share sprite ID $0088. IDs less than $008C (D.K.'s first one) are handled differently from the others in that they do not load their own graphics.
Veteran Venturer
Bananas received 222
Posts: 559
Joined: 2008

Re: Where are the map 'Head' sprites?

Postby Cyclone » October 29th, 2024, 6:41 am

Thanks Mattrizzle.

Sorry for sounding dumb but what is the address of the first tile of a map head sprite? I have been spelunking through the hex editor but I'm lost.
Do they have headers like the other sprites?

This is the info I get in the editor,

fromeditor.png
fromeditor.png (38.25 KiB) Viewed 2713 times
Expedition Leader
Bananas received 559
Posts: 1253
Joined: 2008

Re: Where are the map 'Head' sprites?

Postby Mattrizzle » October 30th, 2024, 9:58 pm

The graphics for the map icons start at $20000 (SNES $C20000). They do not have a header.
dkc1_map_icons_yychr.PNG
dkc1_map_icons_yychr.PNG (71.77 KiB) Viewed 2523 times


These header bytes don't exist for sprite IDs under $008C:
dkc1_dma_bytes_from_cyclone_editor.PNG
dkc1_dma_bytes_from_cyclone_editor.PNG (3.89 KiB) Viewed 2523 times
Veteran Venturer
Bananas received 222
Posts: 559
Joined: 2008

Re: Where are the map 'Head' sprites?

Postby Cyclone » October 31st, 2024, 12:24 pm

Thanks. Got it working now!

1608.png
1608.png (307 Bytes) Viewed 2423 times
Expedition Leader
Bananas received 559
Posts: 1253
Joined: 2008

Re: Where are the map 'Head' sprites?

Postby Mattrizzle » October 31st, 2024, 11:09 pm

Close, but the coordinates don't look right. Since DMA bytes don't exist for sprite IDs less than $008C, the tile x- and y- coordinate array begins immediately after "1x1 offset (group 2)", as shown highlighted in blue below:
dkc1_sprite_0088_header_and_coords_in_hxd.png
dkc1_sprite_0088_header_and_coords_in_hxd.png (18.87 KiB) Viewed 2369 times

The rest of the header is shown highlighted in maroon. $227F7F (SNES $E27F7F) is unrelated to the map head sprites--it's the start of the header for an unused shadow sprite not present in the pointer table.
Veteran Venturer
Bananas received 222
Posts: 559
Joined: 2008

Re: Where are the map 'Head' sprites?

Postby Cyclone » November 1st, 2024, 3:08 am

How are the coordinates wrong?
I compared it to the spriters resource one and they look the same to me?

1.png
1.png (821 Bytes) Viewed 2350 times
Expedition Leader
Bananas received 559
Posts: 1253
Joined: 2008

Re: Where are the map 'Head' sprites?

Postby Mattrizzle » November 1st, 2024, 3:20 am

The head appears near the upper left corner of the 256x256 image you uploaded. Based on the proper coordinates (X:128, Y:120 or $78 $70 in hexadecimal) it should appear near the center.

The arrangement of the tiles don't look weird in this case because it's made up of only one 2x2 OAM tile and nothing else.
Veteran Venturer
Bananas received 222
Posts: 559
Joined: 2008

Re: Where are the map 'Head' sprites?

Postby Cyclone » November 1st, 2024, 3:55 am

I couldn't find the coordinates for the map sprites...

hex.png



Here is one with more then 1 2x2, correct?

1607.png
1607.png (979 Bytes) Viewed 2347 times
Expedition Leader
Bananas received 559
Posts: 1253
Joined: 2008

Re: Where are the map 'Head' sprites?

Postby Mattrizzle » November 1st, 2024, 4:42 am

Cyclone wrote:I couldn't find the coordinates for the map sprites...

They're at 227F7D-227F7E for sprite ID $0088, 5 bytes after the start of the header. Look at the hex editor image in my last post.

OAM X- and Y- coordinates always come after the header bytes, even when there aren't graphics.

Here is one with more then 1 2x2, correct?

Yes, and the coordinates are correct in that image. However, that Rambi sprite has the VRAM/DMA group bytes in its header. Sprite IDs $0004 through $0088 do not.
(Sprite $0000 is another special case. It's always blank.)
Veteran Venturer
Bananas received 222
Posts: 559
Joined: 2008

Re: Where are the map 'Head' sprites?

Postby Cyclone » November 1st, 2024, 9:22 am

Mattrizzle wrote:The map heads share sprite ID $0088. IDs less than $008C (D.K.'s first one) are handled differently from the others in that they do not load their own graphics.


So the map icons all have the same X Y coordinates and said coordinates are located in the same spot in the ROM?

Below are a few sprites.

1609.png
1609.png (312 Bytes) Viewed 2300 times


1610.png
1610.png (308 Bytes) Viewed 2300 times


1611.png
1611.png (315 Bytes) Viewed 2300 times
Expedition Leader
Bananas received 559
Posts: 1253
Joined: 2008

Re: Where are the map 'Head' sprites?

Postby Mattrizzle » November 7th, 2024, 4:22 am

Yes. They differ only in what VRAM offset and palettes are used by each sprite (determined by a table in RAM starting at $0C69).

They look good now!
Veteran Venturer
Bananas received 222
Posts: 559
Joined: 2008

Re: Where are the map 'Head' sprites?

Postby Cyclone » November 7th, 2024, 4:55 am

Thanks for the confirmation Mattrizzle. :)

If ya feel like taking a gander I extracted and ordered all the map head icons and put them in a zip archive.

Map_Icons.zip
(20.75 KiB) Downloaded 52 times
Expedition Leader
Bananas received 559
Posts: 1253
Joined: 2008

Re: Where are the... Sprites

Postby Cyclone » November 13th, 2024, 11:09 am

Hello, I came across a few more missing sprites. The DK Barrel, and Millstones.

Are the barrels made up of two sprites overlay ed?

Edit*

I would like to figure this out on my own, but need direction.

Thanks
Expedition Leader
Bananas received 559
Posts: 1253
Joined: 2008

Re: Where are the... Sprites

Postby Mattrizzle » November 14th, 2024, 3:44 am

Are the barrels made up of two sprites overlay ed?

Yes. In DKC1 and 2, the DK emblem is separate from the shaking barrel. DKC3 modified the sprite rendering function so that certain sprites can use two palettes for their tiles, so the emblem and barrel are combined in that game.

Aside from the Gnawties operating them, the Millstones aren't sprites. They're part of background layer 2 in the temple levels.
Veteran Venturer
Bananas received 222
Posts: 559
Joined: 2008

Re: Where are the... Sprites

Postby Cyclone » November 15th, 2024, 11:33 am

Good to know thanks, I bet they are compressed right?

Also the small animal tokens are not in your sprite viewer. How can I locate them? I want to learn how to locate them in the YY-CHR.NET

Thanks!
Expedition Leader
Bananas received 559
Posts: 1253
Joined: 2008

Re: Where are the... Sprites

Postby Mattrizzle » November 16th, 2024, 4:33 am

The millstones reuse multiple tiles across their animation frames, but I can't recall if they're compressed with the terrain graphics for the temple or uncompressed elsewhere in the ROM.

The animal tokens should be uncompressed in the ROM in 4bpp SNES format just like the map icons and bananas.
Veteran Venturer
Bananas received 222
Posts: 559
Joined: 2008

Re: Where are the... Sprites

Postby Cyclone » November 16th, 2024, 1:06 pm

So... I know were the bananas are located But I don't know how to use the palette editor to find them... I just get gibberish. I tried increasing / decreasing the bits. I loaded a save state as well and scrolled through the ROM.

Location_Of_Banana.png


Below is proof I'm not totally going bananas lol.

Winky_Token.png
Winky_Token.png (1.35 KiB) Viewed 1581 times
Expedition Leader
Bananas received 559
Posts: 1253
Joined: 2008

Re: Where are the... Sprites

Postby Cyclone » November 16th, 2024, 1:38 pm

Well I found part of of a banana

Part_Of_Banana.png
Expedition Leader
Bananas received 559
Posts: 1253
Joined: 2008

Re: Where are the... Sprites

Postby Cyclone » November 18th, 2024, 10:46 am

I found the small animal Tokens.

Now how do I find the address of the first tile in that program?

Animal_Tokens_Small.png


and the Millstones
millstone.png
Expedition Leader
Bananas received 559
Posts: 1253
Joined: 2008

Re: Where are the... Sprites

Postby Cyclone » November 21st, 2024, 9:31 am

I was able to locate and extract the first tile of the Millstone.
Where is the array of tile coordinates and does it have a header?

Thanks

MIllstone_Hex_First_Tile.png
Expedition Leader
Bananas received 559
Posts: 1253
Joined: 2008

Re: Where are the... Sprites

Postby Cyclone » December 3rd, 2024, 7:03 am

Good Day,

Just wondering. The Mine Elevator platform is not working in my program. Does it differ somehow to the other sprites?
I used the Address in the sprite viewer and converted it to a PC address but it gives a bunch of corrupted tiles.

Do I have to manually assemble the sprite tiles?

Mine_Platform_Pallette.png
Mine_Platform_Pallette.png (43.4 KiB) Viewed 184 times

Location_Hex.png
Expedition Leader
Bananas received 559
Posts: 1253
Joined: 2008


Return to ROM Hacking

Who is online

Users browsing this forum: No registered users and 17 guests