Mattes D
fee690a3d1
Fixed inter-plugin calls.
...
When an inter-plugin call failed due to function not found, the server would maul the LuaState and "yield".
Fixes #1959 .
2015-05-07 23:03:04 +02:00
tycho
448df85e56
Added support for additional data in the ParticleEffect Packet
...
Also started refactoring how broadcasts are handled
2015-05-07 03:47:46 +01:00
Tiger Wang
2919d08883
Update submodules
2015-05-02 15:57:49 +01:00
Mattes D
8d4a87d2c4
Fixed bindings for cFile:ReadWholeFile().
...
Fixes #1914
2015-04-30 11:44:42 +02:00
Mattes D
fc95501f68
Added cBlockArea:GetNonAirCropRelCoords() API function.
...
Fixes #1915 .
2015-04-29 15:14:22 +02:00
Mattes D
b5998873e4
cPlayer now checks restrictions.
...
Fixes #1331 .
2015-04-25 21:05:43 +02:00
Mattes D
9c5797f27d
Added player restrictions to the DB and API.
2015-04-25 21:05:35 +02:00
Mattes D
b7d1d701b9
Plugin removes its command registrations and webtabs when unloaded.
...
Fixes #1890 .
2015-04-25 18:11:14 +02:00
Mattes D
a89d5f53fd
Refactored ManualBindings' callbacks using templates.
...
This is a bit easier to read, has better error reporting and fixes a few subtle bugs.
Fixes #1889 .
2015-04-23 22:20:31 +02:00
Mattes D
08624348f4
Implemented cPluginManager:DoWithPlugin(), fixed ForEachPlugin().
...
Both functions are exported as static.
2015-04-23 19:41:01 +02:00
Mattes D
4a946aa8c4
Added cPluginManager:IsPluginLoaded() API, better load error msgs.
2015-04-19 17:20:15 +02:00
Mattes D
288d2280fa
Refactored cWebPlugin for C++11 style and proper WebTab clearing.
2015-04-19 14:35:04 +02:00
Mattes D
a9b5a6c3a6
Split the plugin names and plugin folders to avoid confusing them.
...
Ref.: http://forum.mc-server.org/showthread.php?tid=1877
2015-04-19 10:57:41 +02:00
Mattes D
29af16143e
Removed HOOK_MAX and HOOK_NUM_HOOKS from Lua API.
2015-04-13 12:33:25 +02:00
Mattes D
38d666432d
Fixed plugin hook calls when unloading plugins.
...
If a plugin installs any hooks in its Initialize method and then causes the Lua runtime to abort, the server asserted because the hooks were called while the plugin was being unloaded.
2015-04-10 22:31:23 +02:00
Mattes D
e5a7a730ed
Merge pull request #1826 from mc-server/UnifyPacketizer
...
Unify packetizer
2015-03-24 13:09:41 +01:00
Mattes D
cc069ccb2a
Changed cEntity::m_UniqueID to UInt32.
2015-03-21 15:18:17 +01:00
Mattes D
0f45d1fbe2
cPluginLua:cResettable no longer shares CS with plugin.
...
This fixes locking the resettable while the plugin is already gone. Hopefully no deadlocks.
2015-03-20 16:51:49 +01:00
Mattes D
781c8683f7
Added cPluginLua::cResettable interface, used for scheduled tasks.
...
This allows plugins to register objects that can "survive" the plugin unloading - they will simply bail out if the plugin is already unloaded, instead of referencing bad plugin data.
Fixes #1556 .
2015-03-20 15:13:33 +01:00
Mattes D
2d1d4ae3e3
Removed unwanted base classes from Lua API.
2015-03-19 21:26:38 +01:00
Mattes D
93031dffd8
AllToLua: Fixed cMonster inheritance.
2015-03-19 21:06:28 +01:00
Mattes D
2fed8c3227
Improved DoWithID bindings.
2015-03-19 16:24:32 +01:00
Mattes D
9eb9541060
AllToLua: Removed an unneeded class declaration.
...
It's perfectly possible to declare a class in ManualBindings without the need for declaration in AllToLua.pkg.
2015-03-19 12:34:16 +01:00
Mattes D
09da6e7a6e
AllToLua: Fixed the parse order for bindings generation.
...
Fixes #1789 .
2015-03-19 12:19:04 +01:00
Mattes D
f9991c9f92
Merge pull request #1761 from mc-server/NetworkIPEnum
...
cNetwork: Added EnumLocalIPAddresses() function.
2015-03-12 13:35:45 +01:00
Mattes D
439eb8d6cb
Merge pull request #1807 from flx5/master
...
Fixes #493 and #490
2015-03-11 22:43:52 +01:00
flx5
f6912bd01c
Fixed coding conventions for Pull Request #1807
2015-03-11 20:02:11 +01:00
flx5
d130696e95
Fixes #493 and #490
2015-03-11 04:14:17 +01:00
Howaner
a96c21fc0d
Merge branch 'master' into Inventory
2015-03-09 22:39:11 +01:00
joshi07
f71b1fe799
Added OnTeleportEntity hook for plugins.
...
Plugins may or may not allow teleport to the new position.
Updated the HookNotify plugin with it.
2015-03-05 11:52:42 +01:00
Mattes D
d4b505db02
Lua API: Fixed md5 and sha1 hex formatting.
...
std::setw() is only valid for one output operation and needs to be set again in each loop repetition.
2015-03-03 01:28:58 +01:00
STRWarrior
9e1db16ba4
Fixed operators
2015-02-23 16:09:35 +01:00
STRWarrior
d39d2ca5e9
Added forgotten indent
2015-02-23 15:40:31 +01:00
STRWarrior
8c8ec1094d
Replaced lua_isXYZ with cLuaState::CheckParamXYZ
2015-02-23 15:29:07 +01:00
STRWarrior
54410bfe4d
Exported all compression functions in a new class.
2015-02-23 12:53:02 +01:00
STRWarrior
13f81a051d
Exported CompressString and UncompressString to Lua
2015-02-22 17:34:20 +01:00
Mattes D
c758482ece
cNetwork: Added EnumLocalIPAddresses() function.
2015-02-22 10:51:16 +01:00
Mattes D
006b1afa9e
Merge pull request #1758 from mc-server/CryptoHashAPI
...
Added cCryptoHash namespace to Lua API
2015-02-21 12:19:07 +01:00
Mattes D
9971670b40
Merge pull request #1755 from mc-server/NetworkUDP
...
cNetwork: Added UDP API.
2015-02-21 12:19:03 +01:00
Mattes D
b9e4fe0a3b
Added cCryptoHash namespace to Lua API.
2015-02-21 09:41:14 +01:00
Mattes D
9c5162041e
cNetwork: Added UDP API.
2015-02-20 14:28:05 +01:00
Matyas Dolak
5d4dd103a1
Fixed crash when logging nil values.
...
Ref.: http://forum.mc-server.org/showthread.php?tid=1798
2015-02-20 09:51:18 +01:00
Mattes D
1f3d11de32
Fixed Linux compilation.
2015-02-14 09:17:26 +01:00
Mattes D
557adf3be9
Exported TLS server start on cTCPLink to Lua API.
2015-02-13 23:18:22 +01:00
Mattes D
b8bf795dd1
Exported cTCPLink:Close and :Shutdown() to Lua API.
2015-02-13 18:31:54 +01:00
Mattes D
505dce1fc3
Fixed Linux compilation.
...
std::make_unique is not available in C++11.
2015-02-12 20:22:39 +01:00
Mattes D
16636ff6e2
LuaAPI: Added client TLS support for TCP links.
2015-02-12 20:05:55 +01:00
Howaner
2c7925f0ad
Merge branch 'master' into Inventory
2015-02-06 21:52:14 +01:00
Mattes D
adf0020cd4
APIDump: Added cNetwork documentation.
2015-02-06 18:44:05 +01:00
Mattes D
0e769f12ac
LuaServerHandle: Removed debugging output.
2015-02-04 08:42:28 +01:00