{"id":204,"date":"2007-04-07T03:29:51","date_gmt":"2007-04-07T07:29:51","guid":{"rendered":"http:\/\/www.rakkar.org\/blog\/?p=204"},"modified":"2007-04-07T03:29:51","modified_gmt":"2007-04-07T07:29:51","slug":"script-system-done-but-useful","status":"publish","type":"post","link":"https:\/\/rakkar.org\/blog\/index.php\/2007\/04\/07\/script-system-done-but-useful\/","title":{"rendered":"Script system done.  But useful?"},"content":{"rendered":"<p>\t\t\t\tSo I spent the last 5 days week implementing and exposing all of Ogre 3D to AngelScript, and I&#8217;m starting to feel it was a mistake.  All I&#8217;ve gained is the ability to run code in text files, and reload them at run time.  But that benefit is very limited &#8211; slow, hard to debug, less capable than the compiler.  And for what I&#8217;m using it for I could have programmed it in C++ directly in 15 minutes.  As a long-term solution, like if I had a year to develop this, this is a good solution because these text files could serve as data files as well and be output and worked with from an editor, with the ability to debug the script itself.  But as a short term solution I&#8217;m feeling I wasted 5 days.  I have nothing visible to show for my work and it&#8217;s not like I have plenty of time to spare.  And the worst part is I&#8217;m not sure it&#8217;s going to work.  Angel Script is pretty hard to use and understand.  The forum support is good, and what they are doing is a difficult task so understandable to an extent.   However, me figuring out means stuff takes twice as long as it should.  For example, how do I handle casting references to pointers, or vice-versa?  Why does declaring a parameter list of (void) not work, but () does work?  Why did they decide not to support pointers, but to require reference counted objects?  This means not only do I have to declare script classes for all my game classes, but I have to do it duplicate again for the pointer to that class as well.<\/p>\n<p>If I could do this week over again I should have just hardcoded everything.\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I spent the last 5 days week implementing and exposing all of Ogre 3D to AngelScript, and I&#8217;m starting to feel it was a mistake. All I&#8217;ve gained is the ability to run code in text files, and reload them at run time. But that benefit is very limited &#8211; slow, hard to debug, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/204"}],"collection":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=204"}],"version-history":[{"count":0,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/204\/revisions"}],"wp:attachment":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}