Problem with PCX file

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

Post Reply
User avatar
denny577
Engineer
Engineer
Posts: 111
Joined: 20 Nov 2005 16:10
Location: Netherlands

Problem with PCX file

Post by denny577 »

What program should I use to edit the PCX file? My Win version doesn't have an association for PCX files :lol:
User avatar
m3henry
Tycoon
Tycoon
Posts: 1985
Joined: 15 Feb 2006 12:00
Location: Hampshire

Re: Problem with PCX file

Post by m3henry »

Irfanview, I.mage or GIMP should do.
The occasional look back at your past can teach you a great many things...
User avatar
denny577
Engineer
Engineer
Posts: 111
Joined: 20 Nov 2005 16:10
Location: Netherlands

Re: Problem with PCX file

Post by denny577 »

Just finished installing the GIMP :lol:

EDIT: And it's already hung itsself up :evil:
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Problem with PCX file

Post by FooBar »

Then use IrfanView to convert pcx from and to bmp/png. (bmp for editing graphics, png for posting screenshots)
User avatar
m3henry
Tycoon
Tycoon
Posts: 1985
Joined: 15 Feb 2006 12:00
Location: Hampshire

Re: Problem with PCX file

Post by m3henry »

png is fine for editing you know
The occasional look back at your past can teach you a great many things...
User avatar
denny577
Engineer
Engineer
Posts: 111
Joined: 20 Nov 2005 16:10
Location: Netherlands

Re: Problem with PCX file

Post 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 :?
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Problem with PCX file

Post 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.
User avatar
denny577
Engineer
Engineer
Posts: 111
Joined: 20 Nov 2005 16:10
Location: Netherlands

Re: Problem with PCX file

Post by denny577 »

I know I just thought I'd try.
But where does OTTD store it's knowledge of the original grfs then? :mrgreen:
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Problem with PCX file

Post 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.
User avatar
mph
Engineer
Engineer
Posts: 124
Joined: 24 Aug 2007 20:47

Re: Problem with PCX file

Post 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.
previously known as daylight
User avatar
Ameecher
Tycoon
Tycoon
Posts: 11919
Joined: 12 Aug 2006 15:39
Contact:

Re: Problem with PCX file

Post 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
Image
User avatar
mph
Engineer
Engineer
Posts: 124
Joined: 24 Aug 2007 20:47

Re: Problem with PCX file

Post 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 :wink: Thanks Maedhros ) and it is a far better way of doing it.
previously known as daylight
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Re: Problem with PCX file

Post 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.
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
denny577
Engineer
Engineer
Posts: 111
Joined: 20 Nov 2005 16:10
Location: Netherlands

Re: Problem with PCX file

Post 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 :)
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Google [Bot] and 26 guests