{"id":774,"date":"2018-03-19T07:11:00","date_gmt":"2018-03-19T15:11:00","guid":{"rendered":"http:\/\/www.adamantyr.com\/blog\/?p=774"},"modified":"2018-03-19T07:11:00","modified_gmt":"2018-03-19T15:11:00","slug":"quick-update","status":"publish","type":"post","link":"http:\/\/www.adamantyr.com\/index.php\/2018\/03\/19\/quick-update\/","title":{"rendered":"Quick Update"},"content":{"rendered":"<p>Gotten quite a bit of ground covered since my last post&#8230; All the bugs I first encountered are fixed, but there&#8217;s plenty more to deal with. \ud83d\ude42<\/p>\n<p>I took a brief side-trek to write myself some console applications in C# to help with my work. My original method of compiling the game was as follows:<\/p>\n<ol>\n<li>Build each module source using A99, creating an object file<\/li>\n<li>Using Classic99, load the object file into memory, then dump the memory into a binary file<\/li>\n<li>Copy the memory sections with program data into my program file where they are loaded from<\/li>\n<\/ol>\n<p>Not TOO bad, but I was quickly running into annoying problems, like anytime I changed code significantly in the root module, I had to also build the start module or things stopped working there. (Because addresses were offset from expected values.) And the fact I had to navigate with the mouse to do loading and debugging in Classic99 slowed me down quite a bit too.<\/p>\n<p>Fortunately, Mike Brent helped out by sending me a simple object to binary program he&#8217;d thrown together. I was able to adapt it into a new binary for my purposes that translated the object file into a straight binary file, removing the need for Classic99 in the process entirely.<\/p>\n<p>Then I wrote another console app that did binary copying from one file to another, only requiring you to supply base addresses in both files and a length. That lets me copy the resultant binaries into my program file directly. So now I can compile, build and create the program file all by clicking a single button!<\/p>\n<p>Right now I&#8217;m debugging the statistic screens. I discovered that I hadn&#8217;t populated real values for item data at all, so that was my first fix. Besides that, mob movement seems weird; my monsters aren&#8217;t chasing me and they&#8217;re moving across water and other &#8220;inaccessible&#8221; tiles.<\/p>\n<p>All you can do is just deal with each problem one at a time. Sooner or later you WILL fix them all.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gotten quite a bit of ground covered since my last post&#8230; All the bugs I first encountered are fixed, but there&#8217;s plenty more to deal with. \ud83d\ude42 I took a brief side-trek to write myself some console applications in C# &hellip; <a href=\"http:\/\/www.adamantyr.com\/index.php\/2018\/03\/19\/quick-update\/\">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_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,4,5,12],"tags":[],"class_list":["post-774","post","type-post","status-publish","format-standard","hentry","category-coding","category-crpg","category-design","category-ti-994a"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pgaeMJ-cu","_links":{"self":[{"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/posts\/774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/comments?post=774"}],"version-history":[{"count":1,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/posts\/774\/revisions"}],"predecessor-version":[{"id":775,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/posts\/774\/revisions\/775"}],"wp:attachment":[{"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/media?parent=774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/categories?post=774"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/tags?post=774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}