GRDTOGRF:Converts graphic sets in EXE/GRD files to GRF 0.4.1

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
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3602
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

GRDTOGRF:Converts graphic sets in EXE/GRD files to GRF 0.4.1

Post by eis_os » 06 Nov 2003 22:34

GRDTOGRD

Can produce grf file for use with TTDPatch from grd or grfdiff exe files.

Use -h for help.

Current Version is 0.4.1 and can be found on my site.
Fixed a bug when writeing pseudo sprites.


--- old message ----

Hi

Would you like a app to convert exe graphic packs to grf files?

Warning: the GRF file this tool can output is very simple. But my tests showed it works very well...
Last edited by eis_os on 01 Dec 2003 20:20, edited 12 times in total.
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image

Prof. Frink
Tycoon
Tycoon
Posts: 3849
Joined: 20 Jan 2003 14:51
Location: Broadstone, Dorset
Contact:

Post by Prof. Frink » 06 Nov 2003 22:34

Yes.

Chris 'Awkward' McKenna
Tycoon
Tycoon
Posts: 1050
Joined: 26 Oct 2003 18:32
Location: Somerset, UK
Contact:

Post by Chris 'Awkward' McKenna » 06 Nov 2003 22:37

yes please.

Chris
Anything can be achieved if you don't care who gets the credit
--Author Unknown

broodje
Director
Director
Posts: 615
Joined: 13 Jul 2003 12:47
Location: Alphen aan den Rijn
Contact:

Post by broodje » 06 Nov 2003 22:40

I could use it, so yes :)

SHADOW-XIII
Tycoon
Tycoon
Posts: 13749
Joined: 09 Jan 2003 08:37

Post by SHADOW-XIII » 06 Nov 2003 22:54

surely yes 8)
what are you looking at? it's a signature!

User avatar
mp3Pro
Tycoon
Tycoon
Posts: 1390
Joined: 21 Jan 2003 14:49
Location: My own home, Sc
Contact:

Post by mp3Pro » 07 Nov 2003 00:41

yes

User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3602
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os » 07 Nov 2003 09:33

For testing I need some help:

A grd or exe file which patches a other grf file than the standart trg1r
(Doesn't work yet, need some climate switching feature than)
(Link is ok aswell)

If you have an idea to do the climate switching for it, don't be silent! :wink:

User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13190
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Post by Hyronymus » 07 Nov 2003 09:50

Can I provide a DOS set too? My European Roadset modifies trg1.grf, trgc.grf and trgh.grf. Meaning you can check 2 of 3 for succes.

User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3602
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os » 07 Nov 2003 09:58

But I can test only if it really works with a set for window ... :cry:
Graphic errors created by my redecoder can't be really tested with a dos set in the windows version... :?

User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13190
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Post by Hyronymus » 07 Nov 2003 10:19

OK, then I can't offer you anyone. Still (!!!), I fail to convert DOS to Windows.

User avatar
George
Tycoon
Tycoon
Posts: 4306
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: SPb, Russia.
Contact:

Post by George » 07 Nov 2003 13:11

Hyronymus wrote:OK, then I can't offer you anyone. Still (!!!), I fail to convert DOS to Windows.
look the finished graphics topic. You have done it there.

User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13190
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Post by Hyronymus » 07 Nov 2003 13:18

No, really. All I did was attempts that turned out having the wrong palette. If I really suceeded I wouldn't know why never finished my European Roadset (still needs some tweaking IMO).

User avatar
George
Tycoon
Tycoon
Posts: 4306
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: SPb, Russia.
Contact:

Post by George » 07 Nov 2003 15:25

Hyronymus wrote:No, really. All I did was attempts that turned out having the wrong palette. If I really suceeded I wouldn't know why never finished my European Roadset (still needs some tweaking IMO).
I think Oskar wants to check actions 7 and A, right? I think, your file in that topic is Ok for that.

User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3602
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os » 08 Nov 2003 10:36

The current status is:
I have added an arctic sprite map table to the tool.
Because of rewriteing of some parts I have to test the grf writeer the third time.
I need to add a action 7 climate routine to skip files, and make it a option for the main file aswell.

User avatar
George
Tycoon
Tycoon
Posts: 4306
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: SPb, Russia.
Contact:

Post by George » 08 Nov 2003 10:49

eis_os wrote:The current status is:
I have added an arctic sprite map table to the tool.
Because of rewriteing of some parts I have to test the grf writeer the third time.
I need to add a action 7 climate routine to skip files, and make it a option for the main file aswell.
Then the file in the finished graphics topic has to be the one you need, if I understand you right (page 101 or 102)

jebartle
Engineer
Engineer
Posts: 88
Joined: 19 May 2003 22:37

Post by jebartle » 08 Nov 2003 15:17

When this utility is available, You can then decode the grf file?
Thus making the graphics availabe? I have loads of thes exe
files and it would be nice to identfy then with their graphics.
Then I would be able to use them as I wanted to. In any case
I vote a yes for this tool. It would seem to make using the exe's
easier.

User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3602
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os » 08 Nov 2003 16:00

It converts exe/grd file to TTDPatch grf files, they can be decode as normal...

Simple put the output files in the newgrf.cfg and then you can use them

User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3602
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os » 08 Nov 2003 19:13

Current Status / Feature list:

Coverts exe and grd to grf files,
can convert files that patches more than one file aswell.

Maps the sprite numbers from trg(1)c.grf (arctic) and trg(1)h.grf automaticly to the right sprites, adds a action 7 for climate...
I will write the map data for toyland soon too.

What it doesn't do and aren't planed is that the Action A gets packed so it doesn't write a seperate action a for each sprite.
Maybe I find a easy way to do this...

A little beta testing shouldn't harm, so pm please if you have something (prefered windows stuff) or want to beta test
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image

Patchman
Tycoon
Tycoon
Posts: 5552
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman » 08 Nov 2003 19:46

eis_os wrote:What it doesn't do and aren't planed is that the Action A gets packed so it doesn't write a seperate action a for each sprite.
Maybe I find a easy way to do this...
That shouldn't really be too hard, I think. Basically when you write the action A, count how many consecutive sprites you have. That way, you'd have to read the .grd file twice, once to get all sprite numbers and once to do the actual conversion, but that shouldn't be too difficult.

User avatar
Dinges
Tycoon
Tycoon
Posts: 2865
Joined: 07 Jan 2003 18:00
Location: Fryslân Boppe!
Contact:

Post by Dinges » 08 Nov 2003 20:05

no, don't do that, it will make the file unreadable, you can now leave it in chuncks :P
Dinges

Who is the other person in me?

my Blog (dutch) - my Last.fm profile

Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/

Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Ragin1_ and 7 guests