.love files working, but cmd not detecting "love" ?

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
User avatar
OmarShehata
Party member
Posts: 259
Joined: Tue May 29, 2012 6:46 pm
Location: Egypt
Contact:

.love files working, but cmd not detecting "love" ?

Post by OmarShehata »

So I've just downloaded and install Love2d and have been prowling the wiki and whatnot, however I'm not sure if I installed Love correctly.

The .love files from the demo's are working with no problem, however when I run "love --version" in the cmd it tells me that it isn't recognized. I'm on Windows 7.

I first installed the x32 bit version, then I realized my operating system was x64 bit, uninstalled then installed the right one. So I'm not sure if I messed anything up. Should I just continue and ignore this?

Thanks in advance!
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: .love files working, but cmd not detecting "love" ?

Post by bartbes »

It sounds like you haven't set up your PATH correctly, sadly, it's been too long for me to remember how to set that on windows, but I'm pretty sure other people here can help you out.

In the mean time, if you're in the installation directory, that command should work.
User avatar
Kadoba
Party member
Posts: 399
Joined: Mon Jan 10, 2011 8:25 am
Location: Oklahoma

Re: .love files working, but cmd not detecting "love" ?

Post by Kadoba »

Go to start > control panel > system > advanced > environmental variables. In the user variables window check for a variable named "PATH". If it's not there then create it and put your love directory as the value. If PATH already exists then click edit and then APPEND to the end of the value field a semicolon followed by the path to your love directory (example ";C:/Program Files/LOVE"). Be sure that you do not erase the previous value and only add on to it. You'll probably need administrator rights to do this
User avatar
OmarShehata
Party member
Posts: 259
Joined: Tue May 29, 2012 6:46 pm
Location: Egypt
Contact:

Re: .love files working, but cmd not detecting "love" ?

Post by OmarShehata »

Thanks guys! It seems to work now.

When I type "love" it opens that demo application. Typing "love --version" doesn't do anything though. This isn't really a big issue right? I just want to double check this won't bite me in the ass in the future or anything, since I can compile my own code without any problems and everything else seems to be working.
User avatar
Kadoba
Party member
Posts: 399
Joined: Mon Jan 10, 2011 8:25 am
Location: Oklahoma

Re: .love files working, but cmd not detecting "love" ?

Post by Kadoba »

love --version doesn't do anything for me either but I never use it. Honestly it's very hard to mess up a love installation. I think you're fine.
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: .love files working, but cmd not detecting "love" ?

Post by Boolsheet »

The reason the version doesn't show up in the console is because LÖVE currently does not redirect any output to the console of the parent process. Windows handles its consoles differently compared to other operating systems and getting around that requires some careful code.

If you want to see the output, redirect the output to a file.

Code: Select all

love.exe --version > love_version.txt
Shallow indentations.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests