GRF encoder tool: GRFMaker [under development]
Moderator: Graphics Moderators
Thanks!
By pcx file created by grfcodec... i assume you mean a decoded pcx file and then edit it?
Cheers
James
By pcx file created by grfcodec... i assume you mean a decoded pcx file and then edit it?
Cheers
James
(British) Modular Stations Set - Thread: | Website:
Swiss Set - Thread: | Website:
Route Map Creator
My Screenshot Thread
Swiss Set - Thread: | Website:
Route Map Creator
My Screenshot Thread
That, or apply the palette from a decoded PCX to a new PCX.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
The 'more than 500 sprites' error is probably caused by the blue numbers that grfcodec pastes on the images. The program falsely recognizes them as sprites.jamesvassie wrote:Im not sure if this is a bug, probably isnt though, maybe a need for help! When i try to add a vehicle sprite block, i choose my options, click ok, and i get errors saying firstly that the BMP file contains more than 500 sprites, then an error saying no sprite selected in the sprite block.
Use method1 for sprite search, it's designed to filter out those blue numbers.
Unless you're using an image file, with more than 500 spirites, but that's unlikely.

Here's a quick guide, to get started with sprite blocks:
first you have to create the folder under \projects for your new project, and move all the graphic files there (the program can support bmp or pcx currently). Then save the project there (the project name will also be the grf's name, on encoding), so the program acknowledges the project directory. Then on creating the vehicle sprite block, you can select all the pcx or bmp files in the dir in 'bitmap file name' field.
Sprite search is for automatic sprite recognition mode, for grfcodec decoded sprites (with those blue numbers), use method1, for a file with only sprites, use method2.
One thing that is important, though, is the sprite layout in the image files. The program uses an automatic method, to recognize the sprites, and the requisites are as follows:
- the order of the directions for vehicle sprites is: facing up first, then rotating CW.
- you should never use the color 255 (the totally white) in any of the graphics (TTD never used that color anyway)
- the top edge of the sprites needs to be in line, which also means the highest sprite cannot extend to the next row of sprites
- the gaps between the sprites need to be at least (but can be any more): 2 column of pixels horizontally, and 6 row of pixels vertically between the highest sprite, and the upper edge of the next row
You can make as many sprite blocks as you want, each having a different .pcx, the only requirement is, that one vehicle's sprites be in one file. Although one .pcx file must not contain more than 500 sprites, this is a limitation of the implementation.
After creating such sprite blocks, you select individual sprites with the right mouse button, or full rows with middle one. Only sprites selected in a block are actually part of that graphic ID block. That means, that one image file can contain many sets' sprites, and you can select any subset of them.
Szappy
-edit- corrected RMB/MMB
- Attachments
-
- An example (from the japan set)
- ex.png (2.89 KiB) Viewed 4661 times
Last edited by Szappy on 13 Oct 2005 06:34, edited 1 time in total.
Cheers for the reply!
Could you explain in more detail what RMB and MMB are please?
Also how do i select which sprite i want in that screen?
Cheers
James

Could you explain in more detail what RMB and MMB are please?
Also how do i select which sprite i want in that screen?
Cheers
James
(British) Modular Stations Set - Thread: | Website:
Swiss Set - Thread: | Website:
Route Map Creator
My Screenshot Thread
Swiss Set - Thread: | Website:
Route Map Creator
My Screenshot Thread
Right Mouse Button and Middle Mouse Button? Pure guess...jamesvassie wrote:Could you explain in more detail what RMB and MMB are please?
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.

Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
Ok another thing ive found, may be a bug, not sure...
If i create my sprites in paint using the correct colours and save it as a 256 colour bmp file, then that loads in grfmaker no probs, but if i convert it to a pcx file then i get a range check error....
The thing is my graphics get all screwed up 'cos of the file compression. Is it possible to add other types of ffiles? best i think would be png, then it can get shown in the forum and its easier to use
Cheers
James
If i create my sprites in paint using the correct colours and save it as a 256 colour bmp file, then that loads in grfmaker no probs, but if i convert it to a pcx file then i get a range check error....
The thing is my graphics get all screwed up 'cos of the file compression. Is it possible to add other types of ffiles? best i think would be png, then it can get shown in the forum and its easier to use

Cheers
James
(British) Modular Stations Set - Thread: | Website:
Swiss Set - Thread: | Website:
Route Map Creator
My Screenshot Thread
Swiss Set - Thread: | Website:
Route Map Creator
My Screenshot Thread
way I do it is this: if you are using paint is to open it in paint, save it as a 24-bit bitmap, open GRFMaker's sprite editor, press 'import true color bitmap' and select the file you just saved.
AS for the range check error, I believe it has something to do with either the numbers made by GRFCodec, or there may be two different coloured background whites in there.
AS for the range check error, I believe it has something to do with either the numbers made by GRFCodec, or there may be two different coloured background whites in there.
Last edited by BobDendry on 23 Oct 2005 00:35, edited 1 time in total.
Are there open-source converter algorithms, so it could read PNG and GIF simply by converting them to BMP and taking it from there?
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
You're actually wrong. GRFMaker supports .bmp and .pcx for quite some time now.Hyronymus wrote:James, GRFmaker supports bmp ONLY. It's not my favourite graphics format either but it just works like that (I thought it had to do with GRFmaker internals).
If jamesvassie got a range checking error, then it could be an error in the pcx conversion algorithm. Please, jamesvassie post the pcx involved, so gl2 can check if it's a bug, or a problem with MSPaint.
As for the .png, it has a complicated compression algorithm, and haven't got around to implementing it, but it's in the todo list

Ok glad to hear about future png's!
How shall i send it, the forums dont loike pcx's!
James

How shall i send it, the forums dont loike pcx's!
James
(British) Modular Stations Set - Thread: | Website:
Swiss Set - Thread: | Website:
Route Map Creator
My Screenshot Thread
Swiss Set - Thread: | Website:
Route Map Creator
My Screenshot Thread
Who is online
Users browsing this forum: No registered users and 19 guests