Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant edit black and white images #442

Closed
igorfs10 opened this issue Oct 8, 2017 · 13 comments
Closed

Cant edit black and white images #442

igorfs10 opened this issue Oct 8, 2017 · 13 comments

Comments

@igorfs10
Copy link

igorfs10 commented Oct 8, 2017

When I try to edit black and white images, it does not appear correctly in the game. The image looks like it is in a different type because it always increases the size when saved. Is there any way to get it to compile properly or software that can edit it?
I already tried with GIMP, Paint, Paint XP, GraphicsGale, Irfanview and Photoshop. All with palette file too.

pokeruby_rev2-6

@yenatch
Copy link
Contributor

yenatch commented Oct 8, 2017

In Graphics Gale, you have to uncheck Match Pixels with Colors when loading the palette. I assume the other programs do this automatically without asking.

@igorfs10
Copy link
Author

igorfs10 commented Oct 8, 2017

I've already tried. It didn't work.
Can you edit? Maybe there is a setting somewhere to save the image.
Is it possible to add something to convert the image to a "compatible type" at compile time?
I've been trying to fix this problem for some time and I dont know what to do now.

@RevoSucks
Copy link
Collaborator

What image is this?

@igorfs10
Copy link
Author

igorfs10 commented Oct 8, 2017

This is the status_screen in interface folder. This happen with misc in contest folder too. I did not try but I think it happens with the other black and white images.

@camthesaxman
Copy link
Contributor

These grayscale images should always be exported as grayscale with a color depth of 16. If the editor you use messes with the color depth or color type, then it's not going to look right in game. I'm currently working on this issue as we speak.

@igorfs10
Copy link
Author

igorfs10 commented Oct 9, 2017

I tried to change to grayscale and 16 color depth in Graphicsgale and not worked. Thanks for your work on this issue.

@camthesaxman
Copy link
Contributor

This seems to be a very strange image, indeed. There are actually 5 separate palettes that are used with these tiles, and they get selected based on what screen you are on, and different tiles can use different palettes. I have no idea how to make this more easily editable in a sane way. I've been able to convert most of the graphics to just use the palettes stored in the png file, rather than an external .pal file, but I don't know what to do about this one.

@yenatch
Copy link
Contributor

yenatch commented Oct 9, 2017

You could use the tilemap to generate a png with the correct colors for each tile (and accept that format in gbagfx). The only problem then is enforcing tile colors in the editor. You would have to edit it very carefully. We'd probably get a lot of people who didn't realize you needed to do that. So maybe greyscale is better.

@igorfs10
Copy link
Author

Do you know some way to save the image without causing problems in the game? I dont need to change the palette, I'm just going to change the text that is in image.

@camthesaxman
Copy link
Contributor

Can you upload the edited png that's causing problems? I can examine it and see what the issue is.

@igorfs10
Copy link
Author

igorfs10 commented Oct 10, 2017

https://raw.githubusercontent.com/Thebluehedgehog/pokeruby/8a1d74583ab517d5efa4b41d7175e6bf9ea8a266/graphics/contest/misc.png
This is the contest image i can add other images, I just used the save option in graphicsgale with this image. I realized now that in Gimp the original image has no palette, the palette only appears after the image has been saved or change the color depth in a software.

@igorfs10
Copy link
Author

igorfs10 commented Oct 17, 2017

I dont know if this helps but i can easily extract and insert these images in binary file using gba graphics editor. GBA Graphics editor extract image with all 80 colors of interface, is possible to make pokeruby compile this type of image?

@igorfs10
Copy link
Author

I found a way to edit. I had to change the palette using different colors and edit it with graphicsgale. If you use similar color the graphicsgale changes to the first color in the palette and this cause some issues with various black colors. Should I close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants