Page 2 of 3
Re: IDEs for LÖVE
Posted: Fri May 04, 2012 11:13 pm
by Naurgul
I ended up with
notepad++ with the love plugin for coding and an unregistered version of
Decoda for debugging. Here's how the settings are supposed to look like:
- Decoda project settings
- decoda.png (27.46 KiB) Viewed 5772 times
Here's the detailed instructions (it's really easy):
- Download Decoda and install it. (The trial version is good for 30 days)
- Download a modified version of LOVE that includes this LuaJit thing.
- Unzip your new love.exe somewhere (e.g. D:\Program Files (x86)\LOVE\love-luajit).
- Start Decoda. Go to Project -> Settings. Fill the settings as follows:
- Command: your new love.exe (e.g. D:\Program Files (x86)\LOVE\love-luajit\love.exe)
- Arguments: your game folder (e.g. C:\Users\Nikolas\workspace\OCDGame)
- Directory: . (a single dot)
- Symbols: leave this one empty
- Run with Ctrl+F5. Debug with F5. Breakpoint key is F9. For more details, watch this video tutorial.
Re: IDEs for LÖVE
Posted: Sat May 05, 2012 11:46 pm
by kclanc
For comparison, here is a video of love studio. This demonstrates a fairly efficient workflow, doesn't it?
Re: IDEs for LÖVE
Posted: Mon May 07, 2012 4:52 pm
by middlerun
I've had some success using
Lua Development Tools with Love. It's a Lua-specific version of Eclipse which has some nice features, though debugging doesn't work for Love programs.
Re: IDEs for LÖVE
Posted: Mon May 07, 2012 9:13 pm
by kclanc
Woah, LDT looks nice. Why doesn't the debugger work for love programs?
Re: IDEs for LÖVE
Posted: Wed May 09, 2012 5:55 am
by middlerun
Because LDT's debugger runs Lua scripts directly, but Love programs need to be run through the Love executable.
Re: IDEs for LÖVE
Posted: Wed May 09, 2012 7:59 am
by Naurgul
Yes, LDT is the first thing I tried. Couldn't make debugging to work. It doesn't seem like it's possible.
Re: IDEs for LÖVE
Posted: Mon May 21, 2012 7:32 am
by kartben
Hi guys,
I just gave Koneki's debugger a shot with LÖVE, and it seems to work just fine
Let me try to summarize what you need to do:
- Create a new Lua project in Koneki (File > New > Lua Project), either from scratch or by referencing an existing folder. If starting from scratch, of course you'll want to create a main.lua!
- Copy these two files next to your main.lua
- At the beginning of main.lua, add
- Create a new Debug Configuration (e.g. from the menu Run > Debug Configurations...), default settings should be fine.
- Launch the Debug Configuration
- From the command line, make sure your working directory is the one where your sources are in (this seems to be important!), and launch the LÖVE emulator (for the record, this is how it looks like for me on a Mac: open -n -a /Applications/love.app/ .)
- Enjoy! Any breakpoint that you have created should now work, and/or you can also pause the VM anytime you want...
Hope this helps! You guys can have a look at this screencast:
It was made for Corona but it is basically the same setup for LÖVE!
Re: IDEs for LÖVE
Posted: Tue May 22, 2012 8:19 pm
by kclanc
I get a broken link for those two files.
Re: IDEs for LÖVE
Posted: Tue May 22, 2012 9:02 pm
by kartben
kclanc wrote:I get a broken link for those two files.
Oops sorry about that! I just fixed it. Thanks for reporting it!
Re: IDEs for LÖVE
Posted: Wed May 30, 2012 12:26 am
by kclanc
I tried getting this to work on my windows 7 machine. Debug output is showing up, but I can't get breakpoints to work. I am using prepackaged LDT. I launch the game by going into the project directory and typing "love ."
Another complaint that I have is that it seems to slow the game down quite a bit. (Try debugging mari0.)
Overall, pretty nice.