Setting up Eclipse for <3 love <3

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
IndieMedia
Prole
Posts: 7
Joined: Sun Jul 01, 2012 2:12 pm

Setting up Eclipse for <3 love <3

Post by IndieMedia »

After several hours of fiddling I got eclipse "juno" on ubuntu to run my game without me fiddling in commandline.
Assuming you already have Eclipse installed

Step one: Open Market place and search for lua.
Step two: Find and click the install button for Lua Development tools (Koneki)
Step three: after installation create a new Lua project.
Step four: click the down arrow next to the Green run button with the red tool box.
Step five: Right click program and click new.
Step six: Name the new config love (or your current project name) then browse the file system looking for the love file for me this was /usr/bin/love
Step seven: under arguments add this: ${workspace_loc:/YOURPROJECT/src}
Please replace YOURPROJECT with your projects name
Step eight: click apply and then run


There will be more efficent methods but this is how I did it anyways, Im a java developer so Im used to eclipse.
kruegsch
Prole
Posts: 3
Joined: Mon Jul 16, 2012 8:21 pm

Re: Setting up Eclipse for <3 love <3

Post by kruegsch »

I just updated the luadoc to v0.8.0 for LDT. Get the .zip and add it as external lib to your project to get documentation and auto-completion.
https://github.com/mkosler/LOVELuaDoc
User avatar
IndieMedia
Prole
Posts: 7
Joined: Sun Jul 01, 2012 2:12 pm

Re: Setting up Eclipse for <3 love <3

Post by IndieMedia »

Windows is the same thing.... exept where love is located e.g. C:\Program Files (x86)\LOVE\love.exe
and project path seems to work too. so you can do ${project_loc}/src

In windows eclipse auto-matily outputs the console into the eclipse run console
User avatar
IndieMedia
Prole
Posts: 7
Joined: Sun Jul 01, 2012 2:12 pm

Re: Setting up Eclipse for <3 love <3

Post by IndieMedia »

kruegsch wrote:I just updated the luadoc to v0.8.0 for LDT. Get the .zip and add it as external lib to your project to get documentation and auto-completion.
https://github.com/mkosler/LOVELuaDoc
Hmm Cant seem it get that to work....
kruegsch
Prole
Posts: 3
Joined: Mon Jul 16, 2012 8:21 pm

Re: Setting up Eclipse for <3 love <3

Post by kruegsch »

IndieMedia wrote:
kruegsch wrote:I just updated the luadoc to v0.8.0 for LDT. Get the .zip and add it as external lib to your project to get documentation and auto-completion.
https://github.com/mkosler/LOVELuaDoc
Hmm Cant seem it get that to work....
The files need to be in the root level of the zip, but github delivers the files in a directory. Just re-zip the files only or use the fixed zip in my attachment.
I made a fresh install on my windows machine and took some pictures of the procedures.

"README.txt" in "love2D_LDT_setup.zip"

Code: Select all

.:: Koneki LDT ::.
 Use the Eclipse Marketplace to install Koneki LDT [ldt1.png - ldt8.png]

 .:: LÖVE API documentation ::.
1. get zip file: https://github.com/mkosler/LOVELuaDoc/zipball/master
2. unzip "mkosler-LOVELuaDoc-fd3cc55.zip" --> folder "mkosler-LOVELuaDoc-fd3cc55"
3. select all files in "mkosler-LOVELuaDoc-fd3cc55" and create a new zip
4. add the new zip as file to your project (drag'n'drop)
5. use it as library [ldt9.png]
6. have fun with luadoc![ldt10.png]

DATE: July-17-2012
Attachments
mkosler-LOVELuaDoc-fd3cc55.zip
ready to use zip - love2Dv0.8.0 API docs for LDT
(38.45 KiB) Downloaded 363 times
love2D_LDT_setup.zip
pictures of a fresh install
(109 KiB) Downloaded 418 times
teenaviator
Prole
Posts: 2
Joined: Tue Mar 20, 2012 10:07 pm

Re: Setting up Eclipse for <3 love <3

Post by teenaviator »

kruegsch wrote:
IndieMedia wrote:
kruegsch wrote:I just updated the luadoc to v0.8.0 for LDT. Get the .zip and add it as external lib to your project to get documentation and auto-completion.
https://github.com/mkosler/LOVELuaDoc
Hmm Cant seem it get that to work....
The files need to be in the root level of the zip, but github delivers the files in a directory. Just re-zip the files only or use the fixed zip in my attachment.
I made a fresh install on my windows machine and took some pictures of the procedures.

"README.txt" in "love2D_LDT_setup.zip"

Code: Select all

.:: Koneki LDT ::.
 Use the Eclipse Marketplace to install Koneki LDT [ldt1.png - ldt8.png]

 .:: LÖVE API documentation ::.
1. get zip file: https://github.com/mkosler/LOVELuaDoc/zipball/master
2. unzip "mkosler-LOVELuaDoc-fd3cc55.zip" --> folder "mkosler-LOVELuaDoc-fd3cc55"
3. select all files in "mkosler-LOVELuaDoc-fd3cc55" and create a new zip
4. add the new zip as file to your project (drag'n'drop)
5. use it as library [ldt9.png]
6. have fun with luadoc![ldt10.png]

DATE: July-17-2012
This doesn't work for me at all. I'm using Eclipse Juno and the current latest version of LDT. I used it as a library and restarted Eclipse. Then I did the same thing like five times after that with no results. I did try to put the LuaDoc files into my /src/ folder and I got the code completion when it was in there, but once I removed it from that directory, it didn't work again! Could you give me some light on the matter please, make a video or something even, please?
teenaviator
Prole
Posts: 2
Joined: Tue Mar 20, 2012 10:07 pm

Re: Setting up Eclipse for <3 love <3

Post by teenaviator »

I sorted it out. I tried removing the Lua 5.1 linked library from the build path and then re-added the LuaDoc. I think it was a conflict between the previous definitions of Lua's API and the LÖVE LuaDoc's definitions.
demicanadian
Prole
Posts: 1
Joined: Thu May 23, 2013 10:48 am

Re: Setting up Eclipse for <3 love <3

Post by demicanadian »

It look like it needs to be over Lua api in "order and export" tab.
User avatar
Plu
Inner party member
Posts: 722
Joined: Fri Mar 15, 2013 9:36 pm

Re: Setting up Eclipse for <3 love <3

Post by Plu »

Sweet! Eclipse with love docs is such an improvement over notepad++ :)
peachoftree
Prole
Posts: 1
Joined: Mon Mar 17, 2014 9:53 pm

Re: Setting up Eclipse for <3 love <3

Post by peachoftree »

IndieMedia wrote:
Step seven: under arguments add this: ${workspace_loc:/YOURPROJECT/src}
Please replace YOURPROJECT with your projects name


There will be more efficent methods but this is how I did it anyways, Im a java developer so Im used to eclipse.

if you put ${workspace_loc:/${project_name:/src}} in arguments it will run on any project, not just one
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 42 guests