{"id":97,"date":"2018-05-30T10:46:33","date_gmt":"2018-05-30T10:46:33","guid":{"rendered":"https:\/\/blogs.scummvm.org\/drenn1\/?p=97"},"modified":"2022-05-24T10:47:29","modified_gmt":"2022-05-24T10:47:29","slug":"gsoc-week-2-everyone-gets-vaporized","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/drenn1\/2018\/05\/30\/gsoc-week-2-everyone-gets-vaporized\/","title":{"rendered":"GSoC Week 2: Everyone Gets Vaporized"},"content":{"rendered":"<p>My work this week has been the repetitive and somewhat tedious task of rewriting the code for Mission 1. It did take a while, but hardly the entire month my original schedule called for! My original schedule didn\u2019t anticipate that I would finish the entire game within GSoC, but at this rate, it seems quite possible.<\/p>\n<p>Anyway, this week\u2019s work speaks for itself: the first mission is fully playable in ScummVM. There are just a handful of animation errors and default interactions missing (ie. using a tricorder on something when no \u201caction\u201d is defined for that).<\/p>\n<div style=\"width: 480px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-97-1\" width=\"480\" height=\"360\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/blogs.scummvm.org\/drenn1\/wp-content\/uploads\/sites\/62\/2022\/05\/Star-Trek-25th-Anniversary-in-ScummVM-first-mission-QJYY6PLyvkI.mp4?_=1\" \/><a href=\"https:\/\/blogs.scummvm.org\/drenn1\/wp-content\/uploads\/sites\/62\/2022\/05\/Star-Trek-25th-Anniversary-in-ScummVM-first-mission-QJYY6PLyvkI.mp4\">https:\/\/blogs.scummvm.org\/drenn1\/wp-content\/uploads\/sites\/62\/2022\/05\/Star-Trek-25th-Anniversary-in-ScummVM-first-mission-QJYY6PLyvkI.mp4<\/a><\/video><\/div>\n<p>Something I struggled with this week was text handling, keeping in mind that I\u2019ll eventually want to port the French and German versions to scummvm as well. Before, that would have been extremely difficult due to the way I was hardcoding text into the code, so I switched to a system where each piece of text is referenced by a constant integer value; this will make it easy to support other languages later. And, as it turns out, almost every piece of text already has a unique \u201cname\u201d in the form of the corresponding audio filename, so this system was actually pretty easy to implement.<\/p>\n<p>Instead of going straight to mission 2 next, I\u2019ll be taking a break from mission-specific logic by looking into the saving system next. It\u2019s sorely needed to make testing easier.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My work this week has been the repetitive and somewhat tedious task of rewriting the code for Mission 1. It did take a while, but hardly the entire month my original schedule called for! My original schedule didn\u2019t anticipate that I would finish the entire game within GSoC, but at this rate, it seems quite [&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-97","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/drenn1\/wp-json\/wp\/v2\/posts\/97","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/drenn1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/drenn1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/drenn1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/drenn1\/wp-json\/wp\/v2\/comments?post=97"}],"version-history":[{"count":1,"href":"https:\/\/blogs.scummvm.org\/drenn1\/wp-json\/wp\/v2\/posts\/97\/revisions"}],"predecessor-version":[{"id":99,"href":"https:\/\/blogs.scummvm.org\/drenn1\/wp-json\/wp\/v2\/posts\/97\/revisions\/99"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/drenn1\/wp-json\/wp\/v2\/media?parent=97"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/drenn1\/wp-json\/wp\/v2\/categories?post=97"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/drenn1\/wp-json\/wp\/v2\/tags?post=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}