Tutorial  Updated

Preparing images for GRIT

THIS GUIDE IS FOR USING SPRITES WITH NFlib WHICH NEEDS THE SPRITES IN 8bpp MODE

Since some people already asked, here is a step-by-step guide on how to use GIMP to prepare an image for GRIT:

Method 1 (recommended):
1.: Put the -gB8 flag into the command that converts the sprite with grit. That ensures that grit is outputting 8bpp instead of the usual 16bpp
2.: Now you can use GRIT to convert the image so the sprite/background or whatever you made can be used in-game

Method 2:
1.: Open the image in GIMP.
2.: Click on Image, then in the dropdown go to Mode and select Indexed and in the dialog click Convert.
3.: Go to Windows>Dockable Dialogs and click on Colormap. This will enable a tool on the right side of GIMP. If you keep it there, you won't have to redo this.
4.: You may need to add a bunch of colors (using the + symbol under the pallete in the colormap window) so you have about 30-40 colors (you can see the index of the color in Color index)
5.: Click on File and Export As and save it as a .bmp image.
6.: A dialog with the title Export Image as BMP should pop up. Click on Compatability Options and enable Do not write color space information.
NOTE: If you don't get this dialog, you might have to restart GIMP or open a file that already is a .bmp image.
7.: Now you can use GRIT to convert the image so the sprite/background or whatever you made can be used in-game

As you can see, method 1 is WAY shorter and easier, but I only today figured out that you can do that instead of using method 2, which was the original method this guide described
 
Last edited by KonPet,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Why not HeyArnold
  • B @ BigArnold:
    Can you guys help with my problem concerning my Switch?
  • K3Nv2 @ K3Nv2:
    Did you switch it up
  • B @ BigArnold:
    Switch what up?
  • K3Nv2 @ K3Nv2:
    Switch the switch to resolve your issue
  • Xdqwerty @ Xdqwerty:
    @BigArnold, sorry but i cant, i dont have a switch. also what k3nv2 says is a joke
  • B @ BigArnold:
    That's what I figured. I put a post up in a forum but no one seems to replying to posts there. I also don't what this chat is attached to.
  • K3Nv2 @ K3Nv2:
    General chat as it implies
  • Xdqwerty @ Xdqwerty:
    @BigArnold, try posting in the "switch noob paradise" thread
  • B @ BigArnold:
    That's where I put it. But like I said other people's posts from a day or two ago have no responses. I'm not sure if the chat is part of the Nintendo forum that I'm on or a part of the website as a whole.
  • Xdqwerty @ Xdqwerty:
    @BigArnold, part of the website as a whole
  • Xdqwerty @ Xdqwerty:
    then try making a thread
  • Xdqwerty @ Xdqwerty:
    wait you are too new to be able to do that
  • B @ BigArnold:
    That's fine. I'll find my way.
    +1
  • BigOnYa @ BigOnYa:
    @BigArnold you put the fusee or hekate.bin in the hekate/ payloads folder, or use app to push the payload to switch while its in rcm mode
    +1
  • B @ BigArnold:
    The problem is is that TegraGUI isn't detecting my Switch despite it being plugged in and in RCM or maintenance mode.
    +1
  • BigOnYa @ BigOnYa:
    Did you click install driver inside the tegra app.
  • B @ BigArnold:
    I did all of that stuff and it seemed successful but still nothing. The only thing different from the guide I used was that my device wasn't showing up as APX but rather Nintendo Switch.
  • B @ BigArnold:
    I did it inside the Tegra app and Zadig.
  • BigOnYa @ BigOnYa:
    Try a different USB c cable, or different USB port on your pc.
  • B @ BigArnold:
    I tried a different port and don't have another cable. I'm fairly certain there's no issue with the equipment I'm using.
  • BigOnYa @ BigOnYa:
    Some cheap USB c cables don't send data, they only charge
  • B @ BigArnold:
    The cable is usually used to connect my controller to my switch's dock.
    B @ BigArnold: The cable is usually used to connect my controller to my switch's dock.