{"id":266,"date":"2018-06-04T12:00:25","date_gmt":"2018-06-04T19:00:25","guid":{"rendered":"http:\/\/letsbuildroboticswithshadow8472.com\/?p=266"},"modified":"2018-06-04T00:43:46","modified_gmt":"2018-06-04T07:43:46","slug":"prototype-automated-spawner","status":"publish","type":"post","link":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/2018\/06\/04\/prototype-automated-spawner\/","title":{"rendered":"Prototype Automated Spawner"},"content":{"rendered":"<p>Good Morning from my Robotics Lab! This is Shadow_8472, and today, I am going over my completed pure ComputerCraft prototype automated spawner. Let&#8217;s get started.<\/p>\n<p>I now have a turtle program I&#8217;m mostly, but not completely happy with. The notepad++ doc I originally coded now has the bugfixes I missed while parallel coding, but there&#8217;s still a bug when the program is deployed across many turtles. As of this writing, I have yet to look into it, but it&#8217;s simple enough to repair for a functional prototype.<\/p>\n<p>I&#8217;ve turned my attention to the other two programs. I have a program to attack the gathered mobs, and it works at about 98% for a pretty heavy load, but it&#8217;s sloppily coded. I will be reworking it before publishing. When will I publish? I honestly don&#8217;t know. Whenever it&#8217;s done. At this point, I doubt I have anyone waiting on it, but at the same time, if I did, I&#8217;d be asking for help.<\/p>\n<p>Long story short, I&#8217;m focusing on a program to filter out matching items before the attack program. Already, I&#8217;m considering potential benefits of making a custom library. One function, itemOut(), should be useful for a lot of turtle programs. As long as I use the same variables it depends on, I can just copy it into each program. A library would let me just access it without having to have it in each program. With a little modification, I might even be able to write some code to read a comment in the header and get library version numbers&#8230; and with a little expansion, I could setup a software update system.<\/p>\n<p>Unfortunately, that neat idea is unlikely to save me any time. I don&#8217;t think it&#8217;s likely to happen unless I come back to ComputerCraft in a while. I want to get back around into more real world applications some time here.<\/p>\n<p>Getting back on topic: the sorting program. I&#8217;m trying to recycle as many of my ideas for the loot repair program as possible. I started with the getState-action structure. As mentioned earlier, itemOut() is exactly the same. I do have an evalItem() function in both programs, but I have no desire to try and reconcile the two. Even if there were a way to make a unified evalItem() function, getState() itself must be different; the two programs have different possible states. Of course, good programming gives you a &#8220;control panel&#8221; of variables to edit.<\/p>\n<p>Final Question: For anyone who knows: What is the best tutorial for Gazebo?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Good Morning from my Robotics Lab! This is Shadow_8472, and today, I am going over my completed pure ComputerCraft prototype automated spawner. Let&#8217;s get started. I now have a turtle program I&#8217;m mostly, but not completely happy with. The notepad++ doc I originally coded now has the bugfixes I missed while parallel coding, but there&#8217;s &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/2018\/06\/04\/prototype-automated-spawner\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Prototype Automated Spawner&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[10,9],"tags":[],"class_list":["post-266","post","type-post","status-publish","format-standard","hentry","category-minecraft","category-programming"],"_links":{"self":[{"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/posts\/266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/comments?post=266"}],"version-history":[{"count":3,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/posts\/266\/revisions"}],"predecessor-version":[{"id":270,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/posts\/266\/revisions\/270"}],"wp:attachment":[{"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/media?parent=266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/categories?post=266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/letsbuildroboticswithshadow8472.com\/index.php\/wp-json\/wp\/v2\/tags?post=266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}