|
Homebrew Games and Tools If you've created a trainer, texture editor, or a full-blown fangame we'd like to see it here. Show off your mad programming skills. |
|
Thread Tools |
#1
|
||||
|
||||
Diddy Kong Racing Track Headers Found!
About 4 months ago, I looked around the address that TheEpicGameHero found to change Crescent Island's music to "The Secret Tune" for Spyke4995's Beta Restoration hack. It turns out that the address is part of a header that not only determines the music setting for Crescent Island, but also various other things!
These headers are located in the address range 0x003A1550-0x003A4817 in the U V1.0 ROM and 0x003A15E0-0x003A48A7 in the E V1.0 ROM. Each one is 0xC8 bytes in length. Here is a portion of the structure: Code:
Offset Description ------ ----------- 0x00 Seemingly marks which world the track appears in Values: 00 - Central Area 01 - Dino Domain 02 - Sherbet Island 03 - Snowflake Mountain 04 - Dragon Forest 05 - Future Fun Land FF - Cutscenes, dummied tracks 0x34-0x35 Track model Values: 0000 - Central Area 0001 - Walrus Boss, Walrus 2 0002 - Dragon Forest, Dragon Trophy 0003 - Fossil Canyon 0004 - Pirate Lagoon 0005 - Ancient Lake 0006 - Walrus Cove 0007 - Hot Top Volcano 0008 - Whale Bay 0009 - Snowball Valley 000A - **EARLY JUNGLE FALLS** 000B - Crescent Island 000C - Fire Mountain 000D - Dino Domain, Dino Trophy 000E - EverFrost Peak 000F - Sherbet Island, Sherbet Trophy 0010 - Front End, Options Background, Ammy Seq, Stopwatch Ammy 0011 - Character Select Test 0012 - Spaceport Alpha 0013 - Horseshoe Gulch 0014 - Greenwood Village 0015 - Spacedust Alley 0016 - RC Car Sequence 0017 - Boulder Canyon 0018 - Windmill Plains 0019 - Snowflake Mountain, Snowflake Trophy 001A - Smokey Castle 001B - Darkwater Beach 001C - Icicle Pyramid 001D - Frosty Village 001E - Jungle Falls 001F - Treasure Caves 0020 - Haunted Woods 0021 - Darkmoon Caverns 0022 - Star City 0023 - Trophy Race 0024 - Future Fun Land, Space Trophy 0025 - Sequence Area 0026 - Dragon Boss, Dragon 2, Dragon Boss Anim 1 0027 - TrickyTops 1, TrickyTops 2, TrickyTops Anim 1 0028 - Wizpig Mouth Sequence 0029 - Rocket Sequence 002A - Wizpig 1 002B - **UNUSED OCEAN AREA** 002C - **UNUSED VOLCANO AREA** 002D - **UNUSED ICE AREA** 002E - Party Seq 1 002F - Walrus Boss Anim 1 0030 - Wizpig 1 Anim 0031 - Sherbet Boss, Sherbet 2 0032 - Octo Anim 0033 - Wizspacenim 0034 - Wizpig 2 0035 - Lastbit 0036 - Lastbitb 0x36-0x37 Object Map 1 Values: 0044 - Central Area 0045 - ? 0046 - Dragon Forest 0047 - Fossil Canyon 0048 - Pirate Lagoon 0049 - Ancient Lake 004A - Walrus Cove 004B - Hot Top Volcano 004C - Whale Bay 004D - Snowball Valley 004E - Jungle Falls 004F - Crescent Island 0050 - Fire Mountain 0051 - ? 0052 - Dino Domain 0053 - EverFrost Peak 0054 - Sherbet Island 0055 - Front End 0056 - Character Select Test 0057 - Spaceport Alpha 0058 - Horseshoe Gulch 0059 - Greenwood Village 005A - Spacedust Alley 005B - RC Car Sequence 005C - Boulder Canyon 005D - Windmill Plains 005E - Snowflake Mountain 005F - Smokey Castle 0060 - Darkwater Beach 0061 - Icicle Pyramid 0062 - Frosty Village 0063 - ? 0064 - Treasure Caves 0065 - Haunted Woods 0066 - Darkmoon Caverns 0067 - Star City 0068 - Trophy Race 0069 - Future Fun Land 006A - Sequence Area 006B - Wizpig 1 006C - TrickyTops 1 006D - Options Background 006E - Sherbet Boss 006F - Dragon Boss 0070 - Wizpig Mouth Sequence 0071 - Walrus Boss 0072 - Ammy Seq 0073 - Stopwatch Ammy 0074 - Rocket Sequence 0075 - Trickytops 2 0076 - Dino Trophy 0077 - Snowflake Trophy 0078 - Sherbet Trophy 0079 - Dragon Trophy 007A - Space Trophy 007B - Walrus 2 007C - Sherbet 2 007D - Dragon 2 007E - Wizpig 2 007F - ? 0080 - Party Seq 1 0081 - TrickyTops Anim 1 0082 - Dragon Boss Anim 1 0083 - Walrus Boss Anim 1 0084 - Wizpig 1 Anim 0085 - ? 0086 - Octo Anim 0087 - Wizspacenim 0088 - Lastbit 0089 - Lastbitb 0x38-0x39 Background/Skydome Values: 00C4 - Horseshoe Gulch, Boulder Canyon, Trophy Race 00C5 - Central Area, Walrus Boss, Snowball Valley, Sherbet Island, Windmill Plains, Jungle Falls, Sequence Area, Wizpig 1, Sherbet Boss, Dragon Boss, Wizpig Mouth Sequence, Rocket Sequence, Sherbet Trophy, Walrus 2, Sherbet 2, Dragon 2, Party Seq 1, Dragon Boss Anim 1, Walrus Boss Anim 1, Wizpig 1 Anim, Octo Anim, Lastbit, Lastbitb 00C6 - Haunted Woods, Star City 00C7 - **UNUSED** Dark green hills 00C8 - Pirate Lagoon 00C9 - **UNUSED** Space with planets 00CA - Hot Top Volcano, Fire Mountain 00CB - Whale Bay, RC Car Sequence 00CC - Walrus Cove, Everfrost Peak, Snowflake Mountain, Icicle Pyramid, Snowflake Trophy 00CD - Dragon Forest, Crescent Island, Treasure Caves, Dragon Trophy 00CE - Greenwood Village, Smokey Castle 00CF - Spaceport Alpha, Frosty Village, Darkmoon Caverns, Future Fun Land, Space Trophy, Wizspacenim 00D0 - Spacedust Alley 00D1 - Ancient Lake 00D2 - Fossil Canyon 00D3 - TrickyTops 1, TrickyTops 2, TrickyTops Anim 1 00D4 - Darkwater Beach FFFF - Dino Domain, Front End, Character Select Test, Options Background, Ammy Seq, Stopwatch Ammy, Dino Trophy, Wizpig 2 0x3A-0x43 Related to fog thickness/color; If all are 00, there is no fog 0x4B Number of Laps in a Race (01-06 work here; things start to get glitchy beyond this; 00 instantly finishes the race) 0x4C Race Mode Values: 00 - Standard Race 03 - ? (used only in Horseshoe Gulch) 05 - Hub Area 06 - Cutscene (track model disabled?) 07 - Cutscene (track model enabled?) 08 - Boss Race 40 - TT Challenge (Battle) 41 - TT Challenge (Collect Bananas) 42 - TT Challenge (Hatch Eggs) 0x52 Music 0x90-0x9B Weather effects All 00 - No weather effects 01 23 00 00 FF FF 03 6C 00 00 00 00 - Snow(Walrus Cove) 01 9B 00 00 FF FF 00 00 00 00 00 00 - Snow(Everfrost Peak) 01 9E 00 00 FF FF 00 00 00 00 00 00 - Snow(Snowflake Mountain) 00 F4 00 00 FF FF 00 00 00 AC 01 45 - Snow(Frosty Village) 00 08 00 01 9D FF 00 00 00 00 00 00 - Rain(Wizpig 1) 01 9F 00 00 FF FF 00 00 01 19 00 B9 - Snow(Walrus 2) 01 98 00 00 FF FF 00 00 00 00 00 00 - Snow(Walrus Boss Anim 1) 0x9C Camera Zoom (lower values are closer; higher values are farther) 0x9D-0x9F Color of background below Skydome (24-bit RGB) 0xB8 Which boss you face if Race Mode is Boss Race Values: 00 - Boss: Tricky; Player vehicle: Car 01 - Boss: Bluey; Player vehicle: Hovercraft 02 - Boss: Smokey; Player vehicle: Plane 03 - Boss: Tricky rematch; Player vehicle: Car 04 - Boss: Bluey rematch; Player vehicle: Hovercraft 05 - Boss: Bubbler; Player vehicle: Hovercraft 06 - Boss: Bubbler rematch; Player vehicle: Plane 07 - Boss: Smokey rematch; Player vehicle: Plane 08 - Boss: Wizpig; Player vehicle: Car 09 - Boss: Wizpig on rocket; Player vehicle: Plane 0xBA-0xBB Object Map 2 Values: 0000 - Central Area 0001 - Walrus Boss 0002 - Dragon Forest 0003 - Fossil Canyon 0004 - Pirate Lagoon 0005 - Ancient Lake 0006 - Walrus Cove 0007 - Hot Top Volcano 0008 - Whale Bay 0009 - Snowball Valley 000A - **EARLY JUNGLE FALLS** (appears to be empty) 000B - Crescent Island 000C - Fire Mountain 000D - Dino Domain 000E - EverFrost Peak 000F - Sherbet Island 0010 - Front End 0011 - Character Select Test 0012 - Spaceport Alpha 0013 - Horseshoe Gulch 0014 - Greenwood Village 0015 - Spacedust Alley 0016 - RC Car Sequence 0017 - Boulder Canyon 0018 - Windmill Plains 0019 - Snowflake Mountain 001A - Smokey Castle 001B - Darkwater Beach 001C - Icicle Pyramid 001D - Frosty Village 001E - Jungle Falls 001F - Treasure Caves 0020 - Haunted Woods 0021 - Darkmoon Caverns 0022 - Star City 0023 - Trophy Race 0024 - Future Fun Land 0025 - Sequence Area 0026 - Wizpig 1 0027 - TrickyTops 1 0028 - Options Background 0029 - Wizpig Mouth Sequence 002A - Ammy Seq 002B - Sherbet Boss 002C - Dragon Boss 002D - Stopwatch Ammy 002E - Rocket Sequence 002F - TrickyTops 2 0030 - Dino Trophy 0031 - Snowflake Trophy 0032 - Sherbet Trophy 0033 - Dragon Trophy 0034 - Space Trophy 0035 - Walrus 2 0036 - Sherbet 2 0037 - Dragon 2 0038 - Wizpig 2 0039 - ? (single pine tree) 003A - Party Seq 1 003B - TrickyTops Anim 1 003C - Dragon Boss Anim 1 003D - Walrus Boss Anim 1 003E - Wizpig 1 Anim 003F - ? 0040 - Octo Anim 0041 - Wizspacenim 0042 - Lastbit 0043 - Lastbitb Last edited by Mattress87; 27th May 2011 at 07:22 AM. |
#2
|
||||
|
||||
Nice find! A great addition to the DKR restoration project that disappeared for some reason.
__________________
"We read our Holy Books, screw like bunnies, and play Banjo-Kazooie while listening to Political talk shows." ~ TwilightVestige
|
#3
|
||||
|
||||
Haha, it was always in progress, Bobby. Brilliant find, Mattress, truly. I wish I'd known this sooner, but it should allow for some nice progress with my project.
__________________
Oich Oich. Last edited by Alice; 24th June 2011 at 09:17 PM. |
#4
|
||||
|
||||
Yep that's how cooboyman and I found beta maps. Independently found though but good to see you exploring it. Very good work! In jfg one param adjusted darkness of level.
Here are my notes from disassembly: 3A1440 set of level chunks 1900 is warp 0x20 ECC30 + 2B4920 = 3A1550 + *(3A1440 + (x << 2)) = 3A1550 + 1900 = 3A2E50 0x34 is 2-byte bg 0x36 is 2-byte setup 383AA0 setup section Warp 20 is offset 0x013DE0 which is ROM 383C38 ECC30 + 2970A0 + offset 383CD0 + offset = 397AB0 for warp 20 Code:
warp bg setup 0000 - Central Area 0000 0044 0001 - Walrus Boss 0001 0071 0002 - Dragon Forest 0002 0046 0003 - Fossil Canyon 0003 0047 0004 - Pirate Lagoon 0004 0048 0005 - Ancient Lake 0005 0049 0006 - Walrus Cove 0006 004A 0007 - Hot Top Volcano 0007 004B 0008 - Whale Bay 0008 004C 0009 - Snowball Valley 0009 004D 000A - Crescent Island 000B 004F 000B - Fire Mountain 000C 0050 000C - Dino Domain 000D 0052 000D - Everfrost Peak 000E 0053 000E - Sherbet Island 000F 0054 000F - Spaceport Alpha 0012 0057 0010 - Horseshoe Gulch 0013 0058 0011 - Spacedust Alley 0015 005A 0012 - Greenwood Village 0014 0059 0013 - Boulder Canyon 0017 005C 0014 - Windmill Plains 0018 005D 0015 - Front End 0010 0055 0016 - CHARACTER SELECT TEST 0011 0056 0017 - RC CAR SEQUENCE 0016 005B 0018 - Snowflake Mountain 0019 005E 0019 - Smokey Castle 001A 005F 001A - Darkwater Beach 001B 0060 001B - Icicle Pyramid 001C 0061 001C - Frosty Village 001D 0062 001D - Jungle Falls 001E 004E 001E - Treasure caves 001F 0064 001F - Haunted Woods 0020 0065 0020 - Darkmoon Cavern's 0021 0066 0021 - Star City 0022 0067 0022 - Trophy Race 0023 0068 0023 - Future Fun Land 0024 0069 0024 - Sequence Area 0025 006A 0025 - Wizpig 002A 006B 0026 - TrickyTops (Dino Boss) 0027 006C 0027 - Options Background 0010 006D 0028 - Sherbet Boss 0031 006E 0029 - Dragon Boss 0026 006F 002A - Wizpig Mouth Sequence 0028 0070 002B - Ammy Seq 0010 0072 002C - Stopwatch Ammy 0010 0073 002D - Rocket Sequence 0029 0074 002E - Tricky Tops 0027 0075 002f - Dino Trophy 000D 0076 0030 - Snowflake Trophy 0019 0077 0031 - Sherbet Trophy 000F 0078 0032 - Dragon Trophy 0002 0079 0033 - Space Trophy 0024 007A 0034 - Walrus 0001 007B 0035 - Sherbet 0031 007C 0036 - Dragon 0026 007D 0037 - Wizpig (future boss) 0034 007E 0038 - Party Seq 002E 0080 0039 - TrickyTops ANIM 0027 0081 003A - Dragon Boss ANIM 0026 0082 003B - Walrus Boss ANIM 002F 0083 003C - Wizpig Anim 0030 0084 003D - Octo Anim 0032 0086 003E - WIZSPACENIM 0033 0087 003F - LastBit 0035 0088 0040 - LastBitB 0036 0089 http://www.youtube.com/user/koolboyman Last edited by SubDrag; 28th May 2011 at 05:43 AM. |
#5
|
|||
|
|||
Your video just takes me to your channel and not to the actual video.
|
Thread Tools | |
|
|