Posts: 9
Threads: 2
Joined: Mar 2014
Thanks: 1
Given 1 thank(s) in 1 post(s)
Question:
But no one decompile .jar file bukkit and copy semantics/logic for C++ without problem of visibility istructions?. Im noob on java/c++. i know the minimum (vectors, pointers, keywords basic.. ).
Then?.
(Sorry as always for my ban eng xD).
Posts: 9
Threads: 2
Joined: Mar 2014
Thanks: 1
Given 1 thank(s) in 1 post(s)
Sorry for the question xD
Why Lua?.
Posts: 4,628
Threads: 115
Joined: Dec 2011
Thanks: 693
Given 494 thank(s) in 423 post(s)
I have no idea why FakeTruth choose Lua, but I'm really glad he did it instead of C++ because it's much simpler.
Posts: 302
Threads: 8
Joined: Feb 2014
Thanks: 48
Given 30 thank(s) in 26 post(s)
I can only a bit C# programming, including basic OOP.
If I want to learn LUA and write plugins, where should I start?
Posts: 4,628
Threads: 115
Joined: Dec 2011
Thanks: 693
Given 494 thank(s) in 423 post(s)
Look at some code from different plugins.
Posts: 1,469
Threads: 57
Joined: Jul 2012
Thanks: 66
Given 127 thank(s) in 108 post(s)
Lua was chosen because it's super easy to integrate into C++, and it's very fast and easy to write.
The only really bad thing about it is that it doesn't have that many good libraries.
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1074 thank(s) in 852 post(s)
Actually Lua has many good libraries, but installing them is not trivial enough for most people. Have a look at LuaRocks, the amount of libraries available there is impressive. And there are more repositories like this, LuaDist being one of them if I remember correctly.
I believe Lua was chosen because it's rather easy to integrate, is fast and is both simple to learn for beginners and powerful enough for advanced stuff. Also it is a somewhat standard scripting language for game engines nowadays.
C++ is not a good language for plugins because it requires compilation, which means every plugin would either be a platform-dependent binary file, or a source distribution which the users would have compile for themselves. Not so great stuff for casual users.
Posts: 9
Threads: 2
Joined: Mar 2014
Thanks: 1
Given 1 thank(s) in 1 post(s)
03-30-2014, 10:04 AM
(This post was last modified: 03-30-2014, 10:19 AM by Shiva92.)
oook. I have download a ide for lua and i read a basic tutorial in your site.
I just have to improve. (google traductor)
Edit-----
Where i can donate?