Palette Modification

Share ROM offsets and general DKC hacking documentation

Palette Modification

Postby DKCplayer » June 23rd, 2008, 5:03 pm

OK, I've just noticed a talk about a DKC2 code I found. I called it The Pallete Crisis code because... didn't know what to name it! :P Anyways, this is the code and it's values:

BA0517##

00 - Target Terror pallete
01 - Background of Mainbrace Bonus (Blue storm)
02 - Dark brambles
03 - Orange brambles
04 - Ship Deck 2
05 - Slimb Climb (Green storm)
06 - Haunted Hall
07 - Rickety Race
08 - Red-hot ride
09 - Screwed Up Water
0A - Kannons Klaim
0B - Ship Deck
0C - Glimmers Galleon
0D - Lava Lagoon
0E - Glitched Dust (Only in levels with dust, like Mainbrace Mayhem or Web Woods)
0F - Light brambles
10 - Wacky Colurs
11 - Glitched Dust Type 2 (Only in levels with dust, like Mainbrace Mayhem or Web Woods)
12 - Swim Code (Glitched Level)
13 - Swim Code
14 - Mainbrace Mayhem pallete (Blue with white clouds pallete)
15 - Play in Dark

The rest of the digits either freeze or Play in Dark.
I decided to start a topic.

Also, I found a code that does EXACTLY the same thing except for DKC3. How wierd is that?
Code for DKC3: 7E1B57??
Problem is, some values contain palletes that isn't in actual levels/not in game at all.

EDIT: After a long search, I found the values for MOST levels for DKC3 Pallete Crisis Code. If you find anything for levels not mentioned, lemme know:

7E1B57??

01 - Lakeside (Day)
02 - Waterfalls (Blue waterfall with orange wall)
07 - Treetops (Orange)
08 - Snow
0A - Mill (Dark Orange)
11 - Mill (Dark)
22 - Snow (Bleaks House) (Red sky yet dissapears when weather changes)
24 - Riverside (Green grass)
2A - Underwater (Blue)
33 - Rocky Cliffs (Orange)
3D - Pipes (Purple)
3E - Pipes (Green)
43 - Kastle KAOS
45 - Jungle (Green)
46 - Factory (Red glow)
49 - Riverside (Dark)
4A - Cave (Orange)
60 - Underwater (Red)
61 - Underwater (Greenish)
62 - Lakeside (Sunrise)
63 - Lakeside (Sunset)
64 - Snow (Orange sky yet dissapears when weather changes)
65 - Snow (Purple sky yet dissapears when weather changes)
66 - Treetops (Pink)
67 - Treetops (Red)
68 - Treerops (Green)
6A - Rocky Cliffs (White)
6B - Rocky Cliffs (Blue)
6C - Rocky Cliffs (Green)
6D - Rocky Cliffs (Red)
6E - Cave (Yellow)
6F - Cave (Purple)
70 - Cave (Dark)
71 - Cave (Reddish)
72 - Mill (Basic wood)
73 - Lakeside (Orange)
74 - Waterfalls (Blue waterfall with pink walls)
75 - Waterfalls (Green waterfall with yellowish grass)
76 - Waterfalls (Squirts Showdown)
77 - Factory (Pink glow)
78 - Factory (No glow)
79 - Jungle (Dawn)
7B - Jungle (Red)
7C - Rocky Cliffs (Red again)
7D - Treetops (Really red)
7E - Treetops (Arich's Ambush)
80 - Factory (KAOS Karnage)
81 - Lakeside (Lightning Lookout pallete lightened)
:D
Last edited by Qyzbud on September 16th, 2008, 4:00 pm, edited 2 times in total.
Reason: Re-titled to expand scope of topic
Treasure Hunter
Bananas received 16
Posts: 349
Joined: 2008

Re: The Pallete Crisis code

Postby Simion32 » June 23rd, 2008, 6:17 pm

DKCplayer wrote:Also, I found a code that does EXACTLY the same thing except for DKC3. (...) Problem is, some values contain palletes that isn't in actual levels/not in game at all.
That's probably because you are putting in "out of range" values that trick the SNES into loading what isn't really a pallete. Rather than a pallete it just loads whatever it happens to find.

This may sound a bit technical, but here goes... The number you are using for the code is multiplied by 2, and then the result is added to a predetermined value to get a memory address. Whatever number is stored at this address, is the pallete's location within the same area of memory (I do believe it's called a bank). So basically it uses a "table" of pallete locations and looks up an entry from the "table".

Just thought I'd give some of my technical musings on this matter. ;)
Sage of Discovery
Bananas received 337
Posts: 2746
Joined: 2008

Re: The Pallete Crisis code

Postby Kiddy14 » June 24th, 2008, 3:03 am

DKCplayer wrote:01 - Background of Mainbrace Bonus (Blue storm)

The blue storm must be the one used in the Beta shots from DKC2.

And you should rename it to something like "Pallete Paralisis" code or something like that, to make it sound more DKCish xD I love alliteration!
Expedition Leader
Bananas received 25
Posts: 1134
Joined: 2008

Re: The Pallete Crisis code

Postby DKCplayer » June 24th, 2008, 1:40 pm

Simion32 wrote: This may sound a bit technical, but here goes... The number you are using for the code is multiplied by 2, and then the result is added to a predetermined value to get a memory address. Whatever number is stored at this address, is the pallete's location within the same area of memory (I do believe it's called a bank). So basically it uses a "table" of pallete locations and looks up an entry from the "table".
Just thought I'd give some of my technical musings on this matter. ;)


... lets see... (Murmers while thinking) carry the 2... ... ... :| Never mind.

And Kiddy14, Maybe next topic I'll make it more DKCish! :D
Treasure Hunter
Bananas received 16
Posts: 349
Joined: 2008

Re: The Pallete Crisis code

Postby Simion32 » June 24th, 2008, 2:17 pm

DKCplayer wrote:... lets see... (Murmers while thinking) carry the 2... ... ... :| Never mind.
I really didn't think you'd try to figure that out... :lol:

If you don't understand, it's OK. Some of this stuff is useful to know when hacking PAR codes.

Pallete Paralysis sounds like a good name for a level! I wonder what on earth said level would be like...
Sage of Discovery
Bananas received 337
Posts: 2746
Joined: 2008

Re: The Pallete Crisis code

Postby Kiddy14 » June 24th, 2008, 2:47 pm

Simion32 wrote:Pallete Paralysis sounds like a good name for a level! I wonder what on earth said level would be like..

I imagine this:

A DKC level with platforms (like the ones used in Trick Track Trek), 3 rails exactly, one at the top, another one at the bottom and one at the center, that may have multiple followable platforms and paths, and that may move kinda fast. Diddy and Donkey have to jump on them but once each second they (the platforms) "freeze in their place", and have to act fast to not fall off.

They move fast so you may calculate the jumping and then they stop and you die =)
Expedition Leader
Bananas received 25
Posts: 1134
Joined: 2008

Re: The Pallete Crisis code

Postby Jomingo » June 25th, 2008, 2:35 am

And you'd also have to make big jumps to faroff platforms to reach KONG letters and Life Balloons, and there could be Zingers and Neckys bugging you the whole time too.

I like it. I hope this would be possible with the DKCLB.

SO, Pallete Crisis, eh? Sounds fancy.
Sage of Discovery
Bananas received 7
Posts: 2312
Joined: 2008

Re: The Pallete Crisis code

Postby Simion32 » June 25th, 2008, 4:16 am

Jomingo wrote:And you'd also have to make big jumps to faroff platforms to reach KONG letters and Life Balloons, and there could be Zingers and Neckys bugging you the whole time too. I like it. I hope this would be possible with the DKCLB.
Yep, it's possible. You wouldn't run out of room either, because levels will be able to be taller than 512 pixels.

I've taken the initiative to make a level ideas thread, so we can post our ideas/thoughts there instead of chattering off-topic. ;)
Sage of Discovery
Bananas received 337
Posts: 2746
Joined: 2008

Re: The Pallete Crisis code

Postby DKCplayer » June 25th, 2008, 1:35 pm

Simion32 wrote: I've taken the initiative to make a level ideas thread, so we can post our ideas/thoughts there instead of chattering off-topic. ;)

Thank you. :D
Treasure Hunter
Bananas received 16
Posts: 349
Joined: 2008

Re: The Pallete Crisis code

Postby Krow111 » September 16th, 2008, 8:11 am

Quote spoilered by Qyzbud
Spoiler!
DKCplayer wrote:OK, I've just noticed a talk about a DKC2 code I found. I called it The Pallete Crisis code because... didn't know what to name it! :P Anyways, this is the code and it's values:

BA0517##

00 - Target Terror pallete
01 - Background of Mainbrace Bonus (Blue storm)
02 - Dark brambles
03 - Orange brambles
04 - Ship Deck 2
05 - Slimb Climb (Green storm)
06 - Haunted Hall
07 - Rickety Race
08 - Red-hot ride
09 - Screwed Up Water
0A - Kannons Klaim
0B - Ship Deck
0C - Glimmers Galleon
0D - Lava Lagoon
0E - Glitched Dust (Only in levels with dust, like Mainbrace Mayhem or Web Woods)
0F - Light brambles
10 - Wacky Colurs
11 - Glitched Dust Type 2 (Only in levels with dust, like Mainbrace Mayhem or Web Woods)
12 - Swim Code (Glitched Level)
13 - Swim Code
14 - Mainbrace Mayhem pallete (Blue with white clouds pallete)
15 - Play in Dark

The rest of the digits either freeze or Play in Dark.
I decided to start a topic.

Also, I found a code that does EXACTLY the same thing except for DKC3. How wierd is that?
Code for DKC3: 7E1B57??
Problem is, some values contain palletes that isn't in actual levels/not in game at all.

EDIT: After a long search, I found the values for MOST levels for DKC3 Pallete Crisis Code. If you find anything for levels not mentioned, lemme know:

7E1B57??

01 - Lakeside (Day)
02 - Waterfalls (Blue waterfall with orange wall)
07 - Treetops (Orange)
08 - Snow
0A - Mill (Dark Orange)
11 - Mill (Dark)
22 - Snow (Bleaks House) (Red sky yet dissapears when weather changes)
24 - Riverside (Green grass)
2A - Underwater (Blue)
33 - Rocky Cliffs (Orange)
3D - Pipes (Purple)
3E - Pipes (Green)
43 - Kastle KAOS
45 - Jungle (Green)
46 - Factory (Red glow)
49 - Riverside (Dark)
4A - Cave (Orange)
60 - Underwater (Red)
61 - Underwater (Greenish)
62 - Lakeside (Sunrise)
63 - Lakeside (Sunset)
64 - Snow (Orange sky yet dissapears when weather changes)
65 - Snow (Purple sky yet dissapears when weather changes)
66 - Treetops (Pink)
67 - Treetops (Red)
68 - Treerops (Green)
6A - Rocky Cliffs (White)
6B - Rocky Cliffs (Blue)
6C - Rocky Cliffs (Green)
6D - Rocky Cliffs (Red)
6E - Cave (Yellow)
6F - Cave (Purple)
70 - Cave (Dark)
71 - Cave (Reddish)
72 - Mill (Basic wood)
73 - Lakeside (Orange)
74 - Waterfalls (Blue waterfall with pink walls)
75 - Waterfalls (Green waterfall with yellowish grass)
76 - Waterfalls (Squirts Showdown)
77 - Factory (Pink glow)
78 - Factory (No glow)
79 - Jungle (Dawn)
7B - Jungle (Red)
7C - Rocky Cliffs (Red again)
7D - Treetops (Really red)
7E - Treetops (Arich's Ambush)
80 - Factory (KAOS Karnage)
81 - Lakeside (Lightning Lookout pallete lightened)
:D

Could you find the pallete code for Belcha's Barn? :)
Trainee Trekker
Bananas received 3
Posts: 82
Joined: 2008

Re: The Pallete Crisis code

Postby Simion32 » September 16th, 2008, 8:34 am

Arich wrote:Could you find the pallete code for Belcha's Barn? :)

I found the digit, it's 7F. Really easy to find using a debugger, all you have to do is load the level and look at that RAM address.

Arich, you shouldn't quote entire posts... please take some time to Read The Rules if you haven't already.
Sage of Discovery
Bananas received 337
Posts: 2746
Joined: 2008

Re: The Pallete Crisis code

Postby Krow111 » September 16th, 2008, 11:47 am

DKCplayer wrote:


7E1B57??
24 - Riverside (Green grass)
49 - Riverside (Dark)















:D


Could you find a code for the Bobbing Barrel Brawl Riverside Pallete?
Trainee Trekker
Bananas received 3
Posts: 82
Joined: 2008

Re: Palette Modification

Postby Qyzbud » September 16th, 2008, 4:11 pm

Is all that empty space really necessary? :?

Also, people aren't as likely to help out if you don't show appreciation/recognition for the last time you were given assistance. Just a tip.
Atlas Author
Bananas received 682
Posts: 3228
Joined: 2008

Re: Palette Modification

Postby Simion32 » September 16th, 2008, 11:41 pm

Arich wrote:Could you find a code for the Bobbing Barrel Brawl Riverside Pallete?
It's 73 for Bobbing Barrel Brawl.

Sorry I didn't respond earlier, I was deciphering the sprite pointer for a Kritter. I've got a sprite generator function built, but I have to work out the kinks. Oddly enough, the animation digits Mattrizzle supplied were not exactly what I thought they were. The value for a Kritter is $05, but I found that it should have been $E9. Strange stuff... :roll: ...hopefully I can figure this mess out.
Sage of Discovery
Bananas received 337
Posts: 2746
Joined: 2008

Re: Palette Modification

Postby Cody » September 17th, 2008, 4:05 pm

Wow, these will come in handy.

Also, Qyz, would it be fine if you were to talk to Arich in attempt to see if he would change his user name? It really makes me feel uncomfortable knowing that a user named Arich attends the forums, as I use(d) that name in various locations across the internet.
Treasure Hunter
Bananas received 62
Posts: 497
Joined: 2008

Re: Palette Modification

Postby Krow111 » September 18th, 2008, 7:00 am

Thanks for the didits! :D I just need one more that I know of:
Demolition Drain Pipe
Trainee Trekker
Bananas received 3
Posts: 82
Joined: 2008

Re: Palette Modification

Postby Simion32 » September 18th, 2008, 7:04 am

Demolition Drain Pipe is 28.

And.. you're welcome. ;)
Sage of Discovery
Bananas received 337
Posts: 2746
Joined: 2008

Re: Palette Modification

Postby DKCplayer » September 18th, 2008, 4:43 pm

Thanks Simion32! Real help! :D
Treasure Hunter
Bananas received 16
Posts: 349
Joined: 2008

Re: Palette Modification

Postby Krow111 » September 19th, 2008, 12:04 pm

Thanks again! I just remembered five other digits that I need:
Snow (Black sky)
Floodlit Fish (Dark)-done (Floodlit Fish (Dark) code:7E1B5748)
Floodlit Fish (Light)
Konveyor Rope Klash-done (Konveyor Rope Klash code:7E1B577A)
Knautilus-done (Knautilus code:7E1B575F)
Trainee Trekker
Bananas received 3
Posts: 82
Joined: 2008

Re: Palette Modification

Postby Krow111 » November 7th, 2008, 12:14 pm

This topic has been deserted for awhile. Updates, please? :)
Trainee Trekker
Bananas received 3
Posts: 82
Joined: 2008


Return to Documentation

Who is online

Users browsing this forum: No registered users and 0 guests