{"id":51,"date":"2008-08-02T11:06:06","date_gmt":"2008-08-02T09:06:06","guid":{"rendered":"https:\/\/blogs.scummvm.org\/buddha\/?p=51"},"modified":"2022-04-15T12:45:28","modified_gmt":"2022-04-15T10:45:28","slug":"operation-stealth-savegame-loading-works","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/buddha\/2008\/08\/02\/operation-stealth-savegame-loading-works\/","title":{"rendered":"Operation Stealth savegame loading works!"},"content":{"rendered":"<p>Hi! Got Operation Stealth\u2019s savegame loading to work just now. HURRAH! I\u2019m so enormously relieved that I just might explode or something ;-). Yay! Really really good!<\/p>\n<p>The problem was that the animation data table entries were loaded using a different and less complete code when loading a savegame than when running the game and loading the entries using script opcodes like loadAbs, loadAnim etc. So what I did was I made it so that the savegame loading routine uses the exact same functions that are used by the resource loading related script opcodes (The changes I made are <a href=\"https:\/\/github.com\/scummvm\/scummvm\/commit\/6307c46604bfcc23930d8cb4abe8f55a3538f2a5\" target=\"_blank\" rel=\"noopener\">r33529<\/a> and <a href=\"https:\/\/github.com\/scummvm\/scummvm\/commit\/efd4a7a72f6e44fc18be1827c92dcbbb59b5beb2\" target=\"_blank\" rel=\"noopener\">r33530<\/a>).<\/p>\n<p>Yay! Next up: Fixing the mouse cursor pointing problem in Operation Stealth (If you point at an object on-screen it\u2019s recognized a bit to the right of its correct location. I think the problem most likely is in <a href=\"http:\/\/scummvm.svn.sourceforge.net\/viewvc\/scummvm\/scummvm\/trunk\/engines\/cine\/various.cpp?revision=33446&amp;view=markup&amp;pathrev=33530#l_169\">getObjectUnderCursor<\/a> and\/or <a href=\"http:\/\/scummvm.svn.sourceforge.net\/viewvc\/scummvm\/scummvm\/trunk\/engines\/cine\/various.cpp?revision=33446&amp;view=markup&amp;pathrev=33530#l_1665\">executePlayerInput<\/a> functions).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi! Got Operation Stealth\u2019s savegame loading to work just now. HURRAH! I\u2019m so enormously relieved that I just might explode or something ;-). Yay! Really really good! The problem was that the animation data table entries were loaded using a different and less complete code when loading a savegame than when running the game and [&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-51","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/buddha\/wp-json\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/buddha\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/buddha\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/buddha\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/buddha\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":3,"href":"https:\/\/blogs.scummvm.org\/buddha\/wp-json\/wp\/v2\/posts\/51\/revisions"}],"predecessor-version":[{"id":113,"href":"https:\/\/blogs.scummvm.org\/buddha\/wp-json\/wp\/v2\/posts\/51\/revisions\/113"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/buddha\/wp-json\/wp\/v2\/media?parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/buddha\/wp-json\/wp\/v2\/categories?post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/buddha\/wp-json\/wp\/v2\/tags?post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}