Page 3 of 4

Re: What software/methods do you use to edit/run your code?

Posted: Sat Feb 27, 2010 4:32 am
by ljdp
TextMate on OSX ^.^

Using a TextMate Love bundle I found here some time ago I can press command-R to run, command-B to build a .love file,
when I want a specific color i press a hotkey and a color wheel pops up, press ok and it inserts into the document as r,g,b.
I also have a git bundle so when I press control-shift-G a menu pops up with commit, push, merge, new branch, visualize in gitk etc.. reaaally useful.

Re: What software/methods do you use to edit/run your code?

Posted: Sat Feb 27, 2010 2:08 pm
by pygy
ljdp, How do you debug your code on OS X?

Re: What software/methods do you use to edit/run your code?

Posted: Sat Feb 27, 2010 7:43 pm
by ljdp
I just run it and check for errors.
I overwrite the print() function to push the string to a stack so I can show various message throughout the code.
I also keep the project version with a local git repository if I need to go back to a stable state etc.

Re: What software/methods do you use to edit/run your code?

Posted: Sat Feb 27, 2010 9:09 pm
by pygy
Ok, thanks :-)

You may find this useful: http://love2d.org/forum/viewtopic.php?f=4&t=1144

Basically, replace the "Run" command in the Love bundle with xterm -e love $TM_DIRECTORY .

It opens a terminal to display the printed messages. No need to overwrite print :-)

Also, to make this work, you'll need to:
1) add the love to your path (/Applications/love.app/Contents/MacOS/love) or something similar
2) install X.org from the dev tools on your MacOS X install DVD (if it's not done already).

Very handy.

Re: What software/methods do you use to edit/run your code?

Posted: Sun Nov 27, 2011 7:18 pm
by JamesFlamingo
I put the following command in Geany>Build>Set Build Commands>text box to the right of Execute

zip -r Working_Game.love *; love Working_Game.love

There should be a better way to do this with 'PWD' but i never got it to work. : :monocle:

Re: What software/methods do you use to edit/run your code?

Posted: Mon Nov 28, 2011 4:53 am
by Kazagha
I have been using gvim; as people have already said it has Lua highlighting out of the box plus I have added a love2d specific highlighting file additional to the Lua highlighting.

I am using the command line version of 7zip (7za.exe) and a batch file (zip.bat) to create the .love file.

Then using a shortcut to the love executable inside the 'love2d' folder, so I can click and drag the .love file onto the shortcut to run it.
love directory.gif
love directory.gif (2.23 KiB) Viewed 3942 times
zip.bat

Code: Select all

cd H:\love-0.7.2-win-x86
del test.love
7za.exe -tzip a H:\love-0.7.2-win-x86\test.love H:\love-0.7.2-win-x86\game\*

Re: What software/methods do you use to edit/run your code?

Posted: Mon Nov 28, 2011 11:02 pm
by Taehl
Windows, using Notepad++:

1) Keep my project in a folder, instead of a .love
2) Edit code in N++
3) Hit F5 to test, with the command "D:\Dev\Love\love.exe D:\Dev\Love\whatever"
4) Iterate!

Re: What software/methods do you use to edit/run your code?

Posted: Tue Nov 29, 2011 1:17 am
by josefnpat
I use gimp, gnome-terminal, nautilus and gedit on Ubuntu.

Seeing this thread, made me want to streamline my gedit'ing. Wrote a quick script that you can bind to F5 with gedit's "external tools" plugin.

Code: Select all

#!/bin/sh
SERVICE=' love '
killall love 2> /dev/null
gnome-terminal -e "love $GEDIT_CURRENT_DOCUMENT_DIR"
https://gist.github.com/1402851

edit: Forgot to remove errors with

Code: Select all

2>
so the bottom pane doesn't appear at the bottom of gedit.

Re: What software/methods do you use to edit/run your code?

Posted: Tue Nov 29, 2011 1:53 am
by Kazagha
Taehl wrote:Windows, using Notepad++:

1) Keep my project in a folder, instead of a .love
2) Edit code in N++
3) Hit F5 to test, with the command "D:\Dev\Love\love.exe D:\Dev\Love\whatever"
4) Iterate!
It's pretty cool that you can run it directly from a directory without needing to package it into a .love file. I didn't know that. I think I will be doing it this way in the future.

-Kazagha

Re: What software/methods do you use to edit/run your code?

Posted: Tue Nov 29, 2011 7:38 am
by Robin
Kazagha wrote:It's pretty cool that you can run it directly from a directory without needing to package it into a .love file. I didn't know that. I think I will be doing it this way in the future.
Interesting. You're not the first to be surprised this is possible. Why would so many people not know this?