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
Override Tracks with NML
Moderator: Graphics Moderators
Re: Override Tracks with NML
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)
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)
-
- Engineer
- Posts: 7
- Joined: 09 May 2007 11:15
Re: Override Tracks with NML
Sounds like a good idea.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)
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
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Override Tracks with NML
You likely want to install mercurial (hg) as the Makefile assumes its presence.knightofni wrote:Does that give any indication of what went wrong ?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.
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: Override Tracks with NML
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)
Who is online
Users browsing this forum: No registered users and 4 guests