notepad++ and love - a suggestion
notepad++ and love - a suggestion
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
Re: notepad++ and love - a suggestion
dunno how's it on windows, but in linux you can run "love mydir/" to run folder instead of zipped .love archive of it.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: notepad++ and love - a suggestion
It's possible on every platform LÖVE supports.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.
Help us help you: attach a .love.
Re: notepad++ and love - a suggestion
Yeah, back when I still used windows I had this folder layout:
Then to try a game I'd just drag and drop the folder on the shortcut.
Code: Select all
Love projects/
Game1/
Game2/
Shortcut to LOVE.exe
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: notepad++ and love - a suggestion
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.
Re: notepad++ and love - a suggestion
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/"
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: notepad++ and love - a suggestion
mydir was an example name of the dir that contains the main.lua, change it to what it really is and it'll work.
Re: notepad++ and love - a suggestion
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
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
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: notepad++ and love - a suggestion
With \" you can include a literal ". Change it toiza 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
Code: Select all
love.exe "C:\path-to-my-dir\mydir\\"
Help us help you: attach a .love.
Re: notepad++ and love - a suggestion
Ah-HA so that's why; I never thought of that; thanksRobin wrote:With \" you can include a literal ". Change it toand it should workCode: Select all
love.exe "C:\path-to-my-dir\mydir\\"
Who is online
Users browsing this forum: Bing [Bot] and 12 guests