Making a mod

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

Moderator: Graphics Moderators

Post Reply
Jony1(Yosselko)
Engineer
Engineer
Posts: 26
Joined: 20 Dec 2017 17:56

Making a mod

Post by Jony1(Yosselko) »

I never been making a mod but i wanna know how to make a mod ?
So please explain with what softwares it is done.Also i'd like to add a music tracks.
Have a nice day people
luxtram
Transport Coordinator
Transport Coordinator
Posts: 344
Joined: 10 May 2016 19:09

Re: Making a mod

Post by luxtram »

Jony1(Yosselko) wrote:I never been making a mod but i wanna know how to make a mod ?
So please explain with what softwares it is done.Also i'd like to add a music tracks.
Have a nice day people
In very general terms you have to make a special game extension called NewGRF (have a look here https://wiki.openttd.org/NewGRF).

There are two ways to accomplish this:

a) older way I am really not familiar with called NFO, it looks more like hacking a compiled programs to me,
b) NML (NewGRF Meta Language) that is more similar to the modern programming languages (https://www.tt-wiki.net/wiki/NMLTutorial).

NML programs along with the graphics (and audio) can be compiled (with a special compiler nmlc) into a NewGRF file that can be then put into a special folder where OpenTTD can find it.

So you need a text editor to create and modify NML files and graphics editor to edit graphics files (etc) and the NML compiler (nmlc).

Sorry that my reply is filled with a lot of jargon that might be not familiar to you. Perhaps somebody else can explain it better.

I recommend to first try to make yourself more familiar with these concepts and try to understand some of the open source projects (http://dev.openttdcoop.org/projects) by finding something smaller you could manage.

Do not hesitate to get back here to ask more questions.
California City Sets viewtopic.php?t=76786
1000 building set viewtopic.php?t=75250
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Re: Making a mod

Post by wallyweb »

Just to be clear, NFO is not simply an older language. It is the code upon which all GRF specifications are based.
Upper level languages such as NML and m4nfo are merely human readable text interfaces that compile NFO code.
If you decompile GRFs created with NML or m4nfo, the output will be NFO.
NML has a couple of limitations such as it does not yet support stations or bridges.
m4nfo does do both and offers an extensive manual with examples.
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 46 guests