Mac Users Simple TexMate helper

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
jgerman
Prole
Posts: 4
Joined: Wed Dec 30, 2009 4:58 am

Mac Users Simple TexMate helper

Post 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:
Image

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.
stevejohnson
Prole
Posts: 5
Joined: Tue Dec 29, 2009 8:47 am

Re: Mac Users Simple TexMate helper

Post 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.
Attachments
Löve.tmbundle.zip
Löve.tmbundle
(1.59 KiB) Downloaded 205 times
jgerman
Prole
Posts: 4
Joined: Wed Dec 30, 2009 4:58 am

Re: Mac Users Simple TexMate helper

Post by jgerman »

Even better. Thanks :)
User avatar
pygy
Citizen
Posts: 98
Joined: Mon Jan 25, 2010 4:06 pm

Re: Mac Users Simple TexMate helper

Post 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?
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.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Mac Users Simple TexMate helper

Post by bartbes »

On linux I'd do:
xterm -e love $TM_DIRECTORY

so I guess you can do something similar on OSX.
User avatar
pygy
Citizen
Posts: 98
Joined: Mon Jan 25, 2010 4:06 pm

Re: Mac Users Simple TexMate helper

Post 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 :-)
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.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Mac Users Simple TexMate helper

Post by bartbes »

No problem.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 6 guests