Page 1 of 1

Love2d won't build with Sublime Text 3

Posted: Tue Jul 21, 2015 6:39 am
by VFXed
I've tried all different versions of Sublime Text. I checked, and LuaLove is checked in the Build System. Whenever I try to build a program I wrote, this pops up:

[WinError 2] The system cannot find the file specified
[cmd: ['lua', 'C:\\Khavan\\main.lua']]
[dir: C:\Khavan]
[path: C:\ProgramData\Oracle\Java\javapath;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Autodesk\Backburner\;C:\Program Files (x86)\QuickTime\QTSystem\]
[Finished]

I have no idea what this means. I checked the location of the lua file, but it still exists and the file is still there.

Also, here's the simple code I tried to run:

function love.draw()
love.graphics.print("Hello World!", 400, 300)
end

Re: Love2d won't build with Sublime Text 3

Posted: Tue Jul 21, 2015 7:59 pm
by BOT-Brad
This is the custom build system I have for ST3.

Code: Select all

{
	"shell": true,
	"cmd": ["B:/Program Files (x86)/LOVE/love.exe", "${project_path:${folder}}"]
}
Just change that path to the path of love.exe on your machine and as long as you have set the project folder as your root folder (Project -> Add Folder to Project) it should run fine.

Re: Love2d won't build with Sublime Text 3

Posted: Mon Aug 03, 2015 2:08 pm
by adrix89
Is there any way to get the love console to work?

Any build systems I try does not have the console even if I have it in the config file set.

Re: Love2d won't build with Sublime Text 3

Posted: Mon Aug 03, 2015 8:12 pm
by Chef_Panic
adrix89 wrote:Is there any way to get the love console to work?

Any build systems I try does not have the console even if I have it in the config file set.
Add the following at the top of your main.lua file:

Code: Select all

io.stdout:setvbuf("no")
More about this here: https://love2d.org/wiki/Sublime_Text_2

Re: Love2d won't build with Sublime Text 3

Posted: Sat Oct 15, 2016 4:51 pm
by fatfatson
io.stdout:setvbuf("no")
still no console when launch from sublime3

Re: Love2d won't build with Sublime Text 3

Posted: Sun Oct 16, 2016 5:36 am
by zorg