{"author_name":"Crefossus","cat":"LD #29","comments":[],"epoch":1398781260,"likes":3,"metadata":{"p_key":"30220","p_author":"Crefossus","p_authorkey":"23130","p_urlkey":"65691","p_title":"Order of the Mind \u2013 Now on Linux and OSX","p_cat":"LD #29","p_event":"LD29","p_time":"1398781260","p_likes":"3","p_comments":"0","p_status":"UPD5","us_key":"23130","us_name":"Crefossus","us_username":"\/author\/crefossus\/","event_start":"1398384000","event_key":"22","event_name":"LD29"},"text":"<h2>Explore the intriguing underbelly of PLANETNAMEPLACEHOLDER!<\/h2>\n <p><a href=\"http:\/\/www.ludumdare.com\/compo\/ludum-dare-29\/?action=preview&amp;uid=23130\">Now you can<\/a> explore the intriguing underbelly of PLANETNAMEPLACEHOLDER on linux and osx, in theory ! What are npcs saying? And what is really going on between their ears? Plus get questions answered. Like &#8211;\u00a0Can you find the teddy bear?<\/p>\n <h3>Lore? A planet name is born.<\/h3>\n <p>Yeah. So.. I forgot to name the planet before the deadline&#8230;and I don&#8217;t even have a name for it now so it&#8217;s not really a typo\/fix. Opps. <img src=\"http:\/\/ludumdare.com\/compo\/wp-includes\/images\/smilies\/simple-smile.png\" alt=\":)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/> I want to name it after the element\u00a0that&#8217;s used as fuel, Cuerlium, but then that might be confusing right? Planet\u00a0<strong>Cuer?<\/strong>\u00a0Yeah! And the battle of NAME\u00a0was&#8230;. Battle of Creek Ludensen. The Master of the Order could be a Ludensen too, whenver I get to adding him in for a post ld-48 version.<\/p>\n <p>&nbsp;<\/p>\n <h2>Technical info for Linux\/OSX<\/h2>\n <p>To run in either newly supported platform download and open a command prompt (apple key+space type, type terminal, press enter) then navigate to your download folder (cd Downloads &#8211; \u00a0I think) and type<\/p>\n <p>.\/orderofthemindOSX or .\/OrderOfTheMind<\/p>\n <p>You may need to make it executable first by (Ubuntu: right clicking, choosing properties then clicking the executable checkbox).<\/p>\n <p>or\u00a0<span style=\"color: #000000\">chmod +x\u00a0orderofthemindOSX<\/span><\/p>\n <p>&nbsp;<\/p>\n <h2><strong>Learn how I learned stuff!<\/strong><\/h2>\n <p>To get the code compiled\u00a0on ubuntu I installed <a href=\"https:\/\/www.virtualbox.org\/wiki\/Downloads\">virtual box<\/a>, and used an\u00a0<a href=\"http:\/\/www.ubuntu.com\/desktop\">ubuntu iso<\/a>. I also enabled 3d mode in settings and installed the guest additions by mounting that iso found in virtual box folder to increase my screen res (640*480 makes me suicidal and homicidal &#8211; in that order).<\/p>\n <p>Then I tried g++ main.cpp -o ootm on the command line, but g++ isn&#8217;t\u00a0installed so it kindly tells you how to resolve that. I typed that command (sudo apt-get &#8230;)<\/p>\n <p>Next was fixing compile errors yayyy! null_ptr or what I was using in MSVC isn&#8217;t defined so I just changed my if statements from if(apointer !=null_ptr) to if(apointer).<\/p>\n <p>Also because I was using <a href=\"http:\/\/www.cplusplus.com\/reference\/string\/string\/back\/\">back()<\/a> which is apparently new in c++11? So I had to add \u00a0-std=c++11 as an argument to g++. The error was something like &#8220;<span style=\"color: #545454\">\u00a0<\/span><span style=\"font-weight: bold;color: #545454\">error<\/span><span style=\"color: #545454\">: &#8216;<\/span><span style=\"font-weight: bold;color: #545454\">std<\/span><span style=\"color: #545454\">::<\/span><span style=\"font-weight: bold;color: #545454\">string<\/span><span style=\"color: #545454\">&#8216; has no member named &#8216;<\/span><span style=\"font-weight: bold;color: #545454\">back<\/span><span style=\"color: #545454\">&#8216;&#8221;<\/span><\/p>\n <h3>OSX<\/h3>\n <p>My memory is a\u00a0little fuzzy on this honestly &#8211; g++\/clang are the command lines but you need to download them as an addon for xcode. I used <a href=\"\/\/developer.apple.com\/downloads\/index.action?name=for%20Xcode%20-\u00a0\">this link<\/a>\u00a0that I found from <a href=\"http:\/\/stackoverflow.com\/questions\/2122425\/how-do-i-install-g-on-macos-x\">this thread<\/a>, but you need a (Free) dev account . &#8220;Useless&#8221; comments solved my problem! What do you know?<\/p>\n <p>This was giving me the same error about back() so I used both\u00a0<span style=\"color: #545454\">&#8211;<\/span><span style=\"font-weight: bold;color: #545454\">std<\/span><span style=\"color: #545454\">=c++11 AND -stdlib=<\/span><span style=\"font-weight: bold;color: #545454\">libc++\u00a0<\/span>to get it working. this time. And then it worked. Yay.<\/p>\n <p>&nbsp;<\/p>\n <h2>Know an\u00a0easy way to make them execute when you double click?<\/h2>\n <p>That&#8217;s the last task. I tried googling a bit before I gave up and\u00a0usually ended up with &#8220;how do I get my shell script&#8221; blah blah. No promises I&#8217;ll actually get this done\u00a0though.<\/p>","time":"April 29th, 2014 9:21 am","title":"Order of the Mind \u2013 Now on Linux and OSX"}