{"id":103,"date":"2014-06-30T06:06:02","date_gmt":"2014-06-30T06:06:02","guid":{"rendered":"https:\/\/blogs.scummvm.org\/uruk\/?p=103"},"modified":"2022-05-22T18:46:13","modified_gmt":"2022-05-22T18:46:13","slug":"a-bit-of-vacation-and-the-advanced-detector","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/uruk\/2014\/06\/30\/a-bit-of-vacation-and-the-advanced-detector\/","title":{"rendered":"A bit of vacation and the Advanced Detector"},"content":{"rendered":"<p>Hey all! \ud83d\ude42<\/p>\n<p>During the last week, I spent a few days on vacation, so I haven&#8217;t really progressed much with the engine. Truth to be told, I am still on time regarding my schedule, so everything is okay.<br \/>\nBesides that, Arnaud progressed a great deal with the translation, and with the implementation of a few more\u00a0<a href=\"https:\/\/github.com\/urukgit\/scummvm\/blob\/cge2\/engines\/cge2\/snail.cpp#L69\" target=\"_blank\" rel=\"noopener\">opcodes<\/a>, we were able to unlock a couple of new scenes in the game. Here are some pictures of them:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blogs.scummvm.org\/uruk\/wp-content\/uploads\/sites\/48\/2022\/05\/gas_station.jpg\" \/><\/p>\n<div class=\"separator\"><\/div>\n<p>&nbsp;<\/p>\n<div class=\"separator\"><img decoding=\"async\" src=\"https:\/\/blogs.scummvm.org\/uruk\/wp-content\/uploads\/sites\/48\/2022\/05\/street.jpg\" \/><\/div>\n<p>Now, if I count it correctly, we have almost 10 playable scenes of the game, most of them fully translated. That&#8217;s a quite good number if you take into account that the game has about 28 scenes in all. \ud83d\ude42<\/p>\n<p>Considering the advice of David (digitall), I also added a\u00a0<a href=\"https:\/\/github.com\/urukgit\/scummvm\/blob\/cge2\/engines\/cge2\/detection.cpp#L47\" target=\"_blank\" rel=\"noopener\">fallback detection<\/a>\u00a0for the English translation, so we don&#8217;t have to modify\u00a0<a href=\"https:\/\/github.com\/urukgit\/scummvm\/blob\/cge2\/engines\/cge2\/detection.h#L41\" target=\"_blank\" rel=\"noopener\">gameDescriptions[]<\/a>\u00a0every time Aranud comes up with a new version of the translation.<br \/>\nIn a nutshell, it&#8217;s algorithm is very primitive: it checks for a &#8220;lang.eng&#8221; dummy file. If it finds it, the engine detects the game&#8217;s data files as the WIP English translation. Of course, it&#8217;s just a temporary solution, only used during the development. The cool thing is, it was VERY easy to implement, thanks to the great\u00a0<a href=\"http:\/\/wiki.scummvm.org\/index.php\/Advanced_Detector\" target=\"_blank\" rel=\"noopener\">Advanced Detector<\/a>\u00a0what ScummVM provides. I only had to implement fallbackDetect(), and that&#8217;s all, ScummVM takes care of everything else.<\/p>\n<p>We also decided that the bug in the pathfinding can wait. It&#8217;s absolutely not a showstopper, since you can interact with every sprite on the screen what needed to proceed with the game, it only blocks the player to wander around with our two heroes on certain screens. We postpone it for later, to be implemented with other rather &#8220;cosmetic&#8221; features.<br \/>\nThis week, I am working on the save\/load system, so we can test and translate the game much effectively and swiftly. Sadly, my parents are moving to a new house during these days, and I have to help them a lot, which consumes a lot of energy and time of mine. Nevertheless, I don&#8217;t fear that will slow my progress significantly<\/p>\n<p>Right after that, I&#8217;ll have a pretty long list of Valgrind warnings to take care of as well. Great thanks again to David for providing me with these information, and helping me so much! \ud83d\ude42<\/p>\n<p>See you next time! (Hopefully with a working save\/load system, and with much less memory leaks. :D)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey all! \ud83d\ude42 During the last week, I spent a few days on vacation, so I haven&#8217;t really progressed much with the engine. Truth to be told, I am still on time regarding my schedule, so everything is okay. Besides that, Arnaud progressed a great deal with the translation, and with the implementation of a [&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-103","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/uruk\/wp-json\/wp\/v2\/posts\/103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/uruk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/uruk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/uruk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/uruk\/wp-json\/wp\/v2\/comments?post=103"}],"version-history":[{"count":1,"href":"https:\/\/blogs.scummvm.org\/uruk\/wp-json\/wp\/v2\/posts\/103\/revisions"}],"predecessor-version":[{"id":104,"href":"https:\/\/blogs.scummvm.org\/uruk\/wp-json\/wp\/v2\/posts\/103\/revisions\/104"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/uruk\/wp-json\/wp\/v2\/media?parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/uruk\/wp-json\/wp\/v2\/categories?post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/uruk\/wp-json\/wp\/v2\/tags?post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}