Page 1 of 1

I can't get Love 0.10.1 to run on notepad++!

Posted: Thu Jul 21, 2016 8:19 am
by Pridegames
I need help to get Love to work on notepad++. Am having problems getting it to work please help. :cry:

Re: I can't get Love 0.10.1 to run on notepad++!

Posted: Thu Jul 21, 2016 11:22 am
by Plu
You're going to have explain a bit more about what's going wrong... what exactly are you trying to do and which parts don't work?

Re: I can't get Love 0.10.1 to run on notepad++!

Posted: Thu Jul 21, 2016 4:34 pm
by cval
Just a wild guess, try to bind

Code: Select all

"full_path_to_love_executable" $(CURRENT_DIRECTORY) "--console"
to a keystroke of your choice. Where full path could be, for example

Code: Select all

C:\Program Files\LOVE\love.exe
and press that combination while you are editing main.lua
Note that this will invoke love's own console, it will not make you able to see love's output in npp console.

Re: I can't get Love 0.10.1 to run on notepad++!

Posted: Thu Jul 21, 2016 5:54 pm
by HugoBDesigner
To make my own life easier, I put all the LÖVE versions inside my Notepad++ folder, so I can run the same command:

"$(NPP_DIRECTORY)\LOVE\love-0.X.X-winX\love.exe" $(CURRENT_DIRECTORY)

Of course, one command per LÖVE version (so it can be love-0.10.1-win32, love-0.10.0-win32, love-0.9.2-win64, etc).

You can use both the Notepad's built in "Run" command (F5), then save the line of code and attribute it a shortcut. Or you can use the Npp_Exec plugin (I had problems with Notepad's Run before).

Then you can run the game by pressing your shortcut key of choice. Just make sure the file you're running is on the same folder and level as main.lua (files in subfolders won't work!)

Re: I can't get Love 0.10.1 to run on notepad++!

Posted: Fri Jul 22, 2016 10:19 pm
by Positive07
I have a gist with some code and configurations for NppExec plugin which I can guarantee works rather well, even if you don't want or need the "Go to error" functionality", just check the readme in that case which has a .bat file and the command NppExec runs.

The batch file is needed because you can't get LÖVE to run directly from NppExec and get Console ouput without it