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

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
nice
Party member
Posts: 191
Joined: Sun Sep 15, 2013 12:17 am
Location: Sweden

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

Post 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?
Last edited by nice on Wed Feb 22, 2017 6:13 pm, edited 1 time in total.
:awesome: Have a good day! :ultraglee:
User avatar
TheOddByte
Prole
Posts: 35
Joined: Sun Dec 15, 2013 7:15 pm

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

Post 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?
What's the object-oriented way to get wealthy? Inheritance.
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

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

Post 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.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
nice
Party member
Posts: 191
Joined: Sun Sep 15, 2013 12:17 am
Location: Sweden

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

Post 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!
:awesome: Have a good day! :ultraglee:
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 0 guests