love-eclipse-ldt icon indicating copy to clipboard operation
love-eclipse-ldt copied to clipboard

Running love games from eclipse

Open masonraus opened this issue 8 years ago • 1 comments

Just something I figured out when it comes to running love games from eclipse,

Right click main.lua > run as > run conf > select the current project > runtime interpreter set to alternate interpreter > manage interpreters > add > lua 5.1 with the executable as the love.exe and set the args to . -e "io.stdout:setvbuf('no')"

That will allow the run button to start the game!

masonraus avatar Oct 06 '17 19:10 masonraus

Hi masonraus,

how could I have been so blind? The period at the beginning is key here. Normally, love.exe would not know the path to the project, so I ended up adding ${workspace_loc:bla} to all my run configurations. But as the Interpreter is started with the project folder as its working path, the period points always to the right folder. Sounds totally obvious now... :)

Thanks a bunch, Jules

sirskunkalot avatar Oct 18 '17 21:10 sirskunkalot