[SOLVED] Cannot Run Game With Notepad++

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
i_love_u
Prole
Posts: 28
Joined: Sat Nov 29, 2014 12:13 am

[SOLVED] Cannot Run Game With Notepad++

Post 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
Last edited by i_love_u on Tue Dec 02, 2014 6:43 pm, edited 1 time in total.
iggyvolz
Prole
Posts: 14
Joined: Sun Nov 23, 2014 11:11 pm

Re: Cannot Run Game With Notepad++

Post 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.
User avatar
i_love_u
Prole
Posts: 28
Joined: Sat Nov 29, 2014 12:13 am

Re: Cannot Run Game With Notepad++

Post 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..
iggyvolz
Prole
Posts: 14
Joined: Sun Nov 23, 2014 11:11 pm

Re: Cannot Run Game With Notepad++

Post 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.
User avatar
Azhukar
Party member
Posts: 478
Joined: Fri Oct 26, 2012 11:54 am

Re: Cannot Run Game With Notepad++

Post 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)"
User avatar
i_love_u
Prole
Posts: 28
Joined: Sat Nov 29, 2014 12:13 am

Re: Cannot Run Game With Notepad++

Post by i_love_u »

Thanks to both u guys.. It was the space! Haha [Embarrassed laughter]
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests