Commit Graph
100 Commits
Author SHA1 Message Date
Mattes DandGitHub 179d6da490 Setting command-block's command requires a permission. (#5270) 2021-07-20 18:48:05 +00:00
Mattes DandTiger Wang 0137e71f6b Added override specifiers to overridden functions.
Needed for clang-11 compatibility.
2021-04-12 14:09:52 +01:00
Mattes DandTiger Wang 3d7acb6d10 Removed const 2020-08-27 17:32:48 +01:00
Mattes DandTiger Wang c98a2d9acf Changed tree-growing functions in cWorld to use Vector3i coords. 2020-08-27 17:32:48 +01:00
Mattes DandTiger Wang 0e3039d44c Added a "reloadweb" command for reloading web admin config. 2020-08-27 17:32:32 +01:00
Mattes DandTiger Wang 46398f4671 Replaced cpp14::make_unique<> with std::make_unique<>. 2020-08-01 20:04:31 +01:00
Mattes Dandpeterbell10 bdb8830b9c Fixed various MSVC warnings. 2020-05-06 12:53:37 +01:00
Mattes DandGitHub dfe7a0adee NBT: Dynamic list-max-count protection. (#4697) 2020-04-30 08:44:49 +02:00
Mattes DandGitHub 487f9a2aa9 Vector3 in Handlers (#4680)
Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
2020-04-21 22:19:22 +02:00
Mattes DandGitHub a55f61548e Extended Vector3 (#4666) 2020-04-18 11:44:35 +02:00
Mattes DandGitHub 26ac146f41 More Vector3 in cBlockHandler (#4644)
* cBlockHandler.OnUpdate uses Vector3 params.

Also slightly changed how block ticking works.
2020-04-17 10:36:37 +01:00
Mattes DandAlexander Harkness 9ee47e5999 Using Super. 2020-04-16 20:07:48 +00:00
Mattes DandGitHub 42cc736bfd ServerHandle: Fix closing failed servers. (#4653)
If the cServerHandle failed to listen, closing it would then crash Cuberite.
2020-04-15 14:13:40 +02:00
Mattes DandGitHub f84bab3bc2 Fixed Lua Vector unification. (#4652) 2020-04-15 00:23:24 +01:00
Mattes DandGitHub c9a9b3c9d0 Bindings: Allow coercion between Vector3 subtypes. (#4646)
In manually bound functions, allows one to use any Vector3<T> value, as well as a {x, y, z} table, in Lua as any Vector3<T> parameter.
Has example in Debuggers' /vector command.
Unfortunately doesn't work in auto-bindings.
2020-04-14 16:43:21 +02:00
Mattes D fb05ea7cf7 Fixed entity teleport for just-spawned entities.
Includes a test code in the Debuggers plugin - throwing a cake-as-fallingblock.
2020-04-12 13:34:24 +02:00
Mattes DandGitHub ef2d5027d3 Removed extended ASCII, and added a check against it. (#4642) 2020-04-12 09:24:30 +02:00
Mattes D 2cb85a1bcb API docs: Fixed eMonsterType relocation. 2020-04-10 08:19:43 +02:00
Mattes DandGitHub bdedab15c9 Falling blocks can now be spawned at any position. (#4620)
* Falling blocks can now be spawned at any position.

* Added a /cake command to Debuggers that throws a cake in a nice slow arc.

* Fixed regular falling blocks.
2020-04-09 20:25:20 +00:00
Mattes DandGitHub a765e71325 Removed the obsolete cTracer class. (#4594) 2020-04-03 12:50:08 +00:00
Mattes DandGitHub 01b8ed5295 Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)
The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change)
The BlockInfo.h file was removed from Globals.h (main change)
The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics)
The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor)
Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header.
That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified.
eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
2020-04-03 08:57:01 +02:00
Mattes DandGitHub b4060be3a4 Added a /boom command to Debuggers. (#4592) 2020-03-31 11:25:44 +00:00
Mattes DandGitHub db36ad3dab Update GETTING-STARTED.md (#4581)
* Update GETTING-STARTED.md

* Removed mention of _debug suffix
2020-03-30 12:39:42 +00:00
Mattes D a0d2e934eb BlockTypePalette: Improved loading speed in MSVC Debug builds. 2020-02-24 09:37:40 +01:00
Mattes DandGitHub 5f1b35aa36 Added server log to GitHub issue template
To encourage new reporters to use the triple-backticks for logs.
2020-02-10 10:06:43 +01:00
Mattes D 3f78ea7745 Added an UpgradeBlockTypePalette check script. 2020-01-13 22:43:01 +01:00
Mattes D 859f8d2849 Improved the UpgradeBlockTypePalette. 2020-01-13 22:42:18 +01:00
Mattes D 4aef80b47e Added temporary block type mapping for 1.13+ protocols. 2020-01-07 06:53:17 +01:00
Mattes D e234fbdafe StringUtils: Added note to StringsConcat about StringJoin. 2020-01-07 06:53:17 +01:00
Mattes D 583fd0a387 ProtocolRecognizer: Updated to unique_ptr. 2020-01-07 06:53:17 +01:00
Mattes D b63bb2f694 Root: Load the UpgradeBlockTypePalette on startup. 2020-01-07 06:53:17 +01:00
Mattes D 208313dba1 main: Terminate if an exception is thrown. 2020-01-07 06:53:17 +01:00
Mattes Dandpeterbell10 3c5278d3c2 Removed old buildserver from README 2020-01-04 14:21:58 +00:00
Mattes D d415e51e74 Updated Lua submodules 2019-12-30 15:20:39 +01:00
Mattes D 66b0bc04ce Appveyor: Cache only the CMakeCache file.
Caching the entire build folder would overwrite the symlinked Plugins, webadmin etc.
2019-12-30 09:55:34 +01:00
Mattes D 2894ce3812 CMake: Fix builds in folders with spaces 2019-12-29 11:49:00 +01:00
Mattes D 5df6d4f535 CMake: Don't create symlinks if link == orig. 2019-12-28 23:26:54 +01:00
Mattes D 2d6f6a574d BlockTypePalette: Load from TSV or original reports' JSON. 2019-12-28 22:43:35 +01:00
Mattes D 7453a9fbe1 Moved ProtocolBlockTypePalette functionality into BlockTypePalette. 2019-12-28 22:43:35 +01:00
Mattes D 2de6b7537d BlockTypePalette: Refactored for usage in both directions.
Improves index() lookup speeds and allows BlockTypePalette to be used in place of ProtocolBlockTypePalette.
2019-12-28 22:43:35 +01:00
Mattes DandGitHub cc72b204b2 Output the binaries into a per-configuration Server subfolder. (#4440)
Make links to the original Server subfolder's items from the per-configuration Server subfolder.
2019-12-28 12:53:37 +01:00
Mattes D 61904af626 Moved growing from cWorld / cChunk to cBlockHandler descendants. 2019-10-28 10:45:43 +01:00
Mattes DandGitHub 221cc4ec5c Refactored block-to-pickup conversion. (#4417) 2019-10-16 10:06:34 +02:00
Mattes DandGitHub 365cbc6e1c Refactored more of Entities and BlockEntities to use Vector3. (#4403) 2019-09-29 14:59:24 +02:00
Mattes Dandpeterbell10 180a43d097 Fixed MSVC warnings (#4400) 2019-09-27 16:51:44 +01:00
Mattes D 66e73a2d68 NBTChunkSerializer: Cleaned up interface.
Removed dependency on cChunkDataCallback.
Moved all the serializing code into a worker class.
Changed the serialization into a single-call action.
2019-09-24 17:38:59 +02:00
Mattes Dandpeterbell10 bec642525c Clarify spaces vs unary operator 2019-09-17 17:33:11 +01:00
Mattes D c7132a3091 Protocol 1.9: Alpha-sort, add useful debugging code. 2019-09-16 15:37:54 +02:00
Mattes D 3bc0f07fea Fixed warnings in ChunkDataSerializer. 2019-09-10 09:45:28 +02:00
Mattes D 2c804dd34a Protocol: Use logical outgoing packet types. 2019-09-10 09:45:28 +02:00
Mattes D ad24702b4e ChunkGenerator: Changed to use cChunkCoords. 2019-09-08 20:21:49 +02:00
Mattes D 5f4df3e87d ShapeGen, HeiGen: Changed to use cChunkCoords. 2019-09-08 20:21:49 +02:00
Mattes D e4ac84a6ab BiomeGen: Changed to use cChunkCoords params. 2019-09-08 20:21:49 +02:00
Mattes D 343bc2729e Generator: Added repeatability test. 2019-09-07 13:38:07 +02:00
Mattes D f50c6735f8 CompoGenNether: Fixed different data produced in Linux Release builds. 2019-09-07 13:38:07 +02:00
Mattes D d8d1e6e1d2 Added a BasicGeneratorTest. 2019-09-06 16:12:33 +02:00
Mattes D 878393a03d Moved the generator defaults to ComposableGenerator. 2019-09-06 16:12:33 +02:00
Mattes D a2ffa432b3 Separated chunk generator from world / plugin interfaces.
The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests.
2019-09-06 16:12:33 +02:00
Mattes Dandpeterbell10 f021e2fe22 Updated LibEvent to release 2.1.11-stable. (#4383)
This finally restores my ability to compile on Windows and Linux from the same source folder (on a network drive).

LibEvent broke this long ago by writing a config file into the source folder, rather than build folder. Now it's finally fixed.
2019-09-04 22:34:54 +01:00
Mattes DandGitHub 2504538a3a Added a basic PalettedBlockArea implementation (#4377) 2019-08-28 08:29:02 +02:00
Mattes DandGitHub 74579fbadf Improved testing framework. (#4376) 2019-08-26 21:38:34 +02:00
Mattes D 02fbf16865 Added BlockState implementation for 1.13 support. 2019-08-24 12:03:38 +02:00
Mattes D fcc836f2a5 Upgrade Appveyor's MSVC 2019-08-24 12:03:38 +02:00
Mattes DandGitHub 26d0605121 Improved CMake generator (#4365) 2019-08-10 13:15:51 +02:00
Mattes D d0b095ad51 Added more clamping operations to cCuboid. 2019-08-10 12:25:06 +02:00
Mattes DandGitHub e7016b1525 Removed coord-based API from cCuboid. (#4362) 2019-08-09 03:13:15 +02:00
Mattes D f0cd34357e Fixed compilation on VS2019 2019-08-06 10:13:18 +02:00
Mattes D 8212f163b5 Register vanilla blocks in BlockTypeRegistry. 2019-08-05 21:42:54 +02:00
Mattes D f48ac9f0c3 BlockTypeRegistry: Added hint manipulation 2019-08-05 21:42:54 +02:00
Mattes D 3722a239bf BlockTypeRegistry: Initial skeleton 2019-08-05 21:42:54 +02:00
Mattes Dandpeterbell10 c86722325a cloc: Updated list of ignored files. (#4280) 2018-08-03 18:41:03 +01:00
Mattes Dandpeterbell10 6921a6d57c Added docs on exporting API symbols to Lua. (#4277)
Closes #4273
2018-08-03 10:17:48 +01:00
Mattes DandAlexander Harkness 01322cb1b0 NetworkLookup: Added "virtual" keyword to overridden dtor. (#4100) 2017-12-21 13:31:20 +00:00
Mattes DandAlexander Harkness 72616e7eb9 Added Github-related rules to Contributing.md (#4076)
These should make it easier for us to review code.
2017-12-21 11:25:49 +00:00
Mattes DandLukas Pioch e0d1f791a3 Fixed webadmin certificate reading. 2017-09-19 19:44:30 +02:00
Mattes D 64561175ab BlockArea: Added the GetBounds function. 2017-07-22 19:57:25 +02:00
Mattes DandGitHub 895987a111 FastRandom: Remove discrepancy between arg and return value type. (#3846) 2017-07-21 12:06:21 +02:00
Mattes DandLukas Pioch 167c4bf2e6 Simulators: Added area-based wakeup. 2017-07-16 10:01:19 +02:00
Mattes D 399ea0bf1d cNetwork bindings: Use ApiParamError and CheckParam(Static)Self. 2017-06-26 10:52:59 +02:00
Mattes D e05ca49459 Moved ApiParamError into cLuaState. 2017-06-26 10:52:59 +02:00
Mattes DandGitHub f6bab71d05 Fixed memory leak in cClientHandle. (#3794) 2017-06-26 09:11:30 +02:00
Mattes DandGitHub fe42538349 cBlockArea supports block entities. (#3795) 2017-06-24 11:58:06 +02:00
Mattes DandGitHub ea6660721b NetworkSingleton: Fixed a throw warning in VS2017. (#3792)
Also fixed the misleading name.
2017-06-22 21:10:41 +02:00
Mattes DandLukas Pioch 99b4c2bd09 Anvil storage: load block entities from both old and new name-styles. (#3784)
* WSSAnvil: Load the sign text from JSON, too.
2017-06-21 07:47:26 +02:00
Mattes DandGitHub b0f3336533 MSVC Debug builds: Added operator new redirection to provide more info. (#3781) 2017-06-19 11:09:16 +02:00
Mattes DandGitHub 801084c38c LuaState: Fixed VS2017's throw warnings for destructors. (#3779) 2017-06-19 11:08:08 +02:00
Mattes DandGitHub 7ac3b0fa0b Removed the LeakFinder for Windows. (#3777) 2017-06-19 11:05:19 +02:00
Mattes DandLukas Pioch bb020bbe78 NetworkSingleton: Fixed an object leak upon termination. 2017-06-17 07:14:20 +02:00
Mattes DandGitHub 0f21bda12c Fixed missing "override" 2017-06-16 16:20:33 +02:00
Mattes DandLukas Pioch 0dd1cd750b BlockEntities: Support cloning self. 2017-06-16 14:11:28 +02:00
Mattes DandGitHub e4b60b6a26 Protocol: Do not assume anything about unknown packets. (#3647) 2017-06-16 14:03:13 +02:00
Mattes Dandworktycho 885d80ccdb Entity: Replaced a mutexed counter with a std::atomic. (#3773) 2017-06-15 16:06:50 +01:00
Mattes DandLukas Pioch d61d6b5b96 Protocol 1.12: Fixed missing override specifier 2017-06-14 15:27:05 +02:00
Mattes DandLukas Pioch 9c08b4524c Fix assert when clicking blocks at the top of the world. 2017-06-09 13:44:06 +02:00
Mattes DandLukas Pioch c82facab1b Fixed skylight going down through transparent blocks. 2017-06-09 12:17:27 +02:00
Mattes DandLukas Pioch 3c4e443ddc Fixed handling Lua errors in nested callbacks (#3755) 2017-06-09 12:16:31 +02:00
Mattes D bc6e2100c1 LineBlockTracer: Fixed a math rounding error failure. 2017-05-28 20:59:37 +02:00
Mattes DandGitHub 0551d78dff Fixed tracer usage in Entity physics handling. (#3720) 2017-05-28 20:56:17 +02:00
Mattes DandGitHub 226272fc63 Debuggers: Added the "/come" command to test mob pathfinding. (#3734) 2017-05-27 19:22:09 +02:00
Mattes D 86d3244549 Doxygen: added icon, autobrief. 2017-05-12 09:10:07 +02:00