Page 1 of 1

Need Help with seting up editor for LUA

Posted: Thu Feb 07, 2013 8:39 pm
by senecjusz
I'm not professional programmer, but I used to do some coding in VBA. I need to work a little with LUA now. The main issue for me is lack of code and variable names completion.

I'm trying to setup editor so I can easly programm with lua, but I'm failing.
For an example I have a code

Code: Select all

myclass = { }
myclass.Radius = 100;

function myclass.EnemiesNear(lRadius)
   -- do something
return 1
end

function myclass.run
local var1
var1 = myclass.>><<.EnemiesNear(myclass.>><<.Radius)

end;


I have put (>><<) in place when I'm expectig to see a window wher I can choose variable name or function name (just like on this pic :
http://www.zeusedit.com/images/lookcode.png) I have spend 3 hours already .. but no success.

Posted: Thu Feb 07, 2013 10:16 pm
by jussij
[I'm trying to setup editor so I can easly program with lua, but I'm failing.

Lua is a dynamic language. It is a like a host of other dynamic languages like Python, Ruby, etc.

What this means is a lot of your code is determined at run time.

Compare this to Visual Basic which was a static language (i.e. you had to compile the code before you could run it).

Now when it comes to autocomplete for dynamic languages, it is very difficult to implement, because the autocomplete details you want to present to the user are not available until the code actually runs.

For this reason autocomplete will not work inside of Zeus for these types of languages.

You might want to try LuaEclipse: http://luaeclipse.luaforge.net/

I've not used this IDE myself, but from what I have read, most Eclipse based language IDEs tend to embed the language inside the IDE which means they have a better chance of doing such autocomplete.

Cheers Jussi