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
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

orudge wrote:
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.
Well Owen, you will get plenty of feedback with the GRF Creator - you will get credit in all the readmes of all the sets that use it, and the relieved thanks of everyone whose sets stalled waiting for a coder.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
User avatar
orudge
Administrator
Administrator
Posts: 25222
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge »

As I say, I will try to get a working version of some sort out next week if possible.
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7596
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

Thanks for such a brill tool, oskar but how can I make the name of it and copyright stuff come up in the grfstatus box?

NEXT WEEK!!!!

YAY

hurrah for owen!
Image
User avatar
orudge
Administrator
Administrator
Posts: 25222
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge »

Born Acorn wrote:NEXT WEEK!!!!
YAY
hurrah for owen!
I will try. No guarantees. ;)
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7596
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

just praising the lord, not askin him :wink:

next week reminds me, Im going to be around a lot cos of easter holidayz :D
Image
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Hello?

Could we stay on topic please, this is the GRDTOGRF Topic. :wink: Thanks...


To see all commandline options of GRDTOGRF use -h, I think I have posted how to make GRFIDs already:
http://www.tt-forums.net/viewtopic.php?p=115338#115338

for -i in the last alphas: -i "firststring short" "second string info"

Happy GRF creating :D
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7596
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

whenever I clcik on it all it does it close and generate the exe I drag onto it.
Image
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

It's a command line util ... use a commando interpreter
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7596
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

I need a proper manual, I can now use the comand line, but don't know how to specify the .exe I want to convert and how to add a copyright and name
Image
User avatar
Szappy
Chief Executive
Chief Executive
Posts: 689
Joined: 29 Mar 2004 14:35
Location: Budapest, Hungary
Contact:

Post by Szappy »

Born Acorn wrote:I need a proper manual, I can now use the comand line, but don't know how to specify the .exe I want to convert and how to add a copyright and name
I have the same problem. I don't understand these grfid thingies a bit.
On top of this, any file I convert will be always activated, and can't be turned off ingame (has a blue flag).
Please eis_os if you have time explain this in a manner even a 'lamer' like me could understand...
Thanks in advance :)
SHADOW-XIII
Tycoon
Tycoon
Posts: 14275
Joined: 09 Jan 2003 08:37

Post by SHADOW-XIII »

if GRFID = FFFFFF then it cannot be turned off
GRFID has to be unique because then TTDPatch can give errors and some errors can occur while playing

if you convert EXE graphic to GRF without giving it parameter with GRFID then it automatically gets FFFFFF

open grdtogrf.exe file with console (not in windows, run from Menu Start-> Run: "cmd" or "command")
what are you looking at? it's a signature!
User avatar
Szappy
Chief Executive
Chief Executive
Posts: 689
Joined: 29 Mar 2004 14:35
Location: Budapest, Hungary
Contact:

Post by Szappy »

You don't get my problem. I know that id FFFFFF cannot be turned off, but I don't know how to make it different.
I know how to give console parameters (I grew up on DOS) would like to know _what_ parameters are needed, and in what form?
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Hmm, what isn't understandable?
Please consinder reading the commands explained at the download page.
Aswell there is -h for help :wink:

An Example:
-g OE 10 00 -i "Myfile" "This is my silly test example and is (c) 2004 by me"
The 00 will be counted up if you convert several grd files to several grf files.

Thought the tool is self-explaining :) , if it is unclear feel free to tell what I made wrong and I can improve...
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
jebartle
Engineer
Engineer
Posts: 88
Joined: 19 May 2003 22:37

Post by jebartle »

Grdtogrf is an excellent program and is very easy to use. I have added
it to my GRFMENU along side grfcodec. If you ever decide to improve it
I will be sure to appreciate that too. GrfMenu now has a PCX viewer. Its not very big, about 320 by 300, big enough when working on single sprite inprovements. Have finally almost finished my Grf viewer program. What I really wanted was a way either convert the grfs back to exe or to convert grfs to EXE. Of course I realize there would be limitations. Any way GRD2GRF has really been great. Thanks
JEB
User avatar
Szappy
Chief Executive
Chief Executive
Posts: 689
Joined: 29 Mar 2004 14:35
Location: Budapest, Hungary
Contact:

Post by Szappy »

eis_os wrote: An Example:
-g OE 10 00 -i "Myfile" "This is my silly test example and is (c) 2004 by me"
The 00 will be counted up if you convert several grd files to several grf files.
That clears a bit. The confusion could be, that the -h states "-g GRFID <initials> <firstbyte> <secondbyte>" which IMHO means, to give it the grfid then the initials then the firstbyte then the secondbyte.

I checked your site, and it states "-g <two initials> <firstbyte> <secondbyte> for the ID of GRFID". This is much clearer, but i don't have net acess at home, and only had the -h switch to help me. I think, if you have time you should correct this. Could also add an example to it, like the above one, complete with a test filename...

The part I don't understand is what does the "OE 10 00" depend on. I mean what do I have to write there, just any two hex(?) numbers? Or does any rule exist on that topic? How do I know the numbers I use aren't in use by someone else's grf set. Other question is that is it the grfid that tells ttdpatch to turn off certain sets in certain circumstances (eg. climate), or something else?
I see now, my problem is not specific to grd2grf :oops: , it's related to grfid's.
If there's a good tutorial on this subject, please point me to it...

Still two questions remain. The line"-1 convert file to one grf" taken from the -h command. Does that mean, that it will merge different exe's to one grf? If so, and the exe's contain info on same sprites, which one will be in the grf, the latter?
The other question is what does the "-D Don't map sprite numbers" switch do?

-edit-
The -h states:
GRDTOGRF [options] <GRD-File> [<GRF-File>]
but the options should go to the end, otherwise it did not do anything for me...

I've tried the -i switch, and all the text went into the description part, w/o copyright. I've tried with and w/o "" and separated with space, but none worked (in fact when did not use space, the proggy returned with the help screen, probably due to not enough parameters)
Could you tell me what did I do wrong?
hazard
Engineer
Engineer
Posts: 26
Joined: 11 Dec 2002 12:47
Location: Graz, Austria

Post by hazard »

where can i download the grf converter? can someone gimmi a link :D
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Press:
Image
or
Image
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
User avatar
Szappy
Chief Executive
Chief Executive
Posts: 689
Joined: 29 Mar 2004 14:35
Location: Budapest, Hungary
Contact:

Post by Szappy »

Hello!
Any chance someone could answer my questions :?:
At least tell me the correct usage of the -i switch, because everthing I write in the ""s goes into the description part.

eis_os even your suggestion produced the following:

ps. why can't I post png's, I use ACDSee "save as png" and they never show up here...
Attachments
Scr1.gif
Scr1.gif (107.8 KiB) Viewed 5505 times
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Indeed there goes something wrong in grdtogrf 0.41 last builds.

You have to fix the action 8 (second line if you decode the grf) yourself until I find the error in it...
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
User avatar
Szappy
Chief Executive
Chief Executive
Posts: 689
Joined: 29 Mar 2004 14:35
Location: Budapest, Hungary
Contact:

Post by Szappy »

Thank You!

If You are planning an update, please consider the following:
Szappy wrote:
eis_os wrote: An Example:
-g OE 10 00 -i "Myfile" "This is my silly test example and is (c) 2004 by me"
The 00 will be counted up if you convert several grd files to several grf files.
That clears a bit. The confusion could be, that the -h states "-g GRFID <initials> <firstbyte> <secondbyte>" which IMHO means, to give it the grfid then the initials then the firstbyte then the secondbyte.

I checked your site, and it states "-g <two initials> <firstbyte> <secondbyte> for the ID of GRFID". This is much clearer, but i don't have net acess at home, and only had the -h switch to help me. I think, if you have time you should correct this. Could also add an example to it, like the above one, complete with a test filename...

The -h states:
GRDTOGRF [options] <GRD-File> [<GRF-File>]
but the options should go to the end, otherwise it did not do anything for me...
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 14 guests