Page 1 of 5

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

Posted: 06 Nov 2003 22:34
by eis_os
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...

Posted: 06 Nov 2003 22:34
by Prof. Frink
Yes.

Posted: 06 Nov 2003 22:37
by Chris 'Awkward' McKenna
yes please.

Chris

Posted: 06 Nov 2003 22:40
by broodje
I could use it, so yes :)

Posted: 06 Nov 2003 22:54
by SHADOW-XIII
surely yes 8)

Posted: 07 Nov 2003 00:41
by mp3Pro
yes

Posted: 07 Nov 2003 09:33
by eis_os
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:

Posted: 07 Nov 2003 09:50
by Hyronymus
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.

Posted: 07 Nov 2003 09:58
by eis_os
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... :?

Posted: 07 Nov 2003 10:19
by Hyronymus
OK, then I can't offer you anyone. Still (!!!), I fail to convert DOS to Windows.

Posted: 07 Nov 2003 13:11
by George
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.

Posted: 07 Nov 2003 13:18
by Hyronymus
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).

Posted: 07 Nov 2003 15:25
by George
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.

Posted: 08 Nov 2003 10:36
by eis_os
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.

Posted: 08 Nov 2003 10:49
by George
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)

Posted: 08 Nov 2003 15:17
by jebartle
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.

Posted: 08 Nov 2003 16:00
by eis_os
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

Posted: 08 Nov 2003 19:13
by eis_os
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

Posted: 08 Nov 2003 19:46
by Patchman
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.

Posted: 08 Nov 2003 20:05
by Dinges
no, don't do that, it will make the file unreadable, you can now leave it in chuncks :P