Page 1 of 1

[SOLVED] Batch file to quick start game

Posted: Tue Dec 08, 2015 9:23 pm
by Ximici
Hello,

When I want to start my project, I usually make a batch file to start the main.lua . I got the instructions from here: https://love2d.org/wiki/Batch_Start. I always used this methode but it doesn't seem to work since I use Windows 10.
Can I do something similar to 'debug' my game without building a .love file? I use Sublime Text 2. I don't like ZeroBraneStudio.

When I build a .love file, it works. When I use the .bat , I get the standart 'no game found'.

I use love 0.9.2 .

Thanks in advance,

--Ximici

Re: Batch file to quick start game

Posted: Tue Dec 08, 2015 9:55 pm
by davisdude
It needs a period at the end.

Re: Batch file to quick start game

Posted: Wed Dec 09, 2015 1:19 am
by Beelz

Code: Select all

"c:\Program Files\LOVE\love.exe" "%cd%"
Just change the path to where ever your love.exe is and save as something like 'run.bat'.

Re: [SOLVED] Batch file to quick start game

Posted: Wed Dec 09, 2015 7:45 am
by Ximici
Thank you very much!

The code worked with the %cd% .

--Ximici

Re: [SOLVED] Batch file to quick start game

Posted: Wed Dec 09, 2015 11:35 pm
by _j0sh
If you're using Linux, you can open a terminal in the folder that contains your "main.lua" file and run love .. I'm not too sure about Windows, however.