DSHack

Archive Generated December 23rd, 2018
Tutorial - Sprites/mugshots and Icons editing (put your own !)
Author Posted on 2015/07/04
#12
Swiftie Luma Hello there!
So i recently was able to do my first sprite edits for Mario Kart DS , thanks to really helpful users!
This is my method , and my First tutorial so please if there's an easier way to do something just comment about it! :)

However , some might still be wondering how to do it so let me show you my method on how to Put your own sprites in the game.
Let's Begin.

What do you need?

- Tools -

- MKDS Rom
- MKDS Course Modifier
- Everyfile Explorer (EFE)
- NSMBe
- Your custom icon or image to put in the game
- Editing program for images , For this Tutorial I'll use Photoshop (You''ll see why in the tutorial) Alternative : Use GIMP (it's free :P)

Okay , now that you have all of that let's go! :P

1- First of all , you need to open your rom with NSMBe and search for the location of the files you want to edit/replace ; In here i'm going to edit the Character select icons so i need to go to root>data>Main2D_us.
In there you are going to search for Player_character_M_nce (the image) and player_character_M_o (the palettes) and double click on both so you open them.

1.1 When you open the palettes click on the ''16 color'' square and the press ''add all''
1.2 Now in the Editing Window click on ''View on 4pbb format'' and adjust the Tile Width to 4 and you will have something like this:




You'll see that there are 16 palettes ,with the first 13 being the palettes for Each character select icon starting with Mario and ending with Shy Guy. If you click on each palette , you'll see 1 character colored correctly while the others aren't . This helps you to identify the character icon you want to replace or edit and it's palette (Remember the number!) ;)

2.1 Before closing NSMBe , please , take note of (remember) the palette colors in the Upper-right corner in the Editor Window (this will help you later when editing the palette itself)

(o<) 3 - Open your image with Photoshop. You can either make an icon using a full image or if you find an existing little icon you can use that too , whatever you want.

Now , when your icon is ready ,go to IMAGE>MODE>INDEXED COLOR (This is why i'm using Photoshop)

Now your image will be transformed into a image with less color information. When the window pops up , put ''16'' in the box to make sure you have 16 colors in your palette.

Now in the palette tab , choose ''Custom'' so you'll see the 16 colors that Photoshop chose to color the icon (Remember these colors you'll need them later).



Close the Custom window , then return to the indexed color Window and press ''ok'' to do changes. Save your new image as png.

4- Open your Rom with Mario Kart DS Course Modifier and search for the 16 color palette mentioned earlier , which is in Main_2D_us , with the name ''player_character_M_o.NCLR''

Double click on that and you will have a window like this:



Now , you will search for the right palette (you would know if you took note of it like i advice to do!)

-When you find the right palette , you need to edit it and change the colors with the 16 Colors that Photoshop gave to you for your icon before! (Again , this is why i told you to take note and remember :P) Or To make it even easier just remember the number of the palette and scroll down (As they are in order) from 0-12. , i.e the very first row of 16 colors is Mario's palette (number 0)

-The adventage here is that there's no a specifc order , as long as you edit just the 16 colors for the original palette of the character you are replacing/editing and only those!.

4.2- When you are done , click on th disk icon in the upper-left corner to save and close the palette window , BUT DON'T CLOSE MKDSCM. To properly save , you need to export the palette file and save it somewhere in your computer.

5 - Open your room with EFE , and search for the palette file in the right location. Right-click on it and choose replace. Replace that file with the new palette file you just exported from MKDS course Modifier.
SAVE With the Disk icon after replacing , and then Choose ''Save as'' And save a new rom or just replace the old one.

6- When you are done , Go to NSMBe again and go to the same locations for the image and the palette in Main2D_us.

Search for the Right palette (10 in this case for Waluigi) and you'll have this result:




Your palette was succesfully changed in there, but this is not the end!.

6.2 Now click on ''Export this bitmap'' and save it as png.

6.3 Go to photoshop again and open your Exported Bitmap. With your image open , drag Your created icon (the one with 16-color palette indexed color) and place it PROPERLY in the place of the other character (in this case we are Deleting Waluigi and adding Cosmic Spirit icon) , so you'll have something like this:



Remember to place it Properly with the same space of the original Image so the other icons Don't mess up in the game! (In the image above the CS icon is way too close to R.O.B. but i fixed it and positioned like Waluigi's with the proper space in between both icons)

Also remember to erase properly the original Icon in the image (Waluigi's in this case) so the image is clean without left-overs.

- Save that as png.

Now go back to NSMBe and select ''Import this Bitmap with existing palette'' (make sure you are positioned in the RIGHT PALETTE , in this case number 10) And replace it with the New image you just created.

And this is the result.



Note: Sometimes the other palettes will ''mess up'' a little , but Don't worry ; You can easily fix this with this editor ; Just go to the color you want and select brush or bucket and recolor the ''messed up'' section or the character IN THEIR OWN PALETTE. This happens sometimes , From my experience, but on the good side, the bad changes Aren't big , is just like 1 color so it takes like 5 minutes or less to fix all them :)

So be sure to check the other palettes by scrolling up and down after you edit your custom one so the other characters have them properly placed too! :)

Press the save icon (IGNORE THE ERROR AND PRESS CONTINUE).

Now Close NSMBe and you are DONE!

If you did everything correctly , you should have something like this!



I hope this helps people , and if you have something you want to say about this tutorial , just comment!

Thanks for reading! :3 :3
Author Posted on 2015/07/04
#28
Gericom Nice tutorial, but it sounds like we need a better 2d editor. With palette masking for example.
Author Posted on 2015/07/04
#33
MKGirlism I've only fixed your Image Tags, which apparently nobody else seemed to notice.
Author Posted on 2015/07/04
#35
Gericom

I've only fixed your Image Tags, which apparently nobody else seemed to notice.

I noticed it, but I did not know if it was intented.
Author Posted on 2015/07/04
#36
Swiftie Luma The thing is i didn't know how to make the images display properly so i just left it untouched until sombody else came.

Thanks for fixing them.

Also , yes it is quite a process and a lot of back and forth but it turns out nice.

A better 2d graphics editor would be nice in the future though.
Author Posted on 2015/07/05
#54
LeDryBones81 Well, I tried this, but no matter what, for me importing bitmap with existing palette doesn`t work at all. I mean, making the custom icon and palette was no problem for me, but importing the custom icon itself always gives me error message that says something like this: "Parametre have to be positive value lower than height". Any help?
Author Posted on 2015/07/05
#59
Swiftie Luma

Well, I tried this, but no matter what, for me importing bitmap with existing palette doesn`t work at all. I mean, making the custom icon and palette was no problem for me, but importing the custom icon itself always gives me error message that says something like this: "Parametre have to be positive value lower than height". Any help?


can you post an screenshot and/or describe what you did s i can help you , because a lot of things can cause errors in the process.

Also use the lastest version of NSMBe
Author Posted on 2015/07/06
#120
Miles Ermiiworth Geri, you mean *cough*Nitro*cough*Character*cough*
Author Posted on 2015/07/06
#122
MKGirlism


I've only fixed your Image Tags, which apparently nobody else seemed to notice.

I noticed it, but I did not know if it was intented.

Sure, providing broken Tags was deeeeefinitly on purpose...
Author Posted on 2015/07/06
#128
Swiftie Luma @LeDryBones81 that problem happens if you are not importing the same image that you exported.

Export Bitmap A , and edit it with the custon icon but don't alter the Size of the whole image set.

Then import The bitmap you edited and it should be no problem

i looked it up and as i said that error happens if the bitmap you try to import does not match the size of the one in NSMBe
Author Posted on 2015/07/06
#130
LeDryBones81

@LeDryBones81 that problem happens if you are not importing the same image that you exported.

Export Bitmap A , and edit it with the custon icon but don't alter the Size of the whole image set.

Then import The bitmap you edited and it should be no problem

i looked it up and as i said that error happens if the bitmap you try to import does not match the size of the one in NSMBe
Thanks for help, and sorry for bit late answer, I`ve been really busy in here: http://gdforum.freeforums.net/thread/4273/serious-problem?page=2&scrollTo=50175 lately(and I still am)Also, I didn`t post a picture about my problem because the error message itself is in finnish language, so it would`ve not be very useful
Author Posted on 2015/07/10
#195
Swiftie Luma EDIT


Note: Sometimes the other palettes will ''mess up'' a little , but Don't worry ; You can easily fix this with this editor ; Just go to the color you want and select brush or bucket and recolor the ''messed up'' section or the character IN THEIR OWN PALETTE. This happens sometimes , From my experience, but on the good side, the bad changes Aren't big , is just like 1 color so it takes like 5 minutes or less to fix all them

I Have discovered that , this happens if the colors you edit in the palette when you open MKDSCM , ARE NOT 100% Accurate.

When you are looking for the color palette in Photoshop to edit the colors in the palette (Main_US for example) You need to use the exact same colors , and in the same order they come.

To do this just double click on each of the little color boxes in the palette window, the row of 15 colors (there are 16 but the invisible one is the transparency color) , the ones in this image



And look for the right R G and B values

When you get those numbers , put them in each R G and B box in MKDSCM to get the EXACT color.

Next to this black square , are the R G and B boxes in MKDSCM



So it will take a little more to reacreate the palette , But your new palette will be flawless and you won't get Color errors in the other palettes that come in the group.
Author Posted on 2016/02/11
#1430
Swiftie Luma Umm can i ask what on earth happened to the actual tutorial?

Where's all of that? Did it got deleted? what?
Author Posted on 2016/02/12
#1431
MKGirlism
Umm can i ask what on earth happened to the actual tutorial?

Where's all of that? Did it got deleted? what?

Sounds more like a Bug, I removed a specific Smiley from your Tutorial, and everything worked again.
Author Posted on 2016/02/12
#1433
Swiftie Luma
Umm can i ask what on earth happened to the actual tutorial?

Where's all of that? Did it got deleted? what?

Sounds more like a Bug, I removed a specific Smiley from your Tutorial, and everything worked again.


Thank you so much , it was really weird.
Author Posted on 2016/02/22
#1474
Yoshimaster I using this tutorial to change the Cup icons. I got as far as changing all the Nitro Cups, but as soon as I loaded the game with 1 Retro Cup icon changed, it crashed when loading single player. I don't even know where to begin to try to fix this.
Author Posted on 2017/06/12
#3268
User 505 Thanks you so much Swiftie!!! ;)

I finally finished my Honey Bee Mughshot for MKDS(Honey Bee from SMG)
Here are some pictures to show you:


Honey Bee Original

EDIT:Better Quality

Thank you again :)