Page 1 of 1

[SOLVED] Cannot Run Game With Notepad++

Posted: Sat Nov 29, 2014 1:36 am
by i_love_u
Hi, I am new to both Lua and Love.

I am following the startup at:
https://love2d.org/wiki/Getting_Started

But, the run does not work. I did what the following page instructed me to do:
https://love2d.org/wiki/Notepad%2B%2B

When I go to Run in Notepad++, I type the following:
"C:\Program Files\LOVE\love.exe""$(CURRENT_DIRECTORY)"

Yet, I push the button "Run" and nothing happens... I even saved it as a Macro and tried it like that. Can someone help with this?

P.S. I check the following page, but he isn't having my same issue. So, I am not sure how pertinent it is to this post:
viewtopic.php?f=4&t=77946

Re: Cannot Run Game With Notepad++

Posted: Sat Nov 29, 2014 3:33 am
by iggyvolz
Just making sure... C:\Program Files\LOVE\love.exe does exist and points to löve, right?

You should have a main.lua file existing at the very least... try adding a little bit of code to it. For example:

Code: Select all

function love.draw() love.graphics.write("Love works!") end
If all else fails, try opening a "Command Prompt" (search for cmd, it should be the first result) and typing:

Code: Select all

C:\Program Files\LOVE\love.exe "(whatever your directory was)"
If that works it's a Notepad++ problem; if not then Lua isn't installed correctly.

Re: Cannot Run Game With Notepad++

Posted: Sat Nov 29, 2014 4:02 am
by i_love_u
When I try to run from the command prompt, it keeps giving me:

The filename, directory name, or volume label syntax is incorrect.

I downloaded Lua from here (it was 10 times easier with their exe):
https://code.google.com/p/luaforwindows/

And I have the Lua command line with SciTe here, and it seems to work fine. How else could I debug this?

P.S. Does the main.lua file need to be in the same directory as the interpreter, because i know that this can cause issues with python..

Re: Cannot Run Game With Notepad++

Posted: Sat Nov 29, 2014 4:08 am
by iggyvolz
Downloading lua has nothing to do with it (it's bundled with love). You need to download love from the main page, and provide the path to love.exe.

Re: Cannot Run Game With Notepad++

Posted: Sat Nov 29, 2014 4:10 am
by Azhukar
You may be missing a space between " "

wiki

"c:\your\path\to\love.exe" "$(CURRENT_DIRECTORY)"

vs yours

"C:\Program Files\LOVE\love.exe""$(CURRENT_DIRECTORY)"

Re: Cannot Run Game With Notepad++

Posted: Sat Nov 29, 2014 4:23 am
by i_love_u
Thanks to both u guys.. It was the space! Haha [Embarrassed laughter]