Page 1 of 1
Mac Users Simple TexMate helper
Posted: Wed Dec 30, 2009 5:44 am
by jgerman
For any Mac users that use (or want to use) TextMate, along with the Lua bundle you can add a new bundle for Love through the bundle editor:
Just create a new Bundle through the Bundle Editor, then add a command (Run) and a quick and dirty shell script, a key equivalent and you're off and running.
This way you can just invoke your key sequence to run your game. I've only just started with Love, but if I continue I'll probably extend TextMate to be a suitable environment.
Re: Mac Users Simple TexMate helper
Posted: Wed Dec 30, 2009 7:46 am
by stevejohnson
I went the extra mile and zipped it up into a tidy package which you can install by double-clicking on it. Enjoy.
Re: Mac Users Simple TexMate helper
Posted: Wed Dec 30, 2009 3:16 pm
by jgerman
Even better. Thanks
Re: Mac Users Simple TexMate helper
Posted: Sat Feb 27, 2010 2:07 pm
by pygy
I'm trying to improve this script to be able to read the print()ed meaages in the console.
I've added the love binary to my path, so I can use love $TM_DIRECTORY instead of open love.app $TM_DIRECTORY.
The best I could find so far is
love $TM_DIRECTORY > $TM_DIRECTORY/log.txt
then I can open a terminal window and use tail -f log.txt to see the output.
The problem is that LÖVE buffers it's output and spits it out in one batch when you close it. It makes it hard to interact with your script... Lua script don't exhibit that behaviour, so ti seems to be LÖVE-related.
Does someone see a solution?
Re: Mac Users Simple TexMate helper
Posted: Sat Feb 27, 2010 2:19 pm
by bartbes
On linux I'd do:
xterm -e love $TM_DIRECTORY
so I guess you can do something similar on OSX.
Re: Mac Users Simple TexMate helper
Posted: Sat Feb 27, 2010 2:40 pm
by pygy
xterm -e love $TM_DIRECTORY
It works as is :-)
I hadn't thought of using xterm, I was trying to get it to work in iTerm and Terminal.app.
Thanks :-)
Re: Mac Users Simple TexMate helper
Posted: Sat Feb 27, 2010 3:33 pm
by bartbes
No problem.