Page 1 of 5

Using SciTE with LÖVE

Posted: Wed Nov 04, 2009 5:02 pm
by Robin
If you are using SciTE to develop LÖVE games, you might find the following useful:

Add this line to lua.properties: (open it via the menu: Options -> Edit Properties -> Open lua.properties)

Code: Select all

command.go.main.lua=love "$(FileDir)"
Note: make sure you are root -- run gksudo scite (if you use Gnome).

This will run LÖVE if you press F5, but only if the opened file is main.lua.

(If you have other tips & tricks for SciTE, please share!)

Re: Using SciTE with LÖVE

Posted: Wed Nov 04, 2009 5:04 pm
by Rabbitbunny
Very useful, speeds up development and reduces window switching.

Re: Using SciTE with LÖVE

Posted: Tue Nov 17, 2009 1:55 pm
by poorenglish
Oh,no!
“The system can not find the specified file”,I can't run it the error occur
Win XP SP3,SciTE Version 1.75 ,Love 0.50

Re: Using SciTE with LÖVE

Posted: Tue Nov 17, 2009 3:53 pm
by bartbes
These were linux instructions, use the full path to the love exe on windows.

Re: Using SciTE with LÖVE

Posted: Wed Nov 18, 2009 1:15 pm
by poorenglish
OK,Thank you,it's very useful

Re: Using SciTE with LÖVE

Posted: Thu Jan 14, 2010 11:46 pm
by hide
I can't do it in windows, tried every kind of mix i can think of but still throwing me
">lua5.1 "main.lua"
>The system cannot find the file specified."

Code: Select all

C:\Program Files (x86)\Dev\LOVE\=love "$(FileDir)"
What's wrong ?

Re: Using SciTE with LÖVE

Posted: Thu Jan 14, 2010 11:57 pm
by kikito
That space on the path looks suspicious.

Have you tried putting the "C:\... " between quotes?

If that doesn't work, you might try adding the LOVE folder to your PATH. Then you will just have to use love "$(FileDir)", like the linux guys.

Or, you can try installing LOVE on a less "special" folder (with no spaces or special characters on it)

Re: Using SciTE with LÖVE

Posted: Fri Jan 15, 2010 7:01 am
by bartbes
You'd need

Code: Select all

command.go.main.lua="C:\Program Files (x86)\Dev\LOVE\love.exe" "$(FileDir)"

Re: Using SciTE with LÖVE

Posted: Fri Jan 15, 2010 6:19 pm
by osuf oboys
Ah, that made things a bit easier on windows. Thanks, Robin.

Re: Using SciTE with LÖVE

Posted: Tue Jul 06, 2010 3:14 pm
by hide
Hey, it's been 6 month but i finally got love working with scite :crazy:

Just modify the end of lua.properties like this :

Code: Select all

# compatible with LuaBinaries for Lua 5.1; will work on both platforms.
##command.compile.*.lua=luac5.1 -o "$(FileName).luc" "$(FileNameExt)"
# Lua 5.1
##command.go.*.lua=lua5.1 "$(FileNameExt)"
# Lua 4.0
#command.go.*.lua=Lua-4.0.exe -c -f "$(FileNameExt)"

command.go.main.lua="C:\Program Files (x86)\Dev\LOVE\love.exe" "$(FileDir)"
I only commented the default lua binaries/5.1/4.0 commands and added the last line.
Just make sure you put your own path to love.exe and your lua file is called "main.lua".

Or just put "command.go.*.lua" in place of "command.go.main.lua".

I hope this will help.

Next year i'll probably find how to make something moving on the screen !

EDIT : It's on the wiki now : http://love2d.org/wiki/Scite