Adjustable Artificial Intelligence for Openttd

Total Page:16

File Type:pdf, Size:1020Kb

Adjustable Artificial Intelligence for Openttd Masaryk University Faculty of Informatics Adjustable Artificial Intelligence for OpenTTD Bachelor’s Thesis Tereza Katreniaková Brno, Spring 2020 Masaryk University Faculty of Informatics Adjustable Artificial Intelligence for OpenTTD Bachelor’s Thesis Tereza Katreniaková Brno, Spring 2020 This is where a copy of the official signed thesis assignment and a copy ofthe Statement of an Author is located in the printed version of the document. Declaration Hereby I declare that this paper is my original authorial work, which I have worked out on my own. All sources, references, and literature used or excerpted during elaboration of this work are properly cited and listed in complete reference to the due source. Tereza Katreniaková Advisor: RNDr. Mgr. Jaroslav Bayer i Acknowledgements iii Abstract This thesis aims to implement artificial intelligence (AI) for the com- puter game OpenTTD with the ability to set the properties and behav- ior of the AI directly in the game. iv Keywords OpenTTD, NoAI API, AI, Squirrel v Contents Introduction 1 1 Open Transport Tycoon Deluxe 3 Introduction 3 1.1 Game objective ........................3 1.2 Infrastructure .........................3 vii List of Tables ix List of Figures xi Introduction Artificial intelligence (AI) is a field of study in computer science that focuses on research and the design of intelligent agents. An intelligent agent is an autonomous entity, which observes the surrounding en- vironment and takes actions to maximize the chance of successfully achieving its goals. The definition of intelligent agents varies between characteristics such as accommodating new problem-solving rules incrementally, adapting online and in real-time, learning through in- teraction with the environment, learning from large amounts of data, having memory-based exemplar storage, having parameters to repre- sent short and long term memory... Artificial Intelligence is nowadays widely used in medicine, robotics, economics, telecommunications, and many more. This thesis focuses on the implementation of AI for Open Transport Tycoon Deluxe (OpenTTD). The use of AIs in video games is nowadays very widespread and popular. An example of artificial intelligence in games can be computer- controlled opponents, content generation, simulation... AI in video games can be defined as a set of algorithms that include control tech- niques from control theory, robotics, computer graphics, and computer science in general. Game AI, therefore, does not represent “true” ar- tificial intelligence in the sense of learning from a large amountof data and making decisions based on the results, but they operate above a predetermined set of inputs and produce a limited number of responses. The goal of this thesis is to analyze, design, and implement AI for OpenTTD, with the possibility to configure the behavior and the properties of the AI directly in the game. 1 1 Open Transport Tycoon Deluxe OpenTTD is an open-source business simulation computer game, in which each player operates a transport company. OpenTTD is a re- make and expansion of the Chris Sawyers’ Transport Tycoon Deluxe, which introduces additional features. For instance, a multiplayer game, choice of different map sizes, language localization, great support for creating custom artificial intelligence and scripts and much more. OpenTTD runs on multiple platforms (Linux, Unix, Microsoft Windows) and is licensed under the GNU General Public Licence version 2.0. 1.1 Game objective The main goal of the game is to build a profitable company, which is decent competition for other players and their companies. In default settings, the game starts in the year 1950 and ends in 2050, where the final score is computed based on profit, the number ofowned vehicles and stations, number and amount of delivered cargo and other criteria. At the beginning of the game, there are cities and industries located all over the map, from which the player can transport cargo if a station is placed nearby. The profit from the transport is determined byits amount and transportation speed. There is a limited number of vehicle models at the beginning of the game, new models are being unlocked continuously as the game progress. 1.2 Infrastructure The player has a choice between four modes of transport, which can be combined arbitrarily: ∙ railways (steam, diesel, electric, monorail and maglev trains) ∙ roadways (buses, trucks, and trams) ∙ airways (airplanes and helicopters) 3 1. Open Transport Tycoon Deluxe ∙ waterways (ships) The knowledge of the advantages and disadvantages of each mode of transport is crucial to improve profit 4.
Recommended publications
  • OFELIA Bridge Setup
    Bridging Devices onto the OFELIA Testbed David R Newman December 10, 2013 1 Introduction The OFELIA testbed makes it possible to bridge devices onto slices created via an island's Expedient site. This document will provide instructions on how to bridge both Linux and Windows devices. OpenVPN is the best suited application for setting up an Ethernet bridge from a Linux virtual machine on the OFELIA testbed. It can be installed as a server package on most Linux distributions and as a client on most Linux and Windows distributions. OpenVPN's Linux instructions on how to do setup an Ethernet bridge using OpenVPN can be found at: http://openvpn.net/index.php/open-source/documentation/miscellaneous/76-ethernet-bridging.html This guide is an adaptation of these instructions for setting up an Ethernet bridge to an OFELIA island virtual machine. It assumes that you have already: 1. Created your own OFELIA account. 2. Connected to the OFELIA testbed network over VPN. 3. Created a project through an OFELIA island's Expedient website . 4. Added a slice to that project. 5. Created a couple of virtual machines on the OFELIA island's virtual machine servers. 6. Congured a owspace connecting together these virtual machines with one or more switches. Section 2 describes the project, test slice and owspace used as an exemplar in this guide. If you need help getting to a similar point follow the instructions at: https://alpha.fp7-ofelia.eu/doc/index.php/Working_with_the_OFELIA_Control_Framework Section 3 describes how to generate the server-side conguration for Ethernet bridging and section 4 how to generate the client-side conguration.
    [Show full text]
  • Openbsd Gaming Resource
    OPENBSD GAMING RESOURCE A continually updated resource for playing video games on OpenBSD. Mr. Satterly Updated August 7, 2021 P11U17A3B8 III Title: OpenBSD Gaming Resource Author: Mr. Satterly Publisher: Mr. Satterly Date: Updated August 7, 2021 Copyright: Creative Commons Zero 1.0 Universal Email: [email protected] Website: https://MrSatterly.com/ Contents 1 Introduction1 2 Ways to play the games2 2.1 Base system........................ 2 2.2 Ports/Editors........................ 3 2.3 Ports/Emulators...................... 3 Arcade emulation..................... 4 Computer emulation................... 4 Game console emulation................. 4 Operating system emulation .............. 7 2.4 Ports/Games........................ 8 Game engines....................... 8 Interactive fiction..................... 9 2.5 Ports/Math......................... 10 2.6 Ports/Net.......................... 10 2.7 Ports/Shells ........................ 12 2.8 Ports/WWW ........................ 12 3 Notable games 14 3.1 Free games ........................ 14 A-I.............................. 14 J-R.............................. 22 S-Z.............................. 26 3.2 Non-free games...................... 31 4 Getting the games 33 4.1 Games............................ 33 5 Former ways to play games 37 6 What next? 38 Appendices 39 A Clones, models, and variants 39 Index 51 IV 1 Introduction I use this document to help organize my thoughts, files, and links on how to play games on OpenBSD. It helps me to remember what I have gone through while finding new games. The biggest reason to read or at least skim this document is because how can you search for something you do not know exists? I will show you ways to play games, what free and non-free games are available, and give links to help you get started on downloading them.
    [Show full text]
  • 2015 Open Source Yearbook
    Opensource.com/yearbook . ........ OPENSOURCE.COM ................... Opensource.com publishes stories about creating, adopting, and sharing open source solutions. Visit Opensource.com to learn more about how the open source way is improving technologies, education, business, government, health, law, entertainment, humanitarian efforts, and more. Submit a story idea: https://opensource.com/story Email us: [email protected] Chat with us in Freenode IRC: #opensource.com Twitter @opensourceway: https://twitter.com/opensourceway Google+: https://plus.google.com/+opensourceway Facebook: https://www.facebook.com/opensourceway Instagram: https://www.instagram.com/opensourceway FROM THE EDITOR ............................. Dear Open Source Yearbook reader, The “open source” label was created back in 1998, not long after I got my start in tech publishing [1]. Fast forward to late 2014, when I was thinking about how much open source technologies, commu- nities, and business models have changed since 1998. I realized that there was no easy way—like a yearbook—to thumb through tech history to get a feel for open source. Sure, you can flip through the virtual pages of a Google search and read the “Best of” lists collected by a variety of technical publications and writers, much like you can thumb through newspapers from the 1980s to see the how big we wore our shoulder pads, neon clothing, and hair back then. But neither research method is particularly efficient, nor do they provide snapshots that show diversity within communities and moments of time. The idea behind the Open Source Yearbook is to collaborate with open source communities to collect a diverse range of stories from the year.
    [Show full text]
  • Transport Tycoon Android Download
    Transport tycoon android download Transport tycoon business simulation game. Online multiplayer games are available, as well as a single-player against computer. How to play. Build the ultimate transport empire! Take control of your own fledgling transport company, and use your engineering skill and business acumen to keep cargo. Build the ultimate transport empire! "Highly recommended" - Touch Arcade (* * * * ½, Game of the Week) "A fine example of a sim done well" - Pocket Gamer. Download free Android game Transport Tycoon apk. Find tons of the best games for any Android tablet and phone: Transport Tycoon and many others at. TRANSPORT TYCOON is the definitive version of the classic simulation game, created by TransportTycoon' folder to 'sdcard/Android/Obb/' Launch the game[/b]]. Download Transport Tycoon for Android. Transport people and goods in Transport Tycoon for Android. TRANSPORT TYCOON APK Free Download wih 0bb data latest version. Download Full APK of TRANSPORT TYCOON free download for. Transport Tycoon (MOD, unlocked) - build from scratch his own shipping company, and use the native business engineer and the ability of the ruling. Download Transport Tycoon v and build your empire now! Requirements: Android Features of Transport Tycoon (Full) for Android. Transport Tycoon (MOD, unlocked) - Discover new ways to train and its large empire. Build a new means of transport to be ahead of the previous ones. Create. An open source simulator based on the classic game Transport Tycoon Deluxe. Download OpenTTD Latest version: · Learn how to play Read our wiki. Android App on Google Play. Amazon App Store For Android. “Transport Tycoon is in many ways the precursor of world-building games like Minecraft that have.
    [Show full text]
  • Artificial Intelligence for the Openttd Game
    Technical University of Denmark Department of Informatics and Mathematical Modeling Master Thesis Artificial Intelligence for the OpenTTD Game Author: Supervisor: Maciej Wisniewski Dr. Carsten Witt Kongens Lyngby 2011 IMM-M.Sc.-2011-56 Technical University of Denmark Informatics and Mathematical Modelling Building 321, DK-2800 Kongens Lyngby, Denmark Phone +45 45253351, Fax +45 45882673 [email protected] www.imm.dtu.dk IMM-M.Sc.: ISSN 0909-3192 Abstract This master thesis project report is a result of an analysis of artificial intelligence applications in the field of transport management, focusing on optimal economic strategy and based on the example of OpenTTD, a simulation game. During this analysis a custom artificial intelligent agent has been designed and implemented for this game. OpenTTD is a simulation game available for free on its website, as an open-source project. The objective of the game is to create and manage your own transport company and potentially achieve the best performance company ratings. The project presented had several specified aims. In the beginning the author gives a brief game description and describes related problems which are solvable through the usage of knowledge from the field of artificial intelligence. In the next chapters an analysis of human behaviors, playing strategies and a typical human approach to the game is presented. The game API and artificial intelligence implementation language Squirrel are investigated and learned. Based on the gained knowledge existing artificial intelligence implementations and their designs are analyzed and described. Comparison classes and properties for categorization of artificial players are determined. Using these results and the gathered knowledge an artificial intelligence called SPRING is im- plemented and presented.
    [Show full text]
  • Simutrans Ativador Download
    Simutrans Ativador Download Download >>> http://bit.ly/2QJudU9 About This Game Simutrans is an open-source transportation simulation game available for Windows, Mac, and Linux. Your goal is to establish a successful transport company and build the nec 5d3b920ae0 Title: Simutrans Genre: Simulation Developer: The Simutrans Team Publisher: Open Source Publishing Release Date: 24 May, 2016 Minimum: OS: Windows XP or above Processor: 1 Ghz or faster processor Memory: 512 MB RAM English,French,German,Czech,Hungarian,Japanese,Korean,Portuguese,Simplified Chinese,Traditional Chinese,Italian,Dutch,Finnish,Polish,Russian,Swedish,Ukrainian simutrans vs ootd. simutrans infinite money. youtube simutrans tutorial. simutrans how to play. simutrans download mac. simutrans france. simutrans city growth. simutrans mac os x. simutrans addons download. simutrans pak128 britain addons. simutrans train signals. simutrans license. simutrans 120.4.1. simutrans buy house. simutrans new industry. simutrans heightmaps. simutrans rail signals. simutrans paks. simutrans world. download game simutrans indonesia. simutrans electricity. simutrans timetable. simutrans install. simutrans download pak. simutrans subway. simutrans source code download. simutrans 120.4. simutrans beginner mode. simutrans download windows 10. simutrans change year. juego simutrans. simutrans replace 1 / 3 stop. simutrans 2019. simutrans kostenlos. simutrans news. simutrans maps. simutrans windows. simutrans uk. simutrans food addon. simutrans review. simutrans how to make money. simutrans mac download. simutrans pak128 files. simutrans download source. simutrans latest version. simutrans osx. simutrans server. simutrans 64 128. simutrans newest version. simutrans youtube. simutrans freeplay. simutrans month wait time. simutrans 2. simutrans vs ottd. simutrans cheat money. simutrans 80. simutrans addons folder. simutrans double track. simutrans 128. simutrans cz download. simutrans choose signal.
    [Show full text]
  • Computation Offloading for Sophisticated Mobile-Games
    Computation Offloading for Sophisticated Mobile-Games M. Jiang Utrecht University Computation Offloading for Sophisticated Mobile-Games by M. Jiang in partial fulfillment of the requirements for the degree of Master of Science in Game and Media Technology at the Utrecht University, Supervisors: Dr. ir. S.W.B. Wishnu, Utrecht University Dr. ir. A. Iosup, Delft University of Technology Ir. O.W. Visser, Delft University of Technology Thesis committee: Dr. A. Egges, Utrecht University Contents 1 Introduction 1 2 Related Work 3 3 The Offloading Framework 7 3.1 Architecture . 7 3.2 Tick Synchronization . 8 3.3 Program Partitioning. 11 3.4 Offloading Control . 13 3.5 Offloading Decision . 14 3.6 Limitations . 14 4 Experimental Setup 17 4.1 OpenTTD. 17 4.2 Offloading OpenTTD . 19 4.3 Setup . 20 4.3.1 Game Settings and Save Games . 20 4.3.2 Offloading Parameters . 21 4.3.3 Devices . 22 4.3.4 Offloading Strategies. 23 4.3.5 Data Recording . 24 4.3.6 Experiment Sets . 24 5 Results 27 5.1 Performance . 27 5.2 Game Smoothness . 29 5.3 Game Responsiveness . 31 5.4 Bandwidth Usage. 32 5.5 Offloading Strategies. 34 5.6 Power Consumption . 36 5.7 Game Consistency . 37 6 Conclusions and Future Work 39 6.1 Conclusions . 39 6.2 Future Work. 40 Bibliography 43 3 1 Introduction Mobile gaming [1] is currently a market with incredible growth with new games continually being released for various platforms including Windows, iOS and Android [2]. However, mobile platforms like smart phones and tablets have limited computational power which only allows them to play fairly simple games.
    [Show full text]
  • Albert Morgese [email protected]
    EECS 481 Homework 6b Albert Morgese [email protected] April 16, 2018 Selected Project For this assignment, I have contributed to the OpenRCT2 project (https://github.com/OpenRCT2/OpenRCT2). OpenRCT2 is an open-source reverse-engineering of Chris Sawyer's Roller Coaster Tycoon 2, reimplemented in C++. The reimplementation has been complete since December 2016, but many new features have since been added, as well as fixes for a number of bugs from the original game. Project Context OpenRCT2, which began in April 2014, follows in the tradition of OpenTTD, a similar reverse-engineering project from about ten years prior of Chris Sawyer's previous game, Transport Tycoon Deluxe. Like OpenTTD, OpenRCT2 was created out of a desire to extend the original game's features and support additional modern platforms. Some of the notable added features include online multiplayer, arbitrary resolutions, OSX/Linux/Android support, fast-forwarding, and hardware rendering via OpenGL. One important detail about OpenRCT2 is that it still requires a copy of the original game to import assets from, even though all the code of the game has been reimplemented. This contrasts with OpenTTD, whose community has created free asset packs from scratch for distribution with the game. As such, OpenRCT2 does not have the immediate accessibility of OpenTTD, but it is still very much the preferred way to play Rollercoaster Tycoon and Rollercoaster Tycoon 2 on a modern computer. Project Governance OpenRCT2 has fairly well-structured contribution protocols. The project makes use of the “gitflow" work- flow, which essentially involves a master branch for stable releases, a development branch for the latest changes, and individual feature and hotfix branches as necessary.
    [Show full text]
  • A Portable User-Level Approach for System-Wide Integrity Protection†
    A Portable User-Level Approach for System-wide Integrity Protectiony Wai-Kit Sze and R. Sekar Stony Brook University Stony Brook, NY, USA ABSTRACT • Difficulty of secure policy enforcement. Non-bypassable poli- In this paper, we develop an approach for protecting system in- cies usually have to be enforced in the OS kernel. They are usu- tegrity from untrusted code that may harbor sophisticated malware. ally much harder to develop than user-level defenses. Moreover, We develop a novel dual-sandboxing architecture to confine not kernel-based solutions cannot be easily ported across different only untrusted, but also benign processes. Our sandboxes place OSes, or even different versions of the same OS. only a few restrictions, thereby permitting most applications to An alternative to sandboxing is isolated execution of untrusted code. function normally. Our implementation is performed entirely at One-way isolation [15, 23] permits untrusted software to read any- the user-level, requiring no changes to the kernel. This enabled us thing, but its outputs are held in isolation. Two-way isolation limits to port the system easily from Linux to BSD. Our experimental re- both reads and writes, holding the inputs as well as outputs of un- sults show that our approach preserves the usability of applications, trusted applications in an isolated environment. The app model on while offering strong protection and good performance. Moreover, Android, Apple iOS, and Windows 8 sandbox are generally based policy development is almost entirely automated, sparing users and on this two-way isolation model. administrators this cumbersome and difficult task. Isolation approaches provide stronger protection from malware since they block all interactions between untrusted and benign soft- 1.
    [Show full text]
  • List of TCP and UDP Port Numbers - Wikipedia, the Free Encyclopedia List of TCP and UDP Port Numbers from Wikipedia, the Free Encyclopedia
    8/21/2014 List of TCP and UDP port numbers - Wikipedia, the free encyclopedia List of TCP and UDP port numbers From Wikipedia, the free encyclopedia This is a list of Internet socket port numbers used by protocols of the Transport Layer of the Internet Protocol Suite for the establishment of host-to-host connectivity. Originally, port numbers were used by the Network Control Program (NCP) which needed two ports for half duplex transmission. Later, the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP) needed only one port for bidirectional traffic. The even numbered ports were not used, and this resulted in some even numbers in the well-known port number range being unassigned. The Stream Control Transmission Protocol (SCTP) and the Datagram Congestion Control Protocol (DCCP) also use port numbers. They usually use port numbers that match the services of the corresponding TCP or UDP implementation, if they exist. The Internet Assigned Numbers Authority (IANA) is responsible for maintaining the official assignments of port numbers for specific uses.[1] However, many unofficial uses of both well-known and registered port numbers occur in practice. Contents 1 Table legend 2 Well-known ports 3 Registered ports 4 Dynamic, private or ephemeral ports 5 See also 6 References 7 External links Table legend Use Description Color Official Port is registered with IANA for the application[1] White Unofficial Port is not registered with IANA for the application Blue Multiple use Multiple applications are known to use this port. Yellow Well-known ports The port numbers in the range from 0 to 1023 are the well-known ports or system ports.[2] They are used by system processes that provide widely used types of network services.
    [Show full text]
  • Desarrollo De Videojuegos En 2D Usando Simple Directmedia Layer, SDL
    Memoria Trabajo Fin de Grado Desarrollo de videojuegos en 2D usando Simple DirectMedia Layer, SDL Autor: Jorge Santiago Buffa Casalis Tutor: Agustín Rafael Trujillo Pino Departamento de Informática y Sistemas Las Palmas de Gran Canaria, Julio 2013 Índice de contenido 1. Introducción......................................................................................................................................5 1.1 Objetivos....................................................................................................................................7 1.2 Competencias que hay que cubrir .............................................................................................9 1.3 Aportaciones............................................................................................................................10 2. Estado actual...................................................................................................................................13 2.1 Historia de los videojuegos......................................................................................................13 2.2 Actualidad................................................................................................................................18 2.3 Tetris........................................................................................................................................23 2.4 Plataformas..............................................................................................................................24
    [Show full text]
  • Free and Open Source Software
    Free and open source software Copyleft ·Events and Awards ·Free software ·Free Software Definition ·Gratis versus General Libre ·List of free and open source software packages ·Open-source software Operating system AROS ·BSD ·Darwin ·FreeDOS ·GNU ·Haiku ·Inferno ·Linux ·Mach ·MINIX ·OpenSolaris ·Sym families bian ·Plan 9 ·ReactOS Eclipse ·Free Development Pascal ·GCC ·Java ·LLVM ·Lua ·NetBeans ·Open64 ·Perl ·PHP ·Python ·ROSE ·Ruby ·Tcl History GNU ·Haiku ·Linux ·Mozilla (Application Suite ·Firefox ·Thunderbird ) Apache Software Foundation ·Blender Foundation ·Eclipse Foundation ·freedesktop.org ·Free Software Foundation (Europe ·India ·Latin America ) ·FSMI ·GNOME Foundation ·GNU Project ·Google Code ·KDE e.V. ·Linux Organizations Foundation ·Mozilla Foundation ·Open Source Geospatial Foundation ·Open Source Initiative ·SourceForge ·Symbian Foundation ·Xiph.Org Foundation ·XMPP Standards Foundation ·X.Org Foundation Apache ·Artistic ·BSD ·GNU GPL ·GNU LGPL ·ISC ·MIT ·MPL ·Ms-PL/RL ·zlib ·FSF approved Licences licenses License standards Open Source Definition ·The Free Software Definition ·Debian Free Software Guidelines Binary blob ·Digital rights management ·Graphics hardware compatibility ·License proliferation ·Mozilla software rebranding ·Proprietary software ·SCO-Linux Challenges controversies ·Security ·Software patents ·Hardware restrictions ·Trusted Computing ·Viral license Alternative terms ·Community ·Linux distribution ·Forking ·Movement ·Microsoft Open Other topics Specification Promise ·Revolution OS ·Comparison with closed
    [Show full text]