MCServer Lua implementation
#20
I think the best solution for this is to simply write your own Lua "libraries" in a separate .lua file which can then be included in each plugin that uses this shared code. If I would run all plugins on a single stack and plugin B is dependant on plugin A for a certain function, what will happen if plugin A gets disabled? I think the system will be far more robust if plugins just load each "library" in their own stack so they wont interfere with each other. If there is a certain need to call a function on an other plugin, it can be done by calling a C++ function ( not right now, but in the futureTongue ).

Since I can call a Lua function from C++ by simply giving the name of a function as a string, so can you from Lua.
Reply
Thanks given by:


Messages In This Thread
MCServer Lua implementation - by Tybor - 03-02-2011, 04:09 AM
RE: MCServer Lua implementation - by FakeTruth - 03-02-2011, 05:57 AM
RE: MCServer Lua implementation - by Tybor - 03-02-2011, 07:27 AM
RE: MCServer Lua implementation - by FakeTruth - 03-02-2011, 07:25 AM
RE: MCServer Lua implementation - by codename_B - 03-02-2011, 07:48 AM
RE: MCServer Lua implementation - by Tybor - 03-03-2011, 03:01 AM
RE: MCServer Lua implementation - by FakeTruth - 03-03-2011, 07:05 AM
RE: MCServer Lua implementation - by Tybor - 03-04-2011, 03:16 AM
RE: MCServer Lua implementation - by FakeTruth - 03-04-2011, 04:41 AM
RE: MCServer Lua implementation - by Tybor - 03-04-2011, 04:51 AM
RE: MCServer Lua implementation - by Revolucas - 03-04-2011, 08:44 AM
RE: MCServer Lua implementation - by Tybor - 03-05-2011, 03:11 AM
RE: MCServer Lua implementation - by Revolucas - 03-18-2011, 12:46 PM
RE: MCServer Lua implementation - by Tybor - 03-19-2011, 04:13 AM
RE: MCServer Lua implementation - by FakeTruth - 03-04-2011, 10:54 PM
RE: MCServer Lua implementation - by Revolucas - 03-19-2011, 11:05 AM
RE: MCServer Lua implementation - by Tybor - 03-19-2011, 05:48 PM
RE: MCServer Lua implementation - by Revolucas - 03-19-2011, 07:49 PM
RE: MCServer Lua implementation - by Tybor - 03-19-2011, 08:15 PM
RE: MCServer Lua implementation - by FakeTruth - 04-15-2011, 10:21 PM
RE: MCServer Lua implementation - by Megamanx266 - 05-27-2011, 05:39 PM
RE: MCServer Lua implementation - by FakeTruth - 05-27-2011, 11:39 PM
RE: MCServer Lua implementation - by Megamanx266 - 05-28-2011, 05:13 AM
RE: MCServer Lua implementation - by FakeTruth - 05-28-2011, 07:20 AM
RE: MCServer Lua implementation - by Megamanx266 - 05-28-2011, 08:57 AM
RE: MCServer Lua implementation - by FakeTruth - 05-28-2011, 09:17 AM
RE: MCServer Lua implementation - by FakeTruth - 05-29-2011, 01:00 PM



Users browsing this thread: 1 Guest(s)