Page 1 of 1

[SOLVED]Help: Getting back into LÖVE but can't make my minimal "test" game to run

Posted: Tue Feb 21, 2017 8:55 pm
by nice
So I haven't used Löve2D in 2 years and I want to get back into it.

So by following the Löve2D:s "Getting started" example and saved it as a main.lua file.

I can get the "game" to run by dragging the folder to the .exe file but I think I screw it up when I try to run it by using the Command Prompt (I think it's called?) I either get "is not recognized as an internal or external command, operable program or batch file" or I get the "Super Toast" screen.

I've tried this:
C:\>\Program Files\LOVE\love.exe C:\LocalCommon\HelloWorld

C:\>cd LocalCommon

C:\LocalCommon>HelloWorld

C:\LocalCommon>HelloWorld\main.lua


The difference here is that I have it in my C: --> LocalCommon --> HelloWorld
I've changed the directory so that I'm inside my "LocalCommon" folder (where I have HelloWorld and my main.lua file) and I'm fairly sure that I shouldn't add "\main.lua" at the end in the "Command prompt".

So what am I doing wrong?

Re: Help: Getting back into LÖVE but can't make my minimal "test" game to run

Posted: Tue Feb 21, 2017 11:52 pm
by TheOddByte
Have you tried to create a shortcut to the love.exe file and placed that in the LocalCommon folder, and then dragged the folder onto the shortcut?

Re: Help: Getting back into LÖVE but can't make my minimal "test" game to run

Posted: Wed Feb 22, 2017 12:18 am
by zorg
that first line is a bit suspicious to me...
C:\>\Program Files\
Right there...
you probably want to cd into the folder where love.exe is, THEN give it the path to the folder containing your main.lua

C:\>cd "C:\Program Files\LOVE\"
C:\Program Files\LOVE\>love.exe C:\LocalCommon\HelloWorld\
^try that.

Re: Help: Getting back into LÖVE but can't make my minimal "test" game to run

Posted: Wed Feb 22, 2017 6:12 pm
by nice
zorg wrote: Wed Feb 22, 2017 12:18 am C:\>cd "C:\Program Files\LOVE\"
C:\Program Files\LOVE\>love.exe C:\LocalCommon\HelloWorld\
^try that.
It worked!

First I had to change the directory to the LOVE folder.
  • C:\>cd "C:\Program Files\LOVE\"
After that's done I just need to type love.exe and the folder where my "game is saved in.
  • C:\Program Files\LOVE\>love.exe C:\LocalCommon\HelloWorld\
Once again thanks for the help!