NewGRFs: an explanation for beginners

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
User avatar
orudge
Administrator
Administrator
Posts: 25129
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

NewGRFs: an explanation for beginners

Post by orudge »

For any new users who are confused about NewGRFs and what they do, this post by FLHerne may be of some use:

NewGRFs aren't necessarily just 'art packages'; they can do a lot beyond just visual stuff, and many don't even contain any art at all.
Depending on the grf, they can do all sorts of things:
  • Add vehicle types. (probably the most common).
    These often have more features than the default vehicles, for example:
    • Support for non-default cargo types
    • Speed limits for wagons, not just locomotives
    • Support for 'autorefitting' (refitting in stations).
    • Different graphics depending on date, or the type of wagons being pulled, etc.
    • Maximum ranges for aircraft.
    • Trams (the default vehicles don't include any).
    Most vehicle sets can be used together, but not that they might not be 'balanced' - the running costs and maximum speeds might make vehicles from one set always preferable. Many such sets disable the default vehicles.
    There's a slight variant:
    • Modify the existing vehicles directly, changing the stats or introduction dates.
    There aren't many of these, and they can be problematic when used with other grfs affecting the default vehicles.
  • Modify infrastructure.
    • Add new types of town buildings.
      Mostly just for aesthetics, but it's possible for such sets to control the rate of town growth.
      These can be used together, but sets trying to do 'clever stuff', e.g. TaI, won't be able to do that when used with others.
    • Add station types.
      These are mostly just artistic. Some display the amount and type of cargo waiting, which can be useful.
      All can be used together, I think.
    • Add new types of railway.
      This includes types of track with speed limits, or third-rail electrified tracks, or narrow gauge.
      Most such grfs remove the default game's Monorail and Maglev tracks.
      These can be used together to some extent, but there's a quite restrictive limit on the number of different track types that can be defined. If you use a combination of sets that between them define >16 types of track, it won't work properly.
    • Change the appearance of roads.
      No gameplay effect; some sets might display different road graphics depending on date.
      These can't be used together. Also, they don't alter the road surface on bridges.
      A variation on this are tramtrack grfs, these change the appearance of tramways.*
    • Change the bridge types.
      These replace the default bridge types, and can have slightly more types of bridges than normal.
      They can't be used together. Also, the road surface on the bridges doesn't change to match roadsets; some bridge grfs have alternate versions to match various roadsets.
    • Replace airport and dock graphics; allow rotatable airports.
      For dock graphics, last one in the list wins. I don't know what happens with airports.
  • Modify industries and cargotypes
    GRFs can modify the properties of the default industries and cargos, or define additional or replacement ones.
    These often have different mechanics to the default ones, for example FIRS has a 'supply' mechanic, and ECS and TaI both have a 'stockpiling' system. Never use multiple industry grfs together unless they're specifically designed to work as a group.
  • Modify the landscape.
    • Change the appearance of landscape tiles.What it says on the tin, really. For obvious reasons, one such grf at a time.
    • Add NewObjects.
      Purely for looking at, they add buildable tiles under the Landscaping toolbar. Harbour walls, trees, wind turbines, flocks of seagulls...
      These can all be used together.
  • Modify basecosts.
    Change the price of terraforming, building, bribes...
    The effects of these are cumulative, IIRC
*Of course, you can't build tramways at all without a grf that defines some trams.

There are one-off (so far) grfs that do other stuff. Someone remind me if I forgot any significant categories, please.

Remember that a single grf can do any combination of these things - for example, several sets that add rail stations also replace dock and shipyard graphics, some townsets replace road and bridge graphics, there's one trainset (NARS) that actually defines a cargotype and has been known to conflict with ECS industries. Most are reasonably self-contained, though.
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: NewGRFs: an explanation for beginners

Post by Kogut »

There is also one quite popular category: town name lists.
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
User avatar
FLHerne
Tycoon
Tycoon
Posts: 1543
Joined: 12 Jul 2011 12:09
Location: St Ives, Cambs, UK

Re: NewGRFs: an explanation for beginners

Post by FLHerne »

Ooh, my ridiculously long post got stickied! 8)

And yes, town names (and a description of how to make use of them) should have been in there. I forgot that...

Perhaps something about parameters, and the various ways of setting them, too.
Temporary Permanent signature filling text. Content coming soon delayed indefinitely! Oh, and I have had a screenshot thread.
Linux user (XMonad DWM/KDE, Arch), IRC obsessive and rail enthusiast. No longer building robots; now I ring church bells.
Author of an incredibly boring stickied post about NewGRFs.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 2 guests