{"id":2449,"date":"2014-02-20T08:43:08","date_gmt":"2014-02-20T08:43:08","guid":{"rendered":"http:\/\/thelordsofmidnight.com\/blog\/?p=2449"},"modified":"2014-02-20T09:31:00","modified_gmt":"2014-02-20T09:31:00","slug":"first-week-snagging","status":"publish","type":"post","link":"https:\/\/thelordsofmidnight.com\/blog\/2014\/02\/20\/first-week-snagging\/","title":{"rendered":"First week snagging&#8230;"},"content":{"rendered":"<p><a href=\"http:\/\/thelordsofmidnight.com\/blog\/wp-content\/uploads\/2014\/02\/20140220-084247.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/thelordsofmidnight.com\/blog\/wp-content\/uploads\/2014\/02\/20140220-084247-226x300.jpg\" alt=\"20140220-084247.jpg\" width=\"226\" height=\"300\" class=\"alignright size-medium wp-image-2448\" srcset=\"https:\/\/thelordsofmidnight.com\/blog\/wp-content\/uploads\/2014\/02\/20140220-084247-226x300.jpg 226w, https:\/\/thelordsofmidnight.com\/blog\/wp-content\/uploads\/2014\/02\/20140220-084247.jpg 640w\" sizes=\"auto, (max-width: 226px) 100vw, 226px\" \/><\/a>Release week is always frustrating. On Android I just cannot test on enough devices, so I know that something is always going to bite me, and Monday morning it did. None of my Android testers had had any problems with the game loading, but Monday morning a number of devices were reporting that the game wouldn&#8217;t load. Later that night I spent a few fraught hours fighting with hotel WiFi trying to get an update tested by the affected customers, and then released.<\/p>\n<p>In this instance it was an easy fix. In fact, I had already addressed the issue the previous week for the Windows release. Some last minute testing on my Mac Desktop running a windows VM, full screen, highlighted an issue of loading the splash screen. At the high resolution the splash screen was larger than 2048. When this image was being loaded, it was converted into a power-of-two texture and thus a 4096&#215;4096 texture. The texture loader I was using was choking on that. A quick change to the affected images, across all resolutions, resulted in a fix, and a 5mb reduction in app size to boot!<\/p>\n<p>This was the problem that affected some Android devices. So all I needed to do was rebuild the current version for Android and send it back out. In the end, the Android release was probably a lot smoother than The Lords of Midnight.<br \/>\n<!--more--><br \/>\nThe next thing is the bugs that come from the game play. No matter how many testers play the game, no matter how long they play for, these things always seem to get through. What always amazes me, is how? Sometimes you just look at a bug and think, &#8216;how did no one notice that?&#8217;.<\/p>\n<p>This is also, exasperated by the fact that I am releasing a retro remake. Some people remember how the game worked originally, some in amazing detail, some not so well. Doomdark&#8217;s Revenge had holes in it, it was never as polished as The Lords of Midnight, and I have kept those quirks. It&#8217;s important to me that the game plays like the original, <strong><em>before<\/em><\/strong> I think of making any changes to improve any originally flawed game play.<\/p>\n<p>The problem is, these things are reported as bugs, and I need to investigate them, and often go back to the original to research and compare. A case in point is AI lords just leaving a battle. When it was reported, I thought about it, and I remembered from writing the battle code that there wasn&#8217;t anything that stopped the Lords wandering AI from kicking in when they were in battle. In The Lords of Midnight, there is an explicit check for wandering regiments, <strong><em>&#8216;if there is something at this location, stay here.&#8217;<\/em><\/strong> I went back to the original code and noticed that there was a check that tested if a lord was in a tunnel they would not be moved. Now, AI lords can&#8217;t be in a tunnel, so that seems like a redundant check. It&#8217;s a bit flag check and I wondered if it was checking the wrong flag. When I consult my reference code, I look at my 80&#215;86 disassembly, so I wondered if I had made the mistake 25 years ago. Going back to the original z80,  the code is the same. So, either Mike intended to check for tunnels, or he made a mistake and it&#8217;s a 30 year old bug.<\/p>\n<p>There have been a number of cosmetic issues, some of these are caused by different screen resolutions. A number of people didn&#8217;t like they way Dragons in particular looked at dawn. Most are easy fixes. There were a few UI\/logic issues, times when you could do something that you shouldn&#8217;t be able to. This just results in the game being a little easier.<\/p>\n<p>The biggest issue is with battles. One problem is reporting. The reports will show that a lords and his soldiers have killed X of the enemy. But that could be a combined number of a lord and a stronghold, or it could be from the stronghold and not the lord. There is no guaranty that when fighting at a location with multiple lords, that you will fight everyone. So you might inflict casualties but not notice the lord losing any soldiers, because you actually killed soldiers in the stronghold or another lord.<\/p>\n<p>The next issue is that strongholds regenerate soldiers every night. So, they start with 1000 soldiers, you kill 200, you expect them to now have 800. But they generated 100 soldiers overnight, and thus they have 900. This isn&#8217;t helped by the fact that the owning lord takes from his stronghold. If the stronghold has more soldiers than him, he takes the difference less an amount. I actually have two bugs in this logic, firstly, I coded it wrong. An AI lord can take soldiers only from a loyal stronghold that he is currently at. I had him taking them from his own stronghold every night, regardless of where he is. Secondly, when the soldiers are given to the lord, I wasn&#8217;t taking them away from the stronghold. What this means is that unless you wipe out the stronghold, every night, the lord will be &#8216;magically&#8217; topping up his army.<\/p>\n<p>The final issue with battles is that strongholds appear not to be changing owners when they are reduced to nothing.<\/p>\n<p>I have been working through all the issues, and hope to release a new version later this week. You can keep and eye on the current list of fixes <a href=\"http:\/\/thelordsofmidnight.com\/blog\/latest-changes\/\" title=\"Latest Changes\">here&#8230;<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Release week is always frustrating. On Android I just cannot test on enough devices, so I know that something is always going to bite me, and Monday morning it did. None of my Android testers had had any problems with &hellip; <a href=\"https:\/\/thelordsofmidnight.com\/blog\/2014\/02\/20\/first-week-snagging\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"First week snagging... http:\/\/wp.me\/p2Zbss-Dv","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":[6,7,15],"tags":[77,87,28,78],"class_list":["post-2449","post","type-post","status-publish","format-standard","hentry","category-ddr","category-engine","category-remakes","tag-bugs","tag-ddr","tag-development","tag-retro-2"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2Zbss-Dv","_links":{"self":[{"href":"https:\/\/thelordsofmidnight.com\/blog\/wp-json\/wp\/v2\/posts\/2449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thelordsofmidnight.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thelordsofmidnight.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thelordsofmidnight.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thelordsofmidnight.com\/blog\/wp-json\/wp\/v2\/comments?post=2449"}],"version-history":[{"count":5,"href":"https:\/\/thelordsofmidnight.com\/blog\/wp-json\/wp\/v2\/posts\/2449\/revisions"}],"predecessor-version":[{"id":2454,"href":"https:\/\/thelordsofmidnight.com\/blog\/wp-json\/wp\/v2\/posts\/2449\/revisions\/2454"}],"wp:attachment":[{"href":"https:\/\/thelordsofmidnight.com\/blog\/wp-json\/wp\/v2\/media?parent=2449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thelordsofmidnight.com\/blog\/wp-json\/wp\/v2\/categories?post=2449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thelordsofmidnight.com\/blog\/wp-json\/wp\/v2\/tags?post=2449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}