{"id":862,"date":"2009-10-01T21:40:53","date_gmt":"2009-10-01T11:40:53","guid":{"rendered":"http:\/\/www.vectorstorm.org\/?p=862"},"modified":"2009-10-03T23:25:23","modified_gmt":"2009-10-03T13:25:23","slug":"save-games-part-two","status":"publish","type":"post","link":"https:\/\/www.vectorstorm.com.au\/2009\/10\/01\/save-games-part-two\/","title":{"rendered":"Save Games, Part Two"},"content":{"rendered":"
Been doing more work on figuring out how to manage data in such a way that I won’t go insane, trying to manage the saved games for MMORPG Tycoon 2.<\/p>\n
I think I’ve now basically settled on a data description system which isn’t too onerous to use, and which has no performance penalty during runtime. \u00a0With that said, though, it does run counter to many of the core values I’ve tried to instil in the VectorStorm library; \u00a0that code should be clearly understandable at a casual glance, that it shouldn’t contain any “clever tricks”, and that the use of macros and templates should be severely limited. \u00a0As such, I probably won’t make this system part of the core VectorStorm library; \u00a0it’s just not the sort of thing that I want new programmers stressing out over, when they check out the code. \u00a0And it’s totally not needed for games which are simpler than MMORPG Tycoon 2. \u00a0(And even with more than a decade of making commercial games, I can quite comfortably attest that I’ve never before worked on a game which was anywhere near as complicated as MMORPG Tycoon 2)<\/p>\n
The system is about halfway implemented now; \u00a0I probably won’t have it fully finished until sometime this weekend, but I can now see the whole structure, and am quite pleased with it; \u00a0it’ll make many bits of code much more bearable!<\/p>\n
In other news, I’ve adjusted the Mac build of VectorStorm games to compile VectorStorm as a static library, as is done in the Windows build. \u00a0Previously, Mac builds compiled VectorStorm as a framework which was then embedded into the app bundle; \u00a0Windows folks can think of an embedded framework as a private dll file; \u00a0it’s not shared with other applications, but it still links to the game dynamically at runtime. \u00a0This was leading to some strange behaviour sometimes, particularly on objects inside the VectorStorm library which were derived from the “mixSingleton” templated class. \u00a0Those issues have all now been sorted out, now that it’s a static library instead. \u00a0(these issues never caused problems in Win32 builds, which was already building VectorStorm as a static library)<\/p>\n","protected":false},"excerpt":{"rendered":"
Been doing more work on figuring out how to manage data in such a way that I won’t go insane, trying to manage the saved games for MMORPG Tycoon 2. I think I’ve now basically settled on a data description system which isn’t too onerous to use, and which has no performance penalty during runtime.…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[24,25],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/po9WK-dU","_links":{"self":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/862"}],"collection":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/comments?post=862"}],"version-history":[{"count":0,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/862\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/media?parent=862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/categories?post=862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/tags?post=862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}