Jump to content
Latias4Ever

Error importing .png for C-Gear skin.

Recommended Posts

I'm trying to import a PNG that I edited from an exported C-Gear skin, using GIMP and making sure to set it to only use 16 colours, but when I try to import it, PKHeX says it has too many unique colours:

blob.png.c95d364795ecdc27d801df7f578d3cb0.png

Here is the image I'm trying to import: 

1793844397_Elesa2C-Gear2.png.aba198a9c0cc4f3c8cef1f95cdfe0fd6.png

Additionally, here's the original image, and the cgb file that it came from:

1057834893_Elesa2C-Gear.png.2c774b6e71c6a47ddf41c4b075ea9ad1.png 

Elesa 2 C-Gear.cgb

Before you ask, I shifted the image a pixel down, because it was one too high for the C-Gear's UI, as you can see in the image below. I also intended to edit it in the future for B2/W2's C-Gear, but right now I'm having issues with B/W in the first place. Additionally, is there any way to actually generate a cgb file from the picture? I've also tried using PokeCGear, but importing the picture in question resulted in a black image, no skin in sight.

 37483880_5585-Pokemon-BlackVersion(DSiEnhanced)(USA)(E)(SweeTnDs)__1054.png.1d3d041b70e92b4c6f42196b2232f1ee.png

Share this post


Link to post
Share on other sites

The saved data has too many unique pixel colors, as indicated in the error message.

Try exporting it in a different format (bmp), as png is a compressed image format (not lossless).

  • Like 1

Share this post


Link to post
Share on other sites

Well I've exported it as a bmp, but then there's no way to import it to PKHeX, unless I try to change the extension to png, but then PKHeX crashes.

Elesa 2 C-Gear 2.bmp

Additionally, here's what I'm doing to ensure that it's only 16 unique colours:

blob.png.994d6f939d963bd1233a60a27ab8bc1a.png

EDIT: Additionally, here's the Colourmap for the image after that conversion to Indexed, you can see that it has 16 unique colours:

blob.png.4ae060a132fa08687006d89f1b21d153.png

Edited by Latias4Ever

Share this post


Link to post
Share on other sites

There seems to be an issue with importing .png at all right now. Take this, for example:

iEYl4o8.png

 

If you Export .png and then reload that same .png file, it ends up like this:

FylXTu5.png

 

Some C-Gear skins also just don't render properly, despite looking fine in-game:

a7ATHH7.png

 

I was able to import your image by simply opening it in mspaint and re-saving it from there, but it shows up all dark and blue, just like the Pikachu above (and yes, it displays that way in-game.)

I guess there must have been a regression somewhere when it comes to C-Gear, because I'm pretty sure I remember C-Gear stuff was supposed to have been fixed a while ago. But something must have re-broken it.

(Forgot to mention, this is in latest stable, and in 7db0657. Visual Studio won't load the newer commits, so I can't check those.)

For the time being, you should be able to use this psk.

elesa.psk

Edited by Ammako

Share this post


Link to post
Share on other sites

How do I use the psk, though? I did want to fix the position of the original skin for both B/W and B2/W2, so I need a way to manipulate the image first, and I don't know how to use psk or export as psk.

Share this post


Link to post
Share on other sites

Yes, I'm aware of that, what I'm asking is how I can convert a png/bmp to a working psk? I also want to edit the skin to fit the B2/W2 C-Gear, but I can't really import it if I don't know how to convert it to psk. Here's the B2/W2 version:

871778375_Elesa2C-GearB2W2.png.8ca8f5c2e473c507a15b688c2fd0db95.png

Elesa 2 C-Gear B2W2.bmp

  • Like 1

Share this post


Link to post
Share on other sites

PokeCGear works, there might be other ways but this is the only one I know of right now. PokeStock won't import your bmp as-is, must be something weird that GIMP does (or maybe you need to pick different options when exporting, idk.) If I just open the bmp in paint and save it without editing it though, then it imports fine. Still have to obey the 256x192 16 color limit though.

It turns out though, that PokeCGear will export as cgb when you load a B2W2 save, and to psk when you load a BW save. Weird. Well, as long as it works.

  • Like 2

Share this post


Link to post
Share on other sites

Alright, I've tried it as you said, and sure enough, the B2/W2 version works perfectly on PKHeX now. I'm also unsure why GIMP causes it to not import correctly, but as you said, opening it on paint and just saving worked. Thanks for the help.

blob.png.7b21b7bf8395bdee356192e3db46e91b.png

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...