
Graphic coders, look here! Just a "little" problem
Moderator: Graphics Moderators
This line doesn't contain xrel, yrel, xsize and ysize, AFAIK.fire87 wrote:Well, in this line.. What is xrel, yrel, xsize and ysize: 66 8 01 18 8 -3 -10
It's a start though
Only lines with a refer (directory path, filename) contain these values.
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."
Hmm.. This is my NFO-file:
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 4)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 * 4 0D 00 00 00
1 * 8 08 06 4A 48 10 08 00 00
2 * 4 01 00 01 08
3 C:\MPS\TTWin95\SPRITES\bm69.pcx 66 8 01 18 8 -3 -10
4 C:\MPS\TTWin95\SPRITES\bm69.pcx 82 8 09 16 20 -14 -7
5 C:\MPS\TTWin95\SPRITES\bm69.pcx 114 8 01 12 28 -14 -6
6 C:\MPS\TTWin95\SPRITES\bm69.pcx 162 8 09 16 20 -4 -8
7 C:\MPS\TTWin95\SPRITES\bm69.pcx 194 8 01 18 8 -3 -10
8 C:\MPS\TTWin95\SPRITES\bm69.pcx 210 8 09 16 20 -14 -7
9 C:\MPS\TTWin95\SPRITES\bm69.pcx 242 8 01 12 28 -14 -6
10 C:\MPS\TTWin95\SPRITES\bm69.pcx 290 8 09 16 20 -4 -8
11 * 9 02 00 00 01 01 00 00 00 00
12 * 7 03 00 01 0C 00 00 00
13 * 7 00 00 01 01 16 12 FD
And as far as I can see, the last numbers contain the x-things.. The other things is just pseudonyms (hope you understand
)
I mean this numbers: 290 8 09 16 20 -4 -8
EDIT: I didn't actually see what you wrote, and I wrote the same as you did
Well, I'm gonna give it a try..
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 4)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 * 4 0D 00 00 00
1 * 8 08 06 4A 48 10 08 00 00
2 * 4 01 00 01 08
3 C:\MPS\TTWin95\SPRITES\bm69.pcx 66 8 01 18 8 -3 -10
4 C:\MPS\TTWin95\SPRITES\bm69.pcx 82 8 09 16 20 -14 -7
5 C:\MPS\TTWin95\SPRITES\bm69.pcx 114 8 01 12 28 -14 -6
6 C:\MPS\TTWin95\SPRITES\bm69.pcx 162 8 09 16 20 -4 -8
7 C:\MPS\TTWin95\SPRITES\bm69.pcx 194 8 01 18 8 -3 -10
8 C:\MPS\TTWin95\SPRITES\bm69.pcx 210 8 09 16 20 -14 -7
9 C:\MPS\TTWin95\SPRITES\bm69.pcx 242 8 01 12 28 -14 -6
10 C:\MPS\TTWin95\SPRITES\bm69.pcx 290 8 09 16 20 -4 -8
11 * 9 02 00 00 01 01 00 00 00 00
12 * 7 03 00 01 0C 00 00 00
13 * 7 00 00 01 01 16 12 FD
And as far as I can see, the last numbers contain the x-things.. The other things is just pseudonyms (hope you understand

I mean this numbers: 290 8 09 16 20 -4 -8
EDIT: I didn't actually see what you wrote, and I wrote the same as you did

Well, I'm gonna give it a try..
66 = xpos, 8 = ypos, coordinates of the spritefire87 wrote: // Automatically generated by GRFCODEC. Do not modify!
// (Info version 4)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
...
3 C:\MPS\TTWin95\SPRITES\bm69.pcx 66 8 01 18 8 -3 -10
01 = comprossion, I've no idea what this is
18 = ysize, 8 = xsize, sizes of the sprite (the blue area)
-3 = xrel, -10= yrel, this defines the 'centre' of the sprite, which defines where the sprites will be placed in-game. (I think this is trial and error).
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."


You might need help from a coder.
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."
fire87 wrote:Hmm.. I did that, and now the train won't recognise itself.. I isn't in the list either![]()
Now I'm very confused..
Well it won't be shown like that: you're changing the graphics of ID 0C but setting ID 16 to sprite FD? You need the same ID in the bold bytes, whichever ID you are trying to replace.fire87 wrote:12 * 7 03 00 01 0C 00 00 00
13 * 7 00 00 01 01 16 12 FD
US Train Set v0.87.1 now released: http://www.tt-forums.net/viewtopic.php?t=8754
Don't forget to read the manual: http://wiki.ttdpatch.net/tiki-index.php?page=Manual
Don't forget to read the manual: http://wiki.ttdpatch.net/tiki-index.php?page=Manual
I got a code base done...
YOU can do the alignment.

YOU can do the alignment.

TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Solved
This should be ok for you.
This should be ok for you.
- Attachments
-
- preview.png (1.84 KiB) Viewed 1699 times
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
it seems to me that the alignment, at least in / view, is already very good.fire87 wrote: So is it up to me to do the alignment thingy..
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."
Well, my random code failed. 
So it uses the year code (if it's an odd year it's red, otherwise blue
)
No, I did the alignment for you.
(and rewrote most of the code...)
Anyways, I shall talk to Purno about a release.
And you'll be in the credits somewhere...

So it uses the year code (if it's an odd year it's red, otherwise blue

No, I did the alignment for you.

(and rewrote most of the code...)
Anyways, I shall talk to Purno about a release.
And you'll be in the credits somewhere...
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
You made me look into finishing / rewriting code for the BM73.
I did this for the spritesheet...
I used the .png file from Purno's Overview...
Convertted it in to TTD palette.
Rearrange it...
Make a red version of it...
And compiled with my code
(then started to align it.
)
Nothing much really.
(and a didn't have to touch you .grf file since you gave me the .nfo file(which has been re-written for the most part))
[edit]
Also the .pcx file I have cannot be from you .grf file since your sprite sheet only had the train engine views... and mine has all 4 parts, in 2 Sets (red and blue versions.)
Sorry for being so evil.

I did this for the spritesheet...
I used the .png file from Purno's Overview...
Convertted it in to TTD palette.
Rearrange it...
Make a red version of it...
And compiled with my code
(then started to align it.

Nothing much really.

(and a didn't have to touch you .grf file since you gave me the .nfo file(which has been re-written for the most part))
[edit]
Also the .pcx file I have cannot be from you .grf file since your sprite sheet only had the train engine views... and mine has all 4 parts, in 2 Sets (red and blue versions.)
Sorry for being so evil.

TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Who is online
Users browsing this forum: Bing [Bot] and 12 guests