Page 3 of 4

Posted: 19 Aug 2004 17:35
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?)

Posted: 19 Aug 2004 17:40
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:

Posted: 19 Aug 2004 17:43
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.

Posted: 19 Aug 2004 17:46
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 :?

Posted: 19 Aug 2004 17:50
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.

Posted: 19 Aug 2004 17:51
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..

Posted: 19 Aug 2004 17:54
by SHADOW-XIII
how you decoding ? (tried -d xxx.grf -p 2 ?)
how you converting to PNG ?

Posted: 19 Aug 2004 17:56
by Purno
SHADOW-XIII wrote:how you converting to PNG ?
Save as...?

Posted: 19 Aug 2004 17:59
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:

Posted: 19 Aug 2004 18:00
by SHADOW-XIII
are you sure you have newest grfcodec :?:

Posted: 19 Aug 2004 18:03
by Purno
Me has grfcodec.exe, last change on 17-05-2003, works fine :?

Posted: 19 Aug 2004 18:03
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

Posted: 19 Aug 2004 19:12
by fire87
Okey.. I'm giving up.. This is obviously the best I can do..

Posted: 19 Aug 2004 23:49
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

Posted: 20 Aug 2004 00:56
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.

Posted: 20 Aug 2004 08:01
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.

Posted: 20 Aug 2004 08:14
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:

Posted: 20 Aug 2004 08:39
by Purno
Okay, that PNG file looks good. AFAIK you now should reassign xsize, ysize, xrel, yrel in the NFO and recode. :?

Posted: 20 Aug 2004 08:50
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..

Posted: 20 Aug 2004 08:55
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: