{"id":11,"date":"2016-05-03T08:39:03","date_gmt":"2016-05-03T08:39:03","guid":{"rendered":"https:\/\/blogs.scummvm.org\/wintergrascph\/?p=11"},"modified":"2022-05-22T08:40:29","modified_gmt":"2022-05-22T08:40:29","slug":"file-parsers","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/wintergrascph\/2016\/05\/03\/file-parsers\/","title":{"rendered":"File parsers"},"content":{"rendered":"<p>The engine stub has been created and minimal file parsing has been added, more specifically: the engine can now load and parse the graphics.dat file and\u00a0decompress the images contained into bitmaps on demand, other than that not much more, but at least it&#8217;s something visual. Also related to files, uncompressing the Dungeon.dat is now possible, but it&#8217;s contents have not been used up yet. You can check the commits on github if you like, feel free to comment, give feedback ^^.\u00a0The author (as mentioned in the comments, not the original author), who graciously gave his sources to be worked from, has a handy blog in which describes the file structures and algorithms used on them in detail. That and my mentors&#8217; help has been the source of progress.<\/p>\n<p>Link to the github repo:<br \/>\n<a href=\"https:\/\/github.com\/WinterGrascph\/scummvm\/tree\/dungeonmaster\/engines\/dm\" target=\"_blank\" rel=\"noopener noreferrer\" data-referer-original-href=\"https:\/\/github.com\/WinterGrascph\/scummvm\/tree\/dungeonmaster\/engines\/dm\" data-referer-safe=\"1\">https:\/\/github.com\/WinterGrascph\/scummvm\/tree\/dungeonmaster\/engines\/dm<\/a><\/p>\n<div><\/div>\n<div>On a personal note however, regarding development speed, I&#8217;ve spent too much time debugging errors in 30\u00a0lines of code today and boy was it frustrating. In my personal opinion I&#8217;m making progress very slowly, I would rather it went a lot faster, I&#8217;ll have to work on being more efficient with my time in the future or I&#8217;ll finish nothing be the end of the summer.<\/p>\n<div>\n<div>\n<div>Regarding other stuff, git has repeatedly got out of my control and me being me, I&#8217;ve gone the easy way and used force push. I&#8217;m really glad nobody is working on the same branch, because otherwise I&#8217;d have been burned at the stake by now, but hey, at least my history is clean. \ud83d\ude00<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blogs.scummvm.org\/wintergrascph\/wp-content\/uploads\/sites\/50\/2022\/05\/Bswq7aqc4ca.png\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The engine stub has been created and minimal file parsing has been added, more specifically: the engine can now load and parse the graphics.dat file and\u00a0decompress the images contained into bitmaps on demand, other than that not much more, but at least it&#8217;s something visual. Also related to files, uncompressing the Dungeon.dat is now possible, [&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-11","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/wintergrascph\/wp-json\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/wintergrascph\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/wintergrascph\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/wintergrascph\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/wintergrascph\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":1,"href":"https:\/\/blogs.scummvm.org\/wintergrascph\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":13,"href":"https:\/\/blogs.scummvm.org\/wintergrascph\/wp-json\/wp\/v2\/posts\/11\/revisions\/13"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/wintergrascph\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/wintergrascph\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/wintergrascph\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}