Grf2Html [0.5.2 released - 2010-05-02]
Moderator: Graphics Moderators
Re: New Tool: Grf2Html
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.
It will then produce a new directory in the same folder as the original GRF.
Ex TTDPatch Coder
Patch Pack, Github
Patch Pack, Github
Re: New Tool: Grf2Html
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)...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.
Re: New Tool: Grf2Html
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.
"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
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Re: New Tool: Grf2Html
I haven`t understand THE FRASE "onto the executable file".
Re: New Tool: Grf2Html
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
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Re: New Tool: Grf2Html
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.

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.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
Re: Grf2Html [0.5 released - 25. Mar. 2008]
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.


It's a nodding donkey in my avatar, not me! I'm an oil rig.
Re: Grf2Html [0.5.1 released - 27. Oct. 2008]
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.
Changelog and binaries in first post.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
- stevenh
- TTDPatch Developer
- Posts: 759
- Joined: 24 Jul 2005 05:07
- Location: Canberra, Australia
- Contact:
Re: Grf2Html [0.5.1 released - 27. Oct. 2008]
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
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

Re: Grf2Html [0.5.1 released - 27. Oct. 2008]
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,
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.

Though I do not plan to add any editing capabilities myself. In that point I have the same opinion as mb,

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.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
- andythenorth
- Tycoon
- Posts: 5705
- Joined: 31 Mar 2007 14:23
- Location: Lost in Music
Re: Grf2Html [0.5.1 released - 27. Oct. 2008]
Thanks for this tool. I am currently learning nfo by editing an existing, slightly complex file with 1200 sprites in it and no comments
That's sort of fun, but I'd be lost without Grf2html.
cheers,
Andy

cheers,
Andy
FIRS Industry Replacement Set (released) | HEQS Heavy Equipment Set (trucks, industrial trams and more) (finished)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Re: Grf2Html [0.5.2 released - 2010-05-02]
\o/
1.5 years after the previous release there is an update
Details in first post.
Oh, and now I can unashamed ask to move this topic to the Technical Discussion forum
Edit: Thanks
1.5 years after the previous release there is an update

Details in first post.
Oh, and now I can unashamed ask to move this topic to the Technical Discussion forum

Edit: Thanks

⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
Who is online
Users browsing this forum: No registered users and 1 guest