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

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Tosse
Prole
Posts: 3
Joined: Thu Sep 25, 2014 5:08 pm

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

Post 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:
User avatar
artofwork
Citizen
Posts: 91
Joined: Mon Sep 15, 2014 1:17 am
Location: East Coast USA

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

Post 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.
User avatar
micha
Inner party member
Posts: 1083
Joined: Wed Sep 26, 2012 5:13 pm

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

Post 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.
Tosse
Prole
Posts: 3
Joined: Thu Sep 25, 2014 5:08 pm

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

Post 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.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 6 guests