openttd.cfg
is the configuration file which OpenTTD uses to store all its settings. It uses the ini-file structure that is a common store of configuration data in many applications. The file has all the variables organised into groups to make it easier to edit.
It is located in:
- Windows XP: "C:\Documents and Settings\<username>\My Documents\OpenTTD" or "%UserName%\Documents\OpenTTD"
- Windows Vista, 7, or later: "C:\Users\<username>\Documents\OpenTTD"
- Linux: "~/.openttd" or "~/.config/openttd/openttd.cfg"
- Mac OS: "~/Documents/OpenTTD"
- Any OS: OpenTTD installation folder (must be created after install, before first run)
You can edit the file using any text editor (save it as ANSI). Each time you quit OpenTTD, it writes any changes to the file.
[misc]
- Display opt = SHOW_TOWN_NAMES|SHOW_STATION_NAMES|SHOW_SIGNS|FULL_ANIMATION|FULL_DETAIL|WAYPOINTS
- News ticker sound = [true | false]
- Fullscreen = [true | false]
- Graphicsset
- Soundset
- Musicset
- Videodriver
- Musicdriver
- Sounddriver
- Blitter
- Language = filename.lng
- Resolution = pixels_width, pixels_height
- Screenshot format
- Savegame format
- Rightclick emulate = [true | false]
- small_font
- medium_font
- large_font
- mono_font
- small_size
- medium_size
- large_size
- mono_size
- small_aa
- medium_aa
- large_aa
- mono_aa
- Sprite cache size px
- Player face
- transparency_options
- Transparency locks
- Invisibility options
- Keyboard
- keyboard_caps
- Last newgrf count = last count
- Support8bpp = [no|system|hardware]
[difficulty]
- Competitor speed = [0 | 1 | 2 | 3 | 4]
- Construction cost = [0 | 1 | 2]
- Diff level = [0 | 1 | 2 | 3]
- disasters = [true | false]
- economy = [true | false]
- Industry density = [0 | 1 | 2 | 3 | 4 | 5]
- Initial interest = [2 | 3 | 4]
- Line reverse mode = [true | false]
- Max loan = [100000 | 150000 | 200000 | 250000 | 300000 | 350000 | 400000 | 450000 | 500000]
- Max no competitors = [0 <= n <= 14]
- Number industries = [0 | 1 | 2 | 3 | 4]
- Number towns = [0 | 1 | 2 | 3 | 4]
- Quantity sea lakes = [0 | 1 | 2 | 3 | 4]
- Subsidy multiplier = [0 | 1 | 2 | 3]
- Terrain type = [0 | 1 | 2 | 3 | 4]
- Town council tolerance = [0 | 1 | 2]
- Vehicle breakdowns = [0 | 1 | 2]
- Vehicle costs = [0 | 1 | 2]
[game_creation]
- Town name
- Landscape
- Snow line height
- Starting year
- Land generator
- Oil refinery limit
- Tgen smoothness
- Variety
- Generation seed
- Tree placer
- Heightmap rotation
- Se flat world height
- Map size
- Water borders
- Custom town number
- Custom sea level
- Min river length
- River route random
- Amount of rivers
Old or custom settings:
[vehicle]
- Vehicles = [true | false]
- dynamic_engines = [true | false]
- Extend vehicle life
- Freight trains
- Max aircraft
- Max roadveh
- Max ships
- max_train_length
- Max trains
- Never expire vehicles = [true | false]
- Plane crashes = [0 | 1 | 2]
- Plane speed
- Road side = [left | right]
- roadveh_acceleration_model
- roadveh_slope_steepness
- Servint aircraft
- Servint ispercent = [true | false]
- Servint roadveh
- Servint ships
- Servint trains
- Train acceleration model
- Train slope steepness
- Wagon speed limits = [true | false]
Old settings:
- Mammoth trains = [true | false]
[construction]
- Landscaping = [true | false]
- Build on slopes = [true | false]
- clear_frame_burst
- clear_per_64k_frames
- Command pause level
- Extra dynamite = [true | false]
- Extra tree placement
- Freeform edges = [true | false]
- Industry platform
- max_bridge_length
- max_tunnel_length
- raw_industry_construction
- Road stop on competitor road = [true | false]
- Road stop on town road = [true | false]
- Terraform frame burst
- Terraform per 64k frames
- train_signal_side = [true | false]
- Tree frame burst
- Tree per 64k frames
Old settings:
- longbridges = [true | false]
[station]
- Adjacent stations = [true | false]
- Distant join station = [true | false]
- Modified catchment = [true | false]
- Station spread
Old Settings:
- Always small airport = [true | false]
- Join stations = [true | false]
- Nonuniform stations = [true | false]
- Never expire airports = [true | false]
[economy]
- Allow shares = [true | false]
- Allow town level crossings
- Allow town roads = [true | false]
- Bribe authority = [true | false]
- Dist local authority
- Exclusive rights = [true | false]
- Feeder payment share
- found_town
- Fund buildings
- Fund roads
- Give money = [true | false]
- Inflation = [true | false]
- infrastructure_maintenance
- Initial city size
- Larger towns
- Mod road rebuild = [true | false]
- Multiple industries per town = [true | false]
- Smooth economy = [true | false]
- station_noise_level = [true | false]
- Town growth rate
- Town layout
Old settings:
- Same industry close = [true | false]
- Town noise population
[linkgraph]
- Accuracy = 16
- Demand distance = 100
- Demand size = 100
- Distribution armoured = [0 | 1 | 2]
- Distribution default = [0 | 1]
- Distribution mail = [0 | 1 | 2]
- Distribution pax = [0 | 1 | 2]
- Recalc interval = 4
- Recalc time = 16
- Short path saturation = 80
[pf]
- Forbid 90 deg = [true | false]
- Npf.maximum go to depot penalty
- Npf.npf buoy penalty
- npf.npf_crossing_penalty
- Npf.npf max search nodes
- Npf.npf rail curve penalty
- Npf.npf rail depot reverse penalty
- Npf.npf rail firstred exit penalty
- Npf.npf rail firstred penalty
- Npf.npf rail lastred penalty
- npf.npf_rail_pbs_cross_penalty
- Npf.npf rail pbs signal back penalty
- Npf.npf rail slope penalty
- Npf.npf rail station penalty
- Npf.npf road curve penalty
- Npf.npf road drive through penalty
- Npf.npf water curve penalty
- Opf.pf maxdepth
- Opf.pf maxlength
- Path backoff interval
- Pathfinder for roadvehs
- Pathfinder for ships
- Pathfinder for trains
- Reserve paths = [true | false]
- Roadveh queue = [true | false]
- Wait for pbs path
- Wait oneway signal
- Wait twoway signal
- Yapf.disable node optimization = [true | false]
- Yapf.max search nodes
- Yapf.maximum go to depot penalty
- Yapf.rail crossing penalty
- Yapf.rail curve45 penalty
- Yapf.rail curve90 penalty
- Yapf.rail depot reverse penalty
- yapf.rail_doubleslip_penalty
- Yapf.rail firstred exit penalty
- Yapf.rail firstred penalty
- Yapf.rail firstred twoway eol = [true | false]
- Yapf.rail lastred exit penalty
- Yapf.rail lastred penalty
- Yapf.rail longer platform penalty
- Yapf.rail longer platform per tile penalty
- Yapf.rail look ahead max signals
- Yapf.rail look ahead signal p0
- Yapf.rail look ahead signal p1
- Yapf.rail look ahead signal p2
- Yapf.rail pbs cross penalty
- yapf.rail_pbs_signal_back_penalty
- yapf.rail_pbs_station_penalty
- Yapf.rail shorter platform penalty
- Yapf.rail shorter platform per tile penalty
- Yapf.rail slope penalty
- yapf.rail_station_penalty
- Yapf.road crossing penalty
- Yapf.road curve penalty
- Yapf.road slope penalty
- Yapf.road stop penalty
[order]
- Gradual loading = [true | false]
- Improved load = [true | false]
- No servicing if no breakdowns = [true | false]
- Selectgoods = [true | false]
- Serviceathelipad = [true | false]
Old settings:
- Gotodepot = [true | false]
- Timetabling = [true | false]
[script]
- Script max opcode till suspend = 10000
- Settings profile = easy
[ai]
- Ai disable veh aircraft = [true | false]
- Ai disable veh roadveh = [true | false]
- Ai disable veh train = [true | false]
- Disable ships for computer = [true | false]
- Ai in multiplayer = [true | false]
Old Settings:
[locale]
- Currency
- Digit decimal separator
- Digit group separator
- Digit group separator currency
- units_force
- units_height
- units_power
- units_velocity
- units_volume
- units_weight
[gui]
- Advanced vehicle list
- Ai developer tools
- Auto euro = [true | false]
- Autoscroll = [true | false]
- Autosave
- Autosave on exit = [true | false]
- Coloured news year
- Console backlog length
- Console backlog timeout
- Cycle signal types
- Date format in default names
- Default rail type
- Default signal type
- Developer
- Disable unsuitable building
- Drag signals density
- Drag signal fixed distance
- Enable signal gui = [true | false]
- Errmsg duration
- Expenses layout = [true | false]
- Graph line thickness
- Hover delay
- Keep all autosave = [true | false]
- Left mouse btn scrolling = [true | false]
- Link terraform toolbar = [true | false]
- Liveries
- Loading indicators
- Lost train warn = [true | false]
- Max num autosaves = [true | false]
- Measure tooltip = [true | false]
- Missing strings threshold
- Network chat box height
- Network chat box width
- New nonstop = [true | false]
- Newgrf default palette
- newgrf_developer_tools
- Newgrf show old versions
- News message timeout
- Order review system
- Osk activation
- Pause on newgame = [true | false]
- Persistent building tools = [true | false]
- Population in label = [true | false]
- Prefer teamchat = [true | false]
- Quick Goto = [true | false]
- Reverse scroll = [true | false]
- scenario_developer
- Scrollwheel multiplier
- Scrollwheel scrolling
- Semaphore build before
- settings_restriction_mode
- Show date in logs
- Show finances = [true | false]
- Show track reservation = [true | false]
- smallmap_land_colour
- Smooth scroll = [true | false]
- Station drag drop = [true | false]
- Station gui group order
- Station gui sort by
- Station gui sort order
- Station num tracks
- Station platlength
- Station show coverage = [true | false]
- Statusbar pos
- stop_location
- Threaded saves
- Timetable arrival departure
- Timetable in ticks = [true | false]
- Toolbar pos
- Vehicle income warn = [true | false]
- Window snap radius
- Window soft limit
- zoom_max
- zoom_min
Old settings:
- Always build infrastructure = [true | false]
- Bridge pillars = [true | false]
- Status long date = [true | false]
[sound]
- ambient = true
- click_beep = true
- confirm = true
- disaster = true
- news_ticker = true
- news_full = true
- new_year = true
- vehicle = true
[music]
- Custom 1
- Custom 2
- Effect vol = [0 <= n <= 127]
- Music vol = [0 <= n <= 127]
- Playing = [true | false]
- Playlist
- Shuffle = [true | false]
[news_display]
- acceptance
- accident
- advice
- arrival_other
- arrival_player
- close
- company_info
- economy (news display settings)|economy
- general
- new_vehicles
- open
- production_nobody
- production_other
- production_player
- subsidies
[network]
- Admin password
- Autoclean companies = [true | false]
- Autoclean novehicles
- Autoclean protected
- Autoclean unprotected
- Bytes per frame
- Bytes per frame burst
- client_name
- Commands per frame
- Connect to ip
- Default company pass
- Lan internet
- Last host
- Last port
- Max clients
- Max commands in queue
- Max companies
- Max download time
- Max init time
- Max join time
- Max lag time
- Max password time
- Max spectators
- Min active clients
- Network id
- No httpd content downloads
- Pause on join = [true | false]
- Dedicated server
- Reload cfg = [true | false]
- Restart game year
- Server admin chat = [true | false]
- Server admin port
- Server advertise = [true | false]
- Server lang
- Server name
- Server password
- Server port
Old settings:
[currency]
[company]
- engine_renew = [true | false]
- engine_renew_months
- engine_renew_money
- Renew keep length = [true | false]
[server_bind_addresses]
[servers]
[bans]
[newgrf]
[newgrf-static]
[ai_players]
[game_scripts]
[version]
[win32]
- Display hz
- Force full redraw = [true | false]
- Fullscreen bpp
- Window maximize = [true | false]