{"id":121,"date":"2018-07-08T14:45:58","date_gmt":"2018-07-08T14:45:58","guid":{"rendered":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/?p=121"},"modified":"2022-05-21T14:56:32","modified_gmt":"2022-05-21T14:56:32","slug":"week-7-passwords-and-plumbing","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/2018\/07\/08\/week-7-passwords-and-plumbing\/","title":{"rendered":"Week 7 &#8212; Passwords and Plumbing"},"content":{"rendered":"<div style=\"width: 580px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-121-1\" width=\"580\" height=\"327\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-content\/uploads\/sites\/22\/2018\/07\/The-Immortal-Week-7-iVlRMM5ctWI.mp4?_=1\" \/><a href=\"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-content\/uploads\/sites\/22\/2018\/07\/The-Immortal-Week-7-iVlRMM5ctWI.mp4\">https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-content\/uploads\/sites\/22\/2018\/07\/The-Immortal-Week-7-iVlRMM5ctWI.mp4<\/a><\/video><\/div>\n<p style=\"text-align: center;\"><em>(Source: https:\/\/www.youtube.com\/watch?v=iVlRMM5ctWI)<\/em><\/p>\n<p>The dialog implementation is now in a good state with all 199 dialog texts refactored, icons being rendered at where they should, the password interface and exit dialog working, and most bugs that kept annoying me out of the way.<\/p>\n<p>Also map rendering is now clipped to the viewport, the foundation for level loading stands, and I ripped out the old animation system and with it parts of how resources are loaded\/stored to rewrite it closer to the original and thus making my life easier down the road.<\/p>\n<p><a href=\"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-content\/uploads\/sites\/22\/2018\/07\/2018-07-08_231422.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-124\" src=\"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-content\/uploads\/sites\/22\/2018\/07\/2018-07-08_231422.png\" alt=\"\" width=\"353\" height=\"220\" srcset=\"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-content\/uploads\/sites\/22\/2018\/07\/2018-07-08_231422.png 353w, https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-content\/uploads\/sites\/22\/2018\/07\/2018-07-08_231422-300x187.png 300w\" sizes=\"auto, (max-width: 353px) 100vw, 353px\" \/><\/a>Passwords are called \u2018certificates\u2019 in the game, so don\u2019t be surprised when I use those terms interchangeably. While the input dialog works when selected \u2018no\u2019 on the new game screen, there are a few inconsistencies with decoding the password so it hasn\u2019t been implemented yet.<\/p>\n<p>It encodes values in hexadecimal, has a length of 13, and stores the following values:<\/p>\n<table>\n<thead>\n<tr>\n<th align=\"center\">pos<\/th>\n<th align=\"left\">description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">0 &#8211; 3<\/td>\n<td align=\"left\">checksum value<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4<\/td>\n<td align=\"left\">hit points<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">5<\/td>\n<td align=\"left\">game level<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">6 &#8211; 7<\/td>\n<td align=\"left\">game flags (low\/hi)<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">8<\/td>\n<td align=\"left\">slash speed<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">9 &#8211; 10<\/td>\n<td align=\"left\">inventory items (bitfield)<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">11 &#8211; 12<\/td>\n<td align=\"left\">gold<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"next\">Next<\/h3>\n<p>After losing a bunch of work last week I reimplemented enough for working on the first level. The plan is to have our wizard moving around and static object animations like torch flames working so Mordamir can finally leap from his candle.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(Source: https:\/\/www.youtube.com\/watch?v=iVlRMM5ctWI) The dialog implementation is now in a good state with all 199 dialog texts refactored, icons being rendered at where they should, the password interface and exit dialog working, and most bugs that kept annoying me out of the way. Also map rendering is now clipped to the viewport, the foundation for level [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-121","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/posts\/121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/comments?post=121"}],"version-history":[{"count":3,"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/posts\/121\/revisions"}],"predecessor-version":[{"id":126,"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/posts\/121\/revisions\/126"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/media?parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/categories?post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/joefish-gsoc\/wp-json\/wp\/v2\/tags?post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}