Page 1 of 1
Problem with PCX file
Posted: 29 Oct 2007 16:28
by denny577
What program should I use to edit the PCX file? My Win version doesn't have an association for PCX files

Re: Problem with PCX file
Posted: 29 Oct 2007 16:32
by m3henry
Irfanview, I.mage or GIMP should do.
Re: Problem with PCX file
Posted: 29 Oct 2007 16:35
by denny577
Just finished installing the GIMP
EDIT: And it's already hung itsself up

Re: Problem with PCX file
Posted: 29 Oct 2007 16:54
by FooBar
Then use IrfanView to convert pcx from and to bmp/png. (bmp for editing graphics, png for posting screenshots)
Re: Problem with PCX file
Posted: 29 Oct 2007 17:50
by m3henry
png is fine for editing you know
Re: Problem with PCX file
Posted: 29 Oct 2007 17:57
by denny577
I already got it to work, but now I face a new problem.
I put the stuff from the Dutch Catenary PCX into elrailsw.PCX, I encoded it with GRFWizard, and now OTTD says my elrailsw.grf is corrupt

Re: Problem with PCX file
Posted: 29 Oct 2007 18:02
by FooBar
denny577 wrote:and now OTTD says my elrailsw.grf is corrupt
Of course, you edited elrailsw.grf. It now doesn't match the original any more, so for OTTD it's corrupted.
Why do you want to do that anyways? You can load the Dutch catenary in OTTD just fine.
Re: Problem with PCX file
Posted: 29 Oct 2007 18:05
by denny577
I know I just thought I'd try.
But where does OTTD store it's knowledge of the original grfs then?

Re: Problem with PCX file
Posted: 29 Oct 2007 18:14
by FooBar
As you can see in the NewGRF status window, OTTD can calculate the MD5 hash of a newgrf file. The MD5 hash is some kind of unique bitprint of a file.
Additionally, OTTD knows the md5 hash of the original OTTD graphics. Changing an original file also changes the md5 hash of that file. The value known to OTTD doesn't match the value of the file any more, so it must be corrupted.
You should rather create a NewGRF to do what your planning to do.
PS
I don't know if the explanation above is actually correct, but it sounds as plain logic to me.
Re: Problem with PCX file
Posted: 29 Oct 2007 21:47
by mph
i think you can edit the actual graphics files containing the original graphics- trg1r.grf. i think this shouldn't cause the same problems. It seems that editing the required "extra" graphics such as elrails causes problems. I have done this- and it is easier than learning how to code grfs- however obviously it is limited as to what you can do like this- and you will want to learn to code in the end. I am trying this at the moment!-
actually coding a simple graphics replacement for one of the existing graphics is very easy to do. Look at the tutorial on the ttdpatch wiki (sorry im a bit busy so cant get you a link!), and the page for actionA. It took me about 2 hours to work that part out. Although you cant do anything more with it than what you could do wwith editing trg1r.pcx.
Re: Problem with PCX file
Posted: 29 Oct 2007 21:56
by Ameecher
mph wrote:Although you cant do anything more with it than what you could do wwith editing trg1r.pcx.
You do however have advantage of being to deactivate the .grf
Re: Problem with PCX file
Posted: 30 Oct 2007 02:01
by mph
Ameecher wrote:mph wrote:Although you cant do anything more with it than what you could do wwith editing trg1r.pcx.
You do however have advantage of being to deactivate the .grf
You also get round the problem of having a completely messed up trg1r.grf file. I messed my default stations up so much i will have to completely reinstall my ottd graphics to get them back- yet ive done other things i dont want to loose. it suited me at the time i guess- but i have since woked out how to code a station ( a little bit anyway- by way of getting someone to code it for me

Thanks Maedhros ) and it is a far better way of doing it.
Re: Problem with PCX file
Posted: 31 Oct 2007 11:15
by Purno
denny577 wrote:I already got it to work, but now I face a new problem.
I put the stuff from the Dutch Catenary PCX into elrailsw.PCX, I encoded it with GRFWizard, and now OTTD says my elrailsw.grf is corrupt

Why would you want to do that? The Dutch Catenary is fully functionally coded in a GRF available at the Dutch Trainset's website and GRFCrawler... It's known to work with OpenTTD too.
Re: Problem with PCX file
Posted: 31 Oct 2007 18:10
by denny577
Purno wrote:denny577 wrote:I already got it to work, but now I face a new problem.
I put the stuff from the Dutch Catenary PCX into elrailsw.PCX, I encoded it with GRFWizard, and now OTTD says my elrailsw.grf is corrupt

Why would you want to do that? The Dutch Catenary is fully functionally coded in a GRF available at the Dutch Trainset's website and GRFCrawler... It's known to work with OpenTTD too.
I know it works and I also use it, but I just always experiment
