Graphic coders, look here! Just a "little" problem

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

fire87 wrote:It is right there, so the problem is in the .pcx-file..
Have you seen the PCX file when you decoded your GRF?

(it could not accidently be the problem that you've DOS version of TT?)
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
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."
User avatar
fire87
Tycoon
Tycoon
Posts: 1381
Joined: 28 Jul 2004 14:58
Location: Skedsmokorset, Norway

Post by fire87 »

The only DOS-game I have is Destruction Derby on WinXP (and it actually works)

I have never had TTD in DOS.. Or, I had once, but I changed it very quickly.

It might be that Jasc is f*cking up my .pcx-file, and with Adobe it's flashing like a crazy traffic-light.. So I don't know wich to use :?

I posted my PCX-file here somewhere.. But I can surely post it again :wink:
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

fire87 wrote:I posted my PCX-file here somewhere.. But I can surely post it again :wink:
Well, I copied my sprites over this PCX file and recoded. The parts that were placed on the correct spot of the PCX file, actually show up in TT correctly, as you should be able to see in the GRF.

So, IMO/AFAIK, the only thing to do is paste the original sprites in the PCX and make sure the xrel, yrel stuff is correct.

BTW, I don't know if the NFO editor might cause the problem.
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
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."
User avatar
fire87
Tycoon
Tycoon
Posts: 1381
Joined: 28 Jul 2004 14:58
Location: Skedsmokorset, Norway

Post by fire87 »

I have used the NFO-editor one time.. And it was where it should there.. But I didn't like the PCX-file because it was pink in the NFO Editor :?
And when I checked after that it was pink.. And I believe it's still pink :roll:

EDIT: I see you fixed the pallette :)
I only had about 32 colours when I was trying to code.. But the train is badly out of place now :?
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

Maybe you shouldn't use the NFO Editor for xsize, ysize, xrel and yrel thingies.

You could try making a correct PCX file and doing the x,y stuffies manually.

It seems to me the NFO Editor is messing with the PCX file, which it shouldn't do :wink:

EDIT: Didn't read your edit before posting this.
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
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."
User avatar
fire87
Tycoon
Tycoon
Posts: 1381
Joined: 28 Jul 2004 14:58
Location: Skedsmokorset, Norway

Post by fire87 »

It seems to me that everything is messing with the PCX-file.. :cry:

EDIT: I've posted the PCX-file you sendt me..
Attachments
Well..
Well..
bm73 (2).png (1.16 KiB) Viewed 1512 times
SHADOW-XIII
Tycoon
Tycoon
Posts: 14275
Joined: 09 Jan 2003 08:37

Post by SHADOW-XIII »

how you decoding ? (tried -d xxx.grf -p 2 ?)
how you converting to PNG ?
what are you looking at? it's a signature!
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

SHADOW-XIII wrote:how you converting to PNG ?
Save as...?
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
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."
User avatar
fire87
Tycoon
Tycoon
Posts: 1381
Joined: 28 Jul 2004 14:58
Location: Skedsmokorset, Norway

Post by fire87 »

Shadow-XIII wrote:how you decoding ? (tried -d xxx.grf -p 2 ?)
how you converting to PNG ?
For the first question.. I tried -d xxx.grf -p 2, and I tried -d xxx.grf.. With same effect..

And for question 2.. Purno has right, save as :wink:
SHADOW-XIII
Tycoon
Tycoon
Posts: 14275
Joined: 09 Jan 2003 08:37

Post by SHADOW-XIII »

are you sure you have newest grfcodec :?:
what are you looking at? it's a signature!
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

Me has grfcodec.exe, last change on 17-05-2003, works fine :?
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
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."
User avatar
fire87
Tycoon
Tycoon
Posts: 1381
Joined: 28 Jul 2004 14:58
Location: Skedsmokorset, Norway

Post by fire87 »

Yup, I'm 100% sure.. I downloaded it yesterday.. Even with the sourcecode wich I believe I don't need.. :?:

EDIT: I think I figured out why the train is so obscure.. It's because it's very, very, very off in the NFO Editor.. It's so off that the last view is just white :!:
Now I'm wondering.. How to fix THAT :?:

EDIT2: Sorry.. Once again I figured it out by myself..

EDIT3: I fixed it but the train is still pretty odd.. Maybe I can change Purno's GRF :)

EDIT4: Didn't work very well.. And, when I copied it with paint I suddenly had 32 colours again.. Trying one more time
User avatar
fire87
Tycoon
Tycoon
Posts: 1381
Joined: 28 Jul 2004 14:58
Location: Skedsmokorset, Norway

Post by fire87 »

Okey.. I'm giving up.. This is obviously the best I can do..
Attachments
*yawn*
*yawn*
SCR5.png (16.2 KiB) Viewed 1574 times
User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1799
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Post by Lakie »

PM me a copy.

I'll see what I can do to it.

and tell you all the changes I make, when / if I make it work.

:D
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."
ChrisCF
Transport Empire Developer
Transport Empire Developer
Posts: 3608
Joined: 26 Dec 2002 16:39
Location: Over there --->

Post by ChrisCF »

Correct order for the sprites should be north first, then each direction in steps of 45 degrees clockwise. That .png you posted looks like it has bits of the train in the wrong directions. Try attaching your .pcx and .nfo here (i.e. before it gets compiled and useful information lost). Best bet is to stick them in a Zip file.
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

ChrisCF wrote:Correct order for the sprites should be north first, then each direction in steps of 45 degrees clockwise. That .png you posted looks like it has bits of the train in the wrong directions. Try attaching your .pcx and .nfo here (i.e. before it gets compiled and useful information lost). Best bet is to stick them in a Zip file.
That order is done by me. I tried to paste my sprites over his pcx file, but the 'original' sprites in the pcx where a mess, so I couldn't see where to put which sprite.
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
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."
User avatar
fire87
Tycoon
Tycoon
Posts: 1381
Joined: 28 Jul 2004 14:58
Location: Skedsmokorset, Norway

Post by fire87 »

Lakie wrote:PM me a copy.
I'll see what I can do to it.

and tell you all the changes I make, when / if I make it work.[/quote]

Ok, you get it soon :wink:
ChrisCF wrote:Correct order for the sprites should be north first, then each direction in steps of 45 degrees clockwise. That .png you posted looks like it has bits of the train in the wrong directions. Try attaching your .pcx and .nfo here (i.e. before it gets compiled and useful information lost). Best bet is to stick them in a Zip file.
I'm sending you the right PCX now, look below.
Purno wrote:That order is done by me. I tried to paste my sprites over his pcx file, but the 'original' sprites in the pcx where a mess, so I couldn't see where to put which sprite.
I fixed it, se below, again :wink:
Attachments
Well, it was fixed when I was messing around with it.. I haven't looked at it, but I assume it's still right
Well, it was fixed when I was messing around with it.. I haven't looked at it, but I assume it's still right
bm73again.png (2.83 KiB) Viewed 1507 times
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

Okay, that PNG file looks good. AFAIK you now should reassign xsize, ysize, xrel, yrel in the NFO and recode. :?
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
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."
User avatar
fire87
Tycoon
Tycoon
Posts: 1381
Joined: 28 Jul 2004 14:58
Location: Skedsmokorset, Norway

Post by fire87 »

Okay, but the question is.. What numbers should I edit? I don't want to mess to much with the GRF so it becomes useless..

EDIT: And I totally hope the xrel, yrel-thing is just how many numbers of pixels there are in the picture.. That's not harder than to tell :lol:
But if it is something else, then I'm not so sure how to do it..
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

fire87 wrote:Okay, but the question is.. What numbers should I edit?
All xsize, ysize, xrel and yrel numbers in lines that refer to sprites in the pcx. You probably need to check them all. :?
fire87 wrote:I don't want to mess to much with the GRF so it becomes useless..
You need to make a backup of your old file, of course :wink:
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
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."
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 17 guests