Compiling NFO files using nmlc

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

Moderator: Graphics Moderators

Post Reply
Alon
Engineer
Engineer
Posts: 30
Joined: 22 Jul 2019 14:07

Compiling NFO files using nmlc

Post by Alon »

Hi,
I have read that nmlc can compile NFO files, but I don't know how to do it. I would like to know what is the format of the file (nfo) when compiling with nmlc, and how to use the the makefile system in nfo.

Edit: It is not possible to compile NFO files using nmlc

I am not interested using GRFCODEC and m4nfo, because I am using Android to compile grfs. This is possible using the free app called "Pydroid 3" (not advertising), this is like a regular Python IDE , you can add libraries using pip and edit and compile on the go using my phone, but with some limitations (again not advertising). I know this is unconventional, but if there is a way to use GRFCODEC in Android, will you please tell me.


These are my questions when using nmlc to compile NFO files:
  • Is it (compiling NFO) similar to compiling nml files (via nmlc)?
  • How?
  • What is the code format?
  • How to setup this using the makefile system of planetmaker?


And some tips when doing it will help.
Last edited by Alon on 09 Nov 2020 16:29, edited 1 time in total.
Eddi
Tycoon
Tycoon
Posts: 7530
Joined: 17 Jan 2007 00:14

Re: Compiling NFO files using nmlc

Post by Eddi »

Alon wrote: 09 Nov 2020 11:10 Hi,
I have read that nmlc can compile NFO files, but I don't know how to do it. I would like to know what is the format of the file (nfo) when compiling with nmlc, and how to use the the makefile system in nfo.
no. nmlc can output NFO files, but it cannot read them.
You might not exactly be interested in Ferion, but if you are, have fun :)
Alon
Engineer
Engineer
Posts: 30
Joined: 22 Jul 2019 14:07

Re: Compiling NFO files using nmlc

Post by Alon »

Eddi wrote: 09 Nov 2020 13:27 no. nmlc can output NFO files, but it cannot read them.
Ah, a misread. Now I can live in a box, just kidding.

I'll just find a way to run GRFCODEC in Android using some third party apps.
User avatar
kamnet
Moderator
Moderator
Posts: 7378
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Compiling NFO files using nmlc

Post by kamnet »

Alon wrote: 09 Nov 2020 16:41 I'll just find a way to run GRFCODEC in Android using some third party apps.
Any particular reason you want to edit in NFO and not NML?
Alon
Engineer
Engineer
Posts: 30
Joined: 22 Jul 2019 14:07

Re: Compiling NFO files using nmlc

Post by Alon »

kamnet wrote: 09 Nov 2020 18:02 Any particular reason you want to edit in NFO and not NML?
Well, the reason is making a railway station grf can only be done using NFO. There are many resources to learn coding in NFO, but I don't have a personal computer. I just want to explore and experience coding NFO before buying a PC next year.
User avatar
UnicycleBloke
Engineer
Engineer
Posts: 64
Joined: 30 Aug 2011 14:39
Location: Cambridge, England

Re: Compiling NFO files using nmlc

Post by UnicycleBloke »

Alon wrote: 10 Nov 2020 05:07 Well, the reason is making a railway station grf can only be done using NFO.
You might want to consider YAGL. This is theoretically equivalent to human-readable NFO.

Full disclosure: I wrote it a while back, but am not aware of any serious users. It works pretty well, but likely still has a few wrinkles. kamnet, wallyweb and one or two others have had a play with it - thank you, all. Development has languished in recent months, but I would be delighted to assist with a project that cannot (yet) be done in NML.

EDIT: Don't know about the Android requirement. The tool is in C++ but compiles for Linux or Windows...
michael blunck
Tycoon
Tycoon
Posts: 5883
Joined: 27 Apr 2005 07:09
Contact:

Re: Compiling NFO files using nmlc

Post by michael blunck »

M4 and grfcodec are written in C/C++ as well. And exactly this seems to be the problem.

regards
Michael
Image
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 2 guests