Page 1 of 1

How to get the palette right?

Posted: 11 Apr 2010 14:20
by Wotan
I've downloaded the GRFmaker utility since trying to learn to code NFO files by hand made my brain bleed.

I've got some problems with it however. When I try to load my BMP (or PCX) into the program I get a "Range Check Error", whatever that means... Searching on the error here on the forum suggests that there is something wrong with the palette used.

Is there a way to alter the BMP so that the palette will be correct?

I've attached the PCX file if that is of any interest.11

Re: How to get the palette right?

Posted: 11 Apr 2010 14:31
by Chrill
When discussions are on about palette, what I have managed to understand is that it's often connected with using a DOS palette instead of the one for Windows. I may be very wrong right now, though...

Re: How to get the palette right?

Posted: 11 Apr 2010 15:19
by DJ Nekkid
here is a working pcx. Atleast it works with the std. grfcodec :) Open it in your favorite gfx software, copy/paste the content of your file into this one, and hit save, and try again :)

Re: How to get the palette right?

Posted: 11 Apr 2010 18:50
by Wotan
Thanks for the help:). GRFmaker loads the file now which leads me to my next three problems...

I don't know how to control which sprites are used for each direction. For instance right now the sprite that should be displayed when the train is moving upwards is displayed when the train moves right to left. How do I assign each sprite for the right place?

When loading the bitmap GRFmaker does not select all sprites completely. How do I manually change the sizes of the selection?

And finally:

How do I add a tender?

Re: How to get the palette right?

Posted: 11 Apr 2010 22:00
by AndersI
I have PM:ed you a copy of my Swedish set, GRFmaker project + the .pcx files. Hopefully you can see both the preferred (by GRFmaker) sprite layout and some coding info. There are tenders, different goods, loading states, Mu:s with hardwired layouts, etc.

Hope it helps!

Edit: The problem with your original .pcx is that it is not in 256 color, but 16 million - does make it a bit difficult for GRFmaker...