{"id":677,"date":"2017-10-10T08:52:18","date_gmt":"2017-10-10T16:52:18","guid":{"rendered":"http:\/\/www.adamantyr.com\/blog\/?p=677"},"modified":"2017-10-10T08:52:18","modified_gmt":"2017-10-10T16:52:18","slug":"data-dump","status":"publish","type":"post","link":"http:\/\/www.adamantyr.com\/index.php\/2017\/10\/10\/data-dump\/","title":{"rendered":"Data Dump"},"content":{"rendered":"<p>Been quiet for a couple weeks&#8230; I&#8217;ve been heads-down on writing up all the transactions for the first disk.<\/p>\n<p>Here is a breakdown on the first disk&#8217;s contents:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-678 size-full\" src=\"http:\/\/test.adamantyr.com\/wp-content\/uploads\/2017\/10\/Stats.jpg\" alt=\"\" width=\"844\" height=\"210\" srcset=\"http:\/\/www.adamantyr.com\/wp-content\/uploads\/2017\/10\/Stats.jpg 844w, http:\/\/www.adamantyr.com\/wp-content\/uploads\/2017\/10\/Stats-300x75.jpg 300w, http:\/\/www.adamantyr.com\/wp-content\/uploads\/2017\/10\/Stats-768x191.jpg 768w\" sizes=\"auto, (max-width: 844px) 100vw, 844px\" \/><\/p>\n<ul>\n<li>Dialogue is in game text, stored in four sizes. (16, 32, 64, and 128 bytes with compression)<\/li>\n<li>Monster data is statistics, graphic data is self-explanatory. \ud83d\ude42<\/li>\n<li>Map data is uncompressed maps, map headers are metadata, elevation data is for specific maps<\/li>\n<li>Mobs are special objects on the maps<\/li>\n<li>Transactions are scripted commands and actions for a given mob<\/li>\n<\/ul>\n<p>The width indicates the record&#8217;s size in bytes. Estimate is how many records exist. Sectors is how many disk sectors (which on the TI are 256 bytes) it will take up. This includes a single sector used for tracking. And finally the size in kilobytes. The total size, 176k!<\/p>\n<p>One thing to note here is that the mob file WILL change as the game progresses, so it will be both read from and written to. The other files are all read-only. I always had it on the table to move the mob files to the game disk just in case I ran out of room, but it looks like I should be able to get all the content I want for a rough 25% of the game into a single 180k disk.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-680\" src=\"http:\/\/test.adamantyr.com\/wp-content\/uploads\/2017\/10\/Transaction.jpg\" alt=\"\" width=\"364\" height=\"518\" srcset=\"http:\/\/www.adamantyr.com\/wp-content\/uploads\/2017\/10\/Transaction.jpg 364w, http:\/\/www.adamantyr.com\/wp-content\/uploads\/2017\/10\/Transaction-211x300.jpg 211w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/>The script encoder has been working out well&#8230; it occurred to me a few days ago that it&#8217;s nearly good enough to be a shareware CRPG script engine! \ud83d\ude42<\/p>\n<p>The process of scripting has been interesting. I&#8217;ve been adding, revising, and changing the actual script language as I go along. For example, I originally had commands to do various byte\/word manipulations so that you could spell out all the game logic if needed. In practice, though, this leads to a lot of repetition of the same kind of activities over and over again. While I could apply an effect and give feedback if a player doesn&#8217;t have enough money to pay for healing, it&#8217;s cheaper and more economical to encompass this into a !HEAL script command that just gives the internal engine the values it needs. (Cost, power, etc.)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-679\" src=\"http:\/\/test.adamantyr.com\/wp-content\/uploads\/2017\/10\/TextExample.jpg\" alt=\"\" width=\"744\" height=\"287\" srcset=\"http:\/\/www.adamantyr.com\/wp-content\/uploads\/2017\/10\/TextExample.jpg 744w, http:\/\/www.adamantyr.com\/wp-content\/uploads\/2017\/10\/TextExample-300x116.jpg 300w\" sizes=\"auto, (max-width: 744px) 100vw, 744px\" \/>I also ended up revising text, a lot. I now have a text encoder that encodes the entire disk&#8217;s contents and assigns record values for all of them, outputting the contents to a text file. I can then copy and paste those values into my text spreadsheet, which allows me to easily assign them contextually in scripting. I found I was gradually shifting text more into the larger dialogue files (64 and 128 byte size) over time, but in the end this worked out pretty well for disk space. The only downside to text revisions was it meant I sometimes had to backtrack and update references&#8230;<\/p>\n<p>I also wrote a new tool, a text formatter, which formatted all the text lines to fit a 30-column screen. I found that I was often much too &#8220;wordy&#8221; in places, and that I had to both cut down the amount of text and make it fit better on the screen.<\/p>\n<p>Ideally, writing a complete tool that stores all the text, mobs, and transactions would be the best thing to do. Then if you changed text it would just dynamically re-assign it for you. I&#8217;m not really sure I want to take the time to write up such a complex tool though, it feels a bit too removed.<\/p>\n<p>Eventually, I&#8217;ll need to write a &#8220;transaction player&#8221; running on the actual TI. This would let me pick and choose a transaction to &#8220;play&#8221; so I can view what it would look like in the game, with tools to set particular flags on or off. This will make testing MUCH easier.<\/p>\n<p>I&#8217;m nearly done populating data, what I have left to do is populate the monster data with treasure items (item revisions and changes has been ongoing) and then figure out the mob system for graphics. My new design will allow for up to 256 unique patterns, so I need to define those at least for the first disk&#8230;<\/p>\n<p>After that, it will be time to work on engine code!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Been quiet for a couple weeks&#8230; I&#8217;ve been heads-down on writing up all the transactions for the first disk. Here is a breakdown on the first disk&#8217;s contents: Dialogue is in game text, stored in four sizes. (16, 32, 64, &hellip; <a href=\"http:\/\/www.adamantyr.com\/index.php\/2017\/10\/10\/data-dump\/\">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":[4,5,12],"tags":[],"class_list":["post-677","post","type-post","status-publish","format-standard","hentry","category-crpg","category-design","category-ti-994a"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pgaeMJ-aV","_links":{"self":[{"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/posts\/677","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=677"}],"version-history":[{"count":1,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/posts\/677\/revisions"}],"predecessor-version":[{"id":681,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/posts\/677\/revisions\/681"}],"wp:attachment":[{"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/media?parent=677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/categories?post=677"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.adamantyr.com\/index.php\/wp-json\/wp\/v2\/tags?post=677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}