summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/WSSAnvil.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-11-26WSSAnvil: Fixed bad code in arrow loading.Mattes D1-2/+8
2014-10-29Fixed 1.8 world item format reading.Howaner1-2/+19
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-44/+44
2014-10-21cItemFrame: Fixed a forgotten rename.Mattes D1-1/+1
2014-10-21Properly exported cItemFrame and cHangingEntity to Lua.Mattes D1-16/+27
2014-09-25Anvil: Arrow Tile tags are a short in VanillaHowaner1-4/+21
2014-09-25Fixed hanging direction bugs.Howaner1-1/+1
2014-09-24Don't create two entity lists.Howaner1-7/+2
2014-09-23Anvil: Wolf collar color is a byte in Vanilla.madmaxoft1-3/+17
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.Howaner1-5/+34
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-05Fixed loading empty chunks.Mattes D1-1/+7
Reported on the Dropper map in #1307.
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-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.Howaner1-0/+13
2014-08-30WSSAnvil: Removed leftover debugging code.madmaxoft1-4/+0
2014-08-29Rewritten block entity loading.Mattes D1-200/+238
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-04Refactored case-conversion functions.madmaxoft1-1/+6
StrToLower() returns a modified copy of the string, InPlaceLowercase() modifies the string in-place.
2014-08-03Wolf uses UUID for owner.madmaxoft1-10/+59
Fixes #1277.
2014-07-31Renamed "select..." methods to "set..." and better IsValidEffect() function.Howaner1-2/+2
2014-07-31Renamed functions and added beacon json saving.Howaner1-2/+2
2014-07-30Added beacon load/save.Howaner1-1/+49
2014-07-29Slight cleanup after portalsTiger Wang1-6/+1
2014-07-26Moved potion static functions to EntityEffect to create splash potions through worldarchshift1-1/+1
2014-07-24Added a queue for setting chunk data.madmaxoft1-2/+3
Fixes #1196.
2014-07-19Splash potions: Renamed PotionParticleType to PotionColor for clarityarchshift1-1/+1
2014-07-17Basic style fixes.madmaxoft1-6/+6
2014-07-17Normalized comments.madmaxoft1-4/+4
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.madmaxoft1-1/+1
The callback doesn't need declaration in the header. Renamed PotionName to PotionParticleType.
2014-07-12Added splash potions to NBT serialization and retrievalarchshift1-0/+28
2014-07-07Implemented trapped chests & othersTiger Wang1-3/+7
+ Added trapped chests * Fixed a bunch of bugs in the redstone simulator concerning wires and repeaters * Other potential bugfixes
2014-07-02SuggestionsTiger Wang1-2/+9
2014-06-30Removed unneeded codeTiger Wang1-21/+0
2014-06-29Properly implemented enderchestsTiger Wang1-0/+21
2014-06-29Code fixes.Howaner1-1/+1
2014-06-28Save IsSheared from Sheep.Howaner1-4/+11
2014-06-24Add entity health saving.Howaner1-14/+7
2014-06-20MCA saver marks chunks as populated.madmaxoft1-0/+3
Fixes #140.
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 Wang1-0/+1
2014-06-04Fixed mob loading, part of #1058Tiger Wang1-1/+1
2014-05-09More size_t fixes.Mattes D1-5/+5
2014-05-09Build fixes after the last size_t batch.Mattes D1-1/+1
2014-05-09Fixed MSVC 64-bit build warnings.Mattes D1-4/+4
2014-05-08Fixed MSVC 64-bit build warnings.Mattes D1-4/+4
2014-05-07Change m_RepairCost to int.Howaner1-1/+1
2014-05-07Fix MagmaCube save.Howaner1-2/+8
2014-05-07Add repair cost to cItem, add custom name to NBTChunkSerializer and fix anvil bugs.Howaner1-6/+28
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."Howaner1-1/+1
This reverts commit d50f8f6f11f69e7e1e56be92fb2d72a5014a3e34.
2014-04-28Fixed projectile source filenames, indentationsarchshift1-6/+6
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.harchshift1-1/+1
2014-04-26Changed the old invulnerable methods from the wither to the new.Howaner1-1/+1
2014-04-26FixesHowaner1-1/+1
2014-04-24Fixed class capitalization for the cave spider.archshift1-1/+1
2014-03-25Ender crystalsandrew1-0/+19
2014-03-24Wither invulnerabilityandrew1-1/+7
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.Howaner1-0/+85
2014-03-15Add health and age load to pickup's.Howaner1-1/+15
2014-03-15Add ExpOrb saving.Howaner1-26/+70
2014-03-10Removed Some unnessicary macrosTycho1-2/+2
2014-03-08Change TNT Fuse to ticksHowaner1-2/+1
2014-03-08Add TNT Save/Load and add Netbeans projects to .gitignoreHowaner1-0/+28
2014-03-07Add Flower PotsHowaner1-0/+36
2014-02-27Implemented ballistic missiles (fireworks)Tiger Wang1-0/+6
+ Added fireworks
2014-02-23Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper1-0/+183
2014-02-23Rename SkullEntity to MobHeadEntityHowaner1-8/+8
2014-02-23Add Heads completelyHowaner1-1/+1
2014-02-23Add Skulls/HeadsHowaner1-0/+40
2014-02-23Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper1-0/+183
2014-02-23Fixed Formatting, Added DropChances and CanPickUpLoot attributes to MonstersTheJumper1-0/+2
2014-02-23Fixed Compiling IssuesTheJumper1-2/+20
2014-02-23Fixed Formatting, Added DropChance attributes to MonstersTheJumper1-0/+163
2014-02-19Rename SkullEntity to MobHeadEntityHowaner1-8/+8
2014-02-18Add Heads completelyHowaner1-1/+1
2014-02-17Add Skulls/HeadsHowaner1-0/+40
2014-02-12Fixed #573STRWarrior1-4/+4
2014-02-02Added saving of angry flag.Kirill Kirilenko1-0/+6
2014-02-02Fixed sitting tag.Kirill Kirilenko1-4/+4
2014-02-01Added saving of collar's color.Kirill Kirilenko1-3/+9
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 #606STRWarrior1-0/+7
2014-01-26Item-loading now checks for weird bytes.madmaxoft1-3/+9
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-20Scoreboard deserializationandrew1-1/+1
2014-01-19Switched EnchantmentSerilizer to namespaceTycho1-1/+1
2014-01-19Spilt Writing of Enchantments to seperate classTycho1-1/+2
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-18Command blocks: Execute()andrew1-1/+1
2014-01-18Command block (de)serializationandrew1-0/+42
2014-01-17Added user setting compression factorTycho1-3/+4
2014-01-16Removed obsoleted functionsTiger Wang1-1/+1
2014-01-12Renamed cEmptyMinecart to cRideableMinecartSTRWarrior1-1/+1
2014-01-12EmptyMinecarts should be able to get a block inside of them.STRWarrior1-1/+1
2013-12-25Preliminary mobile entity savingTiger Wang1-6/+622
* Fixes #252 * Alleviates #380 + Adds mob saving * Fixed some debug !ASSERTs
2013-12-20Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft1-3/+3
2013-11-27Fixed the remaining derpsAlexander Harkness1-1/+1
2013-11-25Further attempts to fix compileTiger Wang1-1/+1
2013-11-24Attempt to fix compilationTiger Wang1-1/+1
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-10-24Pickups now have collection delay when vomitedTiger Wang1-1/+1
Implements FS#394.
2013-10-09Moved cMakeDir::MakeDir to cFile::CreateFolder.madmaxoft1-2/+1
And exported to Lua.
2013-09-08Initial boat supportTiger Wang1-1/+20
+ Boats are saved + Boats have physics + Boats spawn
2013-09-07Implemented loading more projectiles from MCA.madmaxoft1-3/+127
2013-08-25Arrows get loaded from MCA.madmaxoft1-4/+47
Somehow they still don't spawn visibly on the client.
2013-08-19Moved entities into the Entities subfolder.madmaxoft1-4/+4
2013-08-16Compilation and Minecart fixesTiger Wang1-0/+42
2013-08-16Feature and bugfixes [SEE DESC]Tiger Wang1-0/+2
Added TNT and Hopper minecarts Fixed piston code failing without an extension set Repeaters are now broken Fixed not being able to place a minecart on an activator rail Added much needed comments on piston code Fixed minor formatting issue
2013-06-20Furnaces light up visually when they're cookingmadmaxoft@gmail.com1-5/+23
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1612 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-16Rewritten furnacesmadmaxoft@gmail.com1-3/+3
Furnaces now smelt the correct number of items. Furnaces store their contents in a cItemGrid. Furnace window is updated with correct items and progressbars. Furnace recipes now use ticks instead of milliseconds. Furnaces save and load their state completely, not missing a smelt operation. Hoppers take items out of furnaces. Dropped the cSlotAreaDropSpenser class, replaced it with generic cSlotAreaItemGrid git-svn-id: http://mc-server.googlecode.com/svn/trunk@1601 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-13Added hopper entity, it can suck items out of chests, dispensers, droppers and other hopppers above it.madmaxoft@gmail.com1-27/+55
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1587 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-02Enchantments are now stored in Anvil world and in player inventorymadmaxoft@gmail.com1-1/+16
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1541 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-28Moved BlockEntities to a separate foldermadmaxoft@gmail.com1-7/+7
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1527 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-26Block entities with storage now correctly mark the chunk as dirty when their contents change.madmaxoft@gmail.com1-32/+64
http://forum.mc-server.org/showthread.php?tid=434&pid=8210#pid8210 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1515 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-05Lighting: Fixed underwater lighting (FS #369)madmaxoft@gmail.com1-1/+10
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1444 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-13Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick()madmaxoft@gmail.com1-2/+6
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1385 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-07Anvil loader: fixed Vanilla biomes not being readmadmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1370 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-11Anvil: Removed excessive debugging outputmadmaxoft@gmail.com1-3/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1264 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-09Minecarts get saved into Anvil.madmaxoft@gmail.com1-3/+39
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1263 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-09Pickups are now being saved into Anvil.madmaxoft@gmail.com1-286/+232
Also changed cEntity rotation datatype to double git-svn-id: http://mc-server.googlecode.com/svn/trunk@1262 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-27Made FAST_FLOOR_DIV work correctly, replaced all floorf() divisions with it.madmaxoft@gmail.com1-2/+3
Still not perfect - chunk and region calculations can be made into a single CPU instruction - SAR - but not all compilers are known to support that (">>" operator on signed datatypes needs to perform arithmetic shift, C/C++ standard makes it implementation-specific; MSVC and GCC do what we need, LLVM unknown) git-svn-id: http://mc-server.googlecode.com/svn/trunk@1224 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-01-12Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com1-8/+8
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-19Added dispensers (they can't dispense items yet)luksor111@gmail.com1-6/+80
Fixed crash when digging snow Moved BlockPlace hook check, so Core plugin will no longer block item usage Player chat messages are now visible in the console git-svn-id: http://mc-server.googlecode.com/svn/trunk@1081 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-16Android: Made the initial pre-calculated spawn area smallerfaketruth1-1/+1
Android: Fixed FastNBT Android: Fixed level.dat reading/writing GroupManager uses groups.example.ini as default WebAdmin uses webadmin.example.ini as default git-svn-id: http://mc-server.googlecode.com/svn/trunk@1049 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-13More valgrind uninitialized var fixingmadmaxoft1-2/+12
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1040 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-28Fixed NBT IntArray serialization; Biomes are now saved to / loaded from Anvilmadmaxoft@gmail.com1-12/+71
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1015 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-21Added jukeboxes (patch contributed by Luksor)madmaxoft@gmail.com1-4/+38
git-svn-id: http://mc-server.googlecode.com/svn/trunk@994 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-7/+7
git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-23Source files cleanup: OSSupport-related files in a separate subfolder, renamed.madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@885 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-23Source files cleanup: WorldStorage-related files in a separate subfoldermadmaxoft@gmail.com1-10/+10
git-svn-id: http://mc-server.googlecode.com/svn/trunk@882 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-20Refactored windows.madmaxoft@gmail.com1-3/+3
As described on the forum: http://forum.mc-server.org/showthread.php?tid=561 For now, only basic clicking works; shift-click not implemented yet. git-svn-id: http://mc-server.googlecode.com/svn/trunk@867 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-26Added basic noteblocks, finished sign storage in Anvil (patch contributed by l0udPL)madmaxoft@gmail.com1-3/+61
http://forum.mc-server.org/showthread.php?tid=528 git-svn-id: http://mc-server.googlecode.com/svn/trunk@793 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-21Added a (disabled) debugging code for anvil underground overviewing, useful for exploring MC cave generation stylemadmaxoft@gmail.com1-4/+15
git-svn-id: http://mc-server.googlecode.com/svn/trunk@690 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-15Anvil: added support for signs (why was it still missing??)madmaxoft@gmail.com1-3/+42
git-svn-id: http://mc-server.googlecode.com/svn/trunk@616 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-14Attempt to bring sanity to newlines across systems.cedeel@gmail.com1-955/+955
git-svn-id: http://mc-server.googlecode.com/svn/trunk@606 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-05-28Chests and Furnaces are now saved properly into Anvil scheme.madmaxoft@gmail.com1-8/+93
git-svn-id: http://mc-server.googlecode.com/svn/trunk@516 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-05-25Merged the composable_generator branch into the trunkmadmaxoft@gmail.com1-82/+123
git-svn-id: http://mc-server.googlecode.com/svn/trunk@504 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-05-08Removed a debugging construct that accidentally leaked into previous commitmadmaxoft@gmail.com1-8/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@485 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-05-08Fast NBT writer (Saving a chunk is now about twice as fast)madmaxoft@gmail.com1-61/+102
git-svn-id: http://mc-server.googlecode.com/svn/trunk@484 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-05-07Fast NBT Parser (loading a chunk is now about 10 times faster)madmaxoft@gmail.com1-73/+77
git-svn-id: http://mc-server.googlecode.com/svn/trunk@481 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-04-23Anvil storage writing (Basic storage is working, NO entities except for chests are working! Don't use for real servers)madmaxoft@gmail.com1-8/+306
git-svn-id: http://mc-server.googlecode.com/svn/trunk@475 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-24Reverted the previous commit - it is useless, since entities still depend heavily on cWorldmadmaxoft@gmail.com1-3/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@428 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-23Encapsulated cWorld functions needed in cWorldStorage into an interface, so that cWorldStorage can actually be used outside of MC-Server (such as storage conversion tools and chunk analyzers)madmaxoft@gmail.com1-3/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@427 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-14Actually commented out the Anvil terrain inversion codemadmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@415 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-14Anvil support: Added a debugging section for inverting terrain (So that MC cave generator can be seen in action). Commented out, so that it doesn't make it into the release versionsmadmaxoft@gmail.com1-0/+24
git-svn-id: http://mc-server.googlecode.com/svn/trunk@414 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-14Split chunk data into separate arrays; decoupled most sources from cChunk.h dependencymadmaxoft@gmail.com1-16/+25
git-svn-id: http://mc-server.googlecode.com/svn/trunk@411 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-11Anvil format: fixed loading with XZY orderingmadmaxoft@gmail.com1-11/+9
git-svn-id: http://mc-server.googlecode.com/svn/trunk@398 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-10Anvil support: compatible with both chunk orderingsmadmaxoft@gmail.com1-0/+4
git-svn-id: http://mc-server.googlecode.com/svn/trunk@395 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-07Anvil format: loading chests' contents.madmaxoft@gmail.com1-1/+123
git-svn-id: http://mc-server.googlecode.com/svn/trunk@385 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-07No need to reset zlib (copypasta error)madmaxoft@gmail.com1-1/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@381 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-07Added the Anvil level format (MCA) support, read-only for the time being. Now MCS can read your worlds from the official server :)madmaxoft@gmail.com1-0/+338
git-svn-id: http://mc-server.googlecode.com/svn/trunk@380 0a769ca7-a7f5-676a-18bf-c427514a06d6