From 6b1a8fb02aca05c10a5e4a171acb153bb570dba5 Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Fri, 7 Dec 2018 01:07:24 -0500 Subject: [PATCH 01/17] Added OpenTTD Added OpenTTD --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index da59648e..5604fbe7 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,8 @@ If you are submitting PR's try and keep names and titles the same. [Mount & Blade Warband](/mb_warband/) +[OpenTTD](/openttd/) + [Source](/source_servers/) These eggs use steamcmd to install * [7 Days to Die](/source_servers/7_days_to_die/) * [PixARK](/source_servers/pixark/) From 6346912b46756bfdc0837df3cbdfd908a7c61ac2 Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Fri, 7 Dec 2018 01:11:29 -0500 Subject: [PATCH 02/17] Added Config --- openttd/openttd.cfg | 466 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 466 insertions(+) create mode 100644 openttd/openttd.cfg diff --git a/openttd/openttd.cfg b/openttd/openttd.cfg new file mode 100644 index 00000000..79c6f26c --- /dev/null +++ b/openttd/openttd.cfg @@ -0,0 +1,466 @@ +[misc] +display_opt = SHOW_TOWN_NAMES|SHOW_STATION_NAMES|SHOW_SIGNS|FULL_ANIMATION|FULL_DETAIL|WAYPOINTS|SHOW_COMPETITOR_SIGNS +fullscreen = false +support8bpp = no +graphicsset = +soundsset = +musicset = +videodriver = +musicdriver = +sounddriver = +blitter = +language = english.lng +resolution = 640,480 +screenshot_format = +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 = 0 +transparency_locks = 0 +invisibility_options = 0 +keyboard = +keyboard_caps = +last_newgrf_count = 0 +gui_zoom = 2 + +[difficulty] +max_no_competitors = 0 +number_towns = 2 +industry_density = 5 +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 = false +line_reverse_mode = false +disasters = false +town_council_tolerance = 0 + +[game_creation] +town_name = english +landscape = temperate +snow_line_height = 15 +starting_year = 1950 +land_generator = 1 +oil_refinery_limit = 32 +tgen_smoothness = 1 +variety = 0 +generation_seed = 3410929700 +tree_placer = 2 +heightmap_rotation = 0 +se_flat_world_height = 1 +map_x = 8 +map_y = 8 +water_borders = 15 +custom_town_number = 1 +custom_sea_level = 2 +min_river_length = 16 +river_route_random = 5 +amount_of_rivers = 2 + +[vehicle] +road_side = right +train_acceleration_model = 1 +roadveh_acceleration_model = 1 +train_slope_steepness = 3 +roadveh_slope_steepness = 7 +max_train_length = 7 +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 = 2 +extend_vehicle_life = 0 +servint_ispercent = false +servint_trains = 150 +servint_roadveh = 150 +servint_ships = 360 +servint_aircraft = 100 + +[construction] +max_heightlevel = 30 +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_bridge_height = 12 +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 = 0 +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 = 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 +infrastructure_maintenance = false + +[linkgraph] +recalc_interval = 4 +recalc_time = 16 +distribution_pax = 0 +distribution_mail = 0 +distribution_armoured = 0 +distribution_default = 0 +accuracy = 16 +demand_distance = 100 +demand_size = 100 +short_path_saturation = 80 + +[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 = easy +script_max_opcode_till_suspend = 10000 + +[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 + +[locale] +currency = GBP +units_velocity = metric +units_power = metric +units_weight = metric +units_volume = metric +units_force = si +units_height = 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 = false +right_mouse_wnd_close = false +measure_tooltip = true +errmsg_duration = 5 +hover_delay_ms = 250 +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 = 4 +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 = false +stop_location = 2 +keep_all_autosave = false +autosave_on_exit = false +max_num_autosaves = 16 +auto_euro = true +news_message_timeout = 2 +show_track_reservation = false +default_signal_type = 1 +cycle_signal_types = 2 +station_numtracks = 1 +station_platlength = 5 +station_dragdrop = true +station_show_coverage = false +persistent_buildingtools = true +expenses_layout = false +station_gui_group_order = 0 +station_gui_sort_by = 0 +station_gui_sort_order = 0 +missing_strings_threshold = 25 +graph_line_thickness = 3 +show_date_in_logs = false +settings_restriction_mode = 0 +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_pct = 40 +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 = 0 +music_vol = 127 +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 = false +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 = +server_admin_port = 3977 +server_admin_chat = true +server_advertise = true +lan_internet = 0 +client_name = +server_password = +rcon_password = +admin_password = +default_company_pass = +server_name = +connect_to_ip = +network_id = +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 = 6 +engine_renew_money = 100000 +renew_keep_length = false + +[server_bind_addresses] + +[servers] + +[bans] + +[ai_players] +none = start_date=730 +none = start_date=730 +none = start_date=730 +none = start_date=730 +none = start_date=730 +none = start_date=730 +none = start_date=730 +none = start_date=730 +none = start_date=730 +none = start_date=730 +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.8.0 +version_number = 18086D62 + +[newgrf] + +[newgrf-static] From f700a962760f9f48e7b36cbb655af81e499f209f Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Fri, 7 Dec 2018 01:15:53 -0500 Subject: [PATCH 03/17] Create README.md --- openttd/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 openttd/README.md diff --git a/openttd/README.md b/openttd/README.md new file mode 100644 index 00000000..72b1155a --- /dev/null +++ b/openttd/README.md @@ -0,0 +1,8 @@ +# OpenTTD + +OpenTTD is a business simulation game in which players try to earn money via transporting passengers and freight by road, rail, water and air. It is an open-source remake and expansion of the 1995 Chris Sawyer video game Transport Tycoon Deluxe + +## Server Ports + +OpenTTD requires one port to play, Defualt port is 3979 \ +Other ports can be added for rcon, but needs to be reflected in the openttd.cfg From ddee8ae6838eb55f2d5a4f5320d42deb3c6a0334 Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Fri, 7 Dec 2018 01:17:21 -0500 Subject: [PATCH 04/17] Update README.md --- openttd/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openttd/README.md b/openttd/README.md index 72b1155a..924db1fe 100644 --- a/openttd/README.md +++ b/openttd/README.md @@ -4,5 +4,6 @@ OpenTTD is a business simulation game in which players try to earn money via tra ## Server Ports -OpenTTD requires one port to play, Defualt port is 3979 \ -Other ports can be added for rcon, but needs to be reflected in the openttd.cfg +| Port | Default | +|---------|---------| +| Game | 3797 | From 0f4748e6a06a441a776e9f68d6432e361e0ad20c Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Fri, 7 Dec 2018 01:17:29 -0500 Subject: [PATCH 05/17] Update README.md --- openttd/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openttd/README.md b/openttd/README.md index 924db1fe..335379d6 100644 --- a/openttd/README.md +++ b/openttd/README.md @@ -2,7 +2,7 @@ OpenTTD is a business simulation game in which players try to earn money via transporting passengers and freight by road, rail, water and air. It is an open-source remake and expansion of the 1995 Chris Sawyer video game Transport Tycoon Deluxe -## Server Ports +## Server Port | Port | Default | |---------|---------| From 95b173d355edcdfa02f23ecc8cb6e2c9289ab4e1 Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Fri, 7 Dec 2018 01:17:48 -0500 Subject: [PATCH 06/17] Update README.md --- openttd/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openttd/README.md b/openttd/README.md index 335379d6..7d6d7ffb 100644 --- a/openttd/README.md +++ b/openttd/README.md @@ -1,4 +1,4 @@ -# OpenTTD +# OpenTTD (https://www.openttd.org) OpenTTD is a business simulation game in which players try to earn money via transporting passengers and freight by road, rail, water and air. It is an open-source remake and expansion of the 1995 Chris Sawyer video game Transport Tycoon Deluxe From 5e31d321d1911b0478b81e9f4ee0babd6a0d8fb7 Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Fri, 7 Dec 2018 01:21:26 -0500 Subject: [PATCH 07/17] Add files via upload --- openttd/egg-open-t-t-d-server.json | 63 ++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 openttd/egg-open-t-t-d-server.json diff --git a/openttd/egg-open-t-t-d-server.json b/openttd/egg-open-t-t-d-server.json new file mode 100644 index 00000000..e39343a7 --- /dev/null +++ b/openttd/egg-open-t-t-d-server.json @@ -0,0 +1,63 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v1" + }, + "exported_at": "2018-12-07T01:20:53-05:00", + "name": "OpenTTD Server", + "author": "admin@justmyrandomstuff.com", + "description": "OpenTTD is an open source simulation game based upon the popular Microprose game \"Transport Tycoon Deluxe\", written by Chris Sawyer. It attempts to mimic the original game as closely as possible while extending it with new features.\r\n\r\nOpenTTD is modelled after the original Transport Tycoon game by Chris Sawyer and enhances the game experience dramatically. Many features were inspired by TTDPatch while others are original.", + "image": "areyouscared\/ptero:openttd", + "startup": ".\/openttd -D", + "config": { + "files": "{\r\n \"openttd.cfg\": {\r\n \"parser\": \"ini\",\r\n \"find\": {\r\n \"network.server_port\": \"{{server.build.default.port}}\",\r\n \"network.server_name\": \"{{server.build.env.srv_name}}\",\r\n \"network.server_password\": \"{{server.build.env.srv_pass}}\",\r\n \"network.lan_internet\": 0,\r\n \"network.server_advertise\": \"{{server.build.env.srv_advertise}}\",\r\n \"network.admin_password\": \"{{server.build.env.srv_adminpass}}\"\r\n }\r\n }\r\n}", + "startup": "{\r\n \"done\": \"[net] Map generated, starting game\",\r\n \"userInteraction\": []\r\n}", + "logs": "{\r\n \"custom\": false,\r\n \"location\": \"latest.log\"\r\n}", + "stop": "exit" + }, + "scripts": { + "installation": { + "script": "#!\/bin\/ash\r\napt -y update\r\napt -y --no-install-recommends install wget tar unzip ca-certificates curl\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n## Download game\r\nwget https:\/\/binaries.openttd.org\/releases\/1.8.0\/openttd-1.8.0-linux-generic-amd64.tar.gz \r\ntar xf \/mnt\/server\/openttd-1.8.0-linux-generic-amd64.tar.gz\r\nmv openttd-1.8.0-linux-generic-amd64\/* .\r\nchmod +x openttd\r\n\r\n## Get opensoruce gfx\r\ncd \/mnt\/server\r\nwget https:\/\/binaries.openttd.org\/extra\/opengfx\/0.5.2\/opengfx-0.5.2-all.zip\r\nunzip opengfx-0.5.2-all.zip\r\ntar -xvf opengfx-0.5.2.tar\r\ncd opengfx-0.5.2\r\nmv -t \/mnt\/server\/baseset ogfx1_base.grf ogfxc_arctic.grf ogfxe_extra.grf ogfxh_tropical.grf ogfxi_logos.grf ogfxt_toyland.grf opengfx.obg\r\n\r\n## Remove excess files\r\ncd \/mnt\/server\r\nrm opengfx-0.5.2-all.zip opengfx-0.5.2.tar openttd-1.8.0-linux-generic-amd64.tar.gz\r\nrm -r opengfx-0.5.2-all openttd-1.8.0-linux-generic-amd64\r\ncurl https:\/\/justmyrandomstuff.com\/img\/nFBT6S7.cfg >> openttd.cfg", + "container": "ubuntu:18.04", + "entrypoint": "bash" + } + }, + "variables": [ + { + "name": "Server Name", + "description": "The name shown in the serverlist", + "env_variable": "srv_name", + "default_value": "OpenTTD Server", + "user_viewable": 1, + "user_editable": 1, + "rules": "required|string|max:20" + }, + { + "name": "Server Password", + "description": "The password required to join the server", + "env_variable": "srv_pass", + "default_value": "", + "user_viewable": 1, + "user_editable": 1, + "rules": "nullable|string|max:20" + }, + { + "name": "Show in masterlist?", + "description": "Show the server in the serverlist on the client, true or false", + "env_variable": "srv_advertise", + "default_value": "true", + "user_viewable": 1, + "user_editable": 1, + "rules": "required|string|max:5" + }, + { + "name": "Admin Password", + "description": "Password to access admin controls in-game", + "env_variable": "srv_adminpass", + "default_value": "", + "user_viewable": 1, + "user_editable": 1, + "rules": "required|string|max:20" + } + ] +} \ No newline at end of file From ca46b4e860852d4e30bbf124b2b8bd0ceee7bb81 Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Fri, 7 Dec 2018 01:23:22 -0500 Subject: [PATCH 08/17] Update egg-open-t-t-d-server.json --- openttd/egg-open-t-t-d-server.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openttd/egg-open-t-t-d-server.json b/openttd/egg-open-t-t-d-server.json index e39343a7..d213ce4b 100644 --- a/openttd/egg-open-t-t-d-server.json +++ b/openttd/egg-open-t-t-d-server.json @@ -17,7 +17,7 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/ash\r\napt -y update\r\napt -y --no-install-recommends install wget tar unzip ca-certificates curl\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n## Download game\r\nwget https:\/\/binaries.openttd.org\/releases\/1.8.0\/openttd-1.8.0-linux-generic-amd64.tar.gz \r\ntar xf \/mnt\/server\/openttd-1.8.0-linux-generic-amd64.tar.gz\r\nmv openttd-1.8.0-linux-generic-amd64\/* .\r\nchmod +x openttd\r\n\r\n## Get opensoruce gfx\r\ncd \/mnt\/server\r\nwget https:\/\/binaries.openttd.org\/extra\/opengfx\/0.5.2\/opengfx-0.5.2-all.zip\r\nunzip opengfx-0.5.2-all.zip\r\ntar -xvf opengfx-0.5.2.tar\r\ncd opengfx-0.5.2\r\nmv -t \/mnt\/server\/baseset ogfx1_base.grf ogfxc_arctic.grf ogfxe_extra.grf ogfxh_tropical.grf ogfxi_logos.grf ogfxt_toyland.grf opengfx.obg\r\n\r\n## Remove excess files\r\ncd \/mnt\/server\r\nrm opengfx-0.5.2-all.zip opengfx-0.5.2.tar openttd-1.8.0-linux-generic-amd64.tar.gz\r\nrm -r opengfx-0.5.2-all openttd-1.8.0-linux-generic-amd64\r\ncurl https:\/\/justmyrandomstuff.com\/img\/nFBT6S7.cfg >> openttd.cfg", + "script": "#!\/bin\/ash\r\napt -y update\r\napt -y --no-install-recommends install wget tar unzip ca-certificates curl\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n## Download game\r\nwget https:\/\/binaries.openttd.org\/releases\/1.8.0\/openttd-1.8.0-linux-generic-amd64.tar.gz \r\ntar xf \/mnt\/server\/openttd-1.8.0-linux-generic-amd64.tar.gz\r\nmv openttd-1.8.0-linux-generic-amd64\/* .\r\nchmod +x openttd\r\n\r\n## Get opensoruce gfx\r\ncd \/mnt\/server\r\nwget https:\/\/binaries.openttd.org\/extra\/opengfx\/0.5.2\/opengfx-0.5.2-all.zip\r\nunzip opengfx-0.5.2-all.zip\r\ntar -xvf opengfx-0.5.2.tar\r\ncd opengfx-0.5.2\r\nmv -t \/mnt\/server\/baseset ogfx1_base.grf ogfxc_arctic.grf ogfxe_extra.grf ogfxh_tropical.grf ogfxi_logos.grf ogfxt_toyland.grf opengfx.obg\r\n\r\n## Remove excess files\r\ncd \/mnt\/server\r\nrm opengfx-0.5.2-all.zip opengfx-0.5.2.tar openttd-1.8.0-linux-generic-amd64.tar.gz\r\nrm -r opengfx-0.5.2-all openttd-1.8.0-linux-generic-amd64\r\ncurl https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/openttd\/egg-open-t-t-d-server.json >> openttd.cfg", "container": "ubuntu:18.04", "entrypoint": "bash" } @@ -60,4 +60,4 @@ "rules": "required|string|max:20" } ] -} \ No newline at end of file +} From 06392e4b776d0d08a2544b446537837814e6a1d2 Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Fri, 7 Dec 2018 01:24:11 -0500 Subject: [PATCH 09/17] Delete egg-open-t-t-d-server.json --- openttd/egg-open-t-t-d-server.json | 63 ------------------------------ 1 file changed, 63 deletions(-) delete mode 100644 openttd/egg-open-t-t-d-server.json diff --git a/openttd/egg-open-t-t-d-server.json b/openttd/egg-open-t-t-d-server.json deleted file mode 100644 index d213ce4b..00000000 --- a/openttd/egg-open-t-t-d-server.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", - "meta": { - "version": "PTDL_v1" - }, - "exported_at": "2018-12-07T01:20:53-05:00", - "name": "OpenTTD Server", - "author": "admin@justmyrandomstuff.com", - "description": "OpenTTD is an open source simulation game based upon the popular Microprose game \"Transport Tycoon Deluxe\", written by Chris Sawyer. It attempts to mimic the original game as closely as possible while extending it with new features.\r\n\r\nOpenTTD is modelled after the original Transport Tycoon game by Chris Sawyer and enhances the game experience dramatically. Many features were inspired by TTDPatch while others are original.", - "image": "areyouscared\/ptero:openttd", - "startup": ".\/openttd -D", - "config": { - "files": "{\r\n \"openttd.cfg\": {\r\n \"parser\": \"ini\",\r\n \"find\": {\r\n \"network.server_port\": \"{{server.build.default.port}}\",\r\n \"network.server_name\": \"{{server.build.env.srv_name}}\",\r\n \"network.server_password\": \"{{server.build.env.srv_pass}}\",\r\n \"network.lan_internet\": 0,\r\n \"network.server_advertise\": \"{{server.build.env.srv_advertise}}\",\r\n \"network.admin_password\": \"{{server.build.env.srv_adminpass}}\"\r\n }\r\n }\r\n}", - "startup": "{\r\n \"done\": \"[net] Map generated, starting game\",\r\n \"userInteraction\": []\r\n}", - "logs": "{\r\n \"custom\": false,\r\n \"location\": \"latest.log\"\r\n}", - "stop": "exit" - }, - "scripts": { - "installation": { - "script": "#!\/bin\/ash\r\napt -y update\r\napt -y --no-install-recommends install wget tar unzip ca-certificates curl\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n## Download game\r\nwget https:\/\/binaries.openttd.org\/releases\/1.8.0\/openttd-1.8.0-linux-generic-amd64.tar.gz \r\ntar xf \/mnt\/server\/openttd-1.8.0-linux-generic-amd64.tar.gz\r\nmv openttd-1.8.0-linux-generic-amd64\/* .\r\nchmod +x openttd\r\n\r\n## Get opensoruce gfx\r\ncd \/mnt\/server\r\nwget https:\/\/binaries.openttd.org\/extra\/opengfx\/0.5.2\/opengfx-0.5.2-all.zip\r\nunzip opengfx-0.5.2-all.zip\r\ntar -xvf opengfx-0.5.2.tar\r\ncd opengfx-0.5.2\r\nmv -t \/mnt\/server\/baseset ogfx1_base.grf ogfxc_arctic.grf ogfxe_extra.grf ogfxh_tropical.grf ogfxi_logos.grf ogfxt_toyland.grf opengfx.obg\r\n\r\n## Remove excess files\r\ncd \/mnt\/server\r\nrm opengfx-0.5.2-all.zip opengfx-0.5.2.tar openttd-1.8.0-linux-generic-amd64.tar.gz\r\nrm -r opengfx-0.5.2-all openttd-1.8.0-linux-generic-amd64\r\ncurl https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/openttd\/egg-open-t-t-d-server.json >> openttd.cfg", - "container": "ubuntu:18.04", - "entrypoint": "bash" - } - }, - "variables": [ - { - "name": "Server Name", - "description": "The name shown in the serverlist", - "env_variable": "srv_name", - "default_value": "OpenTTD Server", - "user_viewable": 1, - "user_editable": 1, - "rules": "required|string|max:20" - }, - { - "name": "Server Password", - "description": "The password required to join the server", - "env_variable": "srv_pass", - "default_value": "", - "user_viewable": 1, - "user_editable": 1, - "rules": "nullable|string|max:20" - }, - { - "name": "Show in masterlist?", - "description": "Show the server in the serverlist on the client, true or false", - "env_variable": "srv_advertise", - "default_value": "true", - "user_viewable": 1, - "user_editable": 1, - "rules": "required|string|max:5" - }, - { - "name": "Admin Password", - "description": "Password to access admin controls in-game", - "env_variable": "srv_adminpass", - "default_value": "", - "user_viewable": 1, - "user_editable": 1, - "rules": "required|string|max:20" - } - ] -} From dc491d5a8768fabdb56031324df25ef3f88083b8 Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Fri, 7 Dec 2018 01:24:50 -0500 Subject: [PATCH 10/17] Create egg-open-t-t-d-server --- openttd/egg-open-t-t-d-server | 63 +++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 openttd/egg-open-t-t-d-server diff --git a/openttd/egg-open-t-t-d-server b/openttd/egg-open-t-t-d-server new file mode 100644 index 00000000..71ca350c --- /dev/null +++ b/openttd/egg-open-t-t-d-server @@ -0,0 +1,63 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v1" + }, + "exported_at": "2018-12-07T01:23:04-05:00", + "name": "OpenTTD Server", + "author": "admin@justmyrandomstuff.com", + "description": "OpenTTD is an open source simulation game based upon the popular Microprose game \"Transport Tycoon Deluxe\", written by Chris Sawyer. It attempts to mimic the original game as closely as possible while extending it with new features.\r\n\r\nOpenTTD is modelled after the original Transport Tycoon game by Chris Sawyer and enhances the game experience dramatically. Many features were inspired by TTDPatch while others are original.", + "image": "areyouscared\/ptero:openttd", + "startup": ".\/openttd -D", + "config": { + "files": "{\r\n \"openttd.cfg\": {\r\n \"parser\": \"ini\",\r\n \"find\": {\r\n \"network.server_port\": \"{{server.build.default.port}}\",\r\n \"network.server_name\": \"{{server.build.env.srv_name}}\",\r\n \"network.server_password\": \"{{server.build.env.srv_pass}}\",\r\n \"network.lan_internet\": 0,\r\n \"network.server_advertise\": \"{{server.build.env.srv_advertise}}\",\r\n \"network.admin_password\": \"{{server.build.env.srv_adminpass}}\"\r\n }\r\n }\r\n}", + "startup": "{\r\n \"done\": \"[net] Map generated, starting game\",\r\n \"userInteraction\": []\r\n}", + "logs": "{\r\n \"custom\": false,\r\n \"location\": \"latest.log\"\r\n}", + "stop": "exit" + }, + "scripts": { + "installation": { + "script": "#!\/bin\/ash\r\napt -y update\r\napt -y --no-install-recommends install wget tar unzip ca-certificates curl\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n## Download game\r\nwget https:\/\/binaries.openttd.org\/releases\/1.8.0\/openttd-1.8.0-linux-generic-amd64.tar.gz \r\ntar xf \/mnt\/server\/openttd-1.8.0-linux-generic-amd64.tar.gz\r\nmv openttd-1.8.0-linux-generic-amd64\/* .\r\nchmod +x openttd\r\n\r\n## Get opensoruce gfx\r\ncd \/mnt\/server\r\nwget https:\/\/binaries.openttd.org\/extra\/opengfx\/0.5.2\/opengfx-0.5.2-all.zip\r\nunzip opengfx-0.5.2-all.zip\r\ntar -xvf opengfx-0.5.2.tar\r\ncd opengfx-0.5.2\r\nmv -t \/mnt\/server\/baseset ogfx1_base.grf ogfxc_arctic.grf ogfxe_extra.grf ogfxh_tropical.grf ogfxi_logos.grf ogfxt_toyland.grf opengfx.obg\r\n\r\n## Remove excess files\r\ncd \/mnt\/server\r\nrm opengfx-0.5.2-all.zip opengfx-0.5.2.tar openttd-1.8.0-linux-generic-amd64.tar.gz\r\nrm -r opengfx-0.5.2-all openttd-1.8.0-linux-generic-amd64\r\ncurl https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/openttd\/egg-open-t-t-d-server.json >> openttd.cfg", + "container": "ubuntu:18.04", + "entrypoint": "bash" + } + }, + "variables": [ + { + "name": "Server Name", + "description": "The name shown in the serverlist", + "env_variable": "srv_name", + "default_value": "OpenTTD Server", + "user_viewable": 1, + "user_editable": 1, + "rules": "required|string|max:20" + }, + { + "name": "Server Password", + "description": "The password required to join the server", + "env_variable": "srv_pass", + "default_value": "", + "user_viewable": 1, + "user_editable": 1, + "rules": "nullable|string|max:20" + }, + { + "name": "Show in masterlist?", + "description": "Show the server in the serverlist on the client, true or false", + "env_variable": "srv_advertise", + "default_value": "true", + "user_viewable": 1, + "user_editable": 1, + "rules": "required|string|max:5" + }, + { + "name": "Admin Password", + "description": "Password to access admin controls in-game", + "env_variable": "srv_adminpass", + "default_value": "", + "user_viewable": 1, + "user_editable": 1, + "rules": "required|string|max:20" + } + ] +} From 4ca066ed685bb8443a7749333089a8f52b0e163e Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Fri, 7 Dec 2018 01:27:26 -0500 Subject: [PATCH 11/17] Fixed pulling of config Corrected config name --- openttd/egg-open-t-t-d-server | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openttd/egg-open-t-t-d-server b/openttd/egg-open-t-t-d-server index 71ca350c..bf5b0eb7 100644 --- a/openttd/egg-open-t-t-d-server +++ b/openttd/egg-open-t-t-d-server @@ -17,7 +17,7 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/ash\r\napt -y update\r\napt -y --no-install-recommends install wget tar unzip ca-certificates curl\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n## Download game\r\nwget https:\/\/binaries.openttd.org\/releases\/1.8.0\/openttd-1.8.0-linux-generic-amd64.tar.gz \r\ntar xf \/mnt\/server\/openttd-1.8.0-linux-generic-amd64.tar.gz\r\nmv openttd-1.8.0-linux-generic-amd64\/* .\r\nchmod +x openttd\r\n\r\n## Get opensoruce gfx\r\ncd \/mnt\/server\r\nwget https:\/\/binaries.openttd.org\/extra\/opengfx\/0.5.2\/opengfx-0.5.2-all.zip\r\nunzip opengfx-0.5.2-all.zip\r\ntar -xvf opengfx-0.5.2.tar\r\ncd opengfx-0.5.2\r\nmv -t \/mnt\/server\/baseset ogfx1_base.grf ogfxc_arctic.grf ogfxe_extra.grf ogfxh_tropical.grf ogfxi_logos.grf ogfxt_toyland.grf opengfx.obg\r\n\r\n## Remove excess files\r\ncd \/mnt\/server\r\nrm opengfx-0.5.2-all.zip opengfx-0.5.2.tar openttd-1.8.0-linux-generic-amd64.tar.gz\r\nrm -r opengfx-0.5.2-all openttd-1.8.0-linux-generic-amd64\r\ncurl https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/openttd\/egg-open-t-t-d-server.json >> openttd.cfg", + "script": "#!\/bin\/ash\r\napt -y update\r\napt -y --no-install-recommends install wget tar unzip ca-certificates curl\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n## Download game\r\nwget https:\/\/binaries.openttd.org\/releases\/1.8.0\/openttd-1.8.0-linux-generic-amd64.tar.gz \r\ntar xf \/mnt\/server\/openttd-1.8.0-linux-generic-amd64.tar.gz\r\nmv openttd-1.8.0-linux-generic-amd64\/* .\r\nchmod +x openttd\r\n\r\n## Get opensoruce gfx\r\ncd \/mnt\/server\r\nwget https:\/\/binaries.openttd.org\/extra\/opengfx\/0.5.2\/opengfx-0.5.2-all.zip\r\nunzip opengfx-0.5.2-all.zip\r\ntar -xvf opengfx-0.5.2.tar\r\ncd opengfx-0.5.2\r\nmv -t \/mnt\/server\/baseset ogfx1_base.grf ogfxc_arctic.grf ogfxe_extra.grf ogfxh_tropical.grf ogfxi_logos.grf ogfxt_toyland.grf opengfx.obg\r\n\r\n## Remove excess files\r\ncd \/mnt\/server\r\nrm opengfx-0.5.2-all.zip opengfx-0.5.2.tar openttd-1.8.0-linux-generic-amd64.tar.gz\r\nrm -r opengfx-0.5.2-all openttd-1.8.0-linux-generic-amd64\r\ncurl https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/openttd\/openttd.cfg >> openttd.cfg", "container": "ubuntu:18.04", "entrypoint": "bash" } From d6154431cb2ed3d26c973ae4305ba6e3007a32d8 Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Sat, 8 Dec 2018 22:29:03 -0500 Subject: [PATCH 12/17] Rename egg-open-t-t-d-server to egg-open-t-t-d-server.json --- openttd/{egg-open-t-t-d-server => egg-open-t-t-d-server.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename openttd/{egg-open-t-t-d-server => egg-open-t-t-d-server.json} (100%) diff --git a/openttd/egg-open-t-t-d-server b/openttd/egg-open-t-t-d-server.json similarity index 100% rename from openttd/egg-open-t-t-d-server rename to openttd/egg-open-t-t-d-server.json From b5c7dfa04f6828d096e14457bebc90d513fcb2dd Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Tue, 25 Dec 2018 20:37:10 -0500 Subject: [PATCH 13/17] Update Install script now uses `alpine:3.8` Container uses base_ubuntu --- openttd/egg-open-t-t-d-server.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openttd/egg-open-t-t-d-server.json b/openttd/egg-open-t-t-d-server.json index bf5b0eb7..2b7bb77c 100644 --- a/openttd/egg-open-t-t-d-server.json +++ b/openttd/egg-open-t-t-d-server.json @@ -3,11 +3,11 @@ "meta": { "version": "PTDL_v1" }, - "exported_at": "2018-12-07T01:23:04-05:00", + "exported_at": "2018-12-25T20:36:01-05:00", "name": "OpenTTD Server", "author": "admin@justmyrandomstuff.com", "description": "OpenTTD is an open source simulation game based upon the popular Microprose game \"Transport Tycoon Deluxe\", written by Chris Sawyer. It attempts to mimic the original game as closely as possible while extending it with new features.\r\n\r\nOpenTTD is modelled after the original Transport Tycoon game by Chris Sawyer and enhances the game experience dramatically. Many features were inspired by TTDPatch while others are original.", - "image": "areyouscared\/ptero:openttd", + "image": "quay.io\/parkervcp\/pterodactyl-images:base_ubuntu", "startup": ".\/openttd -D", "config": { "files": "{\r\n \"openttd.cfg\": {\r\n \"parser\": \"ini\",\r\n \"find\": {\r\n \"network.server_port\": \"{{server.build.default.port}}\",\r\n \"network.server_name\": \"{{server.build.env.srv_name}}\",\r\n \"network.server_password\": \"{{server.build.env.srv_pass}}\",\r\n \"network.lan_internet\": 0,\r\n \"network.server_advertise\": \"{{server.build.env.srv_advertise}}\",\r\n \"network.admin_password\": \"{{server.build.env.srv_adminpass}}\"\r\n }\r\n }\r\n}", @@ -17,9 +17,9 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/ash\r\napt -y update\r\napt -y --no-install-recommends install wget tar unzip ca-certificates curl\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n## Download game\r\nwget https:\/\/binaries.openttd.org\/releases\/1.8.0\/openttd-1.8.0-linux-generic-amd64.tar.gz \r\ntar xf \/mnt\/server\/openttd-1.8.0-linux-generic-amd64.tar.gz\r\nmv openttd-1.8.0-linux-generic-amd64\/* .\r\nchmod +x openttd\r\n\r\n## Get opensoruce gfx\r\ncd \/mnt\/server\r\nwget https:\/\/binaries.openttd.org\/extra\/opengfx\/0.5.2\/opengfx-0.5.2-all.zip\r\nunzip opengfx-0.5.2-all.zip\r\ntar -xvf opengfx-0.5.2.tar\r\ncd opengfx-0.5.2\r\nmv -t \/mnt\/server\/baseset ogfx1_base.grf ogfxc_arctic.grf ogfxe_extra.grf ogfxh_tropical.grf ogfxi_logos.grf ogfxt_toyland.grf opengfx.obg\r\n\r\n## Remove excess files\r\ncd \/mnt\/server\r\nrm opengfx-0.5.2-all.zip opengfx-0.5.2.tar openttd-1.8.0-linux-generic-amd64.tar.gz\r\nrm -r opengfx-0.5.2-all openttd-1.8.0-linux-generic-amd64\r\ncurl https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/openttd\/openttd.cfg >> openttd.cfg", - "container": "ubuntu:18.04", - "entrypoint": "bash" + "script": "apk add --no-cache sdl-dev fontconfig curl\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\ncurl -LSs https:\/\/binaries.openttd.org\/releases\/1.8.0\/openttd-1.8.0-linux-generic-amd64.tar.gz -o openttd.tar.gz\r\n\r\ntar --strip-components=1 -xzvf openttd.tar.gz \r\n\r\nchmod +x openttd\r\n\r\ncurl -LSs https:\/\/binaries.openttd.org\/extra\/opengfx\/0.5.2\/opengfx-0.5.2-all.zip -o opengfx.zip\r\n\r\nunzip opengfx.zip \r\n\r\ntar --strip-components=1 -C baseset\/ -xvf opengfx*.tar\r\n\r\nrm open*zip open*tar open*gz\r\n\r\ncurl https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/openttd\/openttd\/openttd.cfg > openttd.cfg", + "container": "alpine:3.8", + "entrypoint": "ash" } }, "variables": [ From 44f5c6b2e8b8f23efadf7ac736fcddfdc02bbc22 Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Tue, 25 Dec 2018 20:41:08 -0500 Subject: [PATCH 14/17] Update README.md --- openttd/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openttd/README.md b/openttd/README.md index 7d6d7ffb..90f44417 100644 --- a/openttd/README.md +++ b/openttd/README.md @@ -2,8 +2,9 @@ OpenTTD is a business simulation game in which players try to earn money via transporting passengers and freight by road, rail, water and air. It is an open-source remake and expansion of the 1995 Chris Sawyer video game Transport Tycoon Deluxe -## Server Port +## Server Ports | Port | Default | |---------|---------| | Game | 3797 | +| Admin | 3977 | From 3d8f56d0eed6fe55b23db8613e4cb7727eafc09a Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Tue, 25 Dec 2018 20:56:11 -0500 Subject: [PATCH 15/17] Rename openttd/README.md to openttd/openttd/README.md --- openttd/{ => openttd}/README.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename openttd/{ => openttd}/README.md (100%) diff --git a/openttd/README.md b/openttd/openttd/README.md similarity index 100% rename from openttd/README.md rename to openttd/openttd/README.md From cfae59f99aa94251171ed3683943ec09024029c4 Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Tue, 25 Dec 2018 20:56:25 -0500 Subject: [PATCH 16/17] Rename openttd/egg-open-t-t-d-server.json to openttd/openttd/egg-open-t-t-d-server.json --- openttd/{ => openttd}/egg-open-t-t-d-server.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename openttd/{ => openttd}/egg-open-t-t-d-server.json (100%) diff --git a/openttd/egg-open-t-t-d-server.json b/openttd/openttd/egg-open-t-t-d-server.json similarity index 100% rename from openttd/egg-open-t-t-d-server.json rename to openttd/openttd/egg-open-t-t-d-server.json From 014f845f1348f8d6096bfc791e385dd63df29b6f Mon Sep 17 00:00:00 2001 From: Sir3lit Date: Tue, 25 Dec 2018 20:56:47 -0500 Subject: [PATCH 17/17] Rename openttd/openttd.cfg to openttd/openttd/openttd.cfg --- openttd/{ => openttd}/openttd.cfg | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename openttd/{ => openttd}/openttd.cfg (100%) diff --git a/openttd/openttd.cfg b/openttd/openttd/openttd.cfg similarity index 100% rename from openttd/openttd.cfg rename to openttd/openttd/openttd.cfg