Difference between revisions of "NFOTutorial"

From TTWiki
Jump to navigationJump to search
(Add links to main tutorials, reformat rest of page)
(→‎NFO tutorial: add station)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  +
{{NFOTutorial}}
== Introduction ==
 
   
This section collects tutorials targeting at creating NewGRFs for TTDPatch and OpenTTD.
+
This section collects tutorials targeting at creating NewGRFs for TTDPatch and OpenTTD using the NFO language.
   
 
For authors: please write these in order and always explain changes from one step/page to the next. Also ideally each topic would have a downloadable demo file that shows these steps "in action")
 
For authors: please write these in order and always explain changes from one step/page to the next. Also ideally each topic would have a downloadable demo file that shows these steps "in action")
   
== GRF tutorial ==
+
== NFO tutorial ==
 
This will be a step-by-step guide that teaches how to make new graphics sets using NFO, from the first simple train engine to the most sophisticated train sets with liveries that change in time and special effects such as wagon backlights. How to draw graphics is covered in the [[GraphicsTutorial]].
  +
 
While the tutorial will be mostly covering train vehicles, all the steps apply to other vehicle types as well, although with slight (but obvious) changes.
  +
 
Some pages may have sections labelled "advanced concepts", in which the more advanced uses of certain features are explained. You should perhaps not try to understand these at the first reading, but keep them in mind and come back later if you're ready for a little more sophisticated graphics.
   
 
* [[Preliminaries]] - What you need to know and do when making new graphics
 
* [[Preliminaries]] - What you need to know and do when making new graphics
* [[DrawingSprites]] - How to draw new sprites
 
* [[PalettesAndCoordinates]] - How to work with palettes, and the 2D and 3D coordinates
 
 
* [[NFOFoundations]] - How to get started on .nfo editing
 
* [[NFOFoundations]] - How to get started on .nfo editing
 
* [[TheFirstVehicle]] - Getting your first vehicle into the game
 
* [[TheFirstVehicle]] - Getting your first vehicle into the game
 
* [[SelectiveGrfLoading]] - Selectively loading GRF files
 
* [[SelectiveGrfLoading]] - Selectively loading GRF files
 
* [[VariableVehicleID]] - How to implement grfs with variable vehicle IDs
 
* [[VariableVehicleID]] - How to implement grfs with variable vehicle IDs
* [[StationDrawingTutorial]] - How to draw new stations for TTDPatch
 
 
* [[CallbacksTut]] - Tutorial on using callbacks
 
* [[CallbacksTut]] - Tutorial on using callbacks
 
* [[GeneralNfoStrategy]] - General strategy for writing NFO files
 
* [[GeneralNfoStrategy]] - General strategy for writing NFO files
 
* [[SampleNfoFile]] - A simple NFO file
 
* [[SampleNfoFile]] - A simple NFO file
  +
* [[SimpleNFOStation]] - A simple NFO station
* [[UsingGRFMaker]] - Information about how to use GRFMaker
 
  +
* [[PoweredWagons]] - How to make trains which have powered wagons
* [[UnfinishedTutorials]] - List of tutorials that still need to be written
 
  +
** [[TestingChanges]] - How to test changes you make to your graphics files
 
  +
== Unfinished Tutorials ==
** [[SettingSpeedEtc]] - How to set speed and other properties of your vehicle
 
** [[NamingYourVehicle]] - How to give your new vehicle a name
+
* [[TestingChanges]] - How to test changes you make to your graphics files
** [[EnsuringCompatibility]] - How to make your file compatible with others
+
* [[SettingSpeedEtc]] - How to set speed and other properties of your vehicle
** [[ShowingLoadingStates]] - How to show gradual loading effects
+
* [[NamingYourVehicle]] - How to give your new vehicle a name
** [[DifferentCargoTypes]] - How to have your wagon show different cargo types
+
* [[EnsuringCompatibility]] - How to make your file compatible with others
** [[WagonOverride]] - How to make train sets with matching wagons
+
* [[ShowingLoadingStates]] - How to show gradual loading effects
** [[LiveryChanges]] - How to have your vehicle's graphics change with time or other factors
+
* [[DifferentCargoTypes]] - How to have your wagon show different cargo types
** [[RandomLivery]] - How to get random livery
+
* [[WagonOverride]] - How to make train sets with matching wagons
** [[PoweredWagons]] - How to make trains which have powered wagons
+
* [[LiveryChanges]] - How to have your vehicle's graphics change with time or other factors
  +
* [[RandomLivery]] - How to get random livery
** [[SpecialEffects]] - Various special effects you can use for new graphics
+
* [[SpecialEffects]] - Various special effects you can use for new graphics
   
 
== Other tutorials ==
 
== Other tutorials ==
  +
Here tutorials on coding NFO are listed.
   
=== [[NMLTutorial|NML]] ===
+
=== GRFMaker ===
  +
GRFMaker is a tool that provides a graphical user interface for coding NewGRFs in NFO. You still need to be able to understand the concepts of NFO to be able to use it.
How to make new .grf files for TTDPatch and OpenTTD with Newgrf Meta Language (NML) (under construction)
 
   
 
* [[UsingGRFMaker]] - Information about how to use GRFMaker
=== [[DrawingSprites|Drawing sprites]] ===
 
How to draw new graphics
 
   
 
=== Lakie's tutorials ===
 
=== Lakie's tutorials ===
These are tutorials that Lakie from [http://www.tt-forums.net/| TT-Forums] wrote, these are on his website for the moment.
+
These are tutorials that Lakie from [http://www.tt-forums.net/ TT-Forums] wrote, these are on his website for the moment.
   
 
Please note these are being worked on, and are not fully complete.
 
Please note these are being worked on, and are not fully complete.
   
 
* [http://users2.tt-forums.net/lakie/NfoCoding.php?id=1 Train Refitting - The Basics]
This will be a step-by-step guide that teaches how to make new graphics sets, from the first simple train engine to the most sophisticated train sets with liveries that change in time and special effects such as wagon backlights.
 
 
While the tutorial will be mostly covering train vehicles, all the steps apply to other vehicle types as well, although with slight (but obvious) changes.
 
 
Some pages may have sections labelled "advanced concepts", in which the more advanced uses of certain features are explained. You should perhaps not try to understand these at the first reading, but keep them in mind and come back later if you're ready for a little more sophisticated graphics.
 
 
==== Train Refitting ====
 
* [http://users2.tt-forums.net/lakie/NfoCoding.php?id=1 The Basics]
 
   
 
[[Category:Tutorials]]
 
[[Category:Tutorials]]

Latest revision as of 16:57, 10 July 2013

This section collects tutorials targeting at creating NewGRFs for TTDPatch and OpenTTD using the NFO language.

For authors: please write these in order and always explain changes from one step/page to the next. Also ideally each topic would have a downloadable demo file that shows these steps "in action")

NFO tutorial

This will be a step-by-step guide that teaches how to make new graphics sets using NFO, from the first simple train engine to the most sophisticated train sets with liveries that change in time and special effects such as wagon backlights. How to draw graphics is covered in the GraphicsTutorial.

While the tutorial will be mostly covering train vehicles, all the steps apply to other vehicle types as well, although with slight (but obvious) changes.

Some pages may have sections labelled "advanced concepts", in which the more advanced uses of certain features are explained. You should perhaps not try to understand these at the first reading, but keep them in mind and come back later if you're ready for a little more sophisticated graphics.

Unfinished Tutorials

Other tutorials

Here tutorials on coding NFO are listed.

GRFMaker

GRFMaker is a tool that provides a graphical user interface for coding NewGRFs in NFO. You still need to be able to understand the concepts of NFO to be able to use it.

Lakie's tutorials

These are tutorials that Lakie from TT-Forums wrote, these are on his website for the moment.

Please note these are being worked on, and are not fully complete.