Page 1 of 1

Eclipse workspace setup for subgame

PostPosted: Sat Nov 05, 2016 10:43
by LouisDB
Hi,

I'm trying to setup Eclipse to make a subgame by following this guide : here
It seems outdated because for what I understand, Koneki is not maintained anymore, I couldn't find it, so I use LDT.
I tried many thing, I cloned the minetest_game repo, I'm not sure if I have to clone the minetest repo. I tried putting minetest_game as a submodule in the games directory. Anyway, it won't launch Minetest. It's probably a problem with the run config, like wrong working dir or wrong init file.

Can somebody help me setup my workspace ?
Thanks in advance.

Re: Eclipse workspace setup for subgame

PostPosted: Thu Nov 10, 2016 08:31
by LouisDB
Nobody knows how to setup Eclipse for Minetest ??

Re: Eclipse workspace setup for subgame

PostPosted: Thu Nov 10, 2016 11:23
by firefox
i have no idea what eclipse is, but to run a subgame you just need to move it to the "games" folder inside the "minetest" folder in your home directory.
then the game appears on the bottom of the menu screen in minetest.

to make a new subgame you just need any text editor.
copying the default minetest_game can be helpful if you don't know where to start, as it contains the basic setup for a functional game.
you can then add more mods and/or make changes to make your game different from default minetest_game.

does this help? =(^.^)=

if not, tell what exactly you want to do :)

Re: Eclipse workspace setup for subgame

PostPosted: Thu Nov 10, 2016 20:42
by LouisDB
Eclipse is an integrated development environment. I want to use it to code a subgame. I don't like to use a text editor, I need a IDE with auto-completion. So if someone can teach me how to launch Minetest with Eclipse, it would be nice. Maybe it's more a Lua problem, I don't quite understand how Lua works.

Re: Eclipse workspace setup for subgame

PostPosted: Thu Nov 10, 2016 20:56
by firefox
LouisDB wrote:I need a IDE with auto-completion

that could be complicated...
i know something like this exists for html and similar languages, but Lua is different.

i don't know Lua either, but i know that the engine is written in C and uses a Lua based API to add game content.
i guess an auto-completion method for this would have to be specifically created...

Re: Eclipse workspace setup for subgame

PostPosted: Thu Nov 10, 2016 21:47
by LouisDB
Too bad, I guess I'll have to use a gold old text editor, it's gonna be a pain ...

Re: Eclipse workspace setup for subgame

PostPosted: Fri Jan 06, 2017 09:14
by cd2
LouisDB wrote:Too bad, I guess I'll have to use a gold old text editor, it's gonna be a pain ...

You could use atom. Idk if it has auto completion for lua, but I am sure that there is a package for that.
https://atom.io/

PS : Sorry for the late reply.

Re: Eclipse workspace setup for subgame

PostPosted: Fri Jan 06, 2017 10:46
by hajo
LouisDB wrote:I'm trying to setup Eclipse to make a subgame

So, essentially mod-development, as opposed to working on minetest's core.

Eclipse is a fairly big IDE, aimed at working with Java/ big projects / many files etc.
Most likely overkill for modding.

If all you need is an editor that supports multiple files, syntax-highlighting and a launcher,
try a lightweight IDE like Geany, or editors like AkelPad and Notepad++ .

LouisDB wrote:I need a IDE with auto-completion

Auto-complete for plain lua, or for the various minetest-api's ?

Re: Eclipse workspace setup for subgame

PostPosted: Mon Jan 30, 2017 09:59
by LouisDB
Thanks for the replies :)
I wanted to use Eclipse because I used to it. After doing a bit of research, it seems that it is not suitable for Lua, even if there is a plugin, because I won't be able to use the graphical debugger.

Re: Eclipse workspace setup for subgame

PostPosted: Tue Jan 31, 2017 21:21
by lightseer
I located some information about the Koneki debugger setup: http://wiki.eclipse.org/Koneki/LDT/User ... s/Debugger

I'm not sure if I want to learn Eclipse myself, but that looks like instructions.