Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Palette is always screwed whenever I import

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> Creative Corner
View previous topic :: View next topic  
Author Message
Calehay
...yeah.
Class B Minstrel



Joined: 07 Jul 2004
Posts: 549

PostPosted: Sat Oct 15, 2005 8:16 pm    Post subject: Palette is always screwed whenever I import Reply with quote

Here's my problem:

I make a walkabout in GIMP, using a picture of the OHRRPGCE palette as my base for the first one. Then, in subsequent walkabouts, I use the one that I made to get colors off of. I turn each picture into a 16 color picture and import them into OHR. I import the down walkabout and change the palette to that picture. Then, when I go to do the up walkabout, I try to use the same palette and everything turns out a garbled mess. Is there something I'm missing? I've tried everything I can think of. Can I not use the same palette for something with the exact same colors?

I've been trying to get this to work for months. Please don't tell me I have to redo all of my walkabouts in the editor after all that work in GIMP.
_________________
Calehay
Back to top
View user's profile Send private message AIM Address
Gizmog1
Don't Lurk In The Bushes!




Joined: 05 Mar 2003
Posts: 2257
Location: Lurking In The Bushes!

PostPosted: Sat Oct 15, 2005 8:30 pm    Post subject: Reply with quote

I've had this problem, and as far as I know, all you can do is just import it with whatever palette fits the most images, and then manually recolor the ones that don't work. There may be a better solution, but I don't know what it is.
Back to top
View user's profile Send private message Send e-mail AIM Address
Rimudora
Psychopath yandere
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 26 May 2005
Posts: 335

PostPosted: Sat Oct 15, 2005 9:28 pm    Post subject: Reply with quote

Try to get all the frames in one image in GIMP, then use MSPaint or whatever to cut out the parts you want and save them in 20x20 files. That way, all the bmp files will have the same palette.
Back to top
View user's profile Send private message Send e-mail
Mike Caron
Technomancer




Joined: 26 Jul 2003
Posts: 889
Location: Why do you keep asking?

PostPosted: Sat Oct 15, 2005 10:33 pm    Post subject: Reply with quote

But make it a 16-colour image before cutting it up.

See, a decent editor (such as the GIMP) will try to optimize the colour usage in each image it saves. For a 16-colour image, there's not much it can do, but the palette may have a slightly different order anyway.

Actually, there's 256 different palettes with the same colours, so you have a 1/256 chance of getting two images to save with the same palette. And, if you account for 8 frames, that's 1/256^7 = 1/72057594037927936 chance of all 8 images having the same palette*. Which is why it's best to create the palette before hand.

* - this assumes that the palette generated is in a completely random order. Of course, they're not. It's actually determined by the order of colours in the image. Thus, your chances are even smaller. Happy
_________________
I stand corrected. No rivers ran blood today. At least, none that were caused by us.

Final Fantasy Q
OHR Developer BLOG
Official OHRRPGCE Wiki and FAQ
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
tgfcoder




Joined: 14 Oct 2005
Posts: 37
Location: Australia

PostPosted: Sat Oct 15, 2005 11:02 pm    Post subject: Reply with quote

Thanks. I've also run into that program (with GIMP)
Back to top
View user's profile Send private message
NeoTA
Idiomatic Nomenclature




Joined: 15 Mar 2004
Posts: 165

PostPosted: Mon Oct 17, 2005 6:42 am    Post subject: Reply with quote

I have a definitive answer for this:

1. Copy a sprite that has all of the colors you want in your palette.
2. Paste it as a new image (Edit->Paste as New)
3. Import a palette from the new image(rightclick in the Palettes dialog, Choose Import)

Then you can choose 'custom palette' and pick that palette when you're indexizing the image. Be sure that 'Remove unused colors' is OFF.



pkmnfrk wrote:
It's actually determined by the order of colours in the image. Thus, your chances are even smaller.

That depends on the version of Gimp you're using. More recent versions sort the final palette by intensity rather than frequency when indexizing. OTOH, the 'Import palette' dialog still produces palettes which are sorted by frequency.
Back to top
View user's profile Send private message
Mike Caron
Technomancer




Joined: 26 Jul 2003
Posts: 889
Location: Why do you keep asking?

PostPosted: Mon Oct 17, 2005 11:08 am    Post subject: Reply with quote

I used to use that method, but it leaves too many usless palettes lying around, unless you remember to clean them up afterwards...
_________________
I stand corrected. No rivers ran blood today. At least, none that were caused by us.

Final Fantasy Q
OHR Developer BLOG
Official OHRRPGCE Wiki and FAQ
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Calehay
...yeah.
Class B Minstrel



Joined: 07 Jul 2004
Posts: 549

PostPosted: Wed Oct 19, 2005 4:33 pm    Post subject: Reply with quote

I found another workaround to this situation (though it is a little lengthy and NeoTA's method is much more practical.)

1: Create your sprites and then convert them to 16-bit format.

2: Take one of your sprites and copy it. Rename it as a different name.

3: Paste another one of your sprites in the file you created. Save the file.

4: Copy the file and rename.

Repeat until all your walkabouts are done. Worked when I did it. Though I wish I knew GIMP allowed you to control palettes.
_________________
Calehay
Back to top
View user's profile Send private message AIM Address
NeoTA
Idiomatic Nomenclature




Joined: 15 Mar 2004
Posts: 165

PostPosted: Thu Oct 20, 2005 4:37 am    Post subject: Reply with quote

Calehay:
With automation, that method would be quickest and neatest. When Gimp 2.4 is released, I should be able to release a plugin that automatically performs that for every tile in your image. For now, only GIMP developers or Linux users can use such a thing easily.

:} It is possible to associate arbitrary data with a gimp .xcf image. So once you set the palette to use the first time, it could be saved with the image, so the entire process could be done in one step.

(re your step 1: You mean 8bit color. Saying 16bit format is confusing, because 16bpp is an actual display format.)

Your process can be optimized by using 'save a copy' repeatedly instead of your two step 'copy and rename'. Especially if you assign a keyboard shortcut to it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> Creative Corner All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group