GRFCodec 6.0.3
Moderator: Graphics Moderators
GRFCodec 6.0.3
Due to time constraints and loss of interest patchman and DaleStan could not work on GRFCodec and NFORenum anymore. This resulted in the slow decay of both GRFCodec and NFORenum. Since GRFCodec 5.0.0 both GRFCodec and the NFORenum can be found in the GRFCodec package.
The current stable release of GRFCodec (including NFORenum) is 6.0.3. The source repository and issue tracker can be found on http://dev.openttdcoop.org/projects/grfcodec and as such bug reports and feature requests for GRFCodec and NFORenum should go to there.
Issues with GRFCodec or feature requests can go here to determine whether it is actually a bug or whether the feature request is feasible, but ultimately we would like them to be reported at the tracker.
In any case, we would like to thank patchman and DaleStan for initially developing and maintaining GRFCodec and NFORenum.
The current stable release of GRFCodec (including NFORenum) is 6.0.3. The source repository and issue tracker can be found on http://dev.openttdcoop.org/projects/grfcodec and as such bug reports and feature requests for GRFCodec and NFORenum should go to there.
Issues with GRFCodec or feature requests can go here to determine whether it is actually a bug or whether the feature request is feasible, but ultimately we would like them to be reported at the tracker.
In any case, we would like to thank patchman and DaleStan for initially developing and maintaining GRFCodec and NFORenum.
Last edited by Rubidium on 15 Jul 2013 19:10, edited 9 times in total.
Re: GRFCodec 1.0.0-RC1
I've downloaded this and will certainly give it a good workout over the next several weeks.
A question ... I find NFORenum is quite handy although yes, it is in need of a couple of updates. Will NFORenum be picked up as well?
A question ... I find NFORenum is quite handy although yes, it is in need of a couple of updates. Will NFORenum be picked up as well?
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Re: GRFCodec 1.0.0-RC1
Get the topic number of this topic, add one and there's a very similar topic about NFORenum, i.e. see http://www.tt-forums.net/viewtopic.php?f=26&t=49612wallyweb wrote:Will NFORenum be picked up as well?
Re: GRFCodec 1.0.0-RC1
Fantastic! Thank you for this. I'm headed next door for a look as we speak! 

wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Re: GRFCodec 1.0.0-RC1
While updating the wiki... operator 10 (store in persistent storage) is the only operator which has no escape sequence by default. IMO default escapes are useful to improve readability of foreign nfo. (Though I am not aware of anyone using custom escapes either).
Someone has a good opinion about which escape to use? \2ps \2psto \2pers ?
Someone has a good opinion about which escape to use? \2ps \2psto \2pers ?
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: GRFCodec 1.0.0-RC1
\2psto sounds ok. I'd advise against \2pers as I'd associate that rather with personal than persistent 

OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: GRFCodec 1.0.0-RC1
wait.Rubudium wrote:...we revive GRFCodec in the hope to keep it useful and usable for as long as it's neeeded.

if GRFCodec becomes unusable for one reason or another, what would GRF devs use? (apart from windows users who have GRFMaker)

EDIT: but GRFMaker isn't that stable either is it?
AroAI - A really feeble attempt at an AI
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Re: GRFCodec 1.0.0-RC1
I'm sure GRFCodec doesn't become unusable.
"As long as it's needed" means something like "as long as no better alternative pops up".
"As long as it's needed" means something like "as long as no better alternative pops up".
Re: GRFCodec 1.0.0
such an alternative could be the nml compiler getting an nfo frontend...
Re: GRFCodec 1.0.0
For those using Arch Linux, there are now packages in the AUR to install GRFCodec, maintained by me.
You can find it here: http://aur.archlinux.org/packages.php?ID=40247
You can find it here: http://aur.archlinux.org/packages.php?ID=40247
Re: GRFCodec 5.0.0
Today we released a new stable of GRFCodec (version 5.0.0) which from now on includes NFORenum as well.
The most visible changes in this release are further silencing options to both GRFCodec and NFORenum's output. This should make it easier to spot errors. Furthermore cropping is now supported for big-endian architectures.
The most visible changes in this release are further silencing options to both GRFCodec and NFORenum's output. This should make it easier to spot errors. Furthermore cropping is now supported for big-endian architectures.
Re: GRFCodec 5.0.0
Just a note, for those who have not noticed, as of r785 (nightlies) there should be the ability to encode and decode with PNG formatted spritesheets.
To encode just use the standard filenames in the NFO file, (obviously ending with ".png" not ".pcx").
To decode use the command-line argument "-o png", (note that writing PNG files is slower than writing PCX files).
~ Lakie
To encode just use the standard filenames in the NFO file, (obviously ending with ".png" not ".pcx").
To decode use the command-line argument "-o png", (note that writing PNG files is slower than writing PCX files).
~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
Re: GRFCodec 5.1.0
Today GRFCodec 5.1.0 was released which features Lakie's PNG support.
Re: GRFCodec 5.1.1
Having returned to playing with OTTD after a while, I note that GRFCodec 5.1.1 has been released. All well and good, except that the new version unfortunately produces .PNG files rather than the PCX files I prefer.
The accompanying GRFCODEC documentation in the zip file is mostly Josefs I remember from a decade or so ago, though the file is dated 19th March 2011, and refers to PCX files exclusively.
It is suggested that a line or two be inserted at the top of the GRFCODEC.txt file to reflect that the PNG format is now the default, and that the PCX file can still be obtained using the -o PCX argument.
The accompanying GRFCODEC documentation in the zip file is mostly Josefs I remember from a decade or so ago, though the file is dated 19th March 2011, and refers to PCX files exclusively.
It is suggested that a line or two be inserted at the top of the GRFCODEC.txt file to reflect that the PNG format is now the default, and that the PCX file can still be obtained using the -o PCX argument.
- Emperor Jake
- Tycoon
- Posts: 3440
- Joined: 24 Apr 2007 09:37
- Skype: Discord: Emperor Jake #4106
- Location: Not Actually Japan
- Contact:
Re: GRFCodec 5.1.1
Hi,
Could the NFORenum and GRFCodec packages on the Ubuntu repositories be updated please? I recently installed them, and then ran into problems when trying to compile the 2CC set because the NFORenum version was so old, it didn't recognise PNG files.
I subsequently installed the latest builds manually, but I'm sure many would appreciate it if the latest versions were easily accessible from the repositories.
Thanks,
Jake
Could the NFORenum and GRFCodec packages on the Ubuntu repositories be updated please? I recently installed them, and then ran into problems when trying to compile the 2CC set because the NFORenum version was so old, it didn't recognise PNG files.

Thanks,
Jake
Re: GRFCodec 5.1.1
You should ask that at some ubuntu forum.
People here just write the program, they do not control updating of the software at 3rd-party repositories
People here just write the program, they do not control updating of the software at 3rd-party repositories
Re: GRFCodec 5.1.1
The drop down window at http://www.openttd.org/en/download-grfcodec/5.1.1 shows an option to select grfcodec-5.1.1-linux which brings up your choice of 32 or 64 bit generic binaries. Why go to Ubuntu when the latest and greatest is so readily accessible right here?Emperor Jake wrote:but I'm sure many would appreciate it if the latest versions were easily accessible from the repositories.

wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
- Emperor Jake
- Tycoon
- Posts: 3440
- Joined: 24 Apr 2007 09:37
- Skype: Discord: Emperor Jake #4106
- Location: Not Actually Japan
- Contact:
Re: GRFCodec 5.1.1
That is what I ended up doing; however I originally installed the Ubuntu provided binaries because it's quite a bit more difficult to install those binaries from the website than it is to simply get it from the repositories, where it will automatically install so that the grfcodec commands are accessible from anywhere, without having to move your files to the grfcodec's location or typing in the program's location in the command line. The makefile command also needs it to be properly installed or it complains that it can't find grfcodec/nforenum. I originally used the Ubuntu repository because I wanted to save the trouble of installing it manually.wallyweb wrote:The drop down window at http://www.openttd.org/en/download-grfcodec/5.1.1 shows an option to select grfcodec-5.1.1-linux which brings up your choice of 32 or 64 bit generic binaries. Why go to Ubuntu when the latest and greatest is so readily accessible right here?Emperor Jake wrote:but I'm sure many would appreciate it if the latest versions were easily accessible from the repositories.
- stevenh
- TTDPatch Developer
- Posts: 759
- Joined: 24 Jul 2005 05:07
- Location: Canberra, Australia
- Contact:
Re: GRFCodec 5.1.3
Guys,
Just for clarification... when did the MinGW libraries become a requirement and what's the easiest way to install them on Windows?
I'm currently getting a "Could not find libgcc_s_dw2-1.dll" when attempting to run the EXE.
I've installed MinGW on my other machine to get around this, but thought it would nearly be nicer to bundle this to allow people to just run grfcodec?
Steven.
Just for clarification... when did the MinGW libraries become a requirement and what's the easiest way to install them on Windows?
I'm currently getting a "Could not find libgcc_s_dw2-1.dll" when attempting to run the EXE.
I've installed MinGW on my other machine to get around this, but thought it would nearly be nicer to bundle this to allow people to just run grfcodec?
Steven.
- Edd.Dragon
- Engineer
- Posts: 101
- Joined: 14 Jan 2012 10:13
- Location: Ukraine
Re: GRFCodec 5.1.3
You just need to copy this dll to folder there exe placed. Installing of mingw not needed.stevenh wrote: I've installed MinGW on my other machine to get around this
Project (GRFCodec) must be builded with static libraries to eliminate this requirement. Required code will be placed inside exe.
Who is online
Users browsing this forum: No registered users and 6 guests