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.
Mac Users Simple TexMate helper
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 5
- Joined: Tue Dec 29, 2009 8:47 am
Re: Mac Users Simple TexMate helper
I went the extra mile and zipped it up into a tidy package which you can install by double-clicking on it. Enjoy.
- Attachments
-
- Löve.tmbundle.zip
- Löve.tmbundle
- (1.59 KiB) Downloaded 202 times
Re: Mac Users Simple TexMate helper
Even better. Thanks
Re: Mac Users Simple TexMate helper
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?
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?
Last edited by pygy on Sat Feb 27, 2010 2:34 pm, edited 2 times in total.
Hermaphroditism is not a crime. -- LSB Superstar
All code published with this account is licensed under the Romantic WTF public license unless otherwise stated.
All code published with this account is licensed under the Romantic WTF public license unless otherwise stated.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Mac Users Simple TexMate helper
On linux I'd do:
xterm -e love $TM_DIRECTORY
so I guess you can do something similar on OSX.
xterm -e love $TM_DIRECTORY
so I guess you can do something similar on OSX.
Re: Mac Users Simple TexMate helper
It works as is :-)xterm -e love $TM_DIRECTORY
I hadn't thought of using xterm, I was trying to get it to work in iTerm and Terminal.app.
Thanks :-)
Last edited by pygy on Sat Feb 27, 2010 9:04 pm, edited 1 time in total.
Hermaphroditism is not a crime. -- LSB Superstar
All code published with this account is licensed under the Romantic WTF public license unless otherwise stated.
All code published with this account is licensed under the Romantic WTF public license unless otherwise stated.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Mac Users Simple TexMate helper
No problem.
Who is online
Users browsing this forum: Bing [Bot] and 3 guests