Cuberite Forum
UseFull Plugins Requests - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Requests (https://forum.cuberite.org/forum-3.html)
+--- Thread: UseFull Plugins Requests (/thread-1423.html)

Pages: 1 2 3


RE: UseFull Plugins Requests - Shiva92 - 03-30-2014

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).


RE: UseFull Plugins Requests - NiLSPACE - 03-30-2014

I wish it was that simple, but the overall architecture of MCServer is completely different from the vanilla/bukkit version. Also our plugins are written in Lua not in C++ Wink


RE: UseFull Plugins Requests - Shiva92 - 03-30-2014

Sorry for the question xD

Why Lua?.


RE: UseFull Plugins Requests - NiLSPACE - 03-30-2014

I have no idea why FakeTruth choose Lua, but I'm really glad he did it instead of C++ because it's much simpler.


RE: UseFull Plugins Requests - LO1ZB - 03-30-2014

I can only a bit C# programming, including basic OOP.
If I want to learn LUA and write plugins, where should I start?


RE: UseFull Plugins Requests - NiLSPACE - 03-30-2014

Look at some code from different plugins.


RE: UseFull Plugins Requests - tonibm19 - 03-30-2014

And don't forget to look at http://mc-server.xoft.cz/LuaAPI/ also

CombatLog will probably be done tomorrow. I have a working version, but it still needs some work.


RE: UseFull Plugins Requests - bearbin - 03-30-2014

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.


RE: UseFull Plugins Requests - xoft - 03-30-2014

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.


RE: UseFull Plugins Requests - Shiva92 - 03-30-2014

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?