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
mp3Pro
Tycoon
Tycoon
Posts: 1392
Joined: 21 Jan 2003 14:49
Location: My own home, Sc
Contact:

Post by mp3Pro »

wow this thing rocks!!!!
now I can convert all my stuff to grf
good job :lol:
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

A good feedback makes you feel better the day :)

The current version 0.4 isn't finished,
I will change the grfid -g option to 3 parameter form:
So it will look like this: -g <Initals> <firstbyte> <secondbyte>

The second byte will be counted up automatic like before so it will work with grd/exe that include more than on file to patch...

This should make your artist life much easier ;)
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
User avatar
Darryl256
Traffic Manager
Traffic Manager
Posts: 204
Joined: 23 May 2003 12:31
Location: Ashburton, New Zealand

Post by Darryl256 »

Is the program capable of converting multiple files into a single grf file, or is it a one-to-one converter?
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

It coverts each file in a grd/exe to a extra grf file
and it can't currently merge serveral grd files to one grf...

In general you can merge grf files by your own.

Decode them

You need to copy the nfo data from an other file to your "main" file and
alter the first entry to reflect the sprite count, than encode the main file...

Ohh and change the numbering ;) (aka -1, see doc of grfcodec)
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Ok, new version is out ...

Changelog 0.4:
  • added trgi map support
  • support for more than one file to convert
  • support to write to single file -1
  • GRFID -g changed: use -g <Initials> <firstbyte> <secondbyte>
    The secondbyte will be counted up if it's necessary
A thing I haven't changed is GRD File can be also GRD Files.
That means you can convert serveral files at once,
and if you like to one grf file.
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

As usual some feedback would be nice :wink:
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Version 0.4.0 has a bug, if you get a out of memory problem when you start TTDPatch it's mostly caused by a broken grf file.
(It breaks if diffs have pseudo sprite in it)

0.4.1 fixes this problem but I will not release it soon because it looks like people don't use my tool anyway...
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13235
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Post by Hyronymus »

I never got feedback too, eis_os. Exceptionally you get it when there is an error. But suggestions to imrpoe your tool or whatsoever are rare. You have to start a topic to discuss it before people help you out.
TrueSatan
Transport Coordinator
Transport Coordinator
Posts: 291
Joined: 16 Jul 2003 18:33

Post by TrueSatan »

Hi Oskar.
nice tool :D
i've converted the european roadset into *.grf files :)
and others...
but i couldn't convert Urban Renew by Andrex
your tool gave me a : Unknown GRD file version 65504,
i would say it's because Urban Renew is beta 1 pre-release.
Thnx for this nice tool :)

greets da ol :twisted: Satan
User avatar
orudge
Administrator
Administrator
Posts: 25222
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge »

Hyronymus wrote:I never got feedback too, eis_os. Exceptionally you get it when there is an error. But suggestions to imrpoe your tool or whatsoever are rare. You have to start a topic to discuss it before people help you out.
Yes, it's generally the same with my tools - I only get feedback when there is something wrong. Sometimes I do get a message saying "well done" or whatever, but not all that much.
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Yep, thats mostly so.

Ohh "Urban Renew by Andrex" can't be converted with version 0.4 because it's changeging pseudo sprites.
(Version 0.4.1 fixes this bug)
TrueSatan
Transport Coordinator
Transport Coordinator
Posts: 291
Joined: 16 Jul 2003 18:33

Post by TrueSatan »

Hi Oskar

so i've to fall on my knees and beg to you to release 0.41 ? :wink:
on the other side.... i could set up a nice fire for your soul if your not release it ;-)))
enough kidding. i will wait until you have time to release the bug fix version.

till then
greets
mike
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Released version 0.4.1
fixed pseudo sprite bug
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
TrueSatan
Transport Coordinator
Transport Coordinator
Posts: 291
Joined: 16 Jul 2003 18:33

Post by TrueSatan »

thnx Oskar.
working great :-)
but could you implement an option to overwrite existing files ?
(for future releases :wink: )

OT
i cannot wait to see the new option in the next alphas of ttdpatch :D

keep up the good work

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

Post by eis_os »

You want a file overwrite feature,
-f as force overwrite could be added...

Maybe adding a question like "Do you want to overwrite?" could be good aswell...
TrueSatan
Transport Coordinator
Transport Coordinator
Posts: 291
Joined: 16 Jul 2003 18:33

Post by TrueSatan »

Hi Oskar.
yes the "Do you want to overwrite?" question would be nice.
but since i'm the only one using it *looking around if there are others using it* :wink:... you don't have to. it's only for my laziness.
thnx and greets
mike
SHADOW-XIII
Tycoon
Tycoon
Posts: 14275
Joined: 09 Jan 2003 08:37

Post by SHADOW-XIII »

create *.BAT file that will remove a file before running GrdToGrf :wink:
what are you looking at? it's a signature!
goalie
Route Supervisor
Route Supervisor
Posts: 406
Joined: 28 Aug 2003 14:54
Location: Düsseldorf
Contact:

Post by goalie »

where can i downlod your grdtogrf eisos
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Send me a pm so I don't forget and I will send you my current dev version...
User avatar
Villem
Tycoon
Tycoon
Posts: 3310
Joined: 28 Aug 2003 09:38

Post by Villem »

i would want this to..
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 17 guests