Moderator: Graphics Moderators
have a look at the tutorial(s), e.g. http://www.tt-wiki.net/wiki/NMLTutorial and also make use of the documentation at http://newgrf-specs.tt-wiki.net/wiki/NML:MainManager wrote:Hello guys, i want a create Newgrf for my self, but i not know for a make
what you know how to make NewGRF alone?
Sorry for my English
There's many open source projects found at the DevZone which can act as examples.
I am still confused how to run the application , what was easy and the right route ?
Go to http://bundles.openttdcoop.org/nml/nightlies/LATEST/ and download NML - rXXXX - windows- win32.zip , replacing XXXX with the actual version number of the package . The ZIP file contains a number of files that all need to stay together . Where these files go depends on Whether you want to take the easy route or do it properly .
The easy route is to extract all the NML program files in the same directory as your project NML ( where your files with the NML code and the directories with language and graphics files will go later ) . With this , you can use the NML program for this project alone . If you want to work on multiple projects GRF coded in NML , you need to copy the NML program files to each of these project directories .
If you want to run NML from any directory , you need to add the directory containing the executable nmlc.exe ( and related files) to your PATH environment variable . This can break Windows if you do not do it Correctly , so follow the instructions carefully . The instructions have been written for Windows 7 and may Differ slightly on other Windows versions .
First , extract the NML program files to a directory of your choice , eg C : \ tools \ NML . It is preferred that you do not have spaces in the directory path , so avoid the " Program Files " directory . Once you have that , remember the directory path carefully and follow these steps :
Rightclick "Computer " on the desktop or in the Start menu and select Properties . This will open the System Configuration window from the panel .
Click Advanced system settings in the left pane . This will open the System Properties window .
Click the Advanced tab .
On the Advanced tab , click the Environment Variables ... button . This will open the Environment Variables window .
In the bottom half of the window below System variables , find the Path entry and select it .
With the Path entry selected , click the Edit ... button . An edit box will Appear .
Do not touch the variable name and do not remove anything from the Variable value! ( This is where you can break your computer . )
Put your cursor at the end of the Variable name box and type a semicolon Followed by the directory path to the NML program , in this case ; C : \ tools \ NML
Confirm your changes by clicking the OK button in each of the three windows .
Now you can use the NML program from any directory on your computer .
As said before , NML is a command - line program and therefore does not have a GUI ; much like GRFCodec , in fact . That means you need to run it from a command prompt window . You can start the command prompt from the Start > Programs > Accessories > Command Prompt , or by entering cmd into the Run dialog or the Start menu search bar .
Next , you need to change directory to the project folder has your roomates NML ( code) files in it . Then run the program to compile Cell nmlc GRF . For example :
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | RoadTypes?
NML cannot edit existing NewGRFs (unless they are made in NML and you have access to the source code).Manager wrote:okay, if NML can edit NewGRF? I just want to edit the only busses Ikarus
Then you run the nmlc program which will compile your .nml file and image files into your .grf file.
You should really read the NML Tutorial.
The NML executables also can be used to decompile a .grf file (if it was written using NML, mind you, im not sure whether Ikarus Bus Set use NML or NFO, also mind the copyright or license used) if you run the correct command. This will result, if everything is correct, an uncommented .nml file, a single / some .lng files, and the graphics files.