Grf2Html [0.5.2 released - 2010-05-02]

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

User avatar
JGR
Tycoon
Tycoon
Posts: 2607
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: New Tool: Grf2Html

Post by JGR »

The easiest way to use the program is to drag-'n-drop the grf fie you want decoding onto the executable file.
It will then produce a new directory in the same folder as the original GRF.
Ex TTDPatch Coder
Patch Pack, Github
VoroninY
Engineer
Engineer
Posts: 14
Joined: 19 Nov 2007 11:12

Re: New Tool: Grf2Html

Post by VoroninY »

JGR wrote:The easiest way to use the program is to drag-'n-drop the grf fie you want decoding onto the executable file.
It will then produce a new directory in the same folder as the original GRF.
I hope, that I won`t say something wrong, but I have understood nothing from your explanation. Ordinary for me and for my age (I am 12)...
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: New Tool: Grf2Html

Post by DaleStan »

Which part did you not understand?
"the grf file you want decoded", "drag and drop", or "onto the executable file"?

If you tell me which one you don't understand, I might manage to explain it, but they all seem so self-evident to someone who's been working with computers for substantially longer than you've been alive that I'm not entirely sure where to start.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
VoroninY
Engineer
Engineer
Posts: 14
Joined: 19 Nov 2007 11:12

Re: New Tool: Grf2Html

Post by VoroninY »

I haven`t understand THE FRASE "onto the executable file".
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: New Tool: Grf2Html

Post by DaleStan »

OK. Perform the "drop" half of "drag and drop" with the mouse over grf2html.exe.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 991
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: New Tool: Grf2Html

Post by frosch »

Hooray! New version in first post! Including quite a bunch of new features :)
The changelog can be found at the bottom of the first post. But I also want to point some things out here:
- There is a new frame on the left, which groups actions belonging to the same ID of the same feature.
- You can now also walk by hyperlinks from the Action1 down the Action2 chain to the final Action3.
- Advanced VarAction2s are now a lot more readable, as constants and varadjusts are printed more intelligent.
- Action0, 2 and D now print certain numbers signed, if they are signed.
- The preliminary NewGrf Airports specs are preliminarily supported. "preliminary" means both the specs and the support for them might change or even get abandoned in the future.

On a general note: As the information grf2html can print constantly grows with every release, the probabilty that too much excessive information renders the output unuseful increases [*]. Therefore most of the new features can be disabled in the inifile. (Not every option has an equivalent on the command line though)

And now, enjoy the new version :)

[*] E.g. I had a patch to print Action0 values in sensible units. But it is just too much to simply dump it into the output.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
User avatar
onodera
Traffic Manager
Traffic Manager
Posts: 170
Joined: 30 Jan 2005 23:00
Location: Moscow, Russia
Contact:

Re: Grf2Html [0.5 released - 25. Mar. 2008]

Post by onodera »

I'd like to thank you for this tool. It is immensely useful for me, as I have to work with a decompiled nfo, and finding the correct varaction 2 is a pain. A pain unless I use grf2html.
:bow:
It's a nodding donkey in my avatar, not me! I'm an oil rig.
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 991
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: Grf2Html [0.5.1 released - 27. Oct. 2008]

Post by frosch »

Small update to catch up with all the new newgrf features which were added during the last 7 months.

Changelog and binaries in first post.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Re: Grf2Html [0.5.1 released - 27. Oct. 2008]

Post by stevenh »

I totally should have collaborated with you when I started creating GRF Hacking....
As you can tell, i didn't even come up with a good name.
Your code should really be extended with a layer of editability on top. Reporting the correct 'translation' of the GRF code to english is 75% of the hard work.

One day I'll find some time and come knocking on your door to work it all out :)
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 991
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: Grf2Html [0.5.1 released - 27. Oct. 2008]

Post by frosch »

My door will be open :)

Though I do not plan to add any editing capabilities myself. In that point I have the same opinion as mb, :shock:
I.e. I don't think that clicking around with varaction2 chains would be very useful. A GUI tool would be more adequate for cropping, aligning and constructing spritelayouts.

But nevertheless I am sure there are enough things on my never-ending-todo-list some editor could benefit from.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5705
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: Grf2Html [0.5.1 released - 27. Oct. 2008]

Post by andythenorth »

Thanks for this tool. I am currently learning nfo by editing an existing, slightly complex file with 1200 sprites in it and no comments :lol: That's sort of fun, but I'd be lost without Grf2html.

cheers,

Andy
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 991
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: Grf2Html [0.5.2 released - 2010-05-02]

Post by frosch »

\o/
1.5 years after the previous release there is an update :p

Details in first post.

Oh, and now I can unashamed ask to move this topic to the Technical Discussion forum :)
Edit: Thanks :)
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 1 guest