Commit Graph
100 Commits
Author SHA1 Message Date
madmaxoft 52cd9dfe9f Removed the unnecessary LoopPlayersAndBroadcastChat() functions. 2014-02-15 23:26:19 +01:00
madmaxoft 3582c4bc60 Debuggers: Added code to test cCompositeChat functionality.
Ref.: #678
2014-02-15 23:17:50 +01:00
madmaxoft 0f1f7583ae Implemented cCompositeChat.
This allows plugins to send composite chat messages, containing URLs, commands to run and cmdline suggestions.
Fixes #678.
2014-02-15 23:17:49 +01:00
madmaxoft 147b9ed694 Debuggers: Added a WebAdmin StressTest page.
This page reloads content from the WebAdmin as fast as possible.
2014-02-15 16:30:28 +01:00
Mattes D 48eafee823 Merge pull request #664 from mc-server/generalfixes
General fixes
2014-02-15 15:06:23 +01:00
madmaxoft 6103589e8c Updated Core. 2014-02-13 17:05:31 +01:00
madmaxoft 9bb48a8fa4 Merged branch 'narroo/master'.
This merges pull request #661.
2014-02-13 17:04:25 +01:00
madmaxoft 41ab8260f7 MCADefrag: Implemented recompression.
This finalizes #639.
2014-02-13 16:54:39 +01:00
madmaxoft cd658e02e8 MCADefrag: Fixed bugs, now produces valid MCA files. 2014-02-13 16:54:39 +01:00
madmaxoft 05590fb91d MCADefrag: Initial implementation.
Partially implements #639.
This only defragments the chunks, without recompressing them.
2014-02-13 16:54:39 +01:00
Mattes D cc72b656c9 Updated COMPILING instructions for out-of-source build.
Also made the 32-bit mode a bit more clear as to what architectures it affects.
2014-02-13 06:59:07 +01:00
Mattes D 3456cfa34b Merge pull request #668 from tonibm19/patch-1
Decreased mobs attack range
2014-02-12 20:01:20 +01:00
madmaxoft b0018da615 Updated Core. 2014-02-12 10:36:13 +01:00
madmaxoft a1e01ff725 cWorld:ChunkStay() accepts nils as callbacks.
Also removed leftover debug logging.
2014-02-11 15:04:35 +01:00
madmaxoft 33c84aaa4d Added cLuaState::CheckParamFunctionOrNil().
Also fixed error reporting for the two function-checking functions.
2014-02-11 15:03:35 +01:00
madmaxoft 892c7eb57f More gcc warnings fixed. 2014-02-11 11:56:29 +01:00
madmaxoft 2559aa58f4 Made cChunkStay's destructor virtual. 2014-02-11 11:46:19 +01:00
Mattes D c969794511 Fixed *nix attribs. 2014-02-11 11:33:48 +01:00
madmaxoft 7e80b04114 Fixed gcc warnings in Item.h. 2014-02-11 11:30:11 +01:00
Mattes D 1f96454b9c Merge pull request #662 from mc-server/ChunkStay
Allows both C++ and Lua code to request chunks to stay loaded; provides callbacks for when the chunks are made available.
2014-02-11 09:07:08 +01:00
madmaxoft 90d68c57e4 Debuggers: Updated messaging functions 2014-02-11 08:54:29 +01:00
madmaxoft b41bb3bb44 Fixed nested plugin function calls. 2014-02-11 08:52:14 +01:00
madmaxoft 8a8997cc38 Merge branch 'master' into ChunkStay 2014-02-11 08:50:30 +01:00
madmaxoft a25fcd25d6 APIDump: Documented cWorld:ChunkStay(). 2014-02-11 07:51:32 +01:00
Mattes D 3d9deca2e0 Merge pull request #660 from worktycho/boatsFix
Fixed stupid mistake in conditional
2014-02-11 06:45:26 +01:00
madmaxoft de7bf126db Added LuaChunkStay to Bindings sources.
This should fix *nix compilation. Also alpha-sorted the lists.
2014-02-10 23:23:04 +01:00
madmaxoft 2b1506de9c Debuggers: Updated to reflect the new API. 2014-02-10 22:47:32 +01:00
madmaxoft 9cebc9157c Rewritten Lua ChunkStay API into a single function, cWorld:ChunkStay().
This fixes problems with indeterminate class object lifespan (Lua-GC) and forgetting to disable it or keep it until ready.
2014-02-10 22:47:10 +01:00
madmaxoft 589a4839df cLuaState: Stack traces don't include ghost 0-th element. 2014-02-10 22:44:56 +01:00
madmaxoft 5aa1123f70 Added cPluginLua::cOperation.
This class should be used to lock-and-access the plugin's LuaState. cPluginLua::GetLuaState() is unsafe and by this commit obsolete.
2014-02-10 20:38:02 +01:00
madmaxoft 1447d6d0dc Debuggers: Added a cLuaChunkStay test code. 2014-02-09 20:40:20 +01:00
madmaxoft 47a497fa89 First working version of cLuaChunkStay.
It works, but has random failures, probably due to threading issues.
2014-02-09 20:39:45 +01:00
madmaxoft 4ef6c56f32 Debuggers: Disabled testing plugin calls. 2014-02-09 18:56:43 +01:00
madmaxoft 9455f59b11 Initial Lua cChunkStay export. 2014-02-09 18:56:16 +01:00
madmaxoft 310a25c456 cLuaState::cRef can be unbound and re-bound.
This will allow us to store Lua references as member variables in classes and initialize those later than in the constructor.
2014-02-09 18:39:22 +01:00
madmaxoft 4bcaf302b9 Added AllToLua.pkg to MSVC project files.
MSVC ignores the file when compiling and it makes it easier to open it up for editing.
2014-02-09 16:22:49 +01:00
madmaxoft 9795bfcbe3 Added air, farmland and tilleddirt to items.ini.
Air hasn't been present at all, the others are usual synonyms.
2014-02-09 16:19:38 +01:00
madmaxoft a184d59209 Merge remote-tracking branch 'origin/master' into ChunkStay 2014-02-09 09:36:42 +01:00
madmaxoft 1d51521f80 Merge branch 'master' into playerimprovements 2014-02-09 09:32:40 +01:00
Mattes D d2bc39ba84 Merge pull request #656 from mc-server/ReloadGroups
The console reload command also reloads the groups.
2014-02-09 00:14:44 +01:00
madmaxoft cf48968835 Moved a forgotten comment back to its place. 2014-02-08 22:35:45 +01:00
madmaxoft df0ecc6c07 Fixed lighting thread queueing. 2014-02-08 22:33:42 +01:00
madmaxoft 7432d2f74d Fixed ChunkStay initialization. 2014-02-08 22:23:38 +01:00
madmaxoft a4bf44858d Fixed gcc compilation. 2014-02-08 22:01:04 +01:00
madmaxoft ea71bfa9b6 Initial ChunkStay code. 2014-02-08 21:55:21 +01:00
Mattes D 169b918222 Merge pull request #653 from mc-server/RedstoneSimulator
Improvements for the redstone simulator.
2014-02-08 14:54:00 +01:00
madmaxoft cfd6875c86 Fixed cWorld:TryGetHeight() API. 2014-02-08 13:35:08 +01:00
madmaxoft e165da946e WebAdmin is stopped properly on server shutdown / restart.
Fixes #272.
2014-02-07 12:26:41 +01:00
madmaxoft 916020d6c2 Fixed wiki link in auto-generated settings.ini. 2014-02-07 12:07:22 +01:00
madmaxoft aec7ffd3f6 InfoDump: Added github output. 2014-02-05 21:50:56 +01:00
Mattes D 24dfe7f9cc Merge pull request #648 from worktycho/runMCServer
Added BoundingBox Test
2014-02-05 21:26:12 +01:00
Mattes D cd634ea138 Merge pull request #649 from mc-server/GroupsPermissions
Removed deprecated HasCommand function
2014-02-05 21:07:10 +01:00
Mattes D 694fa5d541 Merge pull request #645 from mc-server/GroupsPermissions
Improvements to the GroupManager
2014-02-05 19:58:02 +01:00
Mattes D 4e4d92ccce Merge pull request #647 from worktycho/runMCServer
Run mc server in travis
2014-02-05 19:56:25 +01:00
madmaxoft 9e98c9691d Improved the signedness conversion. 2014-02-05 13:54:47 +01:00
madmaxoft e5dce265ae Added cPluginManager:LogStackTrace() to the Lua API.
Fixes #637.
2014-02-05 00:16:33 +01:00
madmaxoft b63c206a5c InfoDump: Git-Ignoring all generated files. 2014-02-05 00:09:35 +01:00
madmaxoft 45958cb835 Explicitly make chars signed at the compiler-level.
Should fix #640.
2014-02-04 23:43:40 +01:00
madmaxoft cc032995bd Crypto: Removed unused member, fixed gcc warning. 2014-02-04 23:25:06 +01:00
madmaxoft a96ea33b64 Added dtExplosion to damage<->string functions. 2014-02-04 23:09:07 +01:00
madmaxoft 91a8db0d7e Protocol 1.7: Fixed a signed / unsigned comparison warning. 2014-02-04 22:41:54 +01:00
madmaxoft 82173db9bf Fixed a gcc warning in ManualBindings.
Constructor member order...
2014-02-04 22:26:35 +01:00
madmaxoft 010e64be11 Removed a useless check in cLuaState. 2014-02-04 22:24:03 +01:00
madmaxoft 5cdbb6683f Fixed a warning in cItem in gcc.
Constructor member order...
2014-02-04 22:18:59 +01:00
madmaxoft 835a59b8fc Protocol 1.7 uses char for blockface.
That should fix #644 on RasPi.
2014-02-04 22:15:01 +01:00
Mattes D dad49c6fdd Merge pull request #644 from worktycho/warningfixes
Improved Type safety of eBlockFace
2014-02-04 13:10:44 -08:00
madmaxoft 634331fd3b Fixed chest placement.
Fixes #624.
2014-02-04 18:38:10 +01:00
madmaxoft dd1d85c8ad Fixed indent from previous commits. 2014-02-04 18:27:05 +01:00
Mattes D 0ceb0ef607 Merge pull request #635 from tonibm19/master
Exported Item:IsEnchantable and Monster:MoveToPosition to Lua API
2014-02-04 09:23:03 -08:00
madmaxoft 3dc1452790 Fixed calling plugins with userdata params. 2014-02-04 14:26:36 +01:00
madmaxoft 1dbfd7eb76 Removed a leftover debug message. 2014-02-04 11:37:34 +01:00
madmaxoft 69c85e5169 Fixed error handling in cPluginManager:CallPlugin() API.
Fixed: When the called function malfunctioned, the entire plugin's call was aborted.
2014-02-04 10:29:10 +01:00
madmaxoft aa19f4fd04 Improved error resistance in cPluginManager:CallPlugin().
Fixed: If the call failed, all the next plugin calls would fail as well.
2014-02-04 09:18:32 +01:00
madmaxoft 1bd939c4d4 InfoDump: Fixed export for undeclared command param combinations. 2014-02-04 00:16:26 +01:00
Mattes D 41b8315f53 Merge pull request #636 from worktycho/warningfixes
Increased Type safety of Biomes
2014-02-03 14:42:31 -08:00
Mattes D 351e925e3d Merge pull request #633 from mc-server/More_Sideways_Blocks
More sideways blocks.
2014-02-03 14:01:22 -08:00
Mattes D 2450d0467f Merge pull request #623 from mc-server/tnt
TNT improvements
2014-02-03 10:55:23 -08:00
madmaxoft c9916cd8c2 Fixed socket leaking. 2014-02-03 17:07:46 +01:00
madmaxoft 0b384198e5 SocketThreads: Fixed sending to closed socket. 2014-02-03 10:39:10 +01:00
madmaxoft c2c1639af8 Groups.ini can contain spaces around commas in values.
This includes Permissions, Inherits and Commands.
Also fixed an unlikely but possible crash with group colors.
2014-02-03 10:39:09 +01:00
Mattes D b090547c17 Merge pull request #602 from mc-server/improvementsandfixes
Redstone crash fix and current console line replace function
2014-02-02 22:02:25 -08:00
Mattes D 67d7d83726 Merge pull request #622 from worktycho/registerfix
Removed register keyword from Messinne Twister
2014-02-02 09:13:42 -08:00
madmaxoft c3d4cc4f4f Fixed dark oak and acacia placement.
Fixes #621.
2014-02-02 17:52:05 +01:00
Mattes D 3cfd9ce269 Merge pull request #615 from worktycho/GeneratingBenchmark2
Generating benchmark2
2014-02-02 07:25:30 -08:00
Mattes D 6f90b492b8 Merge pull request #617 from UltraCoderRU/master
Some fixes in wolves implementation
2014-02-02 02:35:24 -08:00
Mattes D 33759197e9 Merge pull request #585 from daniel0916/hooks
Added "player destroying" and "player destroyed" hooks
2014-02-01 05:08:08 -08:00
Mattes D af4b1cd659 Merge pull request #613 from UltraCoderRU/master
Added reading saved state of the wolf (sitting or standing).
2014-02-01 01:22:46 -08:00
Mattes D 617c5b1fff Merge pull request #607 from mc-server/Wolf_Owner_Saving
Wolf: Their owner now gets saved.
2014-01-31 07:32:38 -08:00
madmaxoft 882d108622 Fixed cLineBlockTracer:Trace() signature. 2014-01-31 16:01:16 +01:00
madmaxoft 5092ae5266 Added cPluginManager:BindCommand() form to the API.
That's the canonical way to call static functions.
2014-01-31 16:01:15 +01:00
madmaxoft 66427d754b Added cChunkDest::UpdateHeightmap()
This function is necessary for plugins manipulating the generated chunks, they need to update the heightmap before it is passed back to the generator.
2014-01-31 16:01:15 +01:00
Mattes D 6f185f0f21 Merge pull request #605 from tonibm19/patch-1
Attempt at implementing #563
2014-01-30 09:03:49 -08:00
madmaxoft b61a74d6a2 Lua: Fixed an error in table-functions callbacks. 2014-01-29 22:56:38 +01:00
Mattes D 07fb1bca23 Merge pull request #599 from tonibm19/master
Now mobs follow you when holding their breed item.
2014-01-29 11:05:38 -08:00
Mattes D 6accedffd5 Added instructions for ZIP source downloads.
The ZIP file doesn't contain git submodules, people complained about not being able to compile from it.
2014-01-29 19:10:59 +01:00
madmaxoft 04107fa85d Limited sign lines to 15 chars.
Fixes #598.
2014-01-29 17:59:49 +01:00
madmaxoft e40c5a20c8 Plugin files are loaded in alphabetical order.
Except for the Info.lua file which gets loaded always last. Implements #597.
2014-01-29 17:48:04 +01:00
madmaxoft 789cf63740 Added 1.7.4 to the list of supported protocols. 2014-01-29 12:16:27 +01:00
madmaxoft 3bbca8c291 Protocol 1.7: Encryption is enabled only with auth. 2014-01-29 09:56:31 +01:00
madmaxoft ae897804a0 ProtoProxy: Added encryption support. 2014-01-28 23:53:54 +01:00