GRFCodec 6.0.3

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

Moderator: Graphics Moderators

Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

GRFCodec 6.0.3

Post by Rubidium » 09 Aug 2010 12:30

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.
Last edited by Rubidium on 15 Jul 2013 19:10, edited 9 times in total.

User avatar
wallyweb
Tycoon
Tycoon
Posts: 5575
Joined: 27 Nov 2004 15:05
Location: Canada

Re: GRFCodec 1.0.0-RC1

Post by wallyweb » 09 Aug 2010 13:51

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?

Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: GRFCodec 1.0.0-RC1

Post by Rubidium » 09 Aug 2010 13:59

wallyweb wrote:Will NFORenum be picked up as well?
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=49612

User avatar
wallyweb
Tycoon
Tycoon
Posts: 5575
Joined: 27 Nov 2004 15:05
Location: Canada

Re: GRFCodec 1.0.0-RC1

Post by wallyweb » 09 Aug 2010 14:18

Fantastic! Thank you for this. I'm headed next door for a look as we speak! 8)

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

Re: GRFCodec 1.0.0-RC1

Post by frosch » 11 Aug 2010 06:54

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 ?
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9332
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: GRFCodec 1.0.0-RC1

Post by planetmaker » 11 Aug 2010 07:02

\2psto sounds ok. I'd advise against \2pers as I'd associate that rather with personal than persistent ;-)

User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2366
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: GRFCodec 1.0.0-RC1

Post by Lord Aro » 11 Aug 2010 07:05

Rubudium wrote:...we revive GRFCodec in the hope to keep it useful and usable for as long as it's neeeded.
wait. :idea:
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

User avatar
FooBar
Tycoon
Tycoon
Posts: 6559
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: GRFCodec 1.0.0-RC1

Post by FooBar » 11 Aug 2010 14:30

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".

Eddi
Tycoon
Tycoon
Posts: 7424
Joined: 17 Jan 2007 00:14

Re: GRFCodec 1.0.0

Post by Eddi » 15 Aug 2010 09:59

such an alternative could be the nml compiler getting an nfo frontend...
You might not exactly be interested in Ferion, but if you are, have fun :)

User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: GRFCodec 1.0.0

Post by Gremnon » 25 Aug 2010 16:08

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

Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: GRFCodec 5.0.0

Post by Rubidium » 17 Oct 2010 21:11

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.

User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1804
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Re: GRFCodec 5.0.0

Post by Lakie » 25 Oct 2010 12:37

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
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."

Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: GRFCodec 5.1.0

Post by Rubidium » 10 Dec 2010 22:09

Today GRFCodec 5.1.0 was released which features Lakie's PNG support.

zhargon
Engineer
Engineer
Posts: 56
Joined: 01 Mar 2006 22:50
Location: Wiltshire, England

Re: GRFCodec 5.1.1

Post by zhargon » 17 Jul 2011 22:51

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.

User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3100
Joined: 24 Apr 2007 09:37
Location: Straya

Re: GRFCodec 5.1.1

Post by Emperor Jake » 26 Nov 2011 11:05

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. :roll: 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
--Stuff I made (or helped make)--
ImageImageImageImage

--My Award-Winning Screenshots and Videos--

Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4748
Joined: 09 Sep 2007 05:03
Location: home

Re: GRFCodec 5.1.1

Post by Alberth » 26 Nov 2011 11:11

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

User avatar
wallyweb
Tycoon
Tycoon
Posts: 5575
Joined: 27 Nov 2004 15:05
Location: Canada

Re: GRFCodec 5.1.1

Post by wallyweb » 26 Nov 2011 11:54

Emperor Jake wrote:but I'm sure many would appreciate it if the latest versions were easily accessible from the repositories.
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? :mrgreen:

User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3100
Joined: 24 Apr 2007 09:37
Location: Straya

Re: GRFCodec 5.1.1

Post by Emperor Jake » 27 Nov 2011 03:39

wallyweb wrote:
Emperor Jake wrote:but I'm sure many would appreciate it if the latest versions were easily accessible from the repositories.
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? :mrgreen:
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.
--Stuff I made (or helped make)--
ImageImageImageImage

--My Award-Winning Screenshots and Videos--

User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Re: GRFCodec 5.1.3

Post by stevenh » 22 Feb 2012 04:20

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.

User avatar
Edd.Dragon
Engineer
Engineer
Posts: 101
Joined: 14 Jan 2012 10:13
Location: Ukraine

Re: GRFCodec 5.1.3

Post by Edd.Dragon » 22 Feb 2012 05:05

stevenh wrote: I've installed MinGW on my other machine to get around this
You just need to copy this dll to folder there exe placed. Installing of mingw not needed.

Project (GRFCodec) must be builded with static libraries to eliminate this requirement. Required code will be placed inside exe.

Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 3 guests