Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Improved testing framework. (#4376) | Mattes D | 2019-08-26 | 17 | -351/+388 |
| | |||||
* | Added BlockState implementation for 1.13 support. | Mattes D | 2019-08-24 | 2 | -0/+158 |
| | |||||
* | BlockTypeRegistry: Added hint manipulation | Mattes D | 2019-08-05 | 1 | -0/+37 |
| | |||||
* | BlockTypeRegistry: Initial skeleton | Mattes D | 2019-08-05 | 4 | -0/+348 |
| | |||||
* | Optimise chunk set (#4260) | peterbell10 | 2018-07-23 | 5 | -14/+39 |
| | | | | | | | | | | | | | | | | | Closes #1244 Initially I was just going to add the cChunkData to cSetChunkData but profiling revealed that the copying wasn't even the biggest slowdown. Much more time was being spent in cChunk::CreateBlockEntities and cChunk::WakeUpSimulators than was in memcpy so I've made those significantly faster as well. Optimisations performed: * cSetChunkData now stores blocks in a cChunkData object * cChunkData objects can now perform moves even if they are using different pools * cChunk::CreateBlockEntities now iterates in the correct order and only over present chunk sections * Similarly for cChunk::WakeUpSimulators * cSetChunkData::CalculateHeightMap now shortcuts to the highest present chunk section before checking blocks directly | ||||
* | Fix cUUID::Variant (#4213) | peterbell10 | 2018-04-08 | 1 | -2/+31 |
| | |||||
* | Fix cUrlClient leak (#4125) | peterbell10 | 2018-02-20 | 1 | -5/+19 |
| | | | | | | | | Fixes #4040 * The TCP connection is now shutdown after OnBodyFinished * Any open connections are closed when cNetworkSingleton::Terminate() is called. * Removed ownership cycles in cUrlClientRequest * Added a check to the test to ensure there are no leaks. | ||||
* | Deal with covered switches consistently (#4161) | peterbell10 | 2018-02-05 | 2 | -0/+8 |
| | | | | | | | * Fixes a number of "<function>: not all control paths return a value" warnings on MSVC. * Introduces the UNREACHABLE global macro and uses it instead of conditionally compiled switch defaults. * Move cNBTParseErrorCategory from FastNBT.h into FastNBT.cpp to prevent bad calls to message() | ||||
* | cChunk and cChunkData: Use vectors for block get and set functions (#4172) | peterbell10 | 2018-02-04 | 3 | -99/+99 |
| | | | | | * cChunkData: Change interface to use Vector3i * cChunk: Add Vector3i overloads for bounded block get and set functions. | ||||
* | CMake: Fix test builds on MSVC (#4131) | peterbell10 | 2018-01-22 | 1 | -0/+1 |
| | | | | | | * Add test dependency missing for MSVC builds. * Appveyor builds tests and tools | ||||
* | Add the fmt library (#4065) | peterbell10 | 2018-01-03 | 13 | -9/+27 |
| | | | | | | | * Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style. | ||||
* | Fix Travis build (#4101) | peterbell10 | 2017-12-22 | 1 | -1/+1 |
| | | | | | | | | | Stop using gdb on osx - was breaking the build Add clang 3.5 build as travis now defaults to 5.0 Fix unknown-warning-option errors on AppleClang ProtoProxy: Use nullptr UrlClientTest: add override to callback destructor Update jsoncpp to use nullptr | ||||
* | cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) | Bond-009 | 2017-11-20 | 3 | -3/+3 |
| | |||||
* | Removed UTF-8 BOM (#4033) | Lukas Pioch | 2017-09-19 | 2 | -2/+2 |
| | |||||
* | Add a test for cUUID (#4021) | peterbell10 | 2017-09-11 | 3 | -0/+168 |
| | |||||
* | Update mbedtls to 2.5.1 (#3964) | peterbell10 | 2017-08-30 | 2 | -14/+16 |
| | | | | | | | | | | | | | | | | | | | | | | * Renaming changes: * macro prefix "POLARSSL" -> "MBEDTLS" * functions now prefixed with "mbedtls_" * rename PolarSSL++ -> mbedTLS++ * rename polarssl submodule * Use mbedtls' AES-CFB8 implementation. * Add cSslConfig to wrap mbedtls_ssl_config * Update cTCPLink and cBlockingSslClientSocket to use cSslConfig * Use cSslConfig in cHTTPServer * Use cSslConfig for cMojangAPI::SecureRequest * CI Fixes * Set -fomit-frame-pointer on the right target | ||||
* | Add cUUID class (#3871) | peterbell10 | 2017-08-25 | 8 | -1/+69 |
| | |||||
* | Implement protocol level chunk sparsing (#3864) | peterbell10 | 2017-08-21 | 1 | -1/+2 |
| | |||||
* | cBlockHandler: take player by ref | peterbell10 | 2017-08-01 | 3 | -9/+9 |
| | |||||
* | Check for intersection between placed blocks and entities. (#3850) | Lane Kolbly | 2017-07-28 | 3 | -0/+47 |
| | | | | | | | | | | | | | * Check for intersection between placed blocks and entities. + Implemented GetPlacementCollisionBox, to permit custom placement collision boxes for blocks. * Factored block-entity placement checking into another function in cPlayer. - Removed vector min/max functions * Use GetWorld to get the world in DoesPlacingBlocksIntersectEntity. + Added block height checks, allow different cEntity subclasses to decide whether they will prevent block placement. | ||||
* | BigFlower fixes (#3826) | peterbell10 | 2017-07-07 | 3 | -3/+3 |
| | | | | | | | * BigFlowers fixes * Correct upper part meta * Documented parameters to DoesIgnoreBuildCollision | ||||
* | cBlockInfo static initialisation (#3832) | peterbell10 | 2017-07-03 | 3 | -12/+18 |
| | |||||
* | cBlockArea supports block entities. (#3795) | Mattes D | 2017-06-24 | 3 | -0/+87 |
| | |||||
* | Removed the LeakFinder for Windows. (#3777) | Mattes D | 2017-06-19 | 7 | -36/+14 |
| | |||||
* | Replace evdns with getaddrinfo and getnameinfo (#3766) | peterbell10 | 2017-06-15 | 1 | -0/+6 |
| | |||||
* | FastRandom rewrite (#3754) | peterbell10 | 2017-06-13 | 1 | -8/+6 |
| | |||||
* | Gen: Added a simple PieceGeneratorBFSTree test. | Mattes D | 2017-05-04 | 2 | -0/+103 |
| | |||||
* | Gen: Moved tests to a separate folder, unified shared sources. | Mattes D | 2017-05-04 | 14 | -337/+27 |
| | |||||
* | Gen: Moved PiecePool into a separate file. | Mattes D | 2017-05-04 | 5 | -8/+8 |
| | | | | Also rewritten the PieceGenerator to use std::unique_ptr. | ||||
* | FastRandom: Added test of class re-creation. (#3648) | Mattes D | 2017-03-28 | 1 | -7/+55 |
| | | | Tests for the precondition of #2935 (re-created cFastRandom generates the same sequence of numbers). | ||||
* | PieceGenerator: Added rotation-aware vertical connectors. | Mattes D | 2017-02-13 | 7 | -2/+601 |
| | |||||
* | DeadlockDetect now lists some tracked CS's stats. | Mattes D | 2017-01-18 | 2 | -0/+34 |
| | |||||
* | Tests: Added LuaState thread stress-test. | Mattes D | 2017-01-15 | 8 | -0/+580 |
| | |||||
* | Moved cPrefab parser self-check to the LoadablePieces test. (#3536) | Mattes D | 2017-01-15 | 3 | -6/+128 |
| | |||||
* | Added strict static_cast to void * in printf. | Mattes D | 2016-11-13 | 1 | -3/+3 |
| | |||||
* | Fixed type-casting-related warnings. | Mattes D | 2016-08-24 | 8 | -29/+11 |
| | |||||
* | HTTP: Fixed empty headers parsing. | Mattes D | 2016-08-24 | 4 | -1/+17 |
| | |||||
* | cUrlClient: Refactored callbacks to use UniquePtr. | Mattes D | 2016-08-22 | 1 | -8/+8 |
| | |||||
* | cTCPLink supports TLS out of the box. | Mattes D | 2016-08-22 | 3 | -14/+108 |
| | |||||
* | UrlClient: Basic HTTP implementation. | Mattes D | 2016-08-22 | 2 | -3/+185 |
| | |||||
* | Fixed cFastRandom Test. (#3291) | Alexander Harkness | 2016-08-03 | 3 | -0/+116 |
| | | | This resolves #3290 | ||||
* | CMake: Remove needless minimum version specifications. | Mattes D | 2016-07-18 | 10 | -20/+0 |
| | |||||
* | Self tests (#3242) | Mattes D | 2016-06-26 | 3 | -0/+111 |
| | | | | | | | | * SelfTests: Added a cEvent stress-test. * cNetwork: Fixed startup event hang. The original code used to hang with a ~ 1:50000 chance, because on Linux the cEvent was destroyed before its "Set()" returned. | ||||
* | SelfTests: More logging for EnumInterfaces. | Mattes D | 2016-06-18 | 1 | -2/+3 |
| | |||||
* | SelfTests: Print a quick message on test start. | Mattes D | 2016-06-18 | 13 | -1/+45 |
| | |||||
* | SelfTests: Removed the unneeded cSelfTests class. | Mattes D | 2016-06-18 | 1 | -28/+0 |
| | |||||
* | SelfTests: Fixed HTTPMessageParser tests for out-of-source builds. | Mattes D | 2016-06-18 | 1 | -5/+5 |
| | |||||
* | SelfTests: Fixed missing override keyword in EchoServer. | Mattes D | 2016-06-18 | 1 | -1/+1 |
| | |||||
* | SelfTests: Moved BoundingBox test to a separate project. | Mattes D | 2016-06-18 | 3 | -0/+125 |
| | |||||
* | SelfTests: Moved SchematicFileSerializer test into a separate project. | Mattes D | 2016-06-18 | 4 | -0/+330 |
| | |||||
* | SelfTests: Moved cCompositeChat test to a separate project. | Mattes D | 2016-06-18 | 4 | -0/+180 |
| | |||||
* | SelfTests: Moved ByteBuffer test to a separate project. | Mattes D | 2016-06-18 | 3 | -2/+129 |
| | |||||
* | SelfTests: Organized into solution folders. | Mattes D | 2016-06-18 | 4 | -1/+40 |
| | |||||
* | Moved NetworkInterfaceEnum test to a separate test project. | Mattes D | 2016-06-18 | 2 | -0/+59 |
| | |||||
* | Out of world blocks are now always considered air blocks | LogicParrot | 2016-04-23 | 1 | -48/+23 |
| | |||||
* | WebAdmin uses the new HTTP parser framework. | Mattes D | 2016-03-01 | 6 | -11/+333 |
| | |||||
* | HTTP: Fixed response parser, unified API. | Mattes D | 2016-03-01 | 2 | -6/+13 |
| | |||||
* | Added unit test for parsing HTTP request. | Mattes D | 2016-03-01 | 5 | -0/+224 |
| | |||||
* | Renamed leftover strings to Cuberite / Server, as needed. | Mattes D | 2016-01-01 | 2 | -3/+3 |
| | | | | Also upgraded the user setting file for MSVC to 2013. | ||||
* | Added a Json parser and serializer to Lua API. | Mattes D | 2015-12-24 | 1 | -0/+9 |
| | |||||
* | Added HTTPS links wherever they are supported. | Alexander Harkness | 2015-12-19 | 1 | -3/+3 |
| | |||||
* | Working coverage build | tycho | 2015-12-18 | 1 | -0/+4 |
| | |||||
* | blockheight mechanism | Gargaj | 2015-12-13 | 1 | -0/+9 |
| | |||||
* | Added PieceStructures generator. | Mattes D | 2015-12-01 | 1 | -0/+4 |
| | |||||
* | Fixed and improved restarting | Tiger Wang | 2015-08-20 | 1 | -0/+1 |
| | | | | | Restarts are now an actual, close-as-possible to application exit+reopen. | ||||
* | Improved maps | Tiger Wang | 2015-07-14 | 1 | -0/+9 |
| | |||||
* | Added neighbor specification in the OnNeighborChanged() block callback. | Mattes D | 2015-07-01 | 1 | -1/+1 |
| | | | | | Fixes the OnNeighborChanged endless recursion with large melon / pumpkin fields. Fixes #2213. | ||||
* | Rebased version of Code | Samuel Barney | 2015-06-22 | 1 | -9/+0 |
| | |||||
* | Added basic support for loading village prefabs from files. | Mattes D | 2015-06-20 | 1 | -0/+3 |
| | |||||
* | Externalized cPrefabPiecePool self-test. | Mattes D | 2015-06-19 | 9 | -0/+626 |
| | |||||
* | Fix clang 3.6 flags to only be used in clang 3.6 | tycho | 2015-05-24 | 1 | -1/+4 |
| | |||||
* | Disable -Werror for warnings in tests. | tycho | 2015-05-24 | 3 | -14/+3 |
| | |||||
* | Fix tests | tycho | 2015-05-23 | 1 | -2/+3 |
| | |||||
* | Fix tests | tycho | 2015-05-19 | 1 | -0/+7 |
| | |||||
* | Network tests: Fixed clang warnings. | Mattes D | 2015-02-20 | 3 | -3/+3 |
| | |||||
* | Exported cServerHandle and cNetwork:Listen to Lua. | Mattes D | 2015-02-04 | 1 | -0/+1 |
| | | | | Also added an example to the NetworkTest plugin. | ||||
* | Added network termination called at app exit. | Mattes D | 2015-01-27 | 3 | -3/+38 |
| | | | | This fixes a crash in MSVC runtime caused by joining a thread in a global var's destructor. | ||||
* | cNetwork: Renamed callback to OnConnected() | Mattes D | 2015-01-22 | 1 | -1/+1 |
| | |||||
* | cNetwork: Added link creation callback. | Mattes D | 2015-01-22 | 2 | -11/+48 |
| | | | | This allows the callback classes to store the link inside them and use it internally later on, mainly for sending data. | ||||
* | cNetwork: Changed listening API. | Mattes D | 2015-01-22 | 1 | -22/+28 |
| | | | | The link-callbacks for each new accepted link are now received from the OnIncomingConnection listen-callback. | ||||
* | cNetwork: Added error message to error callbacks. | Mattes D | 2015-01-22 | 3 | -8/+8 |
| | |||||
* | cNetwork: Fixed race conditions with lookups; proper shutdown. | Mattes D | 2015-01-22 | 1 | -0/+1 |
| | |||||
* | cNetwork: Split the main cpp file into several files. | Mattes D | 2015-01-22 | 1 | -2/+22 |
| | |||||
* | cNetwork: Split cNetworkSingleton to a separate file. | Mattes D | 2015-01-22 | 1 | -1/+12 |
| | |||||
* | cNetwork: Added an OnError callback for listening servers. | Mattes D | 2015-01-22 | 1 | -0/+5 |
| | | | | The callback receives the error details. | ||||
* | cNetwork: Added multithreading protection. | Mattes D | 2015-01-22 | 1 | -1/+7 |
| | |||||
* | cNetwork: Implemented connection shutdown and close. | Mattes D | 2015-01-22 | 1 | -1/+15 |
| | |||||
* | cNetwork: Fixed Linux compilation. | Mattes D | 2015-01-22 | 1 | -1/+1 |
| | |||||
* | cNetwork: Implemented link address getting. | Mattes D | 2015-01-22 | 1 | -4/+4 |
| | |||||
* | cNetwork: Implemented basic server functionality. | Mattes D | 2015-01-22 | 1 | -1/+67 |
| | |||||
* | cNetwork: Implemented IP-to-hostname lookup. | Mattes D | 2015-01-22 | 1 | -3/+16 |
| | |||||
* | cNetwork: Implemented HostnameToIP lookups. | Mattes D | 2015-01-22 | 4 | -3/+115 |
| | |||||
* | Extracted Google connection test | Tycho | 2015-01-22 | 3 | -0/+100 |
| | |||||
* | Removed test | Tiger Wang | 2014-12-13 | 3 | -176/+0 |
| | |||||
* | Fixed compilation? | Tiger Wang | 2014-11-01 | 1 | -3/+4 |
| | |||||
* | Update creatable.cpp | worktycho | 2014-09-27 | 1 | -0/+1 |
| | |||||
* | Fix accedental c++11 | Tycho | 2014-09-17 | 1 | -6/+7 |
| | |||||
* | Added first test to show the object can be created | Tycho | 2014-09-17 | 3 | -0/+173 |
| | |||||
* | CopyBlocks test: decreased the test size. | madmaxoft | 2014-09-01 | 1 | -2/+2 |
| | | | | It just needlessly ate up test time; there's no need for such rigorous testing once the test started succeeding. | ||||
* | Merge branch 'master' of github.com:mc-server/MCServer | Tycho | 2014-06-16 | 5 | -14/+80 |
| | |||||
* | Reduced the number of cChunkData::CopyBlockTypes() tests, added progress. | Mattes D | 2014-05-30 | 1 | -7/+16 |
| | |||||
* | Fix bugs in test | Tycho | 2014-05-30 | 1 | -3/+5 |
| | |||||
* | Added a cChunkData::CopyBlockTypes() unit test. | Mattes D | 2014-05-30 | 2 | -0/+68 |
| | |||||
* | Fixed cChunkData nibble copying. | madmaxoft | 2014-05-30 | 1 | -4/+4 |
| | |||||
* | Test failures are reported verbosely and into the debug console on Win. | madmaxoft | 2014-05-30 | 1 | -1/+1 |
| | |||||
* | Fixed test return values. | madmaxoft | 2014-05-30 | 2 | -38/+41 |
| | |||||
* | Fixed wrong block sizes for copying / setting. | madmaxoft | 2014-05-29 | 1 | -16/+16 |
| | |||||
* | Fixed test compilation. | madmaxoft | 2014-05-29 | 2 | -16/+16 |
| | |||||
* | Fixed test globals to work with precompiled headers | Tycho | 2014-05-27 | 5 | -143/+4 |
| | |||||
* | inject TestGlobals.h correctly | Tycho | 2014-05-24 | 2 | -2/+3 |
| | |||||
* | Implemented style changes | Tycho | 2014-05-24 | 3 | -176/+87 |
| | |||||
* | Renamed cChunkBuffer to cChunkData | Tycho | 2014-05-21 | 6 | -20/+20 |
| | |||||
* | C++11 | Tycho | 2014-05-17 | 1 | -0/+8 |
| | |||||
* | fixed assignment bugs and Skylight bug | Tycho | 2014-05-17 | 1 | -1/+1 |
| | |||||
* | Fix assignment operators test | worktycho | 2014-05-17 | 1 | -3/+3 |
| | |||||
* | Add test for zeros | worktycho | 2014-05-17 | 1 | -0/+35 |
| | |||||
* | Add tests for assignment operator | worktycho | 2014-05-17 | 1 | -0/+11 |
| | |||||
* | Rewrote array copies test | worktycho | 2014-05-17 | 1 | -36/+51 |
| | | | | Moved each patten test into its own scope to test all unallocated section code paths. Moved 0's around so that they test the allocated sections code paths. | ||||
* | Added some more tests | Tycho | 2014-05-11 | 2 | -116/+242 |
| | |||||
* | Added several more testsfor arrays and coordinates | Tycho | 2014-05-11 | 2 | -1/+5 |
| | |||||
* | test 0 values | Tycho | 2014-05-11 | 1 | -0/+45 |
| | |||||
* | Cerated array copy tests for block and skylight | Tycho | 2014-05-11 | 1 | -0/+36 |
| | |||||
* | Fixed a bug in writting zeros to a non-allocated section | Tycho | 2014-05-11 | 1 | -93/+111 |
| | |||||
* | Fixed stupid buffer overflow in array setblocks | Tycho | 2014-05-10 | 1 | -8/+8 |
| | |||||
* | Add arries copies tests | Tycho | 2014-05-10 | 1 | -0/+53 |
| | |||||
* | Added new test | Tycho | 2014-05-10 | 1 | -0/+4 |
| | |||||
* | Added some more tests | Tycho | 2014-05-10 | 2 | -6/+100 |
| | |||||
* | Maybe coverage working? | Tycho | 2014-05-10 | 2 | -0/+151 |
| | |||||
* | cCHunkBuffer that compiles with TestGlobals.h | Tycho | 2014-05-03 | 3 | -1/+14 |
| | |||||
* | Added Testing capability | Tycho | 2014-04-27 | 3 | -0/+19 |
| | |||||
* | Moved some files. | Alexander Harkness | 2013-12-21 | 5 | -0/+604 |