{"id":27,"date":"2011-05-15T13:55:28","date_gmt":"2011-05-15T13:55:28","guid":{"rendered":"http:\/\/lofigames.com\/?p=27"},"modified":"2014-09-03T09:57:13","modified_gmt":"2014-09-03T09:57:13","slug":"town-population-tests","status":"publish","type":"post","link":"https:\/\/lofigames.com\/ja\/town-population-tests\/","title":{"rendered":"Town Population Tests"},"content":{"rendered":"<p>Currently working on optimising the character code.\u00a0 I want to populate large towns and have big battles, but the character code is pretty complex so I have to try to spread out the code updates in such a way that it doesn&#8217;t destabalise anything. For some reason, the biggest CPU hog, and the thing that takes up most of my time trying to get right, is simply the movement system.\u00a0 I would have thought it would be the ambitious AI or something, but no.<\/p>\n<p><a title=\"Town population tests - Mod DB\" href=\"http:\/\/www.moddb.com\/games\/kenshi\/images\/town-population-tests\" target=\"_blank\" rel=\"nofollow noopener\"><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/media.moddb.com\/cache\/images\/games\/1\/15\/14814\/thumb_620x2000\/screenshot_1034.jpg\" alt=\"Town population tests\" width=\"560\" border=\"0\" \/><\/a><\/p>\n<p>Every building I put down is assigned a faction, and then a particular division of that faction.\u00a0 So if a building is owned by the towns general faction &#8220;Dead cat&#8221;, I can then assign it to the civilians, or the police, or the military, and it will populate that building automatically with the right NPCs and squads.\u00a0 Then they set out wandering about doing their thing automatically and I don&#8217;t have to worry about them anymore.<\/p>","protected":false},"excerpt":{"rendered":"<p>Currently working on optimising the character code.\u00a0 I want to populate large towns and have big battles, but the character code is pretty complex so I have to try to spread out the code updates in such a way that it doesn&#8217;t destabalise anything. For some reason, the biggest CPU hog, and the thing that takes up most of my time trying to get right, is simply the movement system.\u00a0 I would have thought it would be the ambitious AI or something, but no. Every building I put down is assigned a faction, and then a particular division of that faction.\u00a0 So if a building is owned by the towns [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":30,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[12,10,14],"class_list":["post-27","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-progress-announcements","tag-bases","tag-dev-blog","tag-towns","has_thumb"],"_links":{"self":[{"href":"https:\/\/lofigames.com\/ja\/wp-json\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lofigames.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lofigames.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lofigames.com\/ja\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lofigames.com\/ja\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":0,"href":"https:\/\/lofigames.com\/ja\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lofigames.com\/ja\/wp-json\/wp\/v2\/media\/30"}],"wp:attachment":[{"href":"https:\/\/lofigames.com\/ja\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lofigames.com\/ja\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lofigames.com\/ja\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}