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

General discussion about LÖVE, Lua, game development, puns, and unicorns.
LaggyNewbie
Prole
Posts: 6
Joined: Sun Oct 11, 2009 1:53 am

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

Post by LaggyNewbie »

I just started developing with love and this is what I am currently doing:
1) Opening my .love in 7zip
2) running .lua in Notepad++ from 7zip
3) saving, closing Notepad++
4) 7zip sees changes, clicking ok to update archive
5) Running .love
6) Step #2

There must be an easier way?
User avatar
Almost
Prole
Posts: 42
Joined: Fri Aug 21, 2009 8:04 pm
Location: Canada
Contact:

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

Post by Almost »

I too use notepad ++

However, while I'm developing I have the files in a folder, and just drag the folder onto a shortcut to love that is on my desktop to run it.
Also: I use winrar, not 7zip.. I've never tried 7zip.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

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

Post by TechnoCat »

I too keep it in a folder and then drag the folder onto a love shortcut. 7zip and WinRAR are almost identical. Except 7zip is free.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

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

Post by Robin »

I use a folder, and just use a terminal window:

Code: Select all

>love .
Help us help you: attach a .love.
User avatar
osgeld
Party member
Posts: 303
Joined: Sun Nov 23, 2008 10:13 pm

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

Post by osgeld »

Robin wrote:I use a folder, and just use a terminal window:

Code: Select all

>love .
ditto
dtaylorl
Prole
Posts: 8
Joined: Tue May 19, 2009 2:57 am

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

Post by dtaylorl »

In Ubuntu:
1. Open a terminal and cd a directory with all of my love projects:
cd '/home/username/Development/love'
2. Edit my .lua files in Geany and save them in a project directory: /home/username/Development/love/projectname/
3. Use terminal to run the file:
love projectname

Much easier than dealing with zipping/unzipping .love files.
User avatar
Igmon
Prole
Posts: 9
Joined: Wed Mar 11, 2009 6:11 pm

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

Post by Igmon »

Three "lovely" things:

1) Eclipse with luaeclipse plugin
2) Decoda for debugging (you have to compile love in windows to acquire the .pdb file for use with its debugging features). Though you can technically use Decoda alone for ide, I like eclipse better for code management.
3) WinRar
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

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

Post by nevon »

dtaylorl wrote:In Ubuntu:
1. Open a terminal and cd a directory with all of my love projects:
cd '/home/username/Development/love'
2. Edit my .lua files in Geany and save them in a project directory: /home/username/Development/love/projectname/
3. Use terminal to run the file:
love projectname

Much easier than dealing with zipping/unzipping .love files.
I do exactly the same thing, only I always have a terminal running (in the form of Guake), so I only have to press F12 to have it drop down.
User avatar
Tenoch
Citizen
Posts: 76
Joined: Mon Jul 21, 2008 7:49 am

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

Post by Tenoch »

Geany has a fancy (but simple) customizable shortcut on F5 to run programs. For Lua files it defaults to running "lua filename" in a terminal, but you can easily change it in "Build" -> "Set includes and arguments" to "love .".

Plus, Geany is a nice editor.
"When in doubt, use brute force." Ken Thompson
dtaylorl
Prole
Posts: 8
Joined: Tue May 19, 2009 2:57 am

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

Post by dtaylorl »

Tenoch, that tip is very useful. I didn't realize that it was so simple to change the way the "execute" command works in Geany. It means I don't have to switch to a terminal every time I want to run my game!
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests