Page 1 of 1

Can't "drag and drop" folder to run main.lua

Posted: Thu Sep 25, 2014 5:35 pm
by Tosse
Hi,

This is a probably a stupid question but i can't solve it.
I installed löve 64 bit with the installer on Windows 8. On the wiki it says you can drag a folder with a main.lua in it to run the file.
http://www.love2d.org/wiki/Getting_Started

I made a folder "test" with a main.lua containing:

Code: Select all

function love.draw()
love.graphics.print("Test",300,300)
end
I select the folder and drag it to the "Baby inspector window"; Nothing happens. But I can run it with a command prompt (cmd)
"C:\Love\love.exe" "c:\test"

The same problem is on my Macbook, can't drag the folder...

What’s Up With That? :ehem:

Re: Can't "drag and drop" folder to run main.lua

Posted: Thu Sep 25, 2014 6:27 pm
by artofwork
I don't know, I don't use windows 8 or mac, what i do is zip it and use open with and assign zip to be open with love its a pain in the ass but it works... I'm almost tempted to write my own editor.

I'm sure there is an editor out there but none that i found that work or am comfortable with.

Re: Can't "drag and drop" folder to run main.lua

Posted: Thu Sep 25, 2014 6:33 pm
by micha
Tosse wrote:I select the folder and drag it to the "Baby inspector window"; Nothing happens. But I can run it with a command prompt (cmd)
"C:\Love\love.exe" "c:\test"
You have to drag the folder onto the love.exe file (before you run it), not to the actual window.

Re: Can't "drag and drop" folder to run main.lua

Posted: Thu Sep 25, 2014 7:18 pm
by Tosse
micha wrote:
Tosse wrote:I select the folder and drag it to the "Baby inspector window"; Nothing happens. But I can run it with a command prompt (cmd)
"C:\Love\love.exe" "c:\test"
You have to drag the folder onto the love.exe file (before you run it), not to the actual window.
:awesome: Haha, yes that works. Thanks!
Somehow, the guy with the sunglasses looks like he want's a file dropped on him.