{"id":1822,"date":"2023-02-06T15:28:12","date_gmt":"2023-02-06T05:58:12","guid":{"rendered":"https:\/\/cosmicheroes.space\/blog\/?p=1822"},"modified":"2023-02-06T15:28:12","modified_gmt":"2023-02-06T05:58:12","slug":"map-generation-cities-and-towns","status":"publish","type":"post","link":"https:\/\/cosmicheroes.space\/blog\/index.php\/2023\/02\/06\/map-generation-cities-and-towns\/","title":{"rendered":"Map Generation &#8211; Cities and Towns"},"content":{"rendered":"\n<p><a href=\"https:\/\/github.com\/LAVS-TM\/Map-Generation\">https:\/\/github.com\/LAVS-TM\/Map-Generation<\/a><\/p>\n\n\n\n<p>A program that can generate cities and towns, medieval Voronoi style.  Along with a viewer that can produce graphcis the base output is json, which gives you vector data to use with other things.  Very nice!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/github.com\/LAVS-TM\/Map-Generation\/raw\/main\/doc\/CityExample.png?w=525&#038;ssl=1\" alt=\"\" data-recalc-dims=\"1\"\/><figcaption class=\"wp-element-caption\">Sample city<\/figcaption><\/figure>\n\n\n\n<p>Here is an example of a possible&nbsp;<strong>configuration<\/strong>&nbsp;for the city to be generated:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">city = City(10000, 10000, has_walls=True, has_castle=True)\ntools.json(city, '\/generated_city\/city.json')<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/github.com\/LAVS-TM\/Map-Generation A program that can generate cities and towns, medieval Voronoi style. Along with a viewer that can produce graphcis the base output is json, which gives you vector data to use with other things. Very nice! Here is an example of a possible&nbsp;configuration&nbsp;for the city to be generated: city = City(10000, 10000, has_walls=True, has_castle=True) &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/cosmicheroes.space\/blog\/index.php\/2023\/02\/06\/map-generation-cities-and-towns\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Map Generation &#8211; Cities and Towns&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[217],"tags":[525,100,524,325,527,526],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paET2V-to","jetpack-related-posts":[{"id":1842,"url":"https:\/\/cosmicheroes.space\/blog\/index.php\/2023\/02\/07\/map-generation-part-2\/","url_meta":{"origin":1822,"position":0},"title":"Map-Generation part 2","author":"richard","date":"February 7, 2023","format":false,"excerpt":"I have started looking at adapting this for HexDescribe type reasons. For example: - https:\/\/github.com\/bluetyson\/Map-Generation\/blob\/main\/src\/map.py https:\/\/chgowiz-games.blogspot.com\/ is working on a epic random generator for a campaign you can read about at his blog - using HexDescribe https:\/\/campaignwiki.org\/hex-describe You can see some examples here https:\/\/docs.google.com\/spreadsheets\/d\/1G8AZf2tBOtGYr5AEKis7_AZYpJ1_T18LFYp_mi_rikY\/edit#gid=1019219400 and https:\/\/pastebin.com\/raw\/W9zgH3pN Borrowing his business classifications\u2026","rel":"","context":"In &quot;Data Science&quot;","block_context":{"text":"Data Science","link":"https:\/\/cosmicheroes.space\/blog\/index.php\/category\/data-science\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/cosmicheroes.space\/blog\/wp-content\/uploads\/2023\/02\/image-5.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/cosmicheroes.space\/blog\/wp-content\/uploads\/2023\/02\/image-5.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/cosmicheroes.space\/blog\/wp-content\/uploads\/2023\/02\/image-5.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/cosmicheroes.space\/blog\/wp-content\/uploads\/2023\/02\/image-5.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":1806,"url":"https:\/\/cosmicheroes.space\/blog\/index.php\/2023\/02\/06\/mokuy-australia-hex-mapping-hex-describe-and-hex-mapper\/","url_meta":{"origin":1822,"position":1},"title":"Mokuy &#8211; Australia hex mapping, Hex Describe and Hex Mapper","author":"richard","date":"February 6, 2023","format":false,"excerpt":"Alex Schroeder has an 'Alpine' hex map generation option in https:\/\/campaignwiki.org\/hex-describe\/ . This allows you to tweak heights for maps. Also in TextMapper similarly. However, his native Switzerland and Australia are somewhat different in size and smoothness. These are great and the code is also here:- https:\/\/github.com\/kensanata?tab=repositories Australia DTM Histogram\u2026","rel":"","context":"In &quot;Data Science&quot;","block_context":{"text":"Data Science","link":"https:\/\/cosmicheroes.space\/blog\/index.php\/category\/data-science\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":806,"url":"https:\/\/cosmicheroes.space\/blog\/index.php\/2018\/11\/01\/river-city-encounters-for-marvel-superheroes\/","url_meta":{"origin":1822,"position":2},"title":"River City Encounters for Marvel Superheroes","author":"richard","date":"November 1, 2018","format":false,"excerpt":"River City Encounters for Marvel Superheroes","rel":"","context":"In &quot;RPG&quot;","block_context":{"text":"RPG","link":"https:\/\/cosmicheroes.space\/blog\/index.php\/category\/rpg\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":375,"url":"https:\/\/cosmicheroes.space\/blog\/index.php\/2018\/05\/10\/faserip-forever-astro-city-trinity\/","url_meta":{"origin":1822,"position":3},"title":"FASERIP Forever!: Astro City Trinity","author":"richard","date":"May 10, 2018","format":false,"excerpt":"http:\/\/faseripforever.blogspot.com.au\/2017\/12\/astro-city-trinity.html","rel":"","context":"In &quot;RPG&quot;","block_context":{"text":"RPG","link":"https:\/\/cosmicheroes.space\/blog\/index.php\/category\/rpg\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":615,"url":"https:\/\/cosmicheroes.space\/blog\/index.php\/2018\/05\/26\/freedom-city-street-level-archetypes-another-10\/","url_meta":{"origin":1822,"position":4},"title":"Freedom City Street-Level Archetypes &#8211; Another 10","author":"richard","date":"May 26, 2018","format":false,"excerpt":"Pretty much the same as the other Freedom City Archetypes pack, in terms of content type Apparently for PL 6-8 $4.95 http:\/\/rpg.drivethrustuff.com\/product\/28319\/Mutants-%26-Mast... Armed Citizen Da Sihing Emerging Mutant Enduring Guardian Farsider Emigrant Field Researcher Superpowered Orphan Technology Geek Transformed Bystander Zoom Survivor 0.50 Character Cost 0.77 Character Density","rel":"","context":"In &quot;RPG&quot;","block_context":{"text":"RPG","link":"https:\/\/cosmicheroes.space\/blog\/index.php\/category\/rpg\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":573,"url":"https:\/\/cosmicheroes.space\/blog\/index.php\/2018\/05\/19\/freedom-city-archetypes-legacies-expensive-versatility-for-freedom-fans\/","url_meta":{"origin":1822,"position":5},"title":"Freedom City Archetypes &#038; Legacies &#8211; Expensive versatility for Freedom Fans","author":"richard","date":"May 19, 2018","format":false,"excerpt":"These :- $4.95 has http:\/\/rpg.drivethrustuff.com\/product\/20192\/Freedom-City-Arc... 1 page of OGL in this case Champion of Light DNAscendant Freedom Eagle II Lor Star-Captain Rogue Grue Scarab Reborn Shambala Master Star Knight Ultiman Exile Utopian Envoy 0.50 Character Cost 0.71 Character Density","rel":"","context":"In &quot;RPG&quot;","block_context":{"text":"RPG","link":"https:\/\/cosmicheroes.space\/blog\/index.php\/category\/rpg\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/cosmicheroes.space\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1822"}],"collection":[{"href":"https:\/\/cosmicheroes.space\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cosmicheroes.space\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cosmicheroes.space\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cosmicheroes.space\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1822"}],"version-history":[{"count":1,"href":"https:\/\/cosmicheroes.space\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1822\/revisions"}],"predecessor-version":[{"id":1823,"href":"https:\/\/cosmicheroes.space\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1822\/revisions\/1823"}],"wp:attachment":[{"href":"https:\/\/cosmicheroes.space\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1822"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cosmicheroes.space\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1822"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cosmicheroes.space\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}