How do I edit lua files, while the file is still inside the .love file?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Gamers
Prole
Posts: 2
Joined: Wed Apr 15, 2020 11:40 pm

How do I edit lua files, while the file is still inside the .love file?

Post by Gamers »

Hi, I'm getting started with Lua and Love2d, but there's this sort of annoying problem, and that problem is that I can only edit the files if the file is out of the .love file :(
Please respond on some way to fix this, because I don't want to have the process of making any future games I make to be tedious.
User avatar
pgimeno
Party member
Posts: 3689
Joined: Sun Oct 18, 2015 2:58 pm

Re: How do I edit lua files, while the file is still inside the .love file?

Post by pgimeno »

The program does not need to be in a .love file in order to be executed. You develop using a folder with regular files instead of a .love file, and then pack it into a .love file when ready.
User avatar
zorg
Party member
Posts: 3470
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: How do I edit lua files, while the file is still inside the .love file?

Post by zorg »

When ready to distribute*; On probably all operating systems, no matter which you use, you can create some type of script that can run the love executable with the path to the project you want to run. on windows, a simple file called "run.bat" with the following contents would suffice.

Code: Select all

"C:\...\love.exe" .
where ... is the actual path, including changing the drive letter if you need to, of course.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
Gamers
Prole
Posts: 2
Joined: Wed Apr 15, 2020 11:40 pm

Re: How do I edit lua files, while the file is still inside the .love file?

Post by Gamers »

zorg wrote: Thu Apr 16, 2020 5:01 am When ready to distribute*; On probably all operating systems, no matter which you use, you can create some type of script that can run the love executable with the path to the project you want to run. on windows, a simple file called "run.bat" with the following contents would suffice.

Code: Select all

"C:\...\love.exe" .
where ... is the actual path, including changing the drive letter if you need to, of course.
Thanks, sorry for the late reply.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 8 guests