Hello,
I wanted to play a game from year 0 to have more time to test my optimised city without modern buildings but all vehicules come much later...
So i changed pnml file from the last version of opengfx+ source (ogfx-trains-6016-source.tar.xz), and i used nml program with the nml from ftp.
But i always obtain the same grf file even if i change pnml of vehicle like that :
"item(FEAT_TRAINS, asiastar, 26) {
property {
sprite_id: SPRITE_ID_NEW_TRAIN;
misc_flags: bitmask(TRAIN_FLAG_MU, TRAIN_FLAG_2CC);
-----------------add--------------
introduction_date: date(1300, 1, 1);
-----------------------------------
}
graphics { asiastar_engine_switch_gui; }
livery_override (passenger_wagon) { asiastar_passenger_year_switch; }
livery_override (mail_wagon) { asiastar_mail_year_switch; }
livery_override (valuables_wagon) { asiastar_valuables_year_switch; }
}"
Someone told me that i must use make program but how?
Thx.
Modifying introduction date
Moderator: OpenTTD Developers
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Modifying introduction date
OpenTTD does not read NML files. It reads grf files.
You got the source code of a NewGRF written in NML, thus you need to use the nml compiler in order to transform that nml code (along with the graphics) into a NewGRF. In a new game you can then use that NewGRF.
https://www.tt-wiki.net/wiki/NMLTutorial for an NML tutorial
https://www.tt-wiki.net/wiki/NMLTutorial/Installation for how to install NML and possibly get your nml source compiled. The source you downloaded requires nml installed, as well as the default unix programming tools gcc, make and some other small tools. The readme lists them in section 5.3.
You got the source code of a NewGRF written in NML, thus you need to use the nml compiler in order to transform that nml code (along with the graphics) into a NewGRF. In a new game you can then use that NewGRF.
https://www.tt-wiki.net/wiki/NMLTutorial for an NML tutorial
https://www.tt-wiki.net/wiki/NMLTutorial/Installation for how to install NML and possibly get your nml source compiled. The source you downloaded requires nml installed, as well as the default unix programming tools gcc, make and some other small tools. The readme lists them in section 5.3.
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: Modifying introduction date
Yes i know OTTD doesn't read nml but gfx
I installed all software to compile but now i don't know how to use make with the makefile into source of the grf
I installed all software to compile but now i don't know how to use make with the makefile into source of the grf
-
- Tycoon
- Posts: 2781
- Joined: 22 Feb 2011 18:34
Re: Modifying introduction date
Make is a bit of a separate beast, that precompiles all partial NML files (.pnml) into one big .nml and then calls the NML program to compile that .nml into a .grf.lorran78 wrote:Yes i know OTTD doesn't read nml but gfx
I installed all software to compile but now i don't know how to use make with the makefile into source of the grf
There are some guides to set up such an environment, these guides can be found here. Once you have set up such an environment, it is just calling make from the command line (or first open bash if you are on Windows 10), which will then create the .grf for you.
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML
Who is online
Users browsing this forum: No registered users and 16 guests