notepad++ and love - a suggestion

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Pliskin09
Citizen
Posts: 89
Joined: Fri Jul 24, 2009 8:30 am

notepad++ and love - a suggestion

Post by Pliskin09 » Sun Dec 13, 2009 1:59 pm

someone should create a NP++ plugin that allows you to read/edit/add to/save the contents of main.lua (and other lua files) directly inside a *.love file. thought i'd throw the idea out there. having to make a new *.love file each time to test a single thing is tedious

User avatar
Voker57
Prole
Posts: 29
Joined: Mon Nov 03, 2008 9:38 am
Location: Russia, Krasnodar
Contact:

Re: notepad++ and love - a suggestion

Post by Voker57 » Sun Dec 13, 2009 2:29 pm

dunno how's it on windows, but in linux you can run "love mydir/" to run folder instead of zipped .love archive of it.

User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: notepad++ and love - a suggestion

Post by Robin » Sun Dec 13, 2009 2:41 pm

Voker57 wrote:dunno how's it on windows, but in linux you can run "love mydir/" to run folder instead of zipped .love archive of it.
It's possible on every platform LÖVE supports. :monocle:
Help us help you: attach a .love.

User avatar
thelinx
The Strongest
Posts: 847
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

Re: notepad++ and love - a suggestion

Post by thelinx » Sun Dec 13, 2009 4:03 pm

Yeah, back when I still used windows I had this folder layout:

Code: Select all

Love projects/
  Game1/
  Game2/
  Shortcut to LOVE.exe
Then to try a game I'd just drag and drop the folder on the shortcut.

User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: notepad++ and love - a suggestion

Post by TechnoCat » Sun Dec 13, 2009 4:13 pm

You can also use a zip archiver such as WinRAR and open up the love file to open the files from in there and edit those. WinRAR just asks if you want to update the archive whenever you make a change.

User avatar
kalle2990
Party member
Posts: 245
Joined: Sat Sep 12, 2009 1:17 pm
Location: Sweden

Re: notepad++ and love - a suggestion

Post by kalle2990 » Tue Dec 29, 2009 6:37 pm

I can't get the "love mydir/" to work, the only thing opening is the default love window. Am I doing something wrong? I enter (without quotes) "C:/love/love.exe mydir/"

User avatar
bartbes
Sex machine
Posts: 4944
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: notepad++ and love - a suggestion

Post by bartbes » Tue Dec 29, 2009 6:48 pm

mydir was an example name of the dir that contains the main.lua, change it to what it really is and it'll work.

iza
Prole
Posts: 10
Joined: Sat Jul 11, 2009 7:16 pm

Re: notepad++ and love - a suggestion

Post by iza » Tue Dec 29, 2009 7:31 pm

It doesn't work with the trailing slash on the directory path (quite annoying actually -- I use programmer's notepad and there's no way to remove it in the built-in path variable, so I had to hard-code the directory in my run script);

try C:\love\love.exe "C:\path-to-my-dir\mydir" instead


Edit: Upon further examination, it's a bit more finicky than that:

WITHOUT quotes on the directory path, it works with or without the trailing slash
ie
love.exe C:\path-to-my-dir\mydir
love.exe C:\path-to-my-dir\mydir\
both work; but of course if you have spaces in your path, you need quotes

WITH quotes on the directory path (if your path has spaces), it only works without the trailing slash
ie
love.exe "C:\path-to-my-dir\mydir"
works
love.exe "C:\path-to-my-dir\mydir\"
does not

User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: notepad++ and love - a suggestion

Post by Robin » Tue Dec 29, 2009 8:30 pm

iza wrote:WITH quotes on the directory path (if your path has spaces), it only works without the trailing slash
ie
love.exe "C:\path-to-my-dir\mydir"
works
love.exe "C:\path-to-my-dir\mydir\"
does not
With \" you can include a literal ". Change it to

Code: Select all

love.exe "C:\path-to-my-dir\mydir\\"
and it should work
Help us help you: attach a .love.

iza
Prole
Posts: 10
Joined: Sat Jul 11, 2009 7:16 pm

Re: notepad++ and love - a suggestion

Post by iza » Tue Dec 29, 2009 9:28 pm

Robin wrote:With \" you can include a literal ". Change it to

Code: Select all

love.exe "C:\path-to-my-dir\mydir\\"
and it should work
Ah-HA so that's why; I never thought of that; thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests