{"id":79,"date":"2022-08-22T17:36:01","date_gmt":"2022-08-22T17:36:01","guid":{"rendered":"https:\/\/blogs.scummvm.org\/stablesteady\/?p=79"},"modified":"2022-08-22T17:36:01","modified_gmt":"2022-08-22T17:36:01","slug":"week-13-working-on-macventure-ii","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/stablesteady\/2022\/08\/22\/week-13-working-on-macventure-ii\/","title":{"rendered":"Week 13 &#8211; Working on MacVenture II"},"content":{"rendered":"<p>Another week spent on MacVenture though this one was a bit uneventful. I learned a bit more about the .2mg format and saw what WebVenture was doing with it and it didn&#8217;t seem too complicated so that&#8217;s what I am adding to ScummVM right now.<\/p>\n<p>About WebVenture, I actually managed to get it working. What worked was to place the game in it&#8217;s root directory and to run the website on a http-server. This should give me another frame of reference when comparing game behavior.<\/p>\n<figure id=\"attachment_80\" aria-describedby=\"caption-attachment-80\" style=\"width: 702px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-80\" src=\"https:\/\/blogs.scummvm.org\/stablesteady\/wp-content\/uploads\/sites\/52\/2022\/08\/2022-08-22-22.48.00.png\" alt=\"\" width=\"702\" height=\"499\" srcset=\"https:\/\/blogs.scummvm.org\/stablesteady\/wp-content\/uploads\/sites\/52\/2022\/08\/2022-08-22-22.48.00.png 702w, https:\/\/blogs.scummvm.org\/stablesteady\/wp-content\/uploads\/sites\/52\/2022\/08\/2022-08-22-22.48.00-300x213.png 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><figcaption id=\"caption-attachment-80\" class=\"wp-caption-text\">WebVenture Working in WebBrowser<\/figcaption><\/figure>\n<p>I am not too well versed with node\/javascript development but it&#8217;s good enough for me to go through and understand what&#8217;s happening. And speaking of understand, let&#8217;s have a look at the javascript file which is being executed as the game runs.<\/p>\n<figure id=\"attachment_81\" aria-describedby=\"caption-attachment-81\" style=\"width: 1043px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-81\" src=\"https:\/\/blogs.scummvm.org\/stablesteady\/wp-content\/uploads\/sites\/52\/2022\/08\/2022-08-22-22.52.26.png\" alt=\"\" width=\"1043\" height=\"510\" srcset=\"https:\/\/blogs.scummvm.org\/stablesteady\/wp-content\/uploads\/sites\/52\/2022\/08\/2022-08-22-22.52.26.png 1043w, https:\/\/blogs.scummvm.org\/stablesteady\/wp-content\/uploads\/sites\/52\/2022\/08\/2022-08-22-22.52.26-300x147.png 300w, https:\/\/blogs.scummvm.org\/stablesteady\/wp-content\/uploads\/sites\/52\/2022\/08\/2022-08-22-22.52.26-1024x501.png 1024w, https:\/\/blogs.scummvm.org\/stablesteady\/wp-content\/uploads\/sites\/52\/2022\/08\/2022-08-22-22.52.26-768x376.png 768w\" sizes=\"auto, (max-width: 1043px) 100vw, 1043px\" \/><figcaption id=\"caption-attachment-81\" class=\"wp-caption-text\">?<\/figcaption><\/figure>\n<p>It wasn&#8217;t exactly what you can describe as understandable with all the obfuscation and lack of formatting. Luckily this wasn&#8217;t really that big of a problem and all I had to do was to run the Closure Compiler on the repo with all optimizations disabled and generate a file with everything intact except for the formatting (which got fixed with an online beautifier).<\/p>\n<p>Anyways, having a working WebVenture made it easier to step through the game as it runs and see which piece of code is called when. Visual Studio Code wasn&#8217;t doing to well with JS code and things like Jump to Definition were often going to the wrong function so this was a really useful thing.<\/p>\n<p>After that I worked for a bit on implementing the required functions to get the data from the .2mg files but that had to be put on hold for a while. Colleges were finally open and I had to leave the city to get to the hostel. I had to make some preparations both before leaving and after arriving and that made it hard to get the time to work so I took the weekend off.<\/p>\n<p>The blog post got delayed by a day too but I have adjusted my hostel and will be working regularly from here ?I hope to work a bit harder this week to make up for the lost time.<\/p>\n<p>That&#8217;s it for this blog post. Thanks for reading you next week!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Another week spent on MacVenture though this one was a bit uneventful. I learned a bit more about the .2mg format and saw what WebVenture was doing with it and it didn&#8217;t seem too complicated so that&#8217;s what I am adding to ScummVM right now. About WebVenture, I actually managed to get it working. What [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-79","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":1,"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/posts\/79\/revisions"}],"predecessor-version":[{"id":82,"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/posts\/79\/revisions\/82"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/categories?post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/stablesteady\/wp-json\/wp\/v2\/tags?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}