scieee AI-readable full text Open interactive document viewer

Procedural content generation in gaming via evolutionary algorithms

Çetiner, Mehmet Serdar

Abstract

The aim of this thesis is to investigate the possibility of creating content using the Genetic Algorithms. To this end a simple system of interconnected algorithms were developed using concepts from Role Playing Games, specifically Dungeons and Dragons to create game content as characters, quests, and encounters. To be able to produce context, subsystems of map, character, quest, and encounter generators were created. These systems or engines not only define the game space to be populated, but they also provide each other input to create maps, quests, locations, animals, and events that are sensible and coherent. Randomness of the generation was essential as such a variety of noise maps and random number generation were added to every engine in the system. Layered or singular noise maps allowed for logical assumptions to be made, like seeing camels in a location with no rain and high temperatures. With the base truth coming from a random noise map such as danger, civilisation, faction etc., each system built on top of each other can get more complex. There are several Genetic Algorithms with custom operators within the system. These algorithms take their inputs and individuals from the respective engines and tie them all to each other through their physical coordinates in the gaming space. The most impactful part of these algorithms is the Fitness Functions defined with concepts from literature or CGI. The proposed system can populate a game space with elements of desired attributes given the constraints. The output produced consists of coherently tied story beats with some attributes already set. Even in this simple level, this can allow not only game designers but anyone who wants to build any kind of fictional work.

Full text

i Master Degree Program in Data Science and Advanced Analytics PROCEDURAL CONTENT GENERATION IN GAMING VIA EVOLUTIONARY ALGORITHMS Serdar Cetiner Dissertation presented as partial requirement for obtaining the Master Degree Program in Data Science and Advanced Analytics NOVA Information Management School Instituto Superior de Estatística e Gestão de Informação Universidade Nova de Lisboa MDSAA i NOVA Information Management School Instituto Superior de Estatística e Gestão de Informação Universidade Nova de Lisboa PROCEDURAL CONTENT GENERATION IN GAMING VIA EVOLUTIONARY ALGORITHMS by Serdar Çetiner Dissertation / Project Work / Internship report presented as partial requirement for obtaining the Master’s degree in Advanced Analytics, with a Specialization in Data Science Advisor: Professor Mauro Castelli February 2023 ii STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledge the Rules of Conduct and Code of Honor from the NOVA Information Management School. Serdar Çetiner February 28, 2023 iii ACKNOWLEDGEMENTS This thesis has been an amazing opportunity where I was able to explore both my affection for gaming and my passion for Data Science. The work done would not be possible without Professor Mauro Castelli, who not only provided with me the guidance I needed but also gave me the autonomy to follow the uncommon domains to conduct the research. I would like to thank my friend and colleague Oguz Kokes, who has been with me from the beginning of this journey and whose help, especially on the conceptual design, has been instrumental in the creation of this work. Lastly, I express my gratitude to my family; my parents İhsan and Meryem Çetiner for their unwavering love and support in every endeavour I had in my life, and especially my brother Faruk Çetiner, who has been a constant role model, a mentor, and a good friend for me. This work would not be possible without them. iv ABSTRACT The aim of this thesis is to investigate the possibility of creating content using the Genetic Algorithms. To this end a simple system of interconnected algorithms were developed using concepts from Role Playing Games, specifically Dungeons and Dragons to create game content as characters, quests, and encounters. To be able to produce context, subsystems of map, character, quest, and encounter generators were created. These systems or engines not only define the game space to be populated, but they also provide each other input to create maps, quests, locations, animals, and events that are sensible and coherent. Randomness of the generation was essential as such a variety of noise maps and random number generation were added to every engine in the system. Layered or singular noise maps allowed for logical assumptions to be made, like seeing camels in a location with no rain and high temperatures. With the base truth coming from a random noise map such as danger, civilisation, faction etc., each system built on top of each other can get more complex. There are several Genetic Algorithms with custom operators within the system. These algorithms take their inputs and individuals from the respective engines and tie them all to each other through their physical coordinates in the gaming space. The most impactful part of these algorithms is the Fitness Functions defined with concepts from literature or CGI. The proposed system can populate a game space with elements of desired attributes given the constraints. The output produced consists of coherently tied story beats with some attributes already set. Even in this simple level, this can allow not only game designers but anyone who wants to build any kind of fictional work. KEYWORDS Genetic Operators; Optimization; Genetic Algorithms; Procedural Generation; Map Generation; Quest Generation; Character Generation; Noise Maps v INDEX 1. Introduction ................................................................................................................ 1 1.1. Background Information ...................................................................................... 1 1.2. Procedural Generation ......................................................................................... 1 1.3. Genetic Algorithms .............................................................................................. 2 1.3.1. Fitness function ............................................................................................. 2 1.3.2. Genetic operators ......................................................................................... 2 1.3.2.1. Selection ................................................................................................................... 2 1.3.2.2. Crossover .................................................................................................................. 2 1.3.2.3. Mutation ................................................................................................................... 3 1.4. Previous work ....................................................................................................... 3 1.4.1. Terrain generation ........................................................................................ 3 1.4.2. Quest generation .......................................................................................... 4 1.4.3. Level generation ............................................................................................ 4 1.4.4. NPC generation ............................................................................................. 5 1.4.5. Texture & asset generation ........................................................................... 5 1.5. Thesis objective .................................................................................................... 5 2. PROPOSED SYSTEM ..................................................................................................... 7 2.1. Map Generation ................................................................................................... 7 2.1.1. Creating Regions ........................................................................................... 8 2.1.2. Attributing Regions ..................................................................................... 10 2.2. Encounter Generation ........................................................................................ 14 2.2.1. Genetic Algorithm ....................................................................................... 15 2.3. Quest Generation ............................................................................................... 17 2.3.1. Quest Library Generation ............................................................................ 19 2.3.2. Quest Line Generation ................................................................................ 20 2.4. Character Generation ......................................................................................... 21 3. RESULTS & Conclusions ............................................................................................. 24 4. Limitations and recommendations for future works ................................................ 25 5. Bibliography .............................................................................................................. 26 6. Appendix ................................................................................................................... 29 vi LIST OF FIGURES Figure 1: Proposed system overview with sub-class interactions. ...................................................................................... 7 Figure 2: 1024x1024 map grid initialised with 512 randomly generated points. ................................................................. 8 Figure 3: Voronoi tessellations for randomly initialised map, arbitrarily coloured. ............................................................. 9 Figure 4: Location points after Llyod’s Relaxation algorithm is applied. ............................................................................. 9 Figure: 5 Voronoi tessellations drawn from relaxed location points before and after boundary distortion, arbitrarily coloured. ............................................................................................................................................................... 10 Figure 6: 2-Dimensional Perlin Noise. .............................................................................................................................. 11 Figure 7: Two noise maps on the same grid, depicting weather related attributes. .......................................................... 11 Figure 8: Attributed map regions on different views. ....................................................................................................... 13 Figure 9: Attributed map regions on different views with sea masks. .............................................................................. 14 Figure 10: The fitness function for encounter generation. ................................................................................................ 15 Figure 11: Encounter placement for “Cannibals” and “Snakes”. ....................................................................................... 17 Figure 12: Freytag’s Pyramid ............................................................................................................................................ 17 Figure 13: Example quest object attributes. ..................................................................................................................... 18 Figure 14: The fitness function for the quest generation. ................................................................................................. 19 Figure 15: Fitness function for quest line generation. ...................................................................................................... 21 Figure 16: Example NPC attributes. .................................................................................................................................. 22 Figure 17: Quest NPC generation algorithm flow. ............................................................................................................ 23 Figure 18: Initial plan for the system. ............................................................................................................................... 31 vii LIST OF TABLES Table 1: Noise level breakdown for each view and noise map generated for map creation. ............................................. 12 Table 2: Sample of encounter biomes. ............................................................................................................................. 15 Table 3: Character races and atribute modifiers. .............................................................................................................. 29 Table 4: World encounters and their biomes. .................................................................................................................. 31 viii LIST OF ABBREVIATIONS AND ACRONYMS NPC Non-Player Character RPG Role-Playing Game MMORPG Massive Multiplayer Online Role-Playing Game RTS Real-Time Strategy GA Genetic Algorithm DnD Dungeons and Dragons PMX Partially Mapped Crossover 7 2. PROPOSED SYSTEM To be able to generate content in a coherent and a viable way, four sub-systems were created. Each of these “engines” are focused on a different aspect of RPGs. In general, these engines create the environment and randomly initialises different populations of individuals for quests, encounters and characters. Figure 1: Proposed system overview with sub-class interactions. Engines use each other as input and output locations, especially for quests and encounters where genetic algorithms were implemented. This connection of systems provide coherency between different views to the map, which normally would require game, level, or quest designers’ time. The output for the system is different views on a map generated and populated procedurally. In RPG terms, this would be the game state on beginning. Engines: • Map Engine: creates and populates the map with base attributes. • Quest Engine: creates a library containing viable quests and quest lines. • Character Engine: creates random NPCs, tied to the generated quests. • Encounter Engine: randomly but coherently populates the map with pre-defined interactions. Generated populations in different systems tie to each other via coordinates as exact and relative locations for any individuals are used to determine whether they are fit. To be able to create base for this evaluation, a game space needs to be created. 2.1. MAP GENERATION The game-space or the map, is essentially a grid of points. Each point or location in the map needs to have different views providing information on different game aspects. The generation process has two phases, initialising the regions and assigning attributes to them. Map Engine Creates and populates the map with immovable attributes. -Random points in grid. -Vo r on o i Te s se l l at i o ns -Perlin Noise -Lloyd’s Relaxation Terrain Civilisation Threat Story Act Character Engine Creates NPC’s coherent with quests. - Race & Classes -DND 5e attributes -Random names -Random inventory -Set location NPC Quest Engine Creates a library containing viable quest paths. -Random coordinates -Logical fitness -Freytag’s fitness -Genetic operators -Random attributes Quest Quest Line FREYTAG’S LOGICAL NPC Book Encounter Engine Populates the map with nonstory interaction points. -Random coordinates -Logical fitness -Genetic operators -Pre-defined attributes Animal Special Natural LOGICAL FITNESS 8 2.1.1. Creating Regions To generate new random maps whenever needed, the basis of the map needs to be random numbers. For the purposes of this thesis a 1024 x 1024 grid was initialised with 512 random points or “locations”. These points will serve as the centre of a region. Figure 2: 1024x1024 map grid initialised with 512 randomly generated points. Each centroid is tied to a region and the area of these regions are calculated as consists of any points closer to that centroid, the area is also called Voronoi Tessellation as for every centroid α ∈"Ω, Ω being the map space, there is a certain point in x ∈"Ω in the map that is closer to α than any other centroid. (Lucarini, 2009) For this implementation, Voronoi class in scipy.spatial library was utilised as the class is able to store region, ridges and vertices for different tessellation calculations. 9 Figure 3: Voronoi tessellations for randomly initialised map, arbitrarily coloured. Due to nature of initialisation, some clustering between centroids is visible on the map and it doesn’t look natural. These points ideally would be uniformly distributed to the map. For this issue, Llyod’s Relaxation algorithm was utilised. This iterative algorithm takes the initial locations, moves them to the centre of their cell and re-calculates the Voronoi region resulting in more uniform cells every iteration. - Figure 4: Location points after Llyod’s Relaxation algorithm is applied. To achieve more natural look, the ridges between regions were distorted, the affect is particularly necessary for the terrain view of the map as one does not expect to see straight line on a realistic map. 10 Figure: 5 Voronoi tessellations drawn from relaxed location points before and after boundary distortion, arbitrarily coloured. 2.1.2. Attributing Regions Upon generation of the regions, providing attributes to these regions are the next step as these attributes will provide context for any game elements residing on that specific region. This operation also needs to stem from randomness to ensure different maps can be generated. Initial approach of generating uniform random numbers will not work as this randomness needs to follow a structure. To solve this issue, Perlin noise was used. Created by Ken Perlin and won him an Academy Award in the process, Perlin Noise is an implementation of gradient noise in multiple dimensions. The algorithm can produce smooth randomness in multiple dimensions. (Perlin, 1985) Perlin noise determines noise at a point in space by computing a pseudo-random gradient at each of the eight nearest vertices then doing an interpolation. (Lagae et al., 2010) For this implementation, the noise package in Python were utilised. The noise class in the package allows users to tune parameters for the noise maps generated, which has proved useful for the initial development process. Scale: determines at what distance to view, set as 32. Octaves: levels of detail for the noise map to have, set as 10. Lacunarity: adjusts the frequency to affect how much detail is added at each octave, set as 0.8. Persistence: adjusts the frequency to determine how much each octave contributes to the overall shape, set as 2. 11 Figure 6: 2-Dimensional Perlin Noise. As each point in the noise map has a value between -1 to 1, the relative differences of “views” can be determined. These views are pre-defined to generate the levels between them and eventually be used to label the region. Figure 7: Two noise maps on the same grid, depicting weather related attributes. Because different points in the regions have different noise levels, to be able to determine the attributes on a regional level, the average noise is calculated for all regions. For each view, the average noise is split into buckets, determining the label. While some views like “Danger” have one noise map determining it, more complex views such as weather uses two noise maps, one for raindrop and one for temperature. 12 MAP VIEW Rain noise Heat noise Population noise Threat noise Act noise Threat Threat 1-10 Terrain Tundra 0 0 Rainforest 2 2 Desert 0 2 Grassland 1-0 1-2 Mountain 2-0 0 Forest 2 1 Civilisation Wild 1-2-3-4-5-6 Countryside 7-8-9 City 10 Story act Act 0 1 Act 1 2 Act 2 3 NOISE LEVEL BUCKETS 3 3 10 10 3 Table 1: Noise level breakdown for each view and noise map generated for map creation. With all the different views outlined in Table 1, each point in the map now have context in several dimensions depending on what bucket (low to high) the region in on that specific view. This already creates a coherent map structure where danger level, civilisation level, biome type and story-acts of each location is known. The number of regions is set differently for each view depending on the context. Lower number of regions results in consolidated areas within map like the Story Act view, regions that needs to have imbalanced distributions are achieved with high number of regions in initialisation. This way, places with highest rate of population covers only a small fraction of the map while story arcs are separated thus avoiding an issue where a player on Act 0 can be stuck between higher Act regions. 13 Figure 8: Attributed map regions on different views. Perlin noise can be further utilised to generate seas within the map with a mask, as any noise value is between -1 and 1, any threshold can be set for the “sea level” giving the user control on the kind of map to generate. Several applications also use the same logic to generate elevation and smaller bodies of water. This application only utilises sea view. 14 Figure 9: Attributed map regions on different views with sea masks. With map generation is complete there is a map to populate and attributes to populate it by. 2.2. ENCOUNTER GENERATION One of the earlier RPG concepts, the encounters cover a wide spectrum of game events that can possibly happen to the player. In earlier games, this mechanic would be triggered with a dice roll. Modern RPGs improved the mechanic to have roaming NPCs around the map that can trigger with an actual encounter in the game space. Encounters are pre-set events with controlled conditions, one example is getting “ambush” encounter while on a dangerous place. This is done to increase the immersion of the player to the game space. 15 Encounters TERRAIN Tundra Rainforest Desert Grassland Mountain Forest tiger 0 1 0 0 0 0 overgrowth 0 1 0 0 0 0 bison 0 0 0 1 0 0 wind_gust 1 0 0 0 0 0 quicksand 0 0 1 0 0 0 donkey 0 0 0 0 1 0 Table 2: Sample of encounter biomes. Four main types of encounters were defined, and each sub-type of encounters were labelled with a biome in a logical way. (i.e., camel encounter in desert). Differentiation of Encounters are later used on the fitness function calculation specifically using Threat and Civilisation views. 2.2.1. Genetic Algorithm Encounters needs to be distributed throughout the map however a simple constraint-based algorithm will not be sufficient as each encounter needs to be on the correct location and be naturally distributed to increase immersion. The proposed genetic algorithm utilises wencounter objects. Each wencounter, fitness functions are calculated on wencounter level but multiple wencounter objects or packs are treated as individuals. pack_population evolves until desired fitness is reached. Only one individual is selected from each pack a limited number of fit individuals are taken from each iteration to promote diversity and store them in permanent locations with all other information generated. The fitness function is calculated as follows: !!"#$%"&!' ( #$%&'(( ) = + ,#$$'( + .#$$'( + /#$$'()+ 0#$$'( + 1#!"&'$*( !!""#$ = ! −1000%%%%%&'%the%coordinate%biome%is%not%equal%to%encounter%biome% % %%%%%%0%%%%%%%%%otherwise%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #!""#$ = ⎩ ⎪ ⎨ ⎪ ⎧ −1000%%%%%&'%the%coordinate%in%city%%%%%% %%%%%% −500%%%%%%&'%coordinate%in%countryside% %% %0%%%%%%%%%%otherwise%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% $ !""#$ = ⎩ ⎪ ⎨ ⎪ ⎧ −1000%%%%%&'%the%encounter%is%dangerous%and%coordinate%threat%is%below%3%%%% %%%%%% −1000%%%%%&'%the%encounter%is%with%safe%animals%but%the%threat%is%above%7%%%%% %% %0%%%%%%%%%%otherwise%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %!""#$ = ! −1000%%%%%&'%the%encounter%coordinate%is%in%the%sea%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % %%%%%%0%%%%%%%%%otherwise%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% &!%&'#"($ = Absolute%distance%to%the%nearest%centroid% Figure 10: The fitness function for encounter generation. 16 For each wencounter the fitness value is calculated by taking correct biome, distance from the centroid of current region, civilisation level and thread level. Pseudocode for evolution steps: • Initialise the world encounter manager with map input and desired encounter to be generated. • Initialise a pack population. • For each type of encounter: o While the number of desired encounters (World Atlas length) is not reached. § Rank Selection • Rank the individual packs depending on their fitness. • Assign selection probabilities to each individual, depending on their rank. • Select a pair of individuals. • Record the selected individuals. § Partially Mapped Crossover • Create two cut points in the coordinate arrays of parent individuals separately for x and y axes. • Replace the coordinate values between the cut points across parents as offspring. § Complete Mutation • Create random number. • If the random number < mutation probability: o For all coordinates in the pack generate new random numbers. • Else: o Pass § Check fitness of individual. § If desired fitness, append to the World Atlas. The fitness values aside from the distance from centroid centre are penalties multipliers of -500, although several selection operators as Fitness Proportionate Selection and Tournament Selection, because of ease of implementation with negative fitness values, Rank selection was used to select parents. Among tested Crossover operators, the fastest to converge on optimum solutions were the different versions of Partially Mapped Crossover. Initial design was to have the genome transference on wencounter level, but transference proved problematic as it immensely increased variation and prevented the algorithm from converging. To alleviate the variation missing from the crossover for utilising groups of coordinates is compensated with the mutation operators with either tuned to be robust or just with high mutation probability. The algorithm is run for each combination of encounter types. Through generations and populations fit individuals are recorded to the world atlas, until the desired number of individuals are placed. 23 Figure 17: Quest NPC generation algorithm flow. When a quest placed in the Quest Library, Character Engine is called to create a random character whose highest attribute matches the challenge type of the quest. Once this character is generated, it is levelled up. Characters can gain attribute bonusses from +2 to +6 depending on the level bracket they are in. This also ensures variability in the sense that placed character will be proficient in the challenge type attribute but can have other attributes boosted with danger. An example to this is an intelligence challenge in a high danger location could have a wizard character with high intelligence and boosted constitution. In a simple story this would be hinting that the wizard has been living in hostile conditions and got accustomed to it. The algorithm for character generation is relatively simple yet it provides the main aspect for the output to be used as a blueprint. All engines together ensure coherency in terms of the game and space, this alleviates the burden of world building and tying all elements together for a storyteller or a game designer. 24 3. RESULTS & CONCLUSIONS The main objective of this thesis was the evaluate the possibility of generating content with Genetic Algorithms. In traditional optimisation approach, the optimum solution is always sought after. The whole process of evolution is focused on getting desirable levels, in the process countless of suboptimal solutions with a major diversity is created. The aim of the generated system was to focus on all viable solutions within the search space. The main approach of using penalisation in fitness functions proved to be useful to achieve this result. As expected, the simple and existing Genetic Operators proved very effective, the simplicity of the operators is desired as they impact the performance of the system substantially and if they can converge on any solution, they produced desirable results. One downside of setting the functions with constraints were having static penalties that could not converge on a solution as all inputs in the algorithm carried the same weight and no penalties could be overlooked, a dynamic way of measuring these fitnesses was only possible through distances. Unviable distances were still penalised but having the distance to centroids, cities and each other as measure between viable individuals helped the algorithm to be able to find the best individuals. The other side of this coin was Gaming, specifically the embedded story and mechanical aspects on games was the focus of this thesis. Every addition of different gaming aspect to the system have improved it more than the Genetic Operators. Fitness functions generated and every constraint added to the functions increased the dimension of complexity. Especially inputs from different domains such as literature made all the difference. Tying the Quest Generator and Character Generator into the map would not be possible without Freytag’s narrative theories. Similar inputs from psychology, political science, macro-economic can also benefit this system immensely because the systems embedded within games are already based on reality, having the algorithm created with the same inspiration not only viable but it also allows for a more general use for the procedural generation systems created. A model capable of creating an outline of game economy will be far more effective than a system that tries to calculate the in-game currency ramp-up in Fallout. The general approach also removes limitations of gaming as the produced results from the developed system is a blueprint filled with story beats and progression which theoretically can be used to create any kind of story or world building. The blueprint can alleviate some of the talent and time requirements to create a good coherent world within a story as the system creates the world first and then paints out the possible stories that can be told within it. Same benefit of viable diversity can also be utilised for game testing. Due to the nature of some games, especially AAA rated releases require a massive amount of testing before release. The games that were not tested properly for their size faces backlash from the players often, recent examples to this would be the release of Fallout 76 and Cyberpunk. After these games were released, exploits and bugs that were not identified by the development team were found by the massive player bases, which resulted in PR damage and lost revenues. If designed accordingly, Genetic Algorithms can simulate all the difference ways of achieving a goal in a limited space by giving valuable hints to game developers on how many ways people can interact with their product with a fraction of costs and time. 25 4. LIMITATIONS AND RECOMMENDATIONS FOR FUTURE WORKS The initial plan for this thesis was far more ambitious with creating a playable game, that has all its elements procedurally generated with the added input from the player progressing through the game. Many of these elements were altered or removed from the final system as the amount of time required to study and develop those concepts would overshadow the actual goal of the thesis. Completion of this work mostly relied on concepts out of data science, by providing the perspective or context they progressed and shaped the system to its current state. It is highly recommended for future works to be conducted with a team from different disciplines, as it is different perspectives that allows for abstract concepts to be mathematically and algorithmically represented. The technical challenges of this type of work can be avoided by building a system on a functional game engine as this was done by several studies in the field. After the development of the system, a proper way to measure the quality of the content posed a major issue. In existing literature, this was only done for work that was embedded in the games via play-testers. The only viable testing for this application, was through the inner workings of the algorithm. As there is no optimisation algorithm that can solve all optimisation problems, not all content need can be satisfied with one procedural generation algorithm. The complexity of the algorithm rises exponentially with every other dynamic added to the mix. Given the complexity of modern video games, the amount of time necessary to develop an algorithm to generate viable content is not viable. This application should be further investigated for mobile games, mini-games or mechanics within video games and general story telling. 26 5. BIBLIOGRAPHY A.J., U., & P.D., S. (2015). CROSSOVER OPERATORS IN GENETIC ALGORITHMS: A REVIEW. ICTACT Journal on Soft Computing, 06(01), 1083–1092. https://doi.org/10.21917/ijsc.2015.0150 Basic D&D Rules | Dungeons & Dragons. (n.d.). D&D Official | Dungeons & Dragons. https://dnd.wizards.com/what-is-dnd/basic-rules Calvin Ashmore & Michael Nitsche. (2007). The Quest in a Generated World. Digital Games Research Association Conference, 4. http://homes.lmc.gatech.edu/%7Enitsche/download/AshmoreNitsche_DiGRA_07.pdf Carter, R. R., & Lester, D. (1998). Personalities of Players of Dungeons and Dragons. Psychological Reports, 82(1), 182. https://doi.org/10.2466/pr0.1998.82.1.182 Deep, K., & Thakur, M. (2007). A new mutation operator for real coded genetic algorithms. Applied Mathematics and Computation, 193(1), 211–230. https://doi.org/10.1016/j.amc.2007.03.046 Ebert, D. S., Musgrave, K. F., Peachey, D., Perlin, K., & Worley, S. (2002). Texturing and Modeling, Third Edition: A Procedural Approach (The Morgan Kaufmann Series in Computer Graphics) (3rd ed.). Morgan Kaufmann. Goldberg, D. E. (1986). The Genetic Algorithm Approach: Why, How, and What Next? Adaptive and Learning Systems, 247–253. https://doi.org/10.1007/978-1-4757-1895-9_17 Goldberg, D. E. (1989). Genetic Algorithms in Search, Optimization, and Machine Learning. Addison- Wesley Professional. Gygax, G., Sutherland, D. C., & Trampier, D. A. (1978). Advanced Dungeons & Dragons, Players Handbook: Special Reference Work : a Compiled Volume of Information for Players of Advanced Dungeons & Dragons, Including, Character Races, Classes, and Level Abilities; Spell Tables and Descriptions; Equipment Costs; Weapons Data; and Information on Adventuring. TSR Hobbies. Himite, B. (2022, January 4). Replicating Minecraft World Generation in Python - Towards Data Science. Medium. Retrieved October 22, 2022, from https://towardsdatascience.com/replicatingminecraft-world-generation-in-python-1b491bc9b9a4 Holland, J. H. (1992a). Adaptation in Natural and Artificial Systems: An Introductory Analysis with Applications to Biology, Control, and Artificial Intelligence. Amsterdam University Press. Holland, J. H. (1992b). Adaptation in Natural and Artificial Systems: An Introductory Analysis with Applications to Biology, Control, and Artificial Intelligence. Amsterdam University Press. Hong, T. P., Wang, H. S., Lin, W. Y., & Lee, W. Y. (2002). Evolution of Appropriate Crossover and Mutation Operators in a Genetic Process. Applied Intelligence, 16(1), 7–17. https://doi.org/10.1023/a:1012815625611 27 Kate Compton & Michael Mateas. (2006). Procedural level design for platform games. National Conference on Artificial Intelligence, 109–111. http://aaaipress.org/Papers/AIIDE/2006/AIIDE06- 022.pdf Kelkar, A., Dahibhate, M., & Jagtap, S. (2022). Procedural Foliage Generation. International Journal for Research in Applied Science and Engineering Technology, 10(5), 1628–1632. https://doi.org/10.22214/ijraset.2022.42410 Koetsier, J. (2020, September 26). Global Online Content Consumption Doubled In 2020. Forbes. Retrieved October 22, 2022, from https://www.forbes.com/sites/johnkoetsier/2020/09/26/globalonline-content-consumption-doubled-in-2020/?sh=71fd527c2fde Kora, P., & Yadlapalli, P. (2017). Crossover Operators in Genetic Algorithms: A Review. International Journal of Computer Applications, 162(10), 34–36. https://doi.org/10.5120/ijca2017913370 Lagae, A., Lefebvre, S., Cook, R. L., DeRose, T., Drettakis, G., Ebert, D. S., Lewis, J. S., Perlin, K., & Zwicker, M. (2010). A Survey of Procedural Noise Functions. Computer Graphics Forum, 29(8), 2579– 2600. https://doi.org/10.1111/j.1467-8659.2010.01827.x Lambora, A., Gupta, K., & Chopra, K. (2019). Genetic Algorithm- A Literature Review. 2019 International Conference on Machine Learning, Big Data, Cloud and Parallel Computing (COMITCon). https://doi.org/10.1109/comitcon.2019.8862255 Lim, S., Sultan, A. B., Sulaiman, M. N., Mustapha, A., & Leong, K. Y. (2017). Crossover and Mutation Operators of Genetic Algorithms. International Journal of Machine Learning and Computing, 7(1), 9– 12. https://doi.org/10.18178/ijmlc.2017.7.1.611 Lucarini, V. (2009). Symmetry-Break in Voronoi Tessellations. Symmetry, 1(1), 21–54. https://doi.org/10.3390/sym1010021 Machado, A. S. F. (2017). A procedural quest generator for Conan Exiles [M.Sc. Thesis]. University of Lisbon. Mawhorter, P., & Mateas, M. (2010). Procedural level generation using occupancy-regulated extension. Proceedings of the 2010 IEEE Conference on Computational Intelligence and Games. https://doi.org/10.1109/itw.2010.5593333 Perlin, K. (1985). An image synthesizer. Computer Graphics, 19(3), 287–296. https://doi.org/10.1145/325165.325247 Rolfe, B., Jones, C. M., & Wallace, H. M. (2010). Designing Dramatic Play: Story and Game Structure. Electronic Workshops in Computing. https://doi.org/10.14236/ewic/hci2010.54 Rose, T. J., & Bakaoukas, A. G. (2016). Algorithms and Approaches for Procedural Terrain Generation - A Brief Review of Current Techniques. 2016 8th International Conference on Games and Virtual Worlds for Serious Applications (VS-GAMES). https://doi.org/10.1109/vs-games.2016.7590336 Short, T., & Adams, T. (2017). Procedural Generation in Game Design. Amsterdam University Press. 28 Singer, D., & D’Angelo, E. (2021, November 4). The Netflix of gaming? Why subscription video-game services face an uphill battle. McKinsey & Company. https://www.mckinsey.com/industries/technology-media-and-telecommunications/our-insights/thenetflix-of-gaming-why-subscription-video-game-services-face-an-uphill-battle Soares De Lima, E., Feijo, B., & Furtado, A. L. (2019). Procedural Generation of Quests for Games Using Genetic Algorithms and Automated Planning. 2019 18th Brazilian Symposium on Computer Games and Digital Entertainment (SBGames). https://doi.org/10.1109/sbgames.2019.00028 The evolution of business models in the video-game industry. (n.d.). EDHEC BUSINESS SCHOOL. Retrieved October 22, 2022, from https://www.edhec.edu/en/news/evolution-business-models- video-game-industry Togelius, J., Preuss, M., & Yannakakis, G. N. (2010). Towards multiobjective procedural map generation. Proceedings of the 2010 Workshop on Procedural Content Generation in Games - PCGames ’10. https://doi.org/10.1145/1814256.1814259 Vadim Bulitko, Mac Walters, & Matthew R. G. Brown. (2018). Evolving NPC Behaviours in A-life with Player Proxies. AIIDE Workshops. http://ceur-ws.org/Vol-2282/EXAG_116.pdf Van Der Linden, R., Lopes, R., & Bidarra, R. (2014). Procedural Generation of Dungeons. IEEE Transactions on Computational Intelligence and AI in Games, 6(1), 78–89. https://doi.org/10.1109/tciaig.2013.2290371 Washburn, M., & Khosmood, F. (2020). Dynamic Procedural Music Generation from NPC Attributes. International Conference on the Foundations of Digital Games. https://doi.org/10.1145/3402942.3409785 Yao, X. (1993). An empirical study of genetic operators in genetic algorithms. Microprocessing and Microprogramming, 38(1–5), 707–714. https://doi.org/10.1016/0165-6074(93)90215 29 6. APPENDIX Race STR DEX CON INT WIS CHA Found Size Speed Dragonborn 2 1 Uncommon Medium 30 Hill Dwarf 2 1 Common Medium 25 Mountain Dwarf 2 2 Common Medium 25 High Elf 2 1 Common Medium 30 Wood Elf 2 1 Common Medium 30 Drow Elf 2 1 Uncommon Medium 30 Forest Gnome 1 2 Uncommon Small 25 Rock Gnome 1 2 Uncommon Small 25 Half-Orc 2 1 Uncommon Medium 30 Lightfoot Halfling 2 1 Common Medium 30 Stout Halfling 2 1 Common Medium 30 Human 1 1 1 1 1 1 Common Medium 30 Tiefling 1 2 Uncommon Medium 30 Table 3: Character races and atribute modifiers. Encounters TERRAIN Tundra Rainforest Desert Grassland Mountain Forest tiger 0 1 0 0 0 0 snow 1 0 0 0 0 0 overgrowth 0 1 0 0 0 0 bison 0 0 0 1 0 0 wind_gust 1 0 0 0 0 0 quicksand 0 0 1 0 0 0 donkey 0 0 0 0 1 0 macaw 0 1 0 0 0 0 meerkat 0 0 1 0 0 0 hunters 0 0 0 1 0 0 lion 0 0 1 0 0 0 ravine 1 0 0 0 1 0 capybara 0 1 0 0 0 0 scorpion 0 0 1 0 0 0 climate_activists 0 1 0 0 0 0 gazelle 0 0 0 0 1 0 sloth 0 1 0 0 0 0 jaguar 0 1 0 0 0 0 monk 0 0 0 0 1 0 eagle 0 0 1 0 0 0 tourists 0 0 0 0 1 0 squirrel 0 0 0 0 0 1 frozen_figure 1 0 0 0 0 0 30 lizard 0 0 1 0 0 0 heat_wave 0 0 1 0 0 0 wolf 1 0 0 1 0 0 tuskan_raiders 0 0 1 0 0 0 flood 0 1 0 0 0 0 rabbit 0 0 0 0 0 1 wolverine 0 0 0 0 1 0 poison_dart_frog 0 1 0 0 0 0 bobcat 0 0 1 0 0 0 tortoise 0 0 1 0 0 0 animal_migration 0 0 0 1 0 0 sand_dune 0 0 1 0 0 0 goat 0 0 0 0 1 0 mosquitos 0 1 0 0 0 0 maze 0 1 0 0 0 0 coyote 0 0 1 0 0 0 spiky_canopy 0 1 0 0 0 0 rattlesnake 0 0 1 0 0 0 orangutan 0 0 0 0 0 1 leopard 0 0 0 0 1 0 gecko 0 0 0 1 0 0 avalanche 0 0 0 0 1 0 mountain_lion 0 0 0 0 1 0 horse 0 0 0 1 0 0 cliff 0 0 0 0 1 0 cannibals 1 0 0 0 0 0 wild_boar 0 0 0 0 0 1 cult_meeting 0 0 0 0 0 1 wilds 0 1 0 0 0 0 wood_choppers 0 1 0 0 0 0 arctic_hare 1 0 0 0 0 0 hare 0 0 0 0 1 0 snake 0 1 0 0 0 0 bear 1 0 0 0 1 0 arctic_fox 1 0 0 0 0 0 frozen_lake 1 0 0 0 0 0 elephant 0 0 0 1 0 0 dog 0 0 0 1 0 0 camel 0 0 1 0 0 0 fallen_tree 0 0 0 0 0 1 witches_house 0 0 0 0 0 1 parrot 0 1 0 0 0 0 thunderstorm 0 0 0 0 1 0 tapir 0 1 0 0 0 0 spider_monkey 0 1 0 0 0 0 iguana 0 1 0 0 0 0 sand_storm 0 0 1 0 0 0 gopher 0 0 0 1 0 0 fury_road 0 0 1 0 0 0 31 deer 0 0 0 1 0 1 fire_ant 0 1 0 0 0 0 Table 4: World encounters and their biomes. Figure 18: Initial plan for the system.