查看: 3550|回复: 4
打印 上一主题 下一主题
收起左侧

OPENTTD的配置文件openttd.cfg参数详解

  [复制链接]
跳转到指定楼层
楼主
Diablo 发表于 2013-6-22 15:54:39 | 只看该作者 回帖奖励 |正序浏览 |阅读模式

欢迎来到嗨皮网,马上注册结交更多鸟友,享用更多功能

您需要 登录 才可以下载或查看,没有帐号?注册

x
下面以1.0.5的版本配置文件为例作解释,注:“;”后面为解释
注意编辑配置文件后,必须以utf-8格式保存,用windows自带的记事本保存的utf-8格式其实是utf-8 +BOM,建议用别的文本编辑器来编辑

[misc]  ;杂项
display_opt = SHOW_TOWN_NAMES|SHOW_STATION_NAMES|SHOW_SIGNS|FULL_ANIMATION|FULL_DETAIL|WAYPOINTS
news_ticker_sound = false
fullscreen = false ;是否满屏,true允许false禁止
graphicsset =
soundsset = "OpenSFX"
musicset = "OpenMSX"
videodriver =
musicdriver =
sounddriver =
blitter =
language = simplified_chinese.lng ;游戏显示语言
resolution = 800,600 ;分辨率
screenshot_format = png ;屏幕抓图保存的格式,支持png,pcx等
savegame_format =
rightclick_emulate = false
small_font = c:\windows\fonts\mingliu.ttc
medium_font = c:\windows\fonts\mingliu.ttc
large_font = c:\windows\fonts\mingliu.ttc
small_size = 11
medium_size = 12
large_size = 18
small_aa = false
medium_aa = false
large_aa = false
sprite_cache_size = 4
player_face = 0
transparency_options = 0
transparency_locks = 0
invisibility_options = 0
keyboard =
keyboard_caps =  
[music];音乐
playlist = 0
music_vol = 3 ;音乐音量大小
effect_vol = 9 ;音响音量大小
custom_1 = 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
custom_2 = 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
playing = true
shuffle = false

[win32]
display_hz = 0
force_full_redraw = false
fullscreen_bpp = 8
window_maximize = false

[difficulty];难度
max_no_competitors = 0
number_towns = 2
number_industries = 4
max_loan = 300000
initial_interest = 2
vehicle_costs = 0
competitor_speed = 2
vehicle_breakdowns = 1
subsidy_multiplier = 2
construction_cost = 0
terrain_type = 1
quantity_sea_lakes = 0
economy = 0
line_reverse_mode = 0
disasters = 0
town_council_tolerance = 0
diff_level = 3

[game_creation];游戏编剧
town_name = english ;城镇名称语系
landscape = temperate
snow_line = 56
snow_line_height = 7
starting_year = 1950;游戏开始年限
land_generator = 1
oil_refinery_limit = 32
tgen_smoothness = 1
variety = 0
generation_seed = 2083436223
tree_placer = 2 ;地图树木比例
heightmap_rotation = 0
se_flat_world_height = 1
map_x = 11;游戏地图分辨率 6-12,8是1024,9是2048等等
map_y = 11;游戏地图分辨率 6-12,8是1024,9是2048等等
water_borders = 15
custom_town_number = 1

[vehicle];车辆
road_side = right
train_acceleration_model = 0
train_slope_steepness = 3
mammoth_trains = true
never_expire_vehicles = false
max_trains = 500 ;每位玩家火车最大值
max_roadveh = 500 ;每位玩家车辆最大值
max_aircraft = 200 ;每位玩家飞机最大值
max_ships = 300 ;每位玩家船只最大值
wagon_speed_limits = true
disable_elrails = false
freight_trains = 1
plane_speed = 4 ;飞机速度等级程度
dynamic_engines = true
plane_crashes = 2
extend_vehicle_life = 0
servint_ispercent = false
servint_trains = 150
servint_roadveh = 150
servint_ships = 360
servint_aircraft = 100
[construction]
build_on_slopes = true
autoslope = true
extra_dynamite = true
longbridges = true
signal_side = true
road_stop_on_town_road = true
road_stop_on_competitor_road = true
raw_industry_construction = 0
freeform_edges = true
extra_tree_placement = 2
[station]
never_expire_airports = false
join_stations = true
nonuniform_stations = true
station_spread = 12
modified_catchment = true
adjacent_stations = true
distant_join_stations = true
[economy]
town_layout = 0
allow_town_roads = true
found_town = 0
station_noise_level = false
inflation = true
multiple_industry_per_town = false
bribe = true
exclusive_rights = true
give_money = true ;送钱给其他游戏玩家,true允许false禁止
smooth_economy = true
allow_shares = false ;购买对方公司股票,true允许false禁止
feeder_payment_share = 75
town_growth_rate = 2
larger_towns = 4
initial_city_size = 2
mod_road_rebuild = true
dist_local_authority = 20
town_noise_population[0] = 800
town_noise_population[1] = 2000
town_noise_population[2] = 4000
[pf]
forbid_90_deg = false
roadveh_queue = true
pathfinder_for_trains = 2
pathfinder_for_roadvehs = 2
pathfinder_for_ships = 0
wait_oneway_signal = 15
wait_twoway_signal = 41
wait_for_pbs_path = 30
reserve_paths = false
path_backoff_interval = 20
opf.pf_maxlength = 4096
opf.pf_maxdepth = 48
npf.npf_max_search_nodes = 10000
npf.npf_rail_firstred_penalty = 1000
npf.npf_rail_firstred_exit_penalty = 10000
npf.npf_rail_lastred_penalty = 1000
npf.npf_rail_station_penalty = 100
npf.npf_rail_slope_penalty = 100
npf.npf_rail_curve_penalty = 100
npf.npf_rail_depot_reverse_penalty = 5000
npf.npf_rail_pbs_cross_penalty = 300
npf.npf_rail_pbs_signal_back_penalty = 1500
npf.npf_buoy_penalty = 200
npf.npf_water_curve_penalty = 100
npf.npf_road_curve_penalty = 100
npf.npf_crossing_penalty = 300
npf.npf_road_drive_through_penalty = 800
npf.npf_road_dt_occupied_penalty = 800
npf.npf_road_bay_occupied_penalty = 1500
npf.maximum_go_to_depot_penalty = 2000
yapf.disable_node_optimization = false
yapf.max_search_nodes = 10000
yapf.rail_firstred_twoway_eol = false
yapf.rail_firstred_penalty = 1000
yapf.rail_firstred_exit_penalty = 10000
yapf.rail_lastred_penalty = 1000
yapf.rail_lastred_exit_penalty = 10000
yapf.rail_station_penalty = 1000
yapf.rail_slope_penalty = 200
yapf.rail_curve45_penalty = 100
yapf.rail_curve90_penalty = 600
yapf.rail_depot_reverse_penalty = 5000
yapf.rail_crossing_penalty = 300
yapf.rail_look_ahead_max_signals = 10
yapf.rail_look_ahead_signal_p0 = 500
yapf.rail_look_ahead_signal_p1 = -100
yapf.rail_look_ahead_signal_p2 = 5
yapf.rail_pbs_cross_penalty = 300
yapf.rail_pbs_station_penalty = 800
yapf.rail_pbs_signal_back_penalty = 1500
yapf.rail_doubleslip_penalty = 100
yapf.rail_longer_platform_penalty = 800
yapf.rail_longer_platform_per_tile_penalty = 0
yapf.rail_shorter_platform_penalty = 4000
yapf.rail_shorter_platform_per_tile_penalty = 0
yapf.road_slope_penalty = 200
yapf.road_curve_penalty = 100
yapf.road_crossing_penalty = 300
yapf.road_stop_penalty = 800
yapf.road_stop_occupied_penalty = 800
yapf.road_stop_bay_occupied_penalty = 1500
yapf.maximum_go_to_depot_penalty = 2000
[order]
gotodepot = true
no_servicing_if_no_breakdowns = true
timetabling = true
improved_load = true
selectgoods = true
serviceathelipad = true
gradual_loading = true
[ai]
ai_in_multiplayer = true
ai_disable_veh_train = false
ai_disable_veh_roadveh = false
ai_disable_veh_aircraft = false
ai_disable_veh_ship = false
ai_max_opcode_till_suspend = 10000
[locale]
currency = GBP
units = metric
digit_group_separator =
digit_group_separator_currency =
digit_decimal_separator =
[gui]
autosave = yearly ;每年自动存档一次,也可以设置每月等,设置off为关闭该功能
threaded_saves = true
date_format_in_default_names = long
vehicle_speed = true
status_long_date = true
show_finances = true
autoscroll = false
reverse_scroll = false
smooth_scroll = false
left_mouse_btn_scrolling = false
measure_tooltip = true
errmsg_duration = 2
toolbar_pos = 2
window_snap_radius = 10
window_soft_limit = 20
population_in_label = true
link_terraform_toolbar = false
smallmap_land_colour = 0
liveries = 2
prefer_teamchat = false
scrollwheel_scrolling = 0
scrollwheel_multiplier = 5
pause_on_newgame = false
advanced_vehicle_list = 1
timetable_in_ticks = false
timetable_arrival_departure = false
quick_goto = false
loading_indicators = 1
default_rail_type = 0
enable_signal_gui = true
coloured_news_year = 2000
drag_signals_density = 4
semaphore_build_before = 1950
vehicle_income_warn = true
order_review_system = 2
lost_train_warn = true
always_build_infrastructure = false
new_nonstop = false
stop_location = 2
keep_all_autosave = false
autosave_on_exit = false ;退出时候自动存档
max_num_autosaves = 16
bridge_pillars = true
auto_euro = true
news_message_timeout = 2
show_track_reservation = false
default_signal_type = 1
cycle_signal_types = 2
station_numtracks = 2
station_platlength = 4
station_dragdrop = false
station_show_coverage = true
persistent_buildingtools = true
expenses_layout = false
show_date_in_logs = false
developer = 1
console_backlog_timeout = 100
console_backlog_length = 100
network_chat_box_width = 620
network_chat_box_height = 25
[network]
max_join_time = 500 ;加入时候最大延迟
pause_on_join = true ;有玩家连接服务器的时候,游戏是否暂停,true暂停,false不暂停
server_port = 3979
server_advertise = true
lan_internet = 1
client_name = 老楚
server_password = ;服务器进入游戏密码
rcon_password = ;管理员远程管理密码
default_company_pass =  ;公司默认密码,一般默认为空,让玩家自己在游戏里设置
server_name = ShuimengTTD ;服务器名称显示在网上服务器列表里
connect_to_ip =
network_id = 0b852ddfa5b3b6ebb880b33207f6c049
autoclean_companies = false
autoclean_unprotected = 12
autoclean_protected = 36
autoclean_novehicles = 0
max_companies = 8
max_clients = 12
max_spectators = 4
restart_game_year = 0
min_active_clients = 0
server_lang = CHINESE
reload_cfg = false
last_host = 219.138.203.131
last_port = 3979
no_http_content_downloads = false
[currency]
rate = 1
separator = .
to_euro = 0
prefix = ""
suffix = " credits"
[company]
engine_renew = false
engine_renew_months = 6
engine_renew_money = 100000
renew_keep_length = false
[server_bind_addresses]
[servers]
[bans]
[news_display]
arrival_player = summarized
arrival_other = summarized
accident = summarized
company_info = summarized
open = summarized
close = summarized
economy = summarized
production_player = summarized
production_other = summarized
production_nobody = summarized
advice = summarized
new_vehicles = summarized
acceptance = summarized
subsidies = summarized
general = summarized
[ai_players]
none = start_date=365
none = start_date=365
none = start_date=365
none = start_date=365
none = start_date=365
none = start_date=365
none = start_date=365
none = start_date=365
none = start_date=365
none = start_date=365
none = start_date=365
none = start_date=365
none = start_date=365
none = start_date=365
none = start_date=365
[version]
version_string = 1.0.5
version_number = 1058531E
[newgrf]
[newgrf-static]

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 转播转播 分享分享 分享淘帖 支持支持 反对反对
5
 楼主| Diablo 发表于 2024-5-22 09:51:40 | 只看该作者
[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:

Desert amount
Snow line height
Tree line
Tree line height
[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:

ai_max_opcode_till_suspend
[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:

Player name
Server bind ip
[currency]
prefix
rate
separator
suffix
to_euro
[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]

地板
 楼主| Diablo 发表于 2024-5-22 09:50:42 | 只看该作者
[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

板凳
 楼主| Diablo 发表于 2024-5-22 09:49:18 | 只看该作者
openttd.cfg 是 OpenTTD 用来存储其所有设置的配置文件。它使用 ini-file 结构,该结构是许多应用程序中配置数据的通用存储。该文件将所有变量组织成组,以便于编辑。

它位于:

Windows XP:“C:\Documents and Settings\<用户名>\My Documents\OpenTTD”或“%UserName%\Documents\OpenTTD”
Windows Vista 7 或更高版本:“C:\Users\<用户名>\Documents\OpenTTD”
Linux:“~/.openttd”或“~/.config/openttd/openttd.cfg”
Mac 操作系统:“~/Documents/OpenTTD”
任何操作系统:OpenTTD 安装文件夹(必须在安装后、首次运行之前创建)
您可以使用任何文本编辑器编辑文件(将其另存为 ANSI)。每次退出 OpenTTD 时,它都会将任何更改写入文件。

沙发
黄河 发表于 2013-6-24 16:28:50 | 只看该作者
没玩过,有图吗
快速回复 返回顶部 返回列表