{"id":109,"date":"2019-07-22T19:41:57","date_gmt":"2019-07-22T19:41:57","guid":{"rendered":"https:\/\/blogs.scummvm.org\/pantherengine\/?p=109"},"modified":"2022-05-23T19:42:18","modified_gmt":"2022-05-23T19:42:18","slug":"week-8-2","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/pantherengine\/2019\/07\/22\/week-8-2\/","title":{"rendered":"Week 8"},"content":{"rendered":"<p>This week I have been reversing text classes in Red Comrades engine.<\/p>\n<p>&nbsp;<\/p>\n<p>Although, the text doesn\u2019t render properly for now. There is a problem with font. It seems that ScummVm\u2019s fonts don\u2019t support cyrillic letters.<\/p>\n<p>The engine consists of 4 text classes:<\/p>\n<ul>\n<li>QText<\/li>\n<li>QTextDescription<\/li>\n<li>QTextChoice<\/li>\n<li>QTextPhrase<\/li>\n<\/ul>\n<p>QText is a base class for other classes.<\/p>\n<p>QTextDescription is used to render text about item.<\/p>\n<p>QTextChoice is used to make choice.<\/p>\n<p>QTextPhrase is used for dialogs. It monitors the sound and notifies dialog manager when sound ends.<\/p>\n<p>The text in game is stored in Windows 1251 codepage. I have used the converting funtion which I had written last year for Pink Panther engine.<\/p>\n<p>I have also polished dialog manager, so the intro can be continued.\u00a0 However, intro is bugged because heroes are not implemented. So they are not rendered and walk is skipped.<\/p>\n<p>The plan for next week is to fix the problem with font if possible, start to implement heroes, and reverse the inventory.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week I have been reversing text classes in Red Comrades engine. &nbsp; Although, the text doesn\u2019t render properly for now. There is a problem with font. It seems that ScummVm\u2019s fonts don\u2019t support cyrillic letters. The engine consists of 4 text classes: QText QTextDescription QTextChoice QTextPhrase QText is a base class for other classes. [&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-109","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/posts\/109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/comments?post=109"}],"version-history":[{"count":1,"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/posts\/109\/revisions"}],"predecessor-version":[{"id":110,"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/posts\/109\/revisions\/110"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/media?parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/categories?post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/pantherengine\/wp-json\/wp\/v2\/tags?post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}