Im very new to love2d so please pardon my simple question, but i have a conf.lua and a main.lua script in a folder, and a batch file and i want the batch file to run both scripts in love2d,
i currently have this in the batch file code:
@ECHO OFF
start "" "%PROGRAMFILES%\LOVE\love.exe" .
but it says "no game!" with the plastic piggy so, please help?
Batch file help
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Batch file help
Why don't you just make it into an EXE file?
http://www.love2d.org/wiki/Game_Distribution
Scroll down to "Creating a Windows Executable".
http://www.love2d.org/wiki/Game_Distribution
Scroll down to "Creating a Windows Executable".
- JovialFeline
- Prole
- Posts: 28
- Joined: Wed Jan 08, 2014 2:32 pm
Re: Batch file help
You'll have to hand LÖVE the folder path or it'll load the "no game found" screen. To use your batch as an example:
I would personally just use:
Per Getting Started, you can also add --console after the path to bring up the terminal. You can use this to print debug messages and the like.
Oh! And welcome to the forum.
Code: Select all
@ECHO OFF
start "" "%PROGRAMFILES%\LOVE\love.exe" "C:\path_to\LOVE Projects\PuzzleMania"
Code: Select all
@ECHO OFF
cd "%PROGRAMFILES%\LOVE"
love "C:\path_to\LOVE Projects\PuzzleMania"
Oh! And welcome to the forum.
Probably because he doesn't have something he's finished and wants to distribute yet. Building my work-in-progress code into an executable whenever I want to test a change sounds like a lousy way to use my time.Rehnrald wrote:Why don't you just make it into an EXE file?
Re: Batch file help
perfect, thanks so much!
Who is online
Users browsing this forum: Google [Bot] and 5 guests