Ever wondered how to change Mario's skin color in Super Mario 64 (SM64)? As a classic game, SM64 offers limited modifications, but with the right tools and knowledge, you can alter Mario's appearance. This guide will help you understand the color code system to change Mario's skin, known as Mario's Red Channel value in SM64's texture format.

Before diving into the specifics, it's essential to understand that changing Mario's skin color involves manipulating hexadecimal color codes. For texture modification in SM64, you'll be working with a texture format called 64PE. The color channel for Mario's skin is red, so we'll be focusing on the red channel value (RR) in the color code.

Understanding Mario's Red Channel Value
The Red Channel value (RR) in the color code determines Mario's skin color. The range for RR values is from 0 to 255 in hexadecimal. Here's a basic breakdown:

00 (Black) - 32 (Darkish) - 64 (Tan) - 96 (Light Brown) - C8 (Light Skin) - FF (White)
Setting Mario's Skin to Brown

To make Mario appear brown, you can use RR values between 64 (Hex: 40) and 96 (Hex: 60). These values represent varying shades of brown, from dark to light:
Dark Brown (Hex: 40) - More suitable for Mario's boots or gloves
Light Brown (Hex: 60) - Perfect for a natural, earthy brown Mario skin
Setting Mario's Skin to Skin Tones

For Mario's skin to appear more human-like, you can use RR values between 96 (Hex: 60) and C8 (Hex: C8). Experiment with values like B0 (Hex: B0), which represents a light peach skin tone:
Light Peach (Hex: B0) - Provides Mario with a subtle, natural skin tone
Applying the Mario Skin Color Code

Now that you have the desired RR value for Mario's skin, it's time to apply the change. This process involves using a SM64 texture editor and a hexadecimal editor to modify the game's texture files:
1. Use a SM64 texture editor such as Texture Editor to extract Mario's texture files (BUTTON.PNG and BUTTONM.PNG).






2. Open the extracted PNG files in a hexadecimal editor like 010 Editor.
3. With the 'Show Offset Data/Inspect Data window' open, navigate to the color channel data (0x411E for BUTTON.PNG and 0x3FE4 for BUTTONM.PNG).
Modifying Mario's Skin Color in the Hexadecimal Editor
To change Mario's skin color, locate the Red Channel value (RR) in the hexadecimal data. For Mario's skin, the RR values can be found at the following offsets:
- BUTTON.PNG: 0x411E (Hex: 65, 61, 1F - for the black part of Mario's eyes)
- BUTTONM.PNG: 0x3FE4 (Hex: 65, 5F, FB - for the white part of Mario's body)
Replace the RR values with the desired color code, ensuring you maintain the correct byte order (FX F5, where F is the RR value).
4. Save the modified texture files and replace the originals in the SM64 ROM folder.
Now, whenever you launch SM64, you'll see Mario with his new skin color. Happy modding!