summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-10-10Adding more customize options to mob spawners and improving the way to look for surrounding entities (#4955)12xx122-3/+51
* added nearly any customize option * fixed unnecessary diff added comments * removed unnecessary const qualifier * fixed build * changed to ForEachEntityInBox * added docs * updated lua api description * checkstyle * added changes suggested by @peterbell10 And now the player may break the server by setting ridiculous ranges * updated docs changed cast to static cast * fixed clang * fixed clang on WSSAnvil.cpp Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-10-05Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell103-215/+228
* Fix cmake not adding Werror on clang, and _lots_ of warnings * WIP: Build fixes * Cannot make intermediate blockhandler instance * Tiger's changes * Fix BitIndex check * Handle invalid NextState values in cMultiVersionProtocol Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-27Fixing Mob spawner behaviour (#4930)12xx122-20/+6
* fixed mob spawner failure (whoopsie in the BlockEntity.GetChunkZ()) Style * fixed spawning behaviour * fixed saving entity type saving * checkstyle * removed debug log * removed short saving * Style Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-25Deleted BiomeDef.h and ChunkDef.h from Globals.h (#4885)KingCol132-2/+2
* Removed BiomeDef.h * Removed ChunkDef.h from Globals.h * Added to CONTRIBUTORS. * Re-added empty last line to Globals.h * Included stddef and StringUtils in BiomeDef.h * Fixed build tools compiling. It compiles, but at what cost? * Added include to src/Generating/Trees.h * Include added in ChunkGeneratorThread.h * Moved rearranged includes in LineBlockTracer.cpp * Re-arrange headers in ChunkInterface.cpp * Included ChunkDef.h in Path.h * Included ChunkDef.h in NBTChunkSerializer.h * Rearranged included and added required includes to headers. * Removed unnecessary included in StringUtils.h.
2020-09-20Added end portal and enchanting table block entities12xx123-54/+128
2020-09-12Use tracing for explosions (#4845)Tiger Wang1-1/+0
* TNT: Implement tracing algorithm + Add intensity tracing * Fix iterating over all players to SendExplosion, even those not in range * Implemented TNT entity interaction * Fixed misaligned destruction tracing * Finalise TNT algorithm - Remove BlockArea and just use chunks Using SetBlock makes it so that we can update everything properly, and does appear to be faster. * BlockInfo learns about explosion attentuation * Rename Explodinator parameters * TNT: pull block destruction into common function Co-authored-by: Alexander Harkness <me@bearbin.net>
2020-09-05Use pitch lookup in noteblock block entity (#4826)12xx122-2/+2
- Removed the calculation in the noteblock block entity I did the calculation in python if anyone is interested where the numbers are from Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-08-28FastNBTWriter: AddString now uses string_viewTiger Wang2-5/+5
* Avoids an allocation for all those string literals we pass in
2020-08-28Save enderchest block entities to storageTiger Wang3-4/+31
+ Add EnderChest saving, as Vanilla does - Remove CreateBlockEntities. Storage should save & load everything so looping over chunk data is not needed
2020-08-28WorldStorage: Removed unused callback parametersTiger Wang2-29/+13
2020-08-21StatSerializer: use std::moveTiger Wang2-7/+7
2020-08-21Make StatSerializer a namespaceTiger Wang2-91/+79
2020-08-21Minor typo fixesTiger Wang1-2/+2
* Also DeMorgan'd Emerald ore condition
2020-08-19Add statistics upgrade mappingTiger Wang2-13/+122
2020-08-19Add Statistics and Achievements for newer Network standards12xx125-97/+350
2020-08-05Delete redundant std::move in World loaderTiger Wang1-14/+14
2020-08-01Replaced cpp14::make_unique<> with std::make_unique<>.Mattes D1-71/+71
2020-07-261.14 connection supportTiger Wang2-2/+2
2020-07-06Remove Schematic Chunk height limitationKrystilizeNevaDies1-1/+1
2020-05-16Upgrade to C++17 [CMake] (#4717)Tiger Wang1-8/+2
* Make our CMake slightly less insane
2020-05-15Enable some more clang-tidy linter checks (#4738)peterbell101-4/+4
* Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate
2020-05-10Cleanup unneeded globals (#4736)peterbell102-4/+4
2020-05-09Update submodules (#4727)peterbell103-7/+6
Closes #4708 This updates jsoncpp, mbedtls, TCLAP and SQLiteCpp to their latest stable release. A few additional changes were needed: * jsoncpp deprecated Reader, FastWriter and StyledWriter which I've replaced with some helper functions in JsonUtils.cpp * SQLiteCpp changed how it builds with external sqlite libraries, now expecting them to be installed. The simplest path was to remove sqlite from cuberite's submodule and just use SQLiteCpp's internal version.
2020-05-07Remove old Android leftovers (#4722)Mat4-16/+16
2020-05-04Fix incorrect formatter invocationTiger Wang1-2/+2
2020-04-30NBT: Dynamic list-max-count protection. (#4697)Mattes D3-11/+34
2020-04-16Using Super.Mattes D4-8/+8
2020-04-10Oops, remember to save your files!Alexander Harkness1-6/+0
2020-04-10Add Zombie VillagersBond-0093-11/+60
2020-04-04Implement wither skeletons (#4563)Mat3-41/+67
2020-04-03Manage block entity lifetime with unique_ptr (#4080)peterbell102-53/+51
2020-04-03Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D5-11/+20
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
2019-09-29Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2-120/+121
2019-09-24NBTChunkSerializer: Cleaned up interface.Mattes D3-950/+889
Removed dependency on cChunkDataCallback. Moved all the serializing code into a worker class. Changed the serialization into a single-call action.
2019-09-06Separated chunk generator from world / plugin interfaces.Mattes D1-2/+2
The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests.
2019-08-11Fix building with clang 8.0 (#4346)Bond-0091-4/+6
2018-09-24Add a formatting function for Vector3 (#4282)peterbell101-7/+7
* Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG
2018-08-29Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell106-9/+6
Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
2018-07-26CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell103-3/+9
Add check for number of empty lines between functions and fix the corresponding failures
2018-07-22cIsThread: Reset m_ShouldTerminate after the thread has stopped (#4258)peterbell101-1/+1
This allows threads to be restarted after stopping. Fixes #4257
2018-05-02Prefer static_cast to reinterpret_cast (#4223)peterbell101-49/+49
* Change reinterpret_cast -> static_cast wherever possible * Remove more unnecessary `const_cast`s. reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
2018-02-05Deal with covered switches consistently (#4161)peterbell102-50/+41
* 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()
2018-01-03Add the fmt library (#4065)peterbell105-13/+12
* 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.
2017-11-22Store Health as a float (#4073)Fabian2-3/+22
* Fix #4024 * Fix clang error * Add comment * Fix behaviour * Save Health as float * Changed m_Health to float * Remove redundant static_cast * Fix casts
2017-10-21cWorld Threads: Seperate initialization and thread start.peterbell102-5/+4
Prevents nullptr dereferences before Start has been called.
2017-09-19Removed UTF-8 BOM (#4033)Lukas Pioch2-2/+2
2017-09-14Fix switch warnings (#4013)peterbell103-52/+54
* Fix switch warnings * Fix a variety of -Wswitch and -Wswitch-enum warnings * Remove unneeded -Wno-error flags * Reorganise some eMonsterType switches * Alpha sort eMonsterType cases in WriteMobMetadata and in cNBTChunkSerializer::AddMonsterEntity * List all mob types in protocol 1.12 and NBTChunkSerializer * cStructGenTrees::GetNumTrees: remove switch default * cWSSAnvil::LoadOldMinecartFromNBT: Log unhandled minecart type
2017-09-11cBlockArea: use unique_ptrpeterbell101-4/+4
2017-09-07Made world data paths adjustable, and added API to temporarily disable saving chunks to disk. (#3912)Lane Kolbly1-3/+3
2017-09-07Switched player statistic store to save with UUID filenames. (#4002)Lane Kolbly2-4/+10
2017-09-07Changed some int parameters to vector parameters (#3937)Bond-0091-2/+2
2017-08-26Implement anvil chunk sparsingpeterbell103-26/+25
2017-08-25Add cUUID class (#3871)peterbell103-26/+25
2017-08-24Minor changes (#3909)mathiascode1-1/+1
2017-08-21Fully implemented leashes (#3798)Pablo Beltrán4-2/+119
2017-08-18Represent cItem::m_Lore as an AStringVector (#3882)peterbell102-5/+22
* Replace cItem::m_Lore with AStringVector * Reword deprecation warning * Fix lua bindings
2017-08-13Replaced includes with forward declarationsLukas Pioch1-2/+1
2017-08-07Changed entity ownership model to use smart pointersTiger Wang1-53/+53
2017-08-06Removed unneeded includes (#3902)Lukas Pioch1-1/+0
2017-08-03Remove double includes part 2 (#3890)peterbell103-11/+0
2017-08-03Removed unused forward declarations (#3888)Lukas Pioch2-6/+0
2017-08-02Fix BSD buildpeterbell101-0/+1
2017-08-02Removed double includes (#3885)Lukas Pioch1-2/+0
2017-07-30cParsedNBT: Improved error reporting (#3876)peterbell102-55/+206
* cParsedNBT: Improved error reporting * Fix typos
2017-07-21Remove smart pointer macrospeterbell101-1/+1
2017-07-12Added basic ocelot behavior (#3829)Bond-0093-13/+51
2017-07-07Added bed entity (#3823)Lukas Pioch4-0/+45
* Added bed entity * Export cBedEntity to lua * Set color of bed through item damage value * Added bed entity to APIDoc * NBT: Added loading and saving * Crafting recipes for the colored beds
2017-06-23Load entities from old and new namesLukas Pioch2-224/+150
2017-06-21Anvil storage: load block entities from both old and new name-styles. (#3784)Mattes D2-80/+129
* WSSAnvil: Load the sign text from JSON, too.
2017-06-16BlockEntities: Support cloning self.Mattes D2-78/+81
2017-05-24Exported boatLukas Pioch2-1/+8
- NBT: Added saving / loading of material - Added the material in the item handler of the boat - Drop the correct boat if destroyed - APIDoc: Added desc and functions
2017-05-22Store cChunk::m_BlockEntities in a map (#3717)peterbell102-4/+7
* Store block entities in a map from block index * Cleanup ForEachBlockEntity * Cleanup DoWithBlockEntityAt
2017-05-21Clang 5.0 fixesLukas Pioch2-2/+2
- Added override keyword - Removed inherited member variables
2017-05-08Corrected brewingstand and added support for fuelLukas Pioch2-2/+11
2017-03-22NBT: Corrected firework loadingLukas Pioch1-2/+2
2016-12-15Fixed minecart destruction using deallocated memory.Mattes D1-0/+2
2016-11-07Fixed TrappedChest saving. (#3423)Mattes D2-5/+16
Vanilla uses "Chest" in NBT for trapped chests.
2016-09-27Use cChunkDef::Height for Y coord comparison where applicable.Moritz Borcherding2-2/+2
2016-08-24Fixed type-casting-related warnings.Mattes D4-18/+21
2016-07-18CMake: Remove needless minimum version specifications.Mattes D1-2/+0
2016-06-18SelfTests: Moved SchematicFileSerializer test into a separate project.Mattes D1-36/+0
2016-02-05Bulk clearing of whitespaceLogicParrot14-289/+289
2016-01-29MCServer to CuberiteMathias1-1/+1
2016-01-11Changed the format of the MobHead data to allow MobHeads working on MInecraft 1.8bibo382-4/+54
The NBT format now carries the texture data and transmit it to the client. See: http://minecraft.gamepedia.com/Head#Block_entity Related to #2674
2016-01-01Renamed leftover strings to Cuberite / Server, as needed.Mattes D1-1/+1
Also upgraded the user setting file for MSVC to 2013.
2015-12-18Fix off by two error in ReadStringworktycho1-1/+1
2015-12-18Check for invalid tags when reading a compound tagtycho1-2/+6
2015-12-18Fixed String Parsing crash bugtycho1-5/+1
Check string length against actual remaining data, not an abitary constant
2015-12-11Test for correct coordinates when fishingGargaj1-0/+1
Fun fact: this was able to actually deadlock the server depending on where you were standing :)
2015-12-10Test for correct coordinates when fishingGargaj1-0/+1
Fun fact: this was able to actually deadlock the server depending on where you were standing :)
2015-11-16changed mob age from char to intJulian Laubstein2-28/+82
2015-11-03Implemented brewingLukas Pioch4-0/+71
2015-10-26Update Loops required for JsonCPPLukas Pioch1-2/+2
2015-10-04Fixed a race condition between chunk loader and generator.Mattes D2-32/+10
When using ChunkWorx to generate multiple chunks, the server would sometimes fail an assert because it would generate a chunk even when it was successfully loaded. This was caused by chunks queued in cWorld's m_SetChunkDataQueue and thus being marked as "InQueue" although they were already loaded. Solved by adding a new parameter to chunk coord callbacks specifying whether the operation succeeded or failed, and using that instead of the chunk presence flag to decide whether to generate or not.
2015-09-25Compile.sh namechange to cuberiteSafwat Halaby2-2/+2
2015-09-25Namechange to CuberiteMattes D2-2/+2
2015-07-31Unified the doxy-comment format.Mattes D6-21/+29
2015-07-31Chunks that fail to load are offloaded to extra files.Mattes D2-61/+107
Ref.: #1970
2015-07-31Added reason parameter to load failures.Mattes D1-13/+13
2015-07-31Moved AString reading hack to cFile.Mattes D1-16/+17
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney6-165/+161
2015-07-17 Added Rabbit Metadata values.bibo382-44/+60
Added the Rabbit Types and the MoreCarrotTicks value. Types are selected randomly on creation. Fixes #1867
2015-07-14Support ageable mobsHallucino2-12/+100
Move ageable stuff in Monster directly
2015-07-12Changing the shared_ptr/unique_ptr constructors to the make_shared/make_unique functionsbibo381-64/+64
2015-07-09Fixes compilation failures on MacOSX 10.10Samuel Barney2-36/+36
* Replace old c-style casts with c++ casts * Added `-Wno-error=old-style-cast` to Protocol18x.cpp
2015-06-19Externalized cPrefabPiecePool self-test.Mattes D2-14/+16
2015-06-14Fixed log files' timestampsTiger Wang1-2/+2
Also made Release mode log less technical information about the world storage threads.
2015-06-11SelfTests are registered and executed after logging framework init.Mattes D1-0/+6
Fixes #2228.
2015-06-03Fixes multiple furnace issues, including from loading world storageHaoTNN1-2/+3
2015-06-02Fixed warnings in MSVC.Mattes D1-0/+3
It complained about undefined return values or using uninitialized variables.
2015-05-24Disable -Werror for warnings in tests.tycho1-1/+1
2015-05-24Made -Weverything an error.tycho2-8/+12
2015-05-19Make -Werror disabling file onlytycho5-13/+21
Ad fix a load of warnings
2015-05-09CheckBasicStyle: checks spaces around * and &.Mattes D8-14/+14
2015-05-09More style checking.Mattes D5-11/+11
Spaces around some operators are checked.
2015-04-27cSetChunkData constructor explicitly requires std::move() instead ofWoazboat1-1/+1
unsafely stealing data
2015-03-14cPainting saving implementedTiger Wang4-14/+47
Additionally, it now inherits from cHangingEntity.
2015-03-13Fixed confusion over Item Frame directionsTiger Wang2-55/+11
2015-02-18Flower pots: In 1.8 items are saved with the name and not the id.Howaner1-5/+12
2015-02-08WSSAnvil: Fixed chunk data padding.Mattes D1-2/+5
When the chunk data fit perfectly into the old space, an extra 4 KiB of padding zeroes were written, overwriting the next chunk. Fixes #1730.
2015-01-23Fixed negative return values in SchematicFileSerializer.Matyas Dolak1-1/+3
Fixes CID 103165.
2015-01-20Fixed warnings in FastNBT.cpp.Mattes D1-39/+40
2014-12-21WSSAnvil: Added clamping to entity coords.Mattes D1-3/+3
Fixes CID 72854.
2014-12-21FastNBT: Added a sanity check for number of list items.Mattes D1-1/+8
Fixes CID 55812.
2014-12-20Added RabbitsMasy983-0/+27
2014-12-18Added Entity GuardianMasy983-0/+27
2014-12-11Cosmetic touchups.Mattes D1-4/+5
Removed trailing whitespace, added cast to remove warning, added file seeking in case of corrupt files.
2014-12-10Added a cWorld:PrepareChunk function.Mattes D2-17/+47
It prepares the chunk - loads or generates it and lights it. The spawn prepare process uses this function.
2014-12-08Check to see if header write out is requiredplanetx1-17/+15
2014-12-08Added timestamp to merged files WSSAnvilplanetx1-1/+1
2014-12-08Added timestamp to merged files WSSAnvilplanetx1-62/+62
2014-12-08Added timestamp to new files WSSAnvilplanetx2-79/+149
2014-12-07Added Timestamp info to chunks in WSSAnvilplanetx2-87/+47
2014-12-06Replaced most auto_ptr with unique_ptr.Mattes D1-61/+61
2014-12-05BasicStyle: Added missing braces to control statements.Mattes D1-10/+21
2014-12-01MobSpawner fixes.Howaner1-1/+1
2014-11-29Many api fixes, add vanilla names to mob type -> string functions and mob spawner fixes.Howaner1-1/+1
2014-11-26WSSAnvil: Fixed bad code in arrow loading.Mattes D1-2/+8
2014-11-18Finished mob spawner implementation.Howaner3-2/+54
2014-10-29Fixed 1.8 world item format reading.Howaner1-2/+19
2014-10-27Fixed compile (typos).Alexander Harkness1-2/+2
2014-10-27Another one.#Alexander Harkness1-0/+22
2014-10-23En masse NULL -> nullptr replaceTiger Wang5-53/+53
2014-10-21cItemFrame: Fixed a forgotten rename.Mattes D1-1/+1
2014-10-21Properly exported cItemFrame and cHangingEntity to Lua.Mattes D2-28/+39
2014-10-21Replace &*[0] accesses with .data()Tiger Wang2-6/+6
2014-10-20En masse NULL -> nullptr replaceTiger Wang5-53/+53
2014-09-30Removed WSSCompactTiger Wang4-1227/+0
2014-09-26Fixed UNUSED macro so that it doesn't require type knowledge.madmaxoft1-4/+4
Introduced new UNUSED_VAR macro that is used when type knowledge is available (for local variables).
2014-09-26Added type checking to map loading.Howaner2-11/+11
2014-09-25Anvil: Arrow Tile tags are a short in VanillaHowaner2-7/+24
2014-09-25Fixed hanging direction bugs.Howaner1-1/+1
2014-09-24derpHowaner1-4/+4
2014-09-24Don't create two entity lists.Howaner2-7/+14
2014-09-23Anvil: Wolf collar color is a byte in Vanilla.madmaxoft2-4/+18
Kept the old Int reading for compatibility reasons. Ref.: #1448
2014-09-23Fixed a crash in WSSAnvil.madmaxoft1-3/+3
Reported as #1448.
2014-09-23MCServer world compatiblity with vanilla and mcedit.Howaner3-5/+52
2014-09-20Fixed cParsedNBT::FindTagByPath().madmaxoft1-1/+1
There was an off-by-one error in the name handling.
2014-09-19Implemented mob spawner.Howaner2-12/+29
2014-09-17Added first test to show the object can be createdTycho1-41/+41
2014-09-13Implemented Chest MinecartsTiger Wang1-1/+1
2014-09-06Added Y-wise asserts to signs.Mattes D1-0/+2
This should help detect #1313's second case.
2014-09-06Anvil: Fixed an off-by-one error in the loader.Mattes D1-1/+1
Fixes #1307.
2014-09-06Fixed scoreboard loader type checks.Mattes D1-10/+10
Fixes scoreboard loading error reported on the Dropper map in #1307.
2014-09-05WorldStorage no longer queues chunks into generator.Mattes D2-49/+13
2014-09-05Fixed loading empty chunks.Mattes D1-1/+7
Reported on the Dropper map in #1307.
2014-09-05Rewritten chunk status to specify whether the chunk is in queue.Mattes D1-5/+6
This fixes #1370.
2014-09-05Anvil: Fixed loading block entities with invalid Y coord.Mattes D1-1/+1
2014-09-04Anvil: Cleanly refuse to store data that is too large.madmaxoft1-1/+7
Each chunk in MCA needs to be less than 1 MiB compressed; chunks that are larger will be refused with a log message.
2014-09-03Anvil: switched inflate to stream mode.madmaxoft1-18/+6
This removes the fixed-size buffer which could have caused #1307 and #1366.
2014-09-03commitLO1ZB1-1/+1
2014-09-03hopefully the last commit for removing y-coord from chunks. :)LO1ZB1-1/+1
2014-09-02Clang wants volatile...madmaxoft1-1/+1
2014-09-02Added strict error reporting to chunk loading.madmaxoft1-1/+29
This should help with #1307.
2014-09-02Added CustomName saving.Howaner2-0/+15
2014-08-30WSSAnvil: Removed leftover debugging code.madmaxoft1-4/+0
2014-08-29Rewritten block entity loading.Mattes D2-212/+257
Block entities are now loaded based on the blocktype at the coords they specify; before loading, their type ("id" NBT tag) is checked. The chunk now expects that all block entities given to it via cChunk::SetAllData() have their valid blocktype; asserts if they don't. Fixes #1354.
2014-08-29Removed unused codeTiger Wang1-1/+0
2014-08-28remove y-coord from chunksLO1ZB3-24/+22
2014-08-21Added initializers for class members.Mattes D1-0/+4
As reported by Coverity, these weren't initialized.
2014-08-04CheckBasicStyle: multi-level indent change.madmaxoft1-3/+5
2014-08-04Refactored case-conversion functions.madmaxoft1-1/+6
StrToLower() returns a modified copy of the string, InPlaceLowercase() modifies the string in-place.
2014-08-04Anvil: Wolf owner not saved if not present.madmaxoft1-2/+8
2014-08-03Wolf uses UUID for owner.madmaxoft3-14/+69
Fixes #1277.
2014-08-03Fixed a ToLua warning - operator = not supported.madmaxoft1-1/+1
2014-07-31Renamed "select..." methods to "set..." and better IsValidEffect() function.Howaner1-2/+2
2014-07-31Renamed functions and added beacon json saving.Howaner3-4/+24
2014-07-30Added beacon load/save.Howaner4-1/+71
2014-07-29Slight cleanup after portalsTiger Wang2-7/+1
2014-07-26Moved potion static functions to EntityEffect to create splash potions through worldarchshift1-1/+1
2014-07-24Removed redundant semicolons and re-added warningarchshift2-3/+3
2014-07-24Added a queue for setting chunk data.madmaxoft2-4/+6
Fixes #1196.
2014-07-21Style: Normalized to no spaces before closing parenthesis.madmaxoft2-52/+58
2014-07-21Style: Normalized spaces after if, for and while.madmaxoft1-18/+18
2014-07-20NBTChunkSerializer.cpp: Added break after serializing the splash potionarchshift1-0/+1
2014-07-19Code style: Fixed braces on separate lines.madmaxoft1-2/+3
2014-07-19Fixed style: spaces after commas.madmaxoft3-5/+5
2014-07-19Splash potions: Renamed PotionParticleType to PotionColor for clarityarchshift2-2/+2
2014-07-19Subdirs: Only add_library if not using MSVCarchshift1-2/+4
2014-07-19WorldStorage/CMakeLists.txt: Replaced glob with list of filesarchshift1-5/+26
2014-07-17Fixed tabs used for alignment.madmaxoft1-4/+3
2014-07-17More trailing whitespace fixes.madmaxoft1-1/+1
2014-07-17Basic style fixes.madmaxoft7-22/+22
2014-07-17Normalized comments.madmaxoft9-31/+31
This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
2014-07-15Restructured cSplashPotionEntity code.madmaxoft2-2/+2
The callback doesn't need declaration in the header. Renamed PotionName to PotionParticleType.
2014-07-12cNBTChunkSerializer: Fixed alignment.madmaxoft1-14/+14
2014-07-12Suggestions and bug fixTiger Wang1-10/+9
* Fixed hoppers pushing/pulling to/from (trapped)chests that do not form a double-chest with the chest type directly connected to said hopper; thank you, @madmaxoft
2014-07-12Added splash potions to NBT serialization and retrievalarchshift4-0/+41
2014-07-11SuggestionsTiger Wang1-4/+4
2014-07-08Made things consistentTiger Wang1-2/+4
2014-07-07Implemented trapped chests & othersTiger Wang5-9/+14
+ Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
2014-07-04Various fixedTiger Wang1-7/+4
* Fixed potential invalid pointer dereferencing, fixes #1117 * Fixed ender pearls not being loaded properly
2014-07-04Removed world-saving log messages.madmaxoft2-33/+5
Ref.: http://forum.mc-server.org/showthread.php?tid=1518
2014-07-02SuggestionsTiger Wang2-11/+17
2014-06-30Removed unneeded codeTiger Wang4-38/+1
2014-06-29Properly implemented enderchestsTiger Wang4-0/+38
2014-06-29Code fixes.Howaner1-1/+1
2014-06-28Save IsSheared from Sheep.Howaner1-4/+11
2014-06-24Add entity health saving.Howaner2-16/+8
2014-06-20MCA saver marks chunks as populated.madmaxoft1-0/+3
Fixes #140.
2014-06-19Nullify deleted pointers.archshift1-0/+1
2014-06-17The motion is already set in AddBasicEntity()Howaner1-5/+0
2014-06-04Time and weather is saved, part of #1058Tiger Wang1-3/+10
Also fixed unreliability in Health and LootPickup loading.
2014-06-04Health of monsters is now savedTiger Wang2-0/+2
2014-06-04Fixed mob loading, part of #1058Tiger Wang1-1/+1
2014-05-28Code improvementsHowaner1-1/+0
2014-05-28Add throw sound and fix arrow server crash.Howaner1-0/+1
2014-05-21Renamed cChunkBuffer to cChunkDataTycho1-1/+1
2014-05-18Fixed issue with types not being defined for an unused parameterTycho2-2/+2
2014-05-13Fixesandrew2-3/+8
2014-05-12More switch warnings.archshift1-0/+7
2014-05-12Fixed a few more switch warnings.archshift1-17/+20
2014-05-11Fixed a warning and a complaint about a never-read variable.archshift1-1/+0
2014-05-11Fixed stat serializationandrew1-5/+22
2014-05-11Statistic Managerandrew2-0/+179
2014-05-09Fixed size_t in FireworksSerializer.Mattes D1-2/+2
2014-05-09Fixed message formatting.Mattes D1-2/+2
2014-05-09Even more size_t fixes.Mattes D1-4/+4
2014-05-09More size_t fixes.Mattes D2-6/+6
2014-05-09Build fixes after the last size_t batch.Mattes D6-15/+15
2014-05-09Range Check on schematic sizeworktycho1-1/+1
Fixes CID 55830
2014-05-09Fixed MSVC 64-bit build warnings.Mattes D5-36/+38
2014-05-09Check the height and width values read.worktycho1-0/+8
Fixes CID 55831
2014-05-08Fixed MSVC 64-bit build warnings.Mattes D5-36/+38
2014-05-07Change m_RepairCost to int.Howaner2-2/+2
2014-05-07Fix MagmaCube save.Howaner2-3/+9
2014-05-07Add repair cost to cItem, add custom name to NBTChunkSerializer and fix anvil bugs.Howaner2-12/+59
2014-05-01Fixed warnings in FastNBT.madmaxoft1-2/+2
2014-05-01Anvil saver pads data to 4K boundaries.madmaxoft1-0/+5
Fixes #524.
2014-04-28Revert "Changed the old invulnerable methods from the wither to the new."Howaner2-9/+2
This reverts commit d50f8f6f11f69e7e1e56be92fb2d72a5014a3e34.
2014-04-28Fixed projectile source filenames, indentationsarchshift2-7/+7
2014-04-27Moved cGhastFireballEntity out of ProjectileEntity.harchshift1-0/+1
2014-04-27Moved cFireChargeEntity out of ProjectileEntity.harchshift1-0/+1
2014-04-27Moved cThrownSnowballEntity out of ProjectileEntity.harchshift1-0/+1
2014-04-27Moved cThrownEnderPearl out of ProjectileEntity.harchshift1-0/+1
2014-04-27Moved cThrownEggEntity out of ProjectileEntity.harchshift1-1/+1
2014-04-27Moved cArrowEntity out of ProjectileEntity.harchshift2-2/+2
2014-04-26Implemented Chunk Sparsing with segmentsTycho4-11/+9
2014-04-26Further refactored, Reverted Minecart changearchshift1-4/+4
Other small changes.
2014-04-26Changed the old invulnerable methods from the wither to the new.Howaner2-2/+9
2014-04-26FixesHowaner2-2/+2
2014-04-26Removed unused assignments.archshift1-1/+0
2014-04-26Fix for minor resource leak (CID 43616)jfhumann1-1/+9
2014-04-25Cmake generated projects for IDEs include headers in project files.archshift1-0/+1
2014-04-25Small changes; warning fixing.archshift1-4/+4
2014-04-24Fixed class capitalization for the cave spider.archshift1-1/+1
2014-04-24Fixed references to renamed files.archshift1-1/+1
2014-04-18Did some static analysis, fixed some bugs and optimized a lot of codejfhumann3-4/+4
2014-04-15Rewrote redstone powering to use power levelsTiger Wang2-2/+2
2014-04-08Removed check for enqueuing a chunk that is already enqueued to be loadedTycho1-1/+1
This remaval is safe as cWorldStorage checks for duplicate chunks when dequeuing and removes an expensive iteration whilst holding the queue lock
2014-04-04Fixed silly Clang's warnings in FastNBT.madmaxoft1-28/+28
2014-04-02Added schematic string serializer self-test.madmaxoft1-0/+33
2014-03-25BlockArea: Switched internal coords to Vector3i.madmaxoft1-5/+5
2014-03-25Ender crystalsandrew4-0/+35
2014-03-25Added one more missing newline.Samuel Barney1-1/+1
2014-03-24Wither invulnerabilityandrew3-3/+19
2014-03-17Fixed a crash in firework rockets.madmaxoft1-2/+8
Fixes #816.
2014-03-16Add new leaves to all classes.Howaner1-0/+1
2014-03-16Add anvil direction.Howaner1-1/+9
2014-03-15Remove old debug messages.Howaner1-3/+0
2014-03-15Add item frame saving.Howaner4-2/+130
2014-03-15Add health and age load to pickup's.Howaner2-6/+20
2014-03-15Add ExpOrb saving.Howaner4-28/+90
2014-03-12Added additional macros to support the MSVC size_t format and changed all formats to use the macrosTycho1-5/+5
2014-03-11Fixed a load of format string errorsTycho1-5/+5
2014-03-11Unified Vector classesandrew1-1/+1
2014-03-12Renamed cBlockArea Offset to WEOffset.madmaxoft1-2/+2
Even in getters / setters.
2014-03-11Renamed m_Offset to m_WEOffsetSTRWarrior1-3/+3
2014-03-10Fixed xofts issuesTycho2-1/+5
2014-03-10Removed Some unnessicary macrosTycho1-2/+2
2014-03-10Use string.reserve to avoid the need to do inplace byteswapTycho1-10/+6
2014-03-10Removed unused macro from WSSCompactTycho1-1/+0
2014-03-10Fixed alignment issues in Fireworks SerializerTycho1-7/+7
2014-03-10This allows a blockarea to have an Offset.STRWarrior1-0/+23
2014-03-10Fixed MSVC2008 compilation.madmaxoft1-4/+4
2014-03-09Its a const not a macroTycho1-1/+1
2014-03-09Take 5Tycho1-1/+1
2014-03-09Take 4Tycho1-1/+1
2014-03-09Unsigned types take 3Tycho1-1/+1
2014-03-09Fix gcc error attempt 2Tycho1-1/+1
2014-03-09Fixed gcc errorTycho1-1/+1
2014-03-09Hexified coloursTiger Wang1-16/+16
2014-03-09Fixed data length issuesTiger Wang1-2/+3
2014-03-09Demonstrated issues with GetDataLength()Tiger Wang2-5/+11
2014-03-08Change TNT Fuse to ticksHowaner2-3/+2
2014-03-08Add TNT Save/Load and add Netbeans projects to .gitignoreHowaner4-1/+45
2014-03-07Fixed cBlockArea schematic string saving signature.madmaxoft2-6/+5
2014-03-07Added cBlockArea serialization to string.madmaxoft2-32/+135
Fixes #665.
2014-03-07Add Flower PotsHowaner5-3/+91
2014-03-02Added more documentation for FastNBT parser.madmaxoft1-3/+45
2014-03-01Shortened enumsandrew1-7/+7
2014-03-01Improved comments in float size check.madmaxoft1-2/+2
2014-02-28Better fix for the 32-bit float reading.madmaxoft1-4/+5
2014-02-27Fixed compileTiger Wang2-3/+2
2014-02-27Implemented ballistic missiles (fireworks)Tiger Wang5-4/+356
+ Added fireworks
2014-02-26Fixed a gcc warning in FastNBT.h.madmaxoft1-2/+11
2014-02-24Fixed MCServer not compiling with C++03 compilersSTRWarrior1-2/+2
2014-02-23Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper3-0/+198
2014-02-23Rename SkullEntity to MobHeadEntityHowaner4-18/+18
2014-02-23Add Heads completelyHowaner1-1/+1
2014-02-23Add Skulls/HeadsHowaner4-5/+64
2014-02-23Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper3-0/+198
2014-02-23Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper2-0/+3
2014-02-23Fixed Compiling IssuesTheJumper3-10/+31
2014-02-23Fixed Formatting, Added DropChance attributes to MonstersTheJumper3-0/+174
2014-02-23Maps: Improvementsandrew1-1/+5
2014-02-19Rename SkullEntity to MobHeadEntityHowaner4-18/+18
2014-02-19Documented cMapandrew1-0/+2
2014-02-18Add Heads completelyHowaner1-1/+1
2014-02-18Implemented paintings, fixes #689Tiger Wang1-0/+1
+ Implemented paintings
2014-02-18Implemented item frames, a part of #689Tiger Wang1-0/+1
+ Implemented Item Frames * Fixed Pitch and Yaw being wrongly flipped in the protocol (XOFT!)
2014-02-17Add Skulls/HeadsHowaner4-5/+64
2014-02-17Map item handler; Fixed several bugsandrew2-4/+14
2014-02-14Send map when selectedandrew1-3/+6
2014-02-13IDCount Serializationandrew2-1/+103
2014-02-13Implementation of in-game mapsandrew2-0/+241
2014-02-12Fixed #573STRWarrior1-4/+4
2014-02-09Fixed compile and some warnings in MSVSTiger Wang1-2/+2
2014-02-03Partial fix for #130Tiger Wang1-0/+1
2014-02-02Added saving of angry flag.Kirill Kirilenko2-0/+7
2014-02-02Fixed sitting tag.Kirill Kirilenko2-5/+5
2014-02-01Added saving of collar's color.Kirill Kirilenko2-4/+11
2014-01-31Added reading saved state of the wolf (sitting or standing).Kirill Kirilenko1-0/+6
2014-01-31Inversed condition.STRWarrior1-1/+1
2014-01-31Wolf: If Owner tag is missing a normal ownerless wolf will spawn.STRWarrior1-9/+6
2014-01-30Fixed bad variable.STRWarrior1-1/+1
2014-01-30Check if the tag is found.STRWarrior1-0/+5
2014-01-30Fixes #606STRWarrior2-2/+9
2014-01-26Item-loading now checks for weird bytes.madmaxoft1-3/+9
2014-01-25Fixed exportsTycho1-4/+1
2014-01-24Fixed a few compile-time and runtime warnings in ScoreboardSerializer.madmaxoft1-8/+4
2014-01-24Fixed crash with failed entity-loading.madmaxoft1-2/+7
This should fix issues reported in: http://forum.mc-server.org/showthread.php?tid=1328 http://forum.mc-server.org/showthread.php?tid=1308
2014-01-23Fixed a warning in ScoreboardSerializer.madmaxoft1-2/+2
2014-01-23Fixed scoreboard.dat structureandrew1-5/+6
2014-01-23Fixed scoreboard serializationandrew1-35/+26
2014-01-23Improved code safety for the Compact world storage.Mattes D1-104/+72
That was a huge chunk of smelly code.
2014-01-23Command block fixes 2andrew2-17/+40
2014-01-22Fixed spelling errorTycho2-1/+1
2014-01-22Added manual bindings for moved functionsTycho1-2/+4
2014-01-22formatting changesTycho2-6/+26
2014-01-22cWorld now saves/loads the scoreboardandrew1-5/+10
2014-01-21Scoreboard protocol supportandrew1-0/+4
2014-01-20Actually implemented interfacesTycho2-21/+28
2014-01-20Moved Schematic file methods to seperate classTycho2-0/+175
2014-01-20Scoreboard serializationandrew1-5/+72
2014-01-20Scoreboard deserializationandrew3-1/+366
2014-01-19Switched EnchantmentSerilizer to namespaceTycho4-10/+11
2014-01-19Spilt Writing of Enchantments to seperate classTycho4-2/+108
Created a new class cEnchantmentSerializer to serilize Enchantments to NBT. This breaks a dependecy chain between cChunkGenerator and cWorld. cEnchantmentSerializer is seperate from NBTWriter as it needs to access private members of cEnchantments so having it seperate reduces the spread of the frein modifier
2014-01-18Parse the MC|AdvCdm plugin messageandrew1-1/+1
2014-01-18Command blocks: Execute()andrew1-1/+1
2014-01-18Command block (de)serializationandrew4-18/+80
2014-01-17Added user setting compression factorTycho6-18/+25
2014-01-17Removed internal cEntity::GetRot() usage.madmaxoft1-1/+1
2014-01-16Removed obsoleted functionsTiger Wang2-2/+2
2014-01-12Renamed cEmptyMinecart to cRideableMinecartSTRWarrior1-1/+1
2014-01-12EmptyMinecarts should be able to get a block inside of them.STRWarrior1-1/+1
2014-01-07Fixed a few MSVC warnings.madmaxoft1-5/+8
2014-01-06Fixed wrong enqueueing.madmaxoft1-2/+9
Fixes #505.
2014-01-02fixed a few remaining issues with worldstorageTycho Bickerstaff2-24/+6
2014-01-02More memory alignment fixes.madmaxoft1-3/+3
Ref.: #420.
2014-01-02Fixed unaligned memory access in FastNBT.madmaxoft1-5/+5
This should fix #420.
2014-01-02rewrote queue not to use promises for waitsTycho Bickerstaff2-15/+9
2013-12-31refactored chunk Queue to seperate classTycho Bickerstaff2-97/+67
2013-12-25Preliminary mobile entity savingTiger Wang3-12/+788
* Fixes #252 * Alleviates #380 + Adds mob saving * Fixed some debug !ASSERTs
2013-12-22added link dependency between WorldStorage and OSSupportTycho Bickerstaff1-0/+2
2013-12-22fixed accedental commitTycho Bickerstaff1-2/+1
2013-12-22fixed rdynamic as its not acctually needed a cmake handles it, looks like the problem was caused by the linux linker accepting the option twice and the os x linker notTycho Bickerstaff1-1/+2
2013-12-20Attempt at fixing cChunkDef::Height signedness.madmaxoft2-3/+11
2013-12-20Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft2-4/+4
2013-12-11moved Worldstorage to globsTycho Bickerstaff1-1/+5
2013-12-10more cmakeTycho Bickerstaff1-0/+7
2013-11-28Moved json includes to where they are really needed.madmaxoft2-1/+1
2013-11-27Fixed VC2008 compilation, normalized include paths.madmaxoft2-2/+2
2013-11-27Fixed the remaining derpsAlexander Harkness3-4/+4
2013-11-25Further attempts to fix compileTiger Wang3-4/+4
2013-11-24Attempt to fix compilationTiger Wang3-4/+4
2013-11-24Moved source to srcAlexander Harkness10-0/+4925