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
[SOLVED] Cannot Run Game With Notepad++
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
[SOLVED] Cannot Run Game With Notepad++
Last edited by i_love_u on Tue Dec 02, 2014 6:43 pm, edited 1 time in total.
Re: Cannot Run Game With Notepad++
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:
If all else fails, try opening a "Command Prompt" (search for cmd, it should be the first result) and typing:
If that works it's a Notepad++ problem; if not then Lua isn't installed correctly.
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
Code: Select all
C:\Program Files\LOVE\love.exe "(whatever your directory was)"
Re: Cannot Run Game With Notepad++
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..
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++
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++
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)"
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++
Thanks to both u guys.. It was the space! Haha [Embarrassed laughter]
Who is online
Users browsing this forum: Bing [Bot] and 1 guest