I cant seem to make my AI's operate routes

Discuss the new AI features ("NoAI") introduced into OpenTTD 0.7, allowing you to implement custom AIs, and the new Game Scripts available in OpenTTD 1.2 and higher.

Moderator: OpenTTD Developers

Post Reply
Volare013
Engineer
Engineer
Posts: 6
Joined: 12 Dec 2013 21:25

I cant seem to make my AI's operate routes

Post by Volare013 »

I installed a few different AI's and all off the library files starting with AI.
Ones i start a new game they begin their run but never start operating anything.
What am i doing wrong?
Brumi
President
President
Posts: 921
Joined: 18 Jul 2009 17:54

Re: I cant seem to make my AI's operate routes

Post by Brumi »

Did you wait enough for them to build anything? Do their companies even appear in your game? Which AIs are you using?
Volare013
Engineer
Engineer
Posts: 6
Joined: 12 Dec 2013 21:25

Re: I cant seem to make my AI's operate routes

Post by Volare013 »

Im trying out both AdmiralAi and SimpleAi. i give them about five years but nothing happens, they start a bussiness on the edge of the screen and thats it.
Ive tried the RoadAi which builds a road, stations, garages but no cars.
And ive tried some others with various effect but none actually make money.

Thanks
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: I cant seem to make my AI's operate routes

Post by Kogut »

Have you tried AIAI? If it is unable to build anything with sane settings, newgrfs and map - it is a bug. In this case - please post in AIAI thread save where it failed to create profitable company.

AIAI thread: http://www.tt-forums.net/viewtopic.php?f=65&t=47298
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
Brumi
President
President
Posts: 921
Joined: 18 Jul 2009 17:54

Re: I cant seem to make my AI's operate routes

Post by Brumi »

SimpleAI doesn't do anything?
Could you post your openttd.cfg so that I can test SimpleAI with your settings? How much did you wait after starting them? If the construction speed of competitors is set to very slow, it is not unusual that you have to wait even a year until the AIs actually start building. This is because they plan their routes in advance, in contrast to the old AI which tried to figure out its route on the fly.
Volare013
Engineer
Engineer
Posts: 6
Joined: 12 Dec 2013 21:25

Re: I cant seem to make my AI's operate routes

Post by Volare013 »

Thanks guys for trying to find a sollution, it really takes out game experience when i dont have "enemies"

Open TTD config:

[misc]
display_opt = SHOW_TOWN_NAMES|SHOW_STATION_NAMES|SHOW_SIGNS|FULL_ANIMATION|FULL_DETAIL|WAYPOINTS|SHOW_COMPETITOR_SIGNS
fullscreen = false
graphicsset =
soundsset =
musicset =
videodriver =
musicdriver =
sounddriver =
blitter =
language = dutch.lng
resolution = 1366,706
screenshot_format = bmp
savegame_format =
rightclick_emulate = false
small_font =
medium_font =
large_font =
mono_font =
small_size = 0
medium_size = 0
large_size = 0
mono_size = 0
small_aa = false
medium_aa = false
large_aa = false
mono_aa = false
sprite_cache_size_px = 128
player_face = 0
transparency_options = 1
transparency_locks = 0
invisibility_options = 0
keyboard =
keyboard_caps =
last_newgrf_count = 33

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

[difficulty]
max_no_competitors = 2
number_towns = 3
industry_density = 4
max_loan = 500000
initial_interest = 2
vehicle_costs = 0
competitor_speed = 2
vehicle_breakdowns = 1
subsidy_multiplier = 2
construction_cost = 0
terrain_type = 2
quantity_sea_lakes = 1
economy = false
line_reverse_mode = false
disasters = false
town_council_tolerance = 0

[game_creation]
town_name = dutch
landscape = temperate
snow_line_height = 6
starting_year = 1935
land_generator = 1
oil_refinery_limit = 32
tgen_smoothness = 1
variety = 4
generation_seed = 1750425490
tree_placer = 2
heightmap_rotation = 0
se_flat_world_height = 1
map_x = 9
map_y = 9
water_borders = 16
custom_town_number = 1
custom_sea_level = 2
min_river_length = 16
river_route_random = 5
amount_of_rivers = 3

[vehicle]
road_side = right
train_acceleration_model = 0
roadveh_acceleration_model = 0
train_slope_steepness = 3
roadveh_slope_steepness = 7
max_train_length = 14
smoke_amount = 1
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 = 1
extend_vehicle_life = 0
servint_ispercent = false
servint_trains = 150
servint_roadveh = 150
servint_ships = 360
servint_aircraft = 100

[construction]
build_on_slopes = true
command_pause_level = 1
terraform_per_64k_frames = 4194304
terraform_frame_burst = 4096
clear_per_64k_frames = 4194304
clear_frame_burst = 4096
tree_per_64k_frames = 4194304
tree_frame_burst = 4096
autoslope = true
extra_dynamite = true
max_bridge_length = 64
max_tunnel_length = 64
train_signal_side = 1
road_stop_on_town_road = true
road_stop_on_competitor_road = true
raw_industry_construction = 0
industry_platform = 1
freeform_edges = true
extra_tree_placement = 2

[station]
never_expire_airports = false
station_spread = 12
modified_catchment = true
adjacent_stations = true
distant_join_stations = true

[economy]
town_layout = 0
allow_town_roads = true
found_town = 2
allow_town_level_crossings = true
station_noise_level = false
inflation = true
multiple_industry_per_town = false
bribe = true
exclusive_rights = true
fund_buildings = true
fund_roads = true
give_money = true
smooth_economy = true
allow_shares = true
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
infrastructure_maintenance = true

[pf]
forbid_90_deg = false
roadveh_queue = true
pathfinder_for_trains = 2
pathfinder_for_roadvehs = 2
pathfinder_for_ships = 2
reverse_at_signals = false
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]
no_servicing_if_no_breakdowns = true
improved_load = true
selectgoods = true
serviceathelipad = true
gradual_loading = true

[script]
settings_profile = medium
script_max_opcode_till_suspend = 10000

[ai]
ai_in_multiplayer = true
ai_disable_veh_train = true
ai_disable_veh_roadveh = true
ai_disable_veh_aircraft = true
ai_disable_veh_ship = true

[locale]
currency = NLG
units = metric
digit_group_separator =
digit_group_separator_currency =
digit_decimal_separator =

[gui]
autosave = monthly
threaded_saves = true
date_format_in_default_names = long
show_finances = true
auto_scrolling = 0
reverse_scroll = false
smooth_scroll = false
left_mouse_btn_scrolling = true
measure_tooltip = true
errmsg_duration = 5
hover_delay = 2
osk_activation = double
toolbar_pos = 1
statusbar_pos = 1
window_snap_radius = 10
window_soft_limit = 20
zoom_min = 0
zoom_max = 5
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 = true
quick_goto = false
loading_indicators = 1
default_rail_type = 0
enable_signal_gui = true
coloured_news_year = 2000
drag_signals_density = 2
drag_signals_fixed_distance = false
semaphore_build_before = 1950
vehicle_income_warn = true
order_review_system = 2
lost_vehicle_warn = true
disable_unsuitable_building = true
new_nonstop = true
stop_location = 1
keep_all_autosave = false
autosave_on_exit = false
max_num_autosaves = 16
auto_euro = true
news_message_timeout = 2
show_track_reservation = true
default_signal_type = 1
cycle_signal_types = 2
station_numtracks = 2
station_platlength = 7
station_dragdrop = false
station_show_coverage = true
persistent_buildingtools = true
expenses_layout = false
missing_strings_threshold = 25
graph_line_thickness = 3
show_date_in_logs = false
settings_restriction_mode = 1
developer = 1
newgrf_developer_tools = false
ai_developer_tools = false
scenario_developer = false
newgrf_show_old_versions = false
newgrf_default_palette = 1
console_backlog_timeout = 100
console_backlog_length = 100
network_chat_box_width = 620
network_chat_box_height = 25
network_chat_timeout = 20

[sound]
news_ticker = true
news_full = true
new_year = true
confirm = true
click_beep = true
disaster = true
vehicle = true
ambient = true

[music]
playlist = 3
music_vol = 53
effect_vol = 127
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

[news_display]
arrival_player = full
arrival_other = summarized
accident = full
company_info = full
open = summarized
close = summarized
economy = full
production_player = summarized
production_other = off
production_nobody = off
advice = full
new_vehicles = full
acceptance = full
subsidies = summarized
general = full

[network]
commands_per_frame = 2
max_commands_in_queue = 16
bytes_per_frame = 8
bytes_per_frame_burst = 256
max_init_time = 100
max_join_time = 500
max_download_time = 1000
max_password_time = 2000
max_lag_time = 500
pause_on_join = true
server_port = 3979
server_admin_port = 3977
server_admin_chat = true
server_advertise = false
lan_internet = 0
client_name =
server_password =
rcon_password =
admin_password =
default_company_pass =
server_name =
connect_to_ip =
network_id = 4e0839b246dc684e63deb61301bad9a4
autoclean_companies = false
autoclean_unprotected = 12
autoclean_protected = 36
autoclean_novehicles = 0
max_companies = 15
max_clients = 25
max_spectators = 15
restart_game_year = 0
min_active_clients = 0
server_lang = ANY
reload_cfg = false
last_host =
last_port = 0
no_http_content_downloads = false

[currency]
rate = 1
separator = .
to_euro = 0
prefix = ""
suffix = " credits"

[company]
engine_renew = false
engine_renew_months = 3
engine_renew_money = 100000
renew_keep_length = false

[server_bind_addresses]

[servers]

[bans]

[ai_players]
none = start_date=730
AdmiralAI = start_date=1
SimpleAI = start_date=1
none = start_date=1
none = start_date=1
none = start_date=370
none = start_date=370
none = start_date=370
none = start_date=370
none = start_date=370
none = start_date=730
none = start_date=730
none = start_date=730
none = start_date=730
none = start_date=730

[game_scripts]
none =

[version]
version_string = 1.3.3
version_number = 13386618

[newgrf]

[newgrf-static]
Volare013
Engineer
Engineer
Posts: 6
Joined: 12 Dec 2013 21:25

Re: I cant seem to make my AI's operate routes

Post by Volare013 »

AIAI screenshot; ttd1
ttd1.png
(1.2 MiB) Downloaded 2 times
AdmiralAI and SimpleAI screenshot; ttd2 &ttd3
ttd2.png
(1.17 MiB) Downloaded 2 times
ttd3.png
(1.18 MiB) Downloaded 2 times
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: I cant seem to make my AI's operate routes

Post by Zuu »

In your config you have disabled all vehicle types for AIs. I suggest that you enable all (or all but air if you wish to stop AIs from using aircraft).
Volare013 wrote:[ai]
ai_in_multiplayer = true
ai_disable_veh_train = true
ai_disable_veh_roadveh = true
ai_disable_veh_aircraft = true
ai_disable_veh_ship = true

Edit: Disabling a vehicle type for AI means that OpenTTD enforce that the AI is unable to build vehicles of that type.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: I cant seem to make my AI's operate routes

Post by Kogut »

Solved!
ai_disable_veh_train = true
ai_disable_veh_roadveh = true
ai_disable_veh_aircraft = true
ai_disable_veh_ship = true
You disabled all vehicles for AIs, enabling the again should fix problem.

EDIT: There was also AIAI problem that I fixed, see AIAI thread.
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
Volare013
Engineer
Engineer
Posts: 6
Joined: 12 Dec 2013 21:25

Re: I cant seem to make my AI's operate routes

Post by Volare013 »

Thanks guys its working now :):):)
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 18 guests