Override Tracks with NML

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

Moderator: Graphics Moderators

Post Reply
knightofni
Engineer
Engineer
Posts: 7
Joined: 09 May 2007 11:15

Override Tracks with NML

Post by knightofni »

I know that i can create a NewGRF that overrides characteristics of vehicles from another NewGRF.

But is it possible to override some properties of a track type added by a newGRF ?

For instance, i'd like to modify construction costs and maintenance costs of some tracks from Nutracks.

I've spent a couple of hours reading the NML documentation and did a little bit of googling, and i can't seem to find an answer. I don't know if i'm missing something obvious - or if it's impossible.

Thanks
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Override Tracks with NML

Post by Eddi »

no. in general, if an object (house, industry, etc.) is added by a NewGRF, only that same NewGRF can modify it.

vehicles are an exception, which is somewhat historically grown.

most NewGRFs, however, are open source, so you can just modify the NewGRF directly and release an improved version (so long you adhere to the license)
knightofni
Engineer
Engineer
Posts: 7
Joined: 09 May 2007 11:15

Re: Override Tracks with NML

Post by knightofni »

Eddi wrote: most NewGRFs, however, are open source, so you can just modify the NewGRF directly and release an improved version (so long you adhere to the license)
Sounds like a good idea.

I've followed the instructions on this http://wiki.openttd.org/Compiling_on_Wi ... sing_MinGW wiki page to set up a compile environment. It seemed to progress without issues.
Then i've copied the latest NMLC into my PATH, and downloaded NuTracks source to my user directory.

Then executing 'make' gives me the following output :

Code: Select all

user@user-PC ~/Nutracks
$ make
/bin/sh: hg: command not found
[...]
/bin/sh: hg: command not found
make: hg: Command not found
/bin/sh: hg: command not found

[...]

/bin/sh: hg: command not found
make[1]: hg: Command not found
make[1]: Entering directory `/home/user/Nutracks'
/bin/sh: hg: command not found

[...]

/bin/sh: hg: command not found
make[1]: *** No rule to make target `nutracks.src.dep', needed by `depend'.  Stop.
make[1]: Leaving directory `/home/user/Nutracks'
make: *** [all] Error 2
Does that give any indication of what went wrong ?
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Override Tracks with NML

Post by planetmaker »

knightofni wrote:

Code: Select all

/bin/sh: hg: command not found
/bin/sh: hg: command not found
make[1]: *** No rule to make target `nutracks.src.dep', needed by `depend'.  Stop.
Does that give any indication of what went wrong ?
You likely want to install mercurial (hg) as the Makefile assumes its presence.
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Override Tracks with NML

Post by Eddi »

mind you that you need a compile environment for newgrfs, not a compile environment for the game. (they share several common programs like "make", but the compiler is different)
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 4 guests