Skip to content

Changing Link's Sprite

xander-haj edited this page Feb 2, 2023 · 2 revisions

The enhancement to change Link's sprite has been added through zspr files

step 1: download snesrev's sprites-gfx repo by typing git clone https://github.com/snesrev/sprites-gfx.git

step 2: place sprites-gfx folder inside the root of the zelda3 folder

step 3: open zelda3.ini

locate the section that says

# Change the appearance of Link by loading a ZSPR file
# See all sprites here: https://snesrev.github.io/sprites-gfx/snes/zelda3/link/
# Download the files with "git clone https://github.com/snesrev/sprites-gfx.git"
# LinkGraphics = sprites-gfx/snes/zelda3/link/sheets/megaman-x.2.zspr

as mentioned in the second line you can view sprites on the website then update the ini to read like this example

# Change the appearance of Link by loading a ZSPR file
# See all sprites here: https://snesrev.github.io/sprites-gfx/snes/zelda3/link/
# Download the files with "git clone https://github.com/snesrev/sprites-gfx.git"
LinkGraphics = sprites-gfx/snes/zelda3/link/sheets/minishcaplink.3.zspr

click the sprite on the site to get the correct file name to replace Link with what you want.


Custom Link Edits

You have two options, either manually edit the sprite_sheets.py file found in the tables folder or make your own ZSPR file. Both have their strengths and weakness. Editing the sprite_sheets.py file allows you to add more customization than ZSPR files, but ZSPR files can be quicker if you're used to photo editing but at the cost that it will more than likely break Bunny Link.

Option 1: Edit sprite_sheets.py

Open the sprite_sheets.py file located in the tables folder

Locate this section at the top of the file Screenshot 2023-01-12 17-18-01

You will need to uncomment all green lines by removing the # at the beginning of every line shown. these are the colors shown for reference:

Screenshot 2023-02-01 18-48-08

Here is the full image for easy access to colors available: https://github.com/snesrev/jpdasm/blob/master/resources/palettes.png

The benefit of this option opens up if you want to make a custom Link sprite sheet. You can simply edit the linksprite.png file in tables to do this If you leave all the respected areas the same color, like the hair, tunic, etc. then you just need to go back to sprite_sheets.py to change the colors for every palette with better results than ZSPR files. Or, if you just want to quickly make a few changes to Link's tunic this is a fast option that doesn't require Photoshop or Gimp

To save and apply your changes make sure to save the sprite_sheets.py file, you have uncommented all the lines by removing the # on every line. Then open Git and run the compile_resources.py script again. Do not run extract_resources.py or it will revert your changes

Option 2: Custom ZSPR files

download ZSprite https://github.com/sosuke3/ZSpriteTools/releases/tag/1.0.76

click File> Import> Sprite From Rom

you should see this:

Screenshot 2022-10-01 03-29-36

click File>Export>PNG

edit your file

when finished open ZSpriteTool again

click File>Import>PNG

then File>SaveAs

Link color palette