From: Jared Hobbs Date: 2012-04-27T00:26:38+09:00 Subject: Wrappng up my Text Game! Need Help! Hi, everyone. This is my first post! Very quick background: I decided I wanted to learn Ruby so I could use Watir to make some bots for my business to automate some repetitive tasks. I was directed to "Learn Ruby the Hard Way" and went through the program. At the end we are made to create a text based role playing game. So I did, and with some help of others on an unrelated forum, I managed to get my game to run in Terminal. Here is the code : https://gist.github.com/2500159 So after I finished that, I celebrated, but that wasn't enough. I wanted to share it. So I started researching compiling. I learned that what I really wanted to do was create an application bundle so I could pass it out to friends without them going through the hassle of installing ruby, etc. And I wanted to be able to have a Windows and a Mac version. tar2rubyscript, rubyscript2exe, allinoneruby, crate... These are supposed to be cross platform exectuable makers, but after spending about 3 hours messing with the first three I learned how they are broken and found some fixes, but they did not work. I learned it was somewhat abandoned for Ocra, which helps me with Windows, but not Mac. I couldn't figure out Crate to be honest. So I eventually found Platypus! Very cool program. Seems to do exactly what I need, and it even encrypts the code (is this going to be enough to actually protect my code from prying eyes?) So I'm trying to solve this Mac problem first. I've created an application bundle that runs but meets this error: /Users/*/Desktop/Guardians At The Threshold.app/Contents/Resources/script:98:in `beginning_room': private method `chomp' called for nil:NilClass (NoMethodError) from /Users/*/Desktop/Guardians At The Threshold.app/Contents/Resources/script:629:in `send' from /Users/*/Desktop/Guardians At The Threshold.app/Contents/Resources/script:629:in `runner' from /Users/*/Desktop/Guardians At The Threshold.app/Contents/Resources/script:635 I don't understand why this runs in Terminal but doesn't in the Application. I'd say that I've jumped in way over my head, but I really want to be able to pass this around. Can you guys give me any insight or help? Anyone using Platypus successfully? Thanks a ton! -- Posted via http://www.ruby-forum.com/.