summaryrefslogtreecommitdiffstats
path: root/source (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Changed cRoot:GetFurnaceRecipe() Lua binding signature.madmaxoft2013-11-224-44/+50
| | | | Fix #364.
* Exported static XP calculation to Lua API.madmaxoft2013-11-214-38/+105
|
* Added cWorld:ForEachBlockEntityInChunk() and cWorld:DoWithBlockEntityAt() functions.madmaxoft2013-11-208-24/+145
| | | | Also exported them to the Lua API.
* Fixed piston sound effect (when unable to extend)Tiger Wang2013-11-191-3/+3
|
* Merge pull request #350 from mc-server/arrowsMattes D2013-11-195-45/+260
|\ | | | | Fixed arrow bugs
| * General fixes [SEE DESC]Tiger Wang2013-11-165-35/+226
| | | | | | | | | | | | * Fixed faulty block face enumeration and functions + Added fireworks and exp bottle spawning * Fixed arrows again
| * Switchified If, ElseIf statementTiger Wang2013-11-151-11/+16
| | | | | | | | Also updated comments
| * Fixed arrow bugsTiger Wang2013-11-142-25/+44
| | | | | | | | * Fixed arrows hitting blocks wrong
* | Merge pull request #359 from mc-server/redstoneMattes D2013-11-1917-1002/+1045
|\ \ | | | | | | Redstone Megacommit
| * | Possible compile fixTiger Wang2013-11-192-3/+1
| | | | | | | | | | | | Also removed unneeded variables.
| * | Redstone Megacommit [SEE DESC]Tiger Wang2013-11-1816-1000/+1045
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Updated BlockID - look for yourself * Improved button, repeater, lever, and comparator code -> simplification and splitting of some stuff from the redstone simulator file * Fixed buttons not breaking when in an invalid game state * Fixed QueueSetBlock -> improved (AGAIN) piston code + Rewrote redstone simulator Fixes: #57, #58, #205, and part of #131. Fixes FS issues: 281, 116, and 102
* | | Merge branch 'master' of git://github.com/nesco/MCServer.madmaxoft2013-11-191-2/+2
|\ \ \ | |/ / |/| |
| * | Blank Line addednesco2013-11-171-0/+1
| | |
| * | Update Giant.cppnesco2013-11-151-1/+1
| | |
| * | Update Giant.cppnesco2013-11-141-3/+3
| |/
* | Mineshafts: silenced a compiler warning.madmaxoft2013-11-171-0/+1
| |
* | Merge pull request #345 from mc-server/warningfixesMattes D2013-11-1711-238/+238
|\ \ | | | | | | Fix Some Compiler Warnings
| * | And another...Alexander Harkness2013-11-161-1/+1
| | |
| * | anotherAlexander Harkness2013-11-161-7/+7
| | |
| * | Fixed another one.Alexander Harkness2013-11-161-15/+15
| | |
| * | Fixed some unsigned int comparison warnings.Alexander Harkness2013-11-161-18/+18
| | |
| * | WaveNoise not used, removing.Alexander Harkness2013-11-161-1/+0
| | |
| * | This is a copy-paste fail, right?Alexander Harkness2013-11-161-1/+1
| | |
| * | Got rid of yet another unused variable.Alexander Harkness2013-11-161-51/+50
| | |
| * | Got rid of another unused variable.Alexander Harkness2013-11-161-1/+0
| | |
| * | Those variables weren't used.Alexander Harkness2013-11-161-4/+0
| | | | | | | | | | | | It seems strange for them to be there, is the code written wrong?
| * | Fixed another one...Alexander Harkness2013-11-161-1/+1
| | |
| * | Fixed yet another unsigned integer comparison.Alexander Harkness2013-11-161-26/+26
| | |
| * | Fixed typo causing buggy code.Alexander Harkness2013-11-161-9/+9
| | |
| * | Fixed another unsigned integer comparison.Alexander Harkness2013-11-161-12/+12
| | |
| * | Fixed unsigned integer comparison.Alexander Harkness2013-11-161-1/+1
| | |
| * | Fixed a warning about brackets.Alexander Harkness2013-11-161-58/+58
| | | | | | | | | | | | Is this the right way round? This is how C++ interprets it, so it should be changed if this is the wrong way round.
| * | Fixed a warning about unsigned int comparison - probably was a real issue.Alexander Harkness2013-11-161-22/+26
| | |
| * | Revert "Silenced another warning."Alexander Harkness2013-11-161-1/+0
| | | | | | | | | | | | This reverts commit dc94b927534f6216a0ace7690ba250b69c014407.
| * | Revert "Silenced yet another not completed enum warning."Alexander Harkness2013-11-161-1/+0
| | | | | | | | | | | | This reverts commit 444e6e4fa74e987880133bb52433b047ff3981b2.
| * | Revert "Fixed another one."Alexander Harkness2013-11-161-1/+0
| | | | | | | | | | | | This reverts commit 3328c80aec768cf0e64e48eb40e50bf02bfff59c.
| * | Fixed another one.Alexander Harkness2013-11-141-0/+1
| | |
| * | Silenced yet another not completed enum warning.Alexander Harkness2013-11-141-0/+1
| | |
| * | Silenced another warning.Alexander Harkness2013-11-141-0/+1
| | |
| * | Added the last bit of the enum, and alpha-sorted the switch.Alexander Harkness2013-11-131-10/+13
| | |
| * | Removed unnecessary format data.Alexander Harkness2013-11-131-1/+1
| | |
* | | Merge pull request #353 from marmot21/playerxpMattes D2013-11-1713-79/+229
|\ \ \ | | | | | | | | Playerxp
| * | | minor change in LOGD callDaniel O'Brien2013-11-161-2/+2
| | | |
| * | | removed magic numberDaniel O'Brien2013-11-161-2/+2
| | | |
| * | | edited comment and changed error behavior of DeltaXpDaniel O'Brien2013-11-162-4/+11
| | | |
| * | | updated plugin again...Daniel O'Brien2013-11-162-5/+5
| | | |
| * | | removed SpendExperience and changed AddExperience to handle removing XpDaniel O'Brien2013-11-164-78/+19
| | | |
| * | | fixed bug and added SpendExperience()Daniel O'Brien2013-11-166-40/+146
| | | |
| * | | fix possible threadlock issue, changed function names to be closer to standardDaniel O'Brien2013-11-162-26/+45
| | | |
| * | | alignment fixes :)Daniel O'Brien2013-11-156-6/+6
| | | |
| * | | finished #143 I believeDaniel O'Brien2013-11-1513-16/+34
| | | |
| * | | Merge remote-tracking branch 'upstream/master' into playerxpDaniel O'Brien2013-11-1517-675/+41
| |\ \ \
| * | | | added cProtocol function to pass xp to clientDaniel O'Brien2013-11-156-27/+43
| | | | |
| * | | | Merge remote-tracking branch 'upstream/master' into playerxpDaniel O'Brien2013-11-1516-216/+820
| |\ \ \ \
| * | | | | cProtocol add SendExperience() and debuggingDaniel O'Brien2013-11-147-1/+42
| | | | | |
| * | | | | fixed XpGetPercentageDaniel O'Brien2013-11-141-1/+3
| | |_|_|/ | |/| | |
* | | | | LineBlockTracer: Using the coord-based block faces.madmaxoft2013-11-161-3/+3
| |_|/ / |/| | |
* | | | cChunkDesc::GetBlockEntity() re-creates block entity when blocktype doesn't match.madmaxoft2013-11-151-1/+8
| | | |
* | | | Removed cBlockEntity:CreateByBlockType() from the Lua API.madmaxoft2013-11-153-45/+4
| | | | | | | | | | | | | | | | Plugins cannot be allowed to create block entities, that would result in memory leaks.
* | | | cRoot::SaveAllChunks() doesn't wait for the save (deadlocks).madmaxoft2013-11-151-1/+1
| | | | | | | | | | | | | | | | Rather, it only queues the save task onto each world's tick thread.
* | | | Removed BlockEntities' constructors from the API.madmaxoft2013-11-1514-630/+30
| |/ / |/| | | | | | | | Plugins shouldn't construct block entities, rather, they will query them either from the cWorld (while playing), or from cChunkDesc (while generating).
* | | Fixed growing issue with crops.Samuel Barney2013-11-141-0/+6
| | |
* | | Added cNoteEntity to Lua API.madmaxoft2013-11-144-39/+171
| | | | | | | | | | | | Ref. #228.
* | | Exported cJukeboxEntity to Lua API.madmaxoft2013-11-145-41/+180
| | | | | | | | | | | | Ref. #228
* | | Added cSignEntity into API, added cChunkDesc:GetBlockEntity().madmaxoft2013-11-1415-168/+495
|/ / | | | | | | This fixes both #228 and #347.
* | Merge pull request #344 from marmot21/playerxpMattes D2013-11-146-752/+1158
|\ \ | | | | | | PlayerXp
| * | fixed function nameDaniel O'Brien2013-11-141-1/+1
| | |
| * | luaExportDaniel O'Brien2013-11-143-5/+260
| | |
| * | fixed commentDaniel O'Brien2013-11-131-1/+1
| | |
| * | changed function nameDaniel O'Brien2013-11-132-4/+4
| | |
| * | minor changesDaniel O'Brien2013-11-132-6/+6
| | |
| * | changed name conventionDaniel O'Brien2013-11-132-5/+5
| | |
| * | Fixed problems with code style etcDaniel O'Brien2013-11-133-53/+90
| | |
| * | Merge remote-tracking branch 'upstream/master' into playerxpDaniel O'Brien2013-11-134-50/+157
| |\|
| * | Player Xp, includes get/set and addExperienceDaniel O'Brien2013-11-131-1/+1
| | |
| * | Player Xp, includes get/set and addExperienceDaniel O'Brien2013-11-131-1/+2
| | |
| * | Player XpDaniel O'Brien2013-11-134-748/+861
| | |
* | | Fix for NULL arithmetic compiler warning in Linux.madmaxoft2013-11-132-4/+16
| | |
* | | Merge remote-tracking branch 'origin/WolfUpdate'madmaxoft2013-11-132-28/+36
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: source/Mobs/Wolf.h
| * | | Now using a TickFollowPlayer function.STRWarrior2013-11-122-46/+60
| | | |
| * | | Removed #include "../Root.h" since it isn't needed.STRWarrior2013-11-101-1/+0
| | | |
* | | | Implemented the "help" console command in the server.madmaxoft2013-11-131-1/+33
| | | | | | | | | | | | | | | | Fixes #42.
* | | | Console "reload" command implemented in MCServer, rather than in a plugin.madmaxoft2013-11-132-0/+26
| | | | | | | | | | | | | | | | First part of #42.
* | | | cPluginManager:BindCommand() and :BindConsoleComman() now report full Lua stacktrace on failure.madmaxoft2013-11-131-2/+6
| | | |
* | | | Fixed compiler warning.madmaxoft2013-11-131-1/+1
| | | |
* | | | PluginManager::Bind displays more information in the error message.madmaxoft2013-11-131-2/+2
| |_|/ |/| |
* | | Merge pull request #339 from nesco/masterMattes D2013-11-131-1/+1
|\ \ \ | | | | | | | | Bug correction
| * | | Bug correctionnesco2013-11-131-1/+1
| | | | | | | | | | | | Syntax error
* | | | Merge pull request #337 from nesco/masterMattes D2013-11-134-49/+156
|\| | | | |_|/ |/| | Updating enchantments list and ID/Metas List and some properties to the 1.7.2 version of Minecraft
| * | compatibility updatenesco2013-11-131-3/+7
| | |
| * | compatibility updatenesco2013-11-131-1/+3
| | |
| * | Update Enchantments.cppnesco2013-11-131-2/+2
| | |
| * | Update Enchantments.hnesco2013-11-131-2/+2
| | |
| * | Delete BiomeID.hnesco2013-11-121-76/+0
| | |
| * | Sorting by Name on g_BlockTransparentnesco2013-11-121-4/+4
| | |
| * | BiomeFile, if not needed, will be removednesco2013-11-121-0/+76
| | |
| * | Update BlockID.cppnesco2013-11-121-1/+1
| | |
| * | Corrected the comma errornesco2013-11-121-2/+2
| | |
| * | Update BlockID.cppnesco2013-11-121-3/+3
| | |
| * | Update Enchantments.cppnesco2013-11-121-2/+2
| | |
| * | Assigning properties to the blocks recently added.nesco2013-11-121-10/+19
| | |
| * | Update BlockID.hnesco2013-11-121-2/+2
| | |
| * | Replace tabs by spacesnesco2013-11-121-35/+35
| | |
| * | Update BlockID.hnesco2013-11-121-0/+12
| | |
| * | Update in progress to minecraft 1.7nesco2013-11-121-4/+82
| | |
| * | Added the new enchantments of Minecraft 1.7nesco2013-11-121-1/+2
| | | | | | | | | | | | -Luck of the sea -Lure
| * | Added the new enchantments of Minecraft 1.7nesco2013-11-121-1/+2
| | | | | | | | | | | | | | | Added the following enchantments : Luck of the Sea : ID = 61 Lure : ID = 62
* | | Merge remote-tracking branch 'origin/fixes'.madmaxoft2013-11-1318-91/+264
|\ \ \ | |/ / |/| |
| * | Bundled fixes [SEE DESC]Tiger Wang2013-11-129-25/+147
| | | | | | | | | | | | | | | | | | | | | | | | * BoundingBox now returns FACE_NONE + Arrows can be picked up * Arrows dug up resume physics simulations * Added sound effects for bows, lava to stone, and arrows * Fixed SoundParticleEffect on <1.7 protocols
| * | Bundled fixes [SEE DESC]Tiger Wang2013-11-109-19/+24
| | | | | | | | | | | | | | | | | | * Fixed compiler warning in Monster.cpp * Future proofed particle effects * Improved pickups, made less jittery
| * | Bundled fixes [SEE DESC]Tiger Wang2013-11-108-44/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixed pickups spawning in an incorrect position from a JukeBox * Pickups make a popping sound in Prtcl1.7 * Arrows make a *what sort of sound does an arrow make anyway‽* when hitting a block, and a popping sound when fired * Mobs again have metadata * Fixed Prtcl1.7 not using valid JSON to kick a client * Minecarts and arrows again have metadata
* | | cWindow: Fixed item dupe glitch with painting (#278)madmaxoft2013-11-121-2/+2
| | |
* | | Fixed dblclicking in crafting slot area.madmaxoft2013-11-112-0/+15
| | | | | | | | | | | | Fixes #229.
* | | Fixed cRoot::FindAndDoWithPlayer().madmaxoft2013-11-101-2/+2
| | | | | | | | | | | | Now /kick and /ban work.
* | | Protocol 1.7: Fixed crashes and d/c with bad packets.madmaxoft2013-11-101-3/+3
| | | | | | | | | | | | Fixes #332.
* | | Merge pull request #330 from tonibm19/patch-1Mattes D2013-11-101-6/+9
|\ \ \ | | | | | | | | Added sheep dyeing
| * | | Fixes (SEE DESC)tonibm192013-11-101-1/+7
| | | | | | | | | | | | | | | | | | | | Entity metadata is broadcasted. If player is in survival, his equipped item is removed. If you have green dye, and sheep is green, your equipped item won't be removed.
| * | | STR_Warrior was right.tonibm192013-11-101-160/+1
| | | | | | | | | | | | Simplified code.
| * | | Fixed compilationtonibm192013-11-101-3/+2
| | | |
| * | | You can no longer color with woodtonibm192013-11-101-158/+161
| | | |
| * | | Added sheep dyeingtonibm192013-11-101-2/+156
| | | |
* | | | Removed #include "../Root.h" since it isn't needed.STRWarrior2013-11-101-1/+0
| | | |
* | | | Small code-style fixes.madmaxoft2013-11-102-22/+32
| | | |
* | | | Merge branch 'master' into WolfUpdatemadmaxoft2013-11-108-7/+180
|\ \ \ \ | |_|_|/ |/| | |
| * | | Implemented inventory dblclick.madmaxoft2013-11-104-5/+133
| | | | | | | | | | | | | | | | Implements #229.
| * | | Added cItem::GetMaxStackSize()madmaxoft2013-11-104-2/+47
| |/ /
* | | Renamed variables in cWolf.STRWarrior2013-11-102-29/+29
| | |
* | | Using DoWithPlayer instead of FindAndDoWithPlayer for callbacks.STRWarrior2013-11-103-7/+20
| | | | | | | | | | | | You are able to dye the collar.
* | | The owner object isn't stored anymore. Instead we use the name of the player.STRWarrior2013-11-102-10/+24
| | | | | | | | | | | | This means only players can now have a wolf, but it fixes the bug where when you log out the wolf isn't your wolf anymore.
* | | Using cMonster::Tick instead of super::cMonster::TickSTRWarrior2013-11-101-1/+1
| | |
* | | Wolves can now be owned by an entity.STRWarrior2013-11-102-17/+100
|/ / | | | | | | | | | | | | | | | | They only sit when right clicked by their owner. They beg if the closest player has meat or bones in his hand. They follow their owner. They teleport to their owner if they are more then 30 blocks away. They don't attack players if they are not angry anymore. They don't move if they are sitting.
* | Protocol 1.7: Attempt at fixing SoundParticleEffect packet.madmaxoft2013-11-101-5/+3
| |
* | Fixed Player animation packet.madmaxoft2013-11-101-1/+1
|/ | | | Fixes #329.
* Removed cStringMap.madmaxoft2013-11-098-264/+216
| | | | It wasn't used for anything anymore.
* Fixed cTracer's tolua markup.madmaxoft2013-11-091-18/+38
| | | | Cleaned up unneeded member variables.
* Fixed sprinting in 1.7 protocol.madmaxoft2013-11-081-1/+17
| | | | Fixes #324
* Declaring 1.7.2 compatibility.madmaxoft2013-11-082-2/+3
|
* MobSpawner: Added skeleton and wolf conditions.madmaxoft2013-11-081-19/+91
| | | | This fixes the flood of warnings in the server console in Debug mode.
* cProtocol::SendWindowOpen() signature changed.madmaxoft2013-11-0815-48/+59
| | | | This implements #313.
* Fixed code style.madmaxoft2013-11-081-2/+2
|
* Protocol 1.7: Fixed using entities.madmaxoft2013-11-081-2/+1
| | | | The mouse buttons were swapped.
* Protocol 1.7: Copied Mob Metadata code from 1.2.5.madmaxoft2013-11-083-19/+197
|
* Merge pull request #321 from mc-server/1.7pickupsfixMattes D2013-11-082-5/+8
|\ | | | | Fix for entity spawning in general
| * Added hardcore client effectTiger Wang2013-11-072-2/+5
| | | | | | | | Also fixed multiple world comments issue.
| * Fix for entity spawning in generalTiger Wang2013-11-071-3/+3
| |
* | Changed variable nametonibm192013-11-081-7/+6
| |
* | Changed variable nametonibm192013-11-081-2/+1
| |
* | Now chicken drop eggstonibm192013-11-081-1/+6
| |
* | Now chickens can drop eggs.tonibm192013-11-081-3/+33
|/ | | They drop an egg every 5 or 10 minutes.
* Possible fix for 1.7 pickup spawningTiger Wang2013-11-071-1/+1
|
* Protocol 1.7: Fixed the Spawn Mob packet.madmaxoft2013-11-071-1/+1
| | | | This should fix #318
* Protocol 1.7: Added the remaining server-bound packets.madmaxoft2013-11-062-15/+99
|
* Protocol 1.7: Added more server-bound packets.madmaxoft2013-11-062-25/+138
|
* Protocol 1.7: Finished the client-bound packets.madmaxoft2013-11-061-7/+32
|
* Made the cDeadlockDetect class work in clang.madmaxoft2013-11-061-1/+1
|
* Merge pull request #312 from SamJBarney/masterMattes D2013-11-053-45/+38
|\ | | | | Flowers, mushrooms and air are no longer collidable.
| * More documentation.Samuel Barney2013-11-051-1/+4
| |
| * Added missing check for a_LineOfSightSamuel Barney2013-11-051-1/+1
| |
| * cTracer can now handle mob sight.Samuel Barney2013-11-052-4/+10
| |
| * Added more documentation. Changed cTracer::Trace to return a bool instead of an int because it was only returning 1 or 0 anyways.Samuel Barney2013-11-052-7/+12
| |
| * Moved cTracer::SetValues to be an internal function because it is only ever used in cTracer::Trace.Samuel Barney2013-11-052-37/+16
| | | | | | | | | | Removed SetValues from Bindings.cpp. Added some commenting to explain what each function does in cTracer.
| * Reworked collision to use g_BlockIsSolidSamuel Barney2013-11-051-15/+6
| |
| * Flowers, mushrooms and air are no longer collidable.Samuel Barney2013-11-051-6/+15
| |
* | Merge pull request #309 from mc-server/configautogenMattes D2013-11-0513-77/+101
|\ \ | | | | | | Autogeneration of settings.ini and webadmin.ini
| * | Implemented suggestionsTiger Wang2013-11-056-24/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Reverted changes to WebAdmin.cpp IPv6 ports and Server.cpp server description + Added default value explicitly for HardCore value * Split PluginManager plugin defaults write to new function - Removed a commented block from BlockTorch and... + Added g_BlockIsTorchPlaceable to Defines.h
| * | Removed settings/webadmin.example.ini filesTiger Wang2013-11-041-1/+6
| | | | | | | | | | | | | | | Additionally, added some default plugins to autogeneration. Also moved nbt examples to docs/NBT Examples.
| * | Autogeneration of settings.ini and webadmin.iniTiger Wang2013-11-0411-65/+80
| | | | | | | | | | | | Fixes issue #75
* | | Clarified cBlockHandler::ConvertToPickups() dox.madmaxoft2013-11-051-1/+1
| | |
* | | Protocol 1.7: More client-bound packets.madmaxoft2013-11-051-17/+27
| | | | | | | | | | | | Also removed the SendWholeInventory(cInventory &) function, as promised in prev commit.
* | | Removed the obsolete SendWholeInventory(cInventory &) function.madmaxoft2013-11-0510-46/+2
| | | | | | | | | | | | This won't compile because there's still a change in Protocol17x.cpp pending; the next commit will fix this.
* | | Merge pull request #307 from mc-server/MobImprovementsMattes D2013-11-0510-10/+122
|\ \ \ | |/ / |/| | Mob projectiles
| * | Fixed indentation.STRWarrior2013-11-052-0/+2
| | |
| * | Skeleton, Ghast and Blaze's projectile code is now in their respective class.STRWarrior2013-11-048-68/+91
| | |
| * | Skeleton.cpp doesn't have to load ProjectileEntity.h and Entity.h.STRWarrior2013-11-021-3/+0
| | |
| * | Skeletons, Blazes and Ghasts now shoot their projectile to the target.STRWarrior2013-11-021-5/+63
| | |
| * | Zombies and Skeletons don't walk into the sun anymore.STRWarrior2013-11-024-0/+32
| | |
* | | Protocol 1.7: Added more client-bound packets.madmaxoft2013-11-042-15/+166
| |/ |/| | | | | Untested, still more to come.
* | Protocol 1.7: Added client status packet.madmaxoft2013-11-031-1/+22
| |
* | Merge pull request #306 from tigerw/masterMattes D2013-11-031-2/+2
|\ \ | | | | | | Flipped some variables in Portals
| * | Flipped some variables in PortalsTiger Wang2013-11-021-2/+2
| | | | | | | | | | | | To make them work on the X axis.
* | | Protocol 1.7: Rewritten packet-sending to use cPacketizer.madmaxoft2013-11-032-166/+402
| | | | | | | | | | | | Implemented enough of the protocol that the client now spawns in the world (but cannot do anything).
* | | cByteBuffer: Fixed GetUsedSpace() off-by-one error.madmaxoft2013-11-031-1/+1
| | |
* | | ClientHandle: Fixed an error in player-joining hook.madmaxoft2013-11-031-2/+2
| | | | | | | | | | | | Players being disconnected used to fire the PlayerJoined hook repeatedly.
* | | Added cEntity:GetYaw() and cEntity:SetYaw().madmaxoft2013-11-034-6/+108
| | | | | | | | | | | | This is the preferred way to get / set rotation, GetRotation() and SetRotation is obsoleted due to bad name.
* | | Added cPlayer::GetEffectiveGameMode().madmaxoft2013-11-031-0/+4
|/ /
* | Merge pull request #303 from tigerw/bugfixesMattes D2013-11-023-2/+298
|\ \ | | | | | | Nether portal creation
| * | Split border finder into separate functionTiger Wang2013-11-021-10/+16
| | |
| * | Implement suggestionsTiger Wang2013-11-021-15/+15
| | | | | | | | | | | | | | | - Removed unneeded parameter * Changed 0 - 1 to -1
| * | Readded BlockPortal.h (portals)Tiger Wang2013-11-022-0/+110
| | |
| * | Fixed compile error (portals)Tiger Wang2013-11-021-2/+182
| | | | | | | | | | | | WITH A FULL REFORK
* | | Fixed bow damage in creativeTiger Wang2013-11-022-2/+6
| | | | | | | | | | | | Also reverted indenting change
* | | Fixed dropspensing speed and positionTiger Wang2013-11-021-1/+22
| | |
* | | Multiple fixesTiger Wang2013-11-024-12/+17
|/ / | | | | | | | | | | * Fixed #282 * Fixed bow not taking damage * Enhanced Player.cpp code
* | Protocol 1.7: Implemented the first batch of sent packets.madmaxoft2013-11-016-3/+658
| |
* | Merge branch 'master' of https://github.com/mc-server/MCServermadmaxoft2013-11-011-0/+8
|\ \
| * \ Merge pull request #302 from SamJBarney/masterMattes D2013-10-311-0/+8
| |\ \ | | | | | | | | Broken rail blocks now stack.
| | * | Adhering to project standards.Samuel Barney2013-10-311-1/+6
| | | |
| | * | Added missing conventions for windows.Samuel Barney2013-10-311-1/+1
| | | |
| | * | Broken rail blocks now stack.Samuel Barney2013-10-301-0/+3
| | | |
* | | | Merge branch 'griefer'sdelight' of git://github.com/tigerw/MCServer.madmaxoft2013-11-011-1/+18
|\ \ \ \
| * | | | TNT Spawns PickupsTiger Wang2013-10-241-1/+15
| | | | | | | | | | | | | | | | | | | | Fixes FS#397.
* | | | | Protocol 1.7: Added skeleton functions for reading client packets.madmaxoft2013-10-312-20/+349
| | | | | | | | | | | | | | | | | | | | Untested, this is skeleton code only.
* | | | | ByteBuffer: Writing a string doesn't modify it (missing const).madmaxoft2013-10-312-3/+3
| |/ / / |/| | |
* | | | Protocol 1.7: Added status ping handling.madmaxoft2013-10-302-0/+27
| | | |
* | | | Fixed a compiler warning.madmaxoft2013-10-301-26/+31
| |/ / |/| | | | | | | | Also updated code to match our style.
* | | Merge pull request #292 from SamJBarney/MobSpawningMattes D2013-10-307-88/+157
|\ \ \ | | | | | | | | Mob Spawning based on light values
| * | | Last of the nitpicker note fixes. Added some inline commenting.Samuel Barney2013-10-301-0/+1
| | | |
| * | | Changes based on madmaxoft's nitpicker notes.Samuel Barney2013-10-295-19/+16
| | | |
| * | | Update to allow the light map to remain the same, but allow alteration of sky light values based on time.Samuel Barney2013-10-297-17/+73
| | | |
| * | | Merge branch 'master' of https://github.com/SamJBarney/MCServer into MobSpawningSamuel Barney2013-10-2832-729/+534
| |\ \ \
| * | | | Got spiders and other mobs respecting night and day for spawningSamuel Barney2013-10-283-14/+23
| | | | |
| * | | | Made mob spawning code use the chunk so that it could use varying sizes of areas for different mobs.Samuel Barney2013-10-283-52/+79
| | | | |
| * | | | Disabling Endermen and spiders until I rework the CanSpawnHere to take a chunk and a position.Samuel Barney2013-10-261-1/+2
| | | | |
| * | | | Moving spawning position to the center of the block.Samuel Barney2013-10-261-1/+3
| | | | |
| * | | | Checked Endermen; they work; adding them back in.Samuel Barney2013-10-251-1/+0
| | | | |
| * | | | Fixed mob spawning so that hostile mobs will not spawn incorrectly.Samuel Barney2013-10-251-68/+38
| | | | |
| * | | | Using provided UnboundedRelGetBlockBlockLight and UnboundedRelGetBlockSkyLight.Samuel Barney2013-10-241-5/+3
| | | | |
| * | | | Merge branch 'master' of https://github.com/SamJBarney/MCServer into MobSpawningSamuel Barney2013-10-2414-382/+340
| |\ \ \ \
| * | | | | Removed my hackish Light functionsSamuel Barney2013-10-242-98/+0
| | | | | |
| * | | | | Bats only spawn where there is no sunlight, and the light level is below 5Samuel Barney2013-10-231-1/+1
| | | | | |
| * | | | | Invalid light value is now 127Samuel Barney2013-10-231-5/+5
| | | | | |
| * | | | | Added two new unbounded del functions to deal with looking up the lighting.Samuel Barney2013-10-212-11/+103
| | | | | |
| * | | | | Swapped which block is checked for light first.Samuel Barney2013-10-211-4/+4
| | | | | |
| * | | | | Current Mob Spawning code.Samuel Barney2013-10-213-22/+37
| | | | | |
* | | | | | Added 1.7 to protocol recognizer.madmaxoft2013-10-306-11/+447
| | | | | | | | | | | | | | | | | | | | | | | | The 1.7 protocol currently only reports server description and playercount.
* | | | | | Merge pull request #301 from SamJBarney/masterMattes D2013-10-291-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | Grass no longer grows under water, and water on top kills it.
| * | | | | | Grass no longer grows under water, and water on top kills it.Samuel Barney2013-10-291-2/+2
| | | | | | |
* | | | | | | Merge pull request #299 from tonibm19/masterMattes D2013-10-293-3/+19
|\ \ \ \ \ \ \ | |_|_|_|_|_|/ |/| | | | | | Saddles are dropped, chicken spawn out of thrown eggs.
| * | | | | | Using tabstonibm192013-10-291-2/+2
| | | | | | |
| * | | | | | fixed indentationtonibm192013-10-281-1/+1
| | | | | | |
| * | | | | | extra linetonibm192013-10-281-0/+1
| | | | | | |
| * | | | | | attempt at fixing indentationtonibm192013-10-281-3/+2
| | | | | | |
| * | | | | | Extra linetonibm192013-10-281-0/+1
| | | | | | |
| * | | | | | Fixed indentationtonibm192013-10-281-5/+2
| | | | | | |
| * | | | | | Added random chicken spawn when throwing an eggtonibm192013-10-281-2/+13
| | | | | | |
| * | | | | | Now saddled horses spawn a saddle pickup when killedtonibm192013-10-281-1/+4
| | | | | | |
| * | | | | | Now saddle pigs spawn a saddle pickup when killedtonibm192013-10-281-0/+4
| | | | | | |
* | | | | | | Changed GameMode() == 1 to IsGameModeCreative in AggressiveMonster.cpp and ClientHandle.cppSTRWarrior2013-10-292-2/+2
| |/ / / / / |/| | | | |
* | | | | | Fixed bug where creative inventory didn't work.STRWarrior2013-10-291-1/+1
| |_|_|/ / |/| | | |
* | | | | MC uses VarInts only up to 32-bits.madmaxoft2013-10-282-13/+13
| | | | |
* | | | | cByteBuffer: Added the VarInt and VarUTF8String type reading and writing.madmaxoft2013-10-282-5/+147
|/ / / / | | | | | | | | | | | | This implements #296.
* | | | Fixed indentation in tonibm19's code.madmaxoft2013-10-281-3/+3
| | | |
* | | | Merge pull request #294 from tonibm19/patch-3Mattes D2013-10-281-2/+5
|\ \ \ \ | | | | | | | | | | Correct wool drops when shearing a sheep.
| * | | | Fixed compilationtonibm192013-10-281-1/+1
| | | | | | | | | | | | | | | STR_Warrior code had an error (I copied&pasted it before)
| * | | | Use STR_Warrior code and changed variable nametonibm192013-10-281-17/+4
| | | | |
| * | | | Extra linetonibm192013-10-271-0/+1
| | | | |
| * | | | Sheep fixes.tonibm192013-10-271-4/+19
| | | | | | | | | | | | | | | | | | | | Now amount of wool you get when shearing a sheep is random. Sheeps only spawn in white color (I will add sheep dying soon).
* | | | | Renamed cWindow constants to include the "wt" prefix.madmaxoft2013-10-288-40/+40
|/ / / /
* | | | Added cChunk::UnboundedRelGetBlockLights().madmaxoft2013-10-272-0/+28
| | | | | | | | | | | | | | | | This queries both BlockLight and SkyLight for the specified block.
* | | | Authenticator doesn't save the ini file.madmaxoft2013-10-272-2/+2
| | | | | | | | | | | | | | | | Didn't load it -> shouldn't save it.
* | | | Merge branch 'origin/LoadWorlds/cAuthenticatorINI'madmaxoft2013-10-274-18/+9
|\ \ \ \
| * | | | Changed "cIniFile IniFile" to cIniFile & IniFile"STRWarrior2013-10-264-6/+6
| | | | |
| * | | | Both the LoadWorlds() function and cAuthenticator now use the cIniFile object from the Root::Start() function.STRWarrior2013-10-264-17/+9
| | | | |
* | | | | Merge branch 'IniFileCleanup'madmaxoft2013-10-2612-608/+200
|\ \ \ \ \
| * | | | | cIniFile: Renamed functions to make meaning more explicit.madmaxoft2013-10-254-417/+159
| | | | | | | | | | | | | | | | | | | | | | | | For example KeyComment() -> GetKeyComment() / AddKeyComment()
| * | | | | cIniFile doesn't store filename internally anymore.madmaxoft2013-10-2512-193/+43
| |/ / / /
* / / / / cMonster: Improved doxycomments.madmaxoft2013-10-251-2/+2
|/ / / /
* | | | Renamed cMonster::GetSpawnRate() to GetSpawnDelay().madmaxoft2013-10-245-35/+76
| | | |
* | | | cPickup cleanup.madmaxoft2013-10-241-1/+1
| | | |
* | | | Fixed cPickup's constructor's parameter naming.madmaxoft2013-10-242-3/+3
| | | |
* | | | Cleanup in cPlayer.madmaxoft2013-10-241-2/+4
| | | |
* | | | Unified cPlayer's Heal() function with cEntity's.madmaxoft2013-10-242-11/+11
| | | |
* | | | Merge pull request #286 from tigerw/pickupdelayAlexander Harkness2013-10-247-13/+19
|\ \ \ \ | |_|/ / |/| | | Pickups now have collection delay when vomited
| * | | Pickups now have collection delay when vomitedTiger Wang2013-10-247-13/+19
| | |/ | |/| | | | | | | Implements FS#394.
* | | Fixed cLuaWindow's binding.madmaxoft2013-10-233-25/+6
| | | | | | | | | | | | No longer exporting multiple inheritance.
* | | Fixed bindings for cHopperEntity:GetOutputBlockPos().madmaxoft2013-10-234-51/+48
| | |
* | | Fixed cDropSpenserEntity bindings generating an extra var.madmaxoft2013-10-233-30/+11
| | | | | | | | | | | | Caused by inadvertently exporting multiple-inheritance from a class that is not Lua-exported.
* | | Exported cHopperEntity to API.madmaxoft2013-10-234-21/+157
| | | | | | | | | | | | This allows hoppers to be created by plugins during chunk generation.
* | | Removed cRoot:m_PrimaryServerVersion from Lua API.madmaxoft2013-10-234-41/+10
| | | | | | | | | | | | We have the accessor methods for it.
* | | Temporary fix for world not locking chunkmap in TickMobs.madmaxoft2013-10-221-0/+3
| | | | | | | | | | | | Reported as #283; this is a hotfix only.
* | | Fixed an assert in cMonstermadmaxoft2013-10-221-2/+2
| | |
* | | Implemented UnboundedRel BlockLight and SkyLight.madmaxoft2013-10-222-258/+124
| | | | | | | | | | | | Also unified the various UnboundedRel operations to use the same underlying structure.
* | | Added ASSERTs to all ChunkDef operations.madmaxoft2013-10-211-15/+40
| |/ |/| | | | | This should avoid errors such as #276.
* | Fixed GetHTMLEscapedString() binding, removed obsolete memory function from API.madmaxoft2013-10-214-57/+13
| |
* | Fixed memory leak in cMobFamilyCollecter.madmaxoft2013-10-203-52/+21
| |
* | Reimplemented cMonster::FamilyFromType() as a simple switch (duh!)madmaxoft2013-10-201-38/+27
| |
* | Fixed memory leaks in cMobCensus, moved GetSpawnRate() to cMonster.madmaxoft2013-10-207-89/+96
| |
* | Fixed binary search in StringToMobType().madmaxoft2013-10-201-3/+3
| |
* | Fixed memory leaks in cMobSpawner.madmaxoft2013-10-203-62/+55
| |
* | Moved all MobTypesManager functions to cMonster.madmaxoft2013-10-208-290/+351
| | | | | | | | This removes some of the memory leaks and is more logical in structure. Also the functions are exported to Lua.
* | Rewritten MobTypesManager not to leak memory.madmaxoft2013-10-202-126/+112
| |
* | Fixed loading allowed mobs in world.madmaxoft2013-10-2043-161/+320
| |
* | Merge branch 'htmlescape'.madmaxoft2013-10-203-51/+85
|\ \
| * | Added a string reserve.Alexander Harkness2013-10-191-0/+1
| | |
| * | Fixed compile error. silly parentheses creeping in.Alexander Harkness2013-10-191-1/+1
| | |
| * | Changed the code according to xoft's suggestions.Alexander Harkness2013-10-191-10/+10
| | |
| * | Fixed general failings with everything. Fixes #211.Alexander Harkness2013-10-192-15/+16
| | | | | | | | | | | | My editor fixed some extra tabs in globals.
| * | Added a HTML escaping function to cWebAdmin.Alexander Harkness2013-10-192-38/+80
|/ / | | | | | | Apparently my editor fixed some failed tabs too.
* | Adapted code style.madmaxoft2013-10-185-85/+157
| |
* | StringToItem() recognizes "ItemName:Dmg" strings.madmaxoft2013-10-181-18/+21
| | | | | | | | This allows commands such as "/i woodenshovel:40"
* | Fixed item-breaking.madmaxoft2013-10-181-1/+1
| | | | | | | | This fixes #232.
* | Fixed indentation and re-styled conditions.madmaxoft2013-10-181-38/+44
| |
* | Merge pull request #259 from tonibm19/patch-2Mattes D2013-10-181-30/+38
|\ \ | | | | | | Fixed horse saddle
| * | Moved linestonibm192013-10-171-16/+17
| | | | | | | | | don't know if I did well
| * | More fixestonibm192013-10-171-3/+8
| | | | | | | | | | | | - You can only tame horses with nothing at hand - Fixed rearing
| * | Improved horse saddling [SEE DESC]tonibm192013-10-161-32/+32
| | | | | | | | | Now it checks if horse is already saddled, and if it's, you don't lose the saddle. Also, if the horse isn't tammed, you can't saddle it.
| * | Added extra linetonibm192013-10-151-0/+1
| | |
| * | Fixed saddle horsetonibm192013-10-151-4/+5
| |/
* | Fixed webadmin logging.madmaxoft2013-10-183-3/+17
| | | | | | | | This fixes #262.
* | Merge pull request #253 from SamJBarney/masterMattes D2013-10-1828-227/+1329
|\ \ | | | | | | Merge of Mob Spawning code by mgueydan
| * | Removed reading default values from settings.ini for worlds.Samuel Barney2013-10-141-10/+1
| | |
| * | General fixes to get the new Monster spawning code working.Samuel Barney2013-10-141-6/+17
| | | | | | | | | | | | Also wrote in some code to use the default settings for monsters located in settings.ini
| * | Merge branch 'MobSpawning' of https://github.com/mgueydan/MCServer into MobSpawningSamuel Barney2013-10-1428-227/+1325
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: source/Mobs/Bat.h source/Mobs/Monster.h source/World.cpp
| | * \ Merge branch 'master' into MobSpawningmgueydan2013-09-2223-182/+2361
| | |\ \
| | * | | Inside cMonster::getMobFamily() : replacing Polymorphism by Map, in order to remove redundancymgueydan2013-09-1011-29/+9
| | | | |
| | * | | Changing Bat to AMbiant creaturemgueydan2013-09-101-1/+1
| | | | |
| | * | | replacing dynamic_cast by c-style castmgueydan2013-09-091-11/+4
| | | | |
| | * | | replacing C-style cast by dynamic_castmgueydan2013-09-081-1/+1
| | | | |
| | * | | Replacing chunCk by chunkmgueydan2013-09-085-12/+12
| | | | |
| | * | | replacing asserts by ASSERTsmgueydan2013-09-083-6/+10
| | | | |
| | * | | removing an assert + correcting a distance calculation bugmgueydan2013-09-081-3/+9
| | | | |
| | * | | renaming the cChunk::getRandomBlock method + removing a buggy working logmgueydan2013-09-083-6/+3
| | | | |
| | * | | Adding mobtype filter inside world.inimgueydan2013-09-082-9/+15
| | | | |
| | * | | Adding glue to call everything done in last commits - now the mobs are spawningmgueydan2013-09-083-140/+135
| | | | |
| | * | | Disabeling current mob spawning and tickmgueydan2013-09-083-8/+13
| | | | |
| | * | | Implementing the MobSpawner (not used yet) that contains spawning rulesmgueydan2013-09-085-9/+384
| | | | |
| | * | | Adding an Empty shell that would launch mob spawner - not called yetmgueydan2013-09-085-3/+109
| | | | |
| | * | | Adding mob census (sorry this is a big commit as work was done before git integration i couldn't split it more)mgueydan2013-09-0714-0/+622
| | | | |
| | * | | Adding a getType in Monster that return an enum instead of an int or charmgueydan2013-09-071-1/+2
| | | | |
| | * | | relockating mobs includes (they probably will end somewhere else in order not to recompile world each time you update a mob)mgueydan2013-09-072-23/+24
| | | | |
| | * | | Adding Family for monsters : Hostile/Passive/Water/Ambientmgueydan2013-09-079-6/+56
| | | | |
| | * | | Adding Water and Lava as transparency blocksmgueydan2013-09-071-0/+4
| | | | |
| * | | | Merge branch 'master' of https://github.com/mc-server/MCServerSamuel Barney2013-10-1445-132/+1115
| |\ \ \ \
| * | | | | Mobs no longer spawn up in the air.Samuel Barney2013-10-141-0/+2
| | | | | |
* | | | | | Fixed compilation errors.madmaxoft2013-10-161-2/+6
| |_|_|_|/ |/| | | |
* | | | | Fixed a big fail.I didtonibm192013-10-151-0/+1
| | | | |
* | | | | Added extra line (yes, again)tonibm192013-10-151-0/+1
| | | | |
* | | | | Added basic milk code.tonibm192013-10-151-5/+12
| | | | |
* | | | | Added extra linetonibm192013-10-151-0/+1
| | | | |
* | | | | Added horse saddlingtonibm192013-10-151-1/+12
| | | | | | | | | | | | | | | It uses pig code, sorry if it don't works, i'm a noob, but it should work.
* | | | | Update BlockID.cppSofapriester2013-10-151-1/+1
| |/ / / |/| | | | | | | | | | | | | | | | | | | Added g_BlockIsTorchPlaceable[E_BLOCK_STONE_BRICKS] = true; -> this should fix Issue #254 -> Please check if ok Thx
* | | | WebAdmin honors the [WebAdmin].Enable setting.madmaxoft2013-10-131-2/+8
| | | | | | | | | | | | | | | | This fixes #234.
* | | | Fixed WebAdmin's request parameters.madmaxoft2013-10-134-7/+41
| | | | | | | | | | | | | | | | Also added doxycomments on what they really contain.
* | | | Merge branch 'metadata' of git://github.com/tigerw/MCServer into tigerw-metadata.madmaxoft2013-10-1338-121/+976
|\ \ \ \
| * | | | Eight round of fixesTiger Wang2013-10-136-29/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Changed IsA() to *long if statement* - Removed deprecated values in Entity.h - to blazes with the plugins! * Renamed villager type enumerations to be LESS SHOUTY and more vt-y + Use vtMax for World.cpp testificate spawning
| * | | | Seventh round of fixesTiger Wang2013-10-131-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | * Fixed arrows not critical-effecting because they were in MOBS! (derp) * Used cMonster::mtXX as per xoft's suggestions
| * | | | Sixth round of fixesTiger Wang2013-10-112-4/+9
| | | | | | | | | | | | | | | | | | | | * Made horse rearing time fixed instead of random
| * | | | Fifth round of fixesTiger Wang2013-10-113-7/+22
| | | | | | | | | | | | | | | | | | | | * Enumerated Villager spawning
| * | | | Fourth round of fixesTiger Wang2013-10-112-135/+153
| | | | | | | | | | | | | | | | | | | | | | | | | * Switchified WriteMobMetadata * Renamed Horse functions to be better
| * | | | Third round of fixesTiger Wang2013-10-118-82/+106
| | | | | | | | | | | | | | | | | | | | | | | | | * Split WriteMetadata into three functions for common, entity, and mob * Edited a few mob sizes to Vanilla values
| * | | | Second round of fixesTiger Wang2013-10-0917-112/+140
| | | | | | | | | | | | | | | | | | | | * Implemented suggestions
| * | | | Initial round of fixesTiger Wang2013-10-084-25/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixed intentional misspelling of baby! :D * Better chested horse bool name * Fixed some weird continuity issues with my recent changes not being pushed up initially * Fixed derpy hexadecimal values
| * | | | Initial Metadata Commit [SEE DESC]Tiger Wang2013-10-0822-95/+710
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Pigs, Minecarts, Sheep, Skeletons, Slimes, Villagers, Wolves, and Horses have metadata + Base code on taming wolves, shearing sheep, and taming horses + Sheep and horses have different colours when spawned
* | | | | Merge pull request #226 from SamJBarney/masterMattes D2013-10-131-1/+7
|\ \ \ \ \ | | |/ / / | |/| | | Crop blocks now respect light.
| * | | | Removed faulty code dealing with water.Samuel Barney2013-10-131-3/+2
| | | | |
| * | | | Crop blocks now respect water and light. Currently a block has to be "watered" or the crop has a chance of breaking anyways.Samuel Barney2013-10-121-1/+8
| | | | |
* | | | | Re-added the cWorld:GetSignLines() to the API.madmaxoft2013-10-131-0/+1
| | | | | | | | | | | | | | | | | | | | Somehow this got lost somewhere.
* | | | | Added 1.7 biome constants.madmaxoft2013-10-122-2/+89
|/ / / /
* | | | Fix: Wrong arg nameSamuel Barney2013-10-121-1/+1
| | | |
* | | | Merge pull request #224 from tonibm19/patch-7Mattes D2013-10-121-3/+24
|\ \ \ \ | | | | | | | | | | Added Horses, Blazes and EnderDragons spawning.
| * | | | Added more ghast spawning probabilitytonibm192013-10-121-4/+4
| | | | |
| * | | | Added extra linetonibm192013-10-121-0/+1
| | | | |
| * | | | Mob spawning changestonibm192013-10-121-4/+24
| | | | | | | | | | | | | | | Added EnderDragon, Blaze and Horse spawning.
* | | | | Fixed and exported cWorld:QueueTask().madmaxoft2013-10-124-3/+105
|/ / / / | | | | | | | | | | | | This implements #220.
* | | | Fixed second logger constructor.madmaxoft2013-10-122-22/+43
| | | |
* | | | CompoGen and HeiGen read their settings in their respective Initialize() functions.madmaxoft2013-10-118-92/+199
| | | |
* | | | Added GetIniItemSet() function.madmaxoft2013-10-114-8/+73
| | | | | | | | | | | | | | | | It reads a block / item description from the specified INI file value and returns as cItem; stores and uses the default if value doesn't exist.
* | | | Generator: Renamed cBiomeGenerator's Initialize() to InitializeBiomeGen().madmaxoft2013-10-104-19/+19
| | | | | | | | | | | | | | | | This will allow initializing generators that implement both cBiomeGenerator and other generators.
* | | | Fixed cFile::CopyFile Linux compilation.madmaxoft2013-10-091-7/+3
| | | |
* | | | APIDump: Documented the new cFile API functions.madmaxoft2013-10-091-2/+2
| | | |
* | | | Moved cMakeDir::MakeDir to cFile::CreateFolder.madmaxoft2013-10-0911-62/+66
| | | | | | | | | | | | | | | | And exported to Lua.
* | | | Added static cFile functions to Lua API.madmaxoft2013-10-096-16/+320
| | | |
* | | | Fixed warning in cFireSimulator.madmaxoft2013-10-091-13/+8
| | | | | | | | | | | | | | | | All code paths now have a return value.
* | | | Implemented the two memory-statistics functions in cRoot.madmaxoft2013-10-085-57/+185
| | | | | | | | | | | | | | | | This fixes #185. cWebAdmin::GetMemoryUsage() is accessible but deprecated (with a warning output to the screen).
* | | | Cleaned up cEntity's enums.madmaxoft2013-10-083-43/+22
| | | | | | | | | | | | | | | | Several were obsoleted and unused, others weren't supposed to be exported to the Lua API.
* | | | Merge pull request #208 from mc-server/NewWebServerMattes D2013-10-0723-312/+3142
|\ \ \ \ | | | | | | | | | | New web server
| * | | | Fixed memory leaks in the HTTP frameworkmadmaxoft2013-10-065-6/+43
| | | | |
| * | | | cListenThread: Fixed thread termination.madmaxoft2013-10-061-1/+4
| | | | |
| * | | | Added proper shutdown to HTTPServer.madmaxoft2013-10-062-0/+10
| | | | |
| * | | | Merge branch 'master' into NewWebServermadmaxoft2013-10-0615-107/+274
| |\ \ \ \ | | | | | | | | | | | | | | | | | | This should simplify merging
| * | | | | Removed remnants of the old webserver.madmaxoft2013-10-062-32/+2
| | | | | |
| * | | | | WebAdmin uses the new HTTP functionality.madmaxoft2013-10-0510-301/+414
| | | | | | | | | | | | | | | | | | | | | | | | This is a partial implementation of #183.
| * | | | | Fixed Base64Decode() returning wrong value.madmaxoft2013-10-051-1/+1
| | | | | |
| * | | | | cHTTPConnection sends Content-Length with HTTP errors, too.madmaxoft2013-10-051-2/+2
| | | | | |
| * | | | | Added Basic auth support to cHTTPRequest.madmaxoft2013-10-047-1/+136
| | | | | |
| * | | | | HTTP Server can now parse multipart/form-data forms; better architecture.madmaxoft2013-10-047-185/+318
| | | | | |
| * | | | | Fixed MultiPartParser's boundary parsing.madmaxoft2013-10-042-1/+2
| | | | | |
| * | | | | Added cEnvelopeParser and cMultipartParser.madmaxoft2013-10-044-0/+532
| | | | | |
| * | | | | Added cNameValueParser.madmaxoft2013-10-042-0/+482
| | | | | |
| * | | | | Added StrToLower(), URLDecode() and ReplaceAllCharOccurrences().madmaxoft2013-10-042-0/+20
| | | | | |
| * | | | | Improved the HTTPFormParser code.madmaxoft2013-09-282-57/+16
| | | | | | | | | | | | | | | | | | | | | | | | No change to the functionality.
| * | | | | Fixed recognition of multipart-form-data forms.madmaxoft2013-09-282-2/+3
| | | | | |
| * | | | | Created basic cHTTPFormParser.madmaxoft2013-09-285-2/+316
| | | | | | | | | | | | | | | | | | | | | | | | It can parse forms in the application/x-www-form-urlencoded encoding, used for forms without file uploads.
| * | | | | Added URLDecode() and ReplaceAllCharOccurrences() to StringUtils.madmaxoft2013-09-282-0/+76
| | | | | |
| * | | | | Added UserData to cHTTPRequest.madmaxoft2013-09-272-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | Callbacks may store one pointer of per-request data in the cHTTPRequest object. The object doesn't touch this data (doesn't own it).
| * | | | | Added cHTTPServer callbacks; fixed keep-alives.madmaxoft2013-09-274-13/+132
| | | | | | | | | | | | | | | | | | | | | | | | The HTTP server now calls callbacks specified in its start function (debugified atm.) and it processes multiple requests on a single connection.
| * | | | | Fixed leaking HTTPRequest objectsmadmaxoft2013-09-271-0/+2
| | | | | |
| * | | | | Fixed parsing and implemented write nofitication.madmaxoft2013-09-276-13/+51
| | | | | | | | | | | | | | | | | | | | | | | | The web connection finally works with a browser.
| * | | | | Split cHTTPConnection implementation into a separate file.madmaxoft2013-09-274-205/+238
| | | | | |
| * | | | | Rewritten HTTPServer to split into cHTTPConnection, cHTTPRequest and cHTTPResponse classes.madmaxoft2013-09-278-466/+811
| | | | | |
| * | | | | Implemented basic HTTP message header parsing.madmaxoft2013-09-244-4/+467
| | | | | |
* | | | | | Fixed startup timings on server restart.madmaxoft2013-10-071-4/+3
| | | | | |
* | | | | | Fixed authenticator thread restart.madmaxoft2013-10-072-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | This fixes #209.
* | | | | | Plugin folders now check for "." and "..".madmaxoft2013-10-061-2/+2
| |/ / / / |/| | | | | | | | | | | | | | This fixes #207.
* | | | | Optimized cBlockFarmlandHandler in wet weather.madmaxoft2013-10-041-27/+26
| | | | | | | | | | | | | | | | | | | | The area isn't read at all when the weather is wet, since it isn't needed.
* | | | | Added cWorld::IsWeatherXXX() functionsmadmaxoft2013-10-043-3/+143
| | | | |
* | | | | Added comparison for desert biomes.Samuel Barney2013-10-041-1/+2
| | | | |
* | | | | Rain now waters farmland.Samuel Barney2013-10-041-0/+8
| | | | |
* | | | | Merge branch 'master' of https://github.com/mc-server/MCServerSamuel Barney2013-10-0210-48/+70
|\ \ \ \ \
| * \ \ \ \ Merge pull request #193 from tigerw/bugfixesMattes D2013-10-018-39/+49
| |\ \ \ \ \ | | | | | | | | | | | | | | Startup messages revision.
| | * | | | | Removed unneeded statementTiger Wang2013-09-302-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also LOGINFO'd "Starting WebAdmin"
| | * | | | | Improvements to startup timerTiger Wang2013-09-292-17/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As suggested by xoft. Also reverted changes of displayed protocol version.
| | * | | | | Minor startup streamliningTiger Wang2013-09-288-41/+60
| | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | * LOGD'd unneeded debugging messages, streamlining startup + Added a basic timer for how long in seconds it took to start up + Added two checks for plural (plugin/s, second/s)
| * | | | | Merge pull request #199 from tigerw/moar-bugfixesMattes D2013-10-011-5/+17
| |\ \ \ \ \ | | | | | | | | | | | | | | Fixed a fire simulator bug
| | * | | | | Fixed issuesTiger Wang2013-09-301-2/+2
| | | | | | |
| | * | | | | Fixed a fire simulator bugTiger Wang2013-09-301-6/+18
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fire now doesn't stay when it isn't on a flammable block. Fixes the "fire creates chandeliers" bug in report #131
| * | | | | Fixed a typo in cEntity doxycomments.madmaxoft2013-09-271-4/+4
| | | | | |
* | | | | | Added glass pane as transparent. Removed excess g_BlockOneHitDig[E_BLOCK_REDSTONE_WIRE].Samuel Barney2013-10-011-1/+1
|/ / / / /
* | / / / Removed cChunkDesc::SetChunkCoords() from Lua API.madmaxoft2013-09-253-41/+5
| |/ / / |/| | |
* | | | Fixed a few compiler warningsmadmaxoft2013-09-223-23/+36
| | | |
* | | | Merge pull request #186 from tigerw/bugfixesMattes D2013-09-2214-47/+117
|\| | | | | | | | | | | One feature and a few changes
| * | | Removed some unneeded includesTiger Wang2013-09-229-12/+0
| | | |
| * | | Changed a commentTiger Wang2013-09-221-1/+1
| | | | | | | | | | | | | | | | Was a remnant of my TypeType minecarts :D
| * | | Added button placement handlerTiger Wang2013-09-224-1/+112
| | | | | | | | | | | | | | | | Also removed an unneeded variable in the stair handler
| * | | Removed OnDigging for Redstone devicesTiger Wang2013-09-226-30/+1
| | | |
| * | | Increase piston delay to a secondTiger Wang2013-09-221-1/+1
| | | | | | | | | | | | | | | | Another fix for #57
| * | | Changed to SetBlockMetaTiger Wang2013-09-223-3/+3
| | | |
* | | | Updated coding style to match ours.madmaxoft2013-09-221-4/+8
| | | |
* | | | Implemented Apple-specific GetMemoryUsage.Samuel Barney2013-09-221-2/+11
| | | |
* | | | Prepared cWebAdmin for Apple-specific GetMmeoryUsage()madmaxoft2013-09-211-0/+8
| | | |
* | | | Fixed Linux threading issues.madmaxoft2013-09-214-17/+8
| | | |
* | | | Fixed cFile:IsFolder() and plugin-loading.madmaxoft2013-09-212-3/+4
| | | | | | | | | | | | | | | | This should fix loading plugins on Linux.
* | | | Implemented cWebAdmin:GetMemoryUsage() on Linux proper.madmaxoft2013-09-214-60/+109
| | | | | | | | | | | | | | | | Also the function now returns an int, number of KiB used, or -1 on failure.
* | | | Fixed pickup spawning with inherited gamemode.madmaxoft2013-09-212-1/+2
| | | |
* | | | Linux compilation fix #3.madmaxoft2013-09-211-2/+2
| | | |
* | | | Linux compilation fix #2.madmaxoft2013-09-211-1/+1
| | | |
* | | | Fixed Linux compilation.madmaxoft2013-09-211-1/+1
| | | |
* | | | Fixed compilation from previous commit.madmaxoft2013-09-212-2/+2
| | | |
* | | | Merge branch 'bugfixes' of git://github.com/tigerw/MCServer into tigerw-bugfixesmadmaxoft2013-09-2027-118/+614
|\| | |
| * | | Fixed pickup block spawningTiger Wang2013-09-191-8/+9
| | | |
| * | | Implemented xoft's suggestionsTiger Wang2013-09-191-2/+2
| | | |
| * | | Fixed new monster aggressiveness issueTiger Wang2013-09-192-4/+4
| | | |
| * | | Fixed pickupsTiger Wang2013-09-184-23/+16
| | | |
| * | | Added moar mobs!Tiger Wang2013-09-1819-91/+421
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Added dragons + Added golems + Added giants + Added horses + Added some missing items + Added missing spawn egg metas
| * | | Implemented redstone comparatorsTiger Wang2013-09-186-2/+174
| | | | | | | | | | | | | | | | They can be placed and toggled, but stills needs proper redstone support
* | | | Fixed rounding errors in cProtocol125::SendExplosion().madmaxoft2013-09-191-6/+9
| | | | | | | | | | | | | | | | This should fix #129.
* | | | Fixed a crash in cEntity when the entity was at BlockY == 0.madmaxoft2013-09-191-3/+2
| | | |
* | | | Added support for 1.6.3 and 1.6.4 protocols.madmaxoft2013-09-194-2/+14
| | | | | | | | | | | | | | | | No relevant changes have been detected, using the 1.6.2 protocol handler.
* | | | Added a global "g_Plugin" object to all Lua plugins.madmaxoft2013-09-181-0/+3
| | | | | | | | | | | | | | | | This allows plugins to have an empty Initialize function and implementing all their initialization at global level, thus modularising everything.
* | | | Improved error message in cPlugin:AddWebTab() API.madmaxoft2013-09-181-4/+6
| | | |
* | | | Added cPlugin:GetLocalFolder() API function.madmaxoft2013-09-184-9/+43
| | | | | | | | | | | | | | | | This supersedes the cPlugin:GetLocalDirectory() function.
* | | | Proper folder / file distinction in plugin loading.madmaxoft2013-09-183-3/+20
| | | |
* | | | cPluginManager:BindConsoleCommand can be called with the dot operator, too.madmaxoft2013-09-181-15/+20
| | | |
* | | | cPluginManager:BindCommand can be called with the dot operator, too.madmaxoft2013-09-181-12/+19
| | | |
* | | | Merge pull request #176 from tigerw/bugfixesMattes D2013-09-187-89/+68
|\| | | | | | | | | | | Fixed repeater and wood placement
| * | | Multiple fixes [SEE DESC]Tiger Wang2013-09-187-89/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Removed two random block handling files in the item handling section that didn't do anything. (One was an attempt at making slabs work, but failed to realise that the coords would have to be the block CLICKED, and another was just a random empty file for handling wooden planks.) * Fixed placing repeater blocks not directioning properly * Fixed wood directions breaking plank metadata
* | | | Merge pull request #175 from tigerw/bugfixesMattes D2013-09-173-3/+68
|\| | | | | | | | | | | Bugfixes
| * | | Snow now supports meta valuesTiger Wang2013-09-171-2/+22
| | | | | | | | | | | | | | | | Fixes #98
| * | | Added wood directionsTiger Wang2013-09-171-0/+45
| | | | | | | | | | | | | | | | + Added wood directions
| * | | Fixed undead burningTiger Wang2013-09-171-1/+1
| | | | | | | | | | | | | | | | (c'mon xoft, test ya code :P)
* | | | Merge pull request #172 from tigerw/bugfixesAlexander Harkness2013-09-172-20/+21
|\| | | | | | | | | | | Fixes to torches and entities - because they were derpy zubzubs.
| * | | Fixed derpy comparisonTiger Wang2013-09-161-1/+1
| | | |
| * | | Fixed friction for entitiesTiger Wang2013-09-161-13/+13
| | | | | | | | | | | | | | | | Due to a misplaced else, other entities weren't getting friction
| * | | Torch fixes [SEE DESC]Tiger Wang2013-09-161-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | * Torches snap to neighbour when placed on bottom * CanBeAt takes into account cobblestone walls + Used more BLOCK_FACEs instead of numbers
* | | | Fixed missing newline.Alexander Harkness2013-09-161-0/+1
|/ / /
* | | Vanilla like maximum and default view distancetonibm192013-09-161-3/+2
| | |
* | | Attempt at fixing linux crash on player login.Matyas Dolak2013-09-161-1/+11
| | | | | | | | | | | | Ref.: http://forum.mc-server.org/showthread.php?tid=1244
* | | Exported cMonster:GetMobType() to the Lua API.madmaxoft2013-09-163-3/+38
| | |
* | | Removed cWorld:SaveAllChunks() from the API.madmaxoft2013-09-163-35/+3
| | | | | | | | | | | | Use cWorld:QueueSaveAllChunks() instead, the old function was prone to deadlocks.
* | | cWorld:QueueTickBlock takes the delay in ticks.madmaxoft2013-09-164-16/+19
| | |
* | | Fixed doxycomments of cWorld plant-growing codemadmaxoft2013-09-152-7/+12
| | |
* | | Fixed previous commitmadmaxoft2013-09-152-38/+4
| | |
* | | Removed cWorld deprecated API: SetWorldTime()madmaxoft2013-09-151-6/+0
| | |
* | | Removed obsoleted cWorld functions from the API:madmaxoft2013-09-153-70/+5
| | | | | | | | | | | | | | | GetClassStatic() (is used only internally by ManualBindings) GetTime() (is replaced with GetWorldAge() and GetTimeOfDay()
* | | Fixed previous commit.madmaxoft2013-09-151-1/+1
| | |
* | | Fixed API bindings of cWorld:GetSignLines(), exported cWorld:UseBlockEntity().madmaxoft2013-09-154-32/+74
| | |
* | | Fixed tigerw's leftovers.madmaxoft2013-09-151-6/+0
| | |
* | | Updated the bindings again.madmaxoft2013-09-152-3/+3
| | |
* | | Merge branch 'pickups' of git://github.com/tigerw/MCServer into tigerw-pickupsmadmaxoft2013-09-1512-78/+135
|\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: source/BlockID.cpp source/Entities/Entity.cpp
| * | | Added breakTiger Wang2013-09-151-0/+1
| | | |
| * | | Even better pickup physicsTiger Wang2013-09-131-18/+23
| | | |
| * | | Even more fixes [SEE DESC]Tiger Wang2013-09-134-23/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixed minecarts breaking completely due to stuff * Rails are now non solid again + Added IsRail inline bool - Removed Herobrine
| * | | Fixed water speed issuesTiger Wang2013-09-131-5/+6
| | | |
| * | | Implemented xoft's suggestions againTiger Wang2013-09-121-19/+16
| | | |
| * | | Implemented xoft's suggestionsTiger Wang2013-09-111-5/+22
| | | | | | | | | | | | | | | | | | | | | | | | I totally didn't copy this from the fire simulator... (I did, but I changed it quite a bit :P)
| * | | Fixed two bugsTiger Wang2013-09-111-6/+6
| | | |
| * | | Fixed DropSpensers not rotating properlyTiger Wang2013-09-091-1/+1
| | | |
| * | | Added a few changes [SEE DESC]Tiger Wang2013-09-095-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Revised pickup comments * SlotArea pickup tossing now reflects Player.cpp * Removed unneeded ItemShears comment (was working already) * Sand and gravel pickups spawn with correct speed
| * | | A few Minecart fixesTiger Wang2013-09-091-6/+1
| | | | | | | | | | | | | | | | | | | | * Removed unneeded flatrail setpos * Fixed health checking
| * | | Fixed formatting and removed gravity thingTiger Wang2013-09-072-2/+2
| | | |
| * | | Further physics improvements [SEE DESC]Tiger Wang2013-09-051-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was mainly focused on pickups, but it works for other things too. * Entities no longer clip through blocks positive-vertically (this fixes pickup issues as well). * Entities lie flat against a block when they hit it. * Reduced entity (mainly pickup) block clipping in non vertical directions.
| * | | Pickups spawn with correct speed and positionTiger Wang2013-09-042-30/+12
| | | | | | | | | | | | | | | | Added a comment-space as well.
| * | | Players toss a little furtherTiger Wang2013-09-041-1/+1
| | | |
| * | | Pickups are a little less jitteryTiger Wang2013-09-041-2/+2
| | | | | | | | | | | | | | | | They also spawn closer to player mouth.
| * | | Added better push out of entitiesTiger Wang2013-09-041-1/+8
| | | |
* | | | Merge branch 'bugfixes' of git://github.com/tigerw/MCServer into tigerw-bugfixesmadmaxoft2013-09-1521-229/+161
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: source/Blocks/BlockTorch.h
| * | | | Fixed pistons pulling un-pullablesTiger Wang2013-09-151-1/+7
| | | | |
| * | | | Mycelium now has correct placement soundTiger Wang2013-09-151-0/+5
| | | | |
| * | | | Torches work properlyTiger Wang2013-09-154-59/+149
| | | | | | | | | | | | | | | | | | | | Also fixed a naming inconsistency concerning quartz stairs.
| * | | | Removed leftover CanBePlacedOnSideTiger Wang2013-09-153-19/+0
| | | | |
| * | | | Removed leftover DoesAllowBlockOnTopTiger Wang2013-09-153-22/+1
| | | | |
| * | | | Removed torch top placement preventionTiger Wang2013-09-131-6/+0
| | | | |
| * | | | Removed place on top and side preventionsTiger Wang2013-09-1313-113/+0
| | | | |
* | | | | Fixed cWorld bindings for GetBlockInfo() and GetBlockTypeMeta().madmaxoft2013-09-154-100/+119
| | | | | | | | | | | | | | | | | | | | They no longer require the superficial arguments.
* | | | | Updated the automatic bindings.madmaxoft2013-09-152-2/+36
| | | | |
* | | | | Set the minimum viewdistance to 3.madmaxoft2013-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | Fixes #167.
* | | | | Fixed empty-handed itemhandler.madmaxoft2013-09-141-6/+6
| | | | | | | | | | | | | | | | | | | | This should fix FS 430.
* | | | | Added an extra line.tonibm192013-09-131-0/+1
| | | | | | | | | | | | | | | In first commit it says I removed first line
* | | | | Fixed mobs attack range being too longtonibm192013-09-131-2/+1
| | | | | | | | | | | | | | | It was set to 5, I think 2 is better because now mobs can kill you when there is a block (or 2) between you and monster.
* | | | | Added StringSplitAndTrim() to Lua APImadmaxoft2013-09-111-6/+22
| | | | |
* | | | | Merge pull request #159 from tigerw/bugfixMattes D2013-09-115-5/+107
|\ \ \ \ \ | | | | | | | | | | | | Multiple fixes and features
| * | | | | More changes [SEE DESC]Tiger Wang2013-09-112-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Improved (again) pumpkin direction handling * Fixed spacing in Entity.cpp
| * | | | | PumpkinsTiger Wang2013-09-111-1/+1
| | | | | |
| * | | | | Better player gamemode detectionTiger Wang2013-09-111-1/+1
| | | | | |
| * | | | | moved reflection code to PlayerYawToMetadataworktycho2013-09-111-4/+3
| | | | | |
| * | | | | changed the subtaraction to a flipworktycho2013-09-111-3/+3
| | | | | |
| * | | | | Added player void damageTiger Wang2013-09-111-3/+6
| | | | | |
| * | | | | Added void damageTiger Wang2013-09-112-0/+29
| | | | | |
| * | | | | Entities now maintain speed outside of worldTiger Wang2013-09-101-2/+9
| | | | | |
| * | | | | Pumpkin and JackOLantern supportTiger Wang2013-09-102-0/+65
| |/ / / / | | | | | | | | | | | | | | | Fixes #99
* | | | | Fixed codepage conversionmadmaxoft2013-09-101-1/+1
| | | | |
* | | | | Fixed a crash on immediate re-login.madmaxoft2013-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | Fixes #155.
* | | | | Merge branch 'boats' of git://github.com/tigerw/MCServer.madmaxoft2013-09-0910-2/+224
|\ \ \ \ \
| * | | | | Fixed a bunch of stuffTiger Wang2013-09-084-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixed compilation * Made it less obvious I COPIED ALL THE CODE from Minecarts * Fixed alignment spaces to make xoft happy
| * | | | | Initial boat supportTiger Wang2013-09-088-1/+217
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | + Boats are saved + Boats have physics + Boats spawn
| * | | | Implemented SteerVehicle packet.madmaxoft2013-09-065-6/+43
| | | | |
| * | | | Moved daylight burning directly into cMonster.madmaxoft2013-09-066-40/+46
| | | | |
| * | | | Removed TimedWait from cEvent.madmaxoft2013-09-062-57/+0
| |/ / / | | | | | | | | | | | | Unsupported on MacOS.
* | | | Removed the cDoors class.madmaxoft2013-09-095-97/+112
| | | | | | | | | | | | | | | | The helper functions that it implemented were moved into their respective blockhandlers.
* | | | Removed the "charging bow" debug message.madmaxoft2013-09-081-1/+0
| | | |
* | | | Fixed torch placement.madmaxoft2013-09-081-7/+17
| | | | | | | | | | | | | | | | This is related to #127, but until we know more about the change, I'm not closing the issue.
* | | | Alpha-sorted g_BlockIsSnowable[].madmaxoft2013-09-081-2/+2
| | | |
* | | | Thrown ender pearls are saved properly to MCA.madmaxoft2013-09-081-0/+1
| | | |
* | | | Fixed client spawning.madmaxoft2013-09-082-114/+54
| | | | | | | | | | | | | | | | The method used for 1.2.5 clients no longer works. Fixes #139.
* | | | Re-added the top line.STRWarrior2013-09-081-0/+1
| | | |
* | | | Added E_BLOCK_LILY_PAD to g_BlockIsSnowable.STRWarrior2013-09-081-2/+3
| | | |
* | | | Implemented proper chunk unloading in all 1.3.2+ clientsmadmaxoft2013-09-081-2/+11
| |_|/ |/| |
* | | Merged branch 'Projectiles'.madmaxoft2013-09-0723-182/+2361
|\ \ \ | |_|/ |/| |
| * | Added a (disabled) block logging to projectile path-tracing.madmaxoft2013-09-071-0/+10
| | |
| * | Updated the API bindings.madmaxoft2013-09-072-46/+118
| | |
| * | Implemented loading more projectiles from MCA.madmaxoft2013-09-074-14/+151
| | |
| * | Implemented ghast fireball and firecharge projectilesmadmaxoft2013-09-072-9/+161
| | |
| * | Renamed cWorld::DoExplosiontAt() to cWorld::DoExplosionAt()madmaxoft2013-09-077-15/+15
| | |
| * | Arrows have proper yaw and pitch when shot, and stop when they hit a block.madmaxoft2013-09-074-8/+70
| | |
| * | Removed an unused includemadmaxoft2013-09-041-2/+1
| | |
| * | Added cEntity's gravity to the Lua API.madmaxoft2013-09-033-2/+73
| | |
| * | Implemented exact block hit position.madmaxoft2013-09-032-26/+31
| | | | | | | | | | | | Arrows now stick out of blocks at the exact position where they hit.
| * | Added cArrowEntity's criticalness to the API.madmaxoft2013-09-033-22/+99
| | |
| * | Arrows deal damage based on their speed.madmaxoft2013-09-032-4/+13
| | |
| * | Projectiles slow down in water and lava.madmaxoft2013-09-021-3/+14
| | |
| * | Projectiles don't collide with their creators.madmaxoft2013-09-021-2/+6
| | |
| * | cBoundingBox: Only forward collisions are calculated.madmaxoft2013-09-022-6/+16
| | |
| * | Arrows deal damage.madmaxoft2013-09-012-4/+127
| | | | | | | | | | | | Still needs some tweaks, they hit the shooter most of the time.
| * | Made cBoundingBox class inclusive in both coord edges.madmaxoft2013-09-012-9/+56
| | | | | | | | | | | | Also added (a disabled) self-test to cBoundingBox.
| * | Fixed an error in cBoundingBox's line-collision algorithm.madmaxoft2013-09-012-17/+12
| | |
| * | Added dtRangedAttack, fixed faulty StringTODamageType()madmaxoft2013-09-012-17/+26
| | |
| * | Added line collision calculation to cBoundingBox.madmaxoft2013-09-016-46/+527
| | |
| * | Renamed BLOCK_FACE constants to use the new coord-wise names.madmaxoft2013-09-011-9/+17
| | | | | | | | | | | | The old names are still present, but deprecated.
| * | Added the cBoundingBox class.madmaxoft2013-09-015-8/+862
| | |
| * | Thrown ender pearls now teleport and hurt.madmaxoft2013-08-302-1/+8
| | |
* | | Fixed a missing initialization in cMonster.madmaxoft2013-09-071-2/+3
| | | | | | | | | | | | This should fix commit ff762a7ece6400eaeb5e21f3fea7cad00786a8d9 's all-mobs burning.
* | | Implemented SteerVehicle packet.madmaxoft2013-09-065-6/+43
| | |
* | | Moved daylight burning directly into cMonster.madmaxoft2013-09-056-40/+46
| | |
* | | Merge branch 'master' of git://github.com/tigerw/MCServer into tigerw-mastermadmaxoft2013-09-0519-29820/+30136
|\ \ \ | | |/ | |/|
| * | Fixed inconsistent meta namingTiger Wang2013-09-034-81/+81
| | |
| * | Merge remote-tracking branch 'upstream/master'Tiger Wang2013-09-0256-1475/+4012
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: source/Bindings.cpp source/Entities/Entity.cpp Updated from upsteam
| * | | Minecart enhancements [SEE DESC]Tiger Wang2013-09-022-113/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Curved rails. Better physics. Better code as improved by xoft. Stuff.
| * | | Physics enhancementsTiger Wang2013-08-292-29/+37
| | | | | | | | | | | | | | | | | | | | Minecarts no longer glitch on flat rails Improved acceleration, speed limit, and stopping
| * | | Corrected comment TypeTypeTiger Wang2013-08-291-1/+1
| | | |
| * | | Implemented xoft's suggestions [SEE DESC]Tiger Wang2013-08-2914-132/+105
| | | | | | | | | | | | | | | | | | | | | | | | Rail metas are now in BlockID and exported to LUA Minecart now does a SetMass, instead of m_Mass Minecarts use SubType instead of TypeType
| * | | Fixed Minecart spawning issuesTiger Wang2013-08-2810-34/+41
| | | | | | | | | | | | | | | | Now you can have everything!
| * | | Zomb-ee and Skellingtons burning improvementsTiger Wang2013-08-272-10/+14
| | | | | | | | | | | | | | | | | | | | They don't burn unless they are in direct view of the sun god or are protected by the sands of the souls of the underworld.
| * | | Preliminary Minecart physics handling [SEE DESC]Tiger Wang2013-08-273-5/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit includes physics handling for the following scenarios: Flat rails in orientations [N, S, W, E] Ascending/descending rails in orientations [N, S, W, E] Powered rails are NOT handled (they don't respond to redstone). Curved rails are NOT handled (I haven't figured out how to do them :P) Please note that I have not tried to emulate vanilla behaviour because of a lack of knowledge on velocity unites/C++. We can say it's a feature or something. :P
* | | | Removed TimedWait from cEvent.madmaxoft2013-09-052-57/+0
| |/ / |/| | | | | | | | Unsupported on MacOS.
* | | Exported BroadcastSoundEffect and BroadcastSoundParticleEffect to the Lua APISTRWarrior2013-09-013-30325/+30416
| |/ |/|
* | Basic support for thrown items - eggs, snowballs and ender pearls.madmaxoft2013-08-306-29/+309
| | | | | | | | They can be thrown, but they don't do anything on impact. Also they don't save to nor load from MCA.
* | Moved throw pos and speed calculation from cProjectileEntity into cPlayer.madmaxoft2013-08-306-124/+128
| |
* | Merged in the Projectiles branch.madmaxoft2013-08-3033-380/+1503
|\ \ | | | | | | | | | Although the projectiles are not yet finished, the branch has several bugfixes that are needed in master as well.
| * | Shooting a bow kinda works.madmaxoft2013-08-309-15/+217
| | | | | | | | | | | | The arrow is released, but sometimes hits wrong blocks or disappears completely.
| * | Implemented basic physics for projectiles.madmaxoft2013-08-277-36/+157
| | |
| * | Entities fall 3x slower in watermadmaxoft2013-08-272-2/+2
| | |
| * | Debug logging for arrows improvedmadmaxoft2013-08-261-1/+8
| | |
| * | Debug: arrow log their position in each tickmadmaxoft2013-08-263-19/+39
| | |
| * | Arrows get loaded from MCA.madmaxoft2013-08-252-4/+48
| | | | | | | | | | | | Somehow they still don't spawn visibly on the client.
| * | Added a few API accessors to cArrowEntity.madmaxoft2013-08-254-2/+196
| | |
| * | Moved entity spawning into cEntity::Initialize().madmaxoft2013-08-259-61/+4
| | | | | | | | | | | | It has been called in every descendant anyway, so it's better this way - reduced duplicate code.
| * | Merged branch 'master' into Projectiles.madmaxoft2013-08-2521-137/+496
| |\ \
| * | | Projectile entities get saved into MCA filesmadmaxoft2013-08-222-4/+65
| | | |
| * | | Added a few basic fields to cProjectileEntity and cArrowEntity.madmaxoft2013-08-222-4/+73
| | | |
| * | | Arrows can spawn on the client.madmaxoft2013-08-221-1/+2
| | | |
| * | | Added skeleton code for projectile spawning.madmaxoft2013-08-228-258/+482
| | | |
* | | | Rewritten cTimer not to use heap allocation.madmaxoft2013-08-302-31/+45
| | | |
* | | | Added g_BlockIsXXX[] arrays to the API.madmaxoft2013-08-273-2/+192
| | | |
* | | | Fixed ProtoProxy compilation, added client Kick handling.madmaxoft2013-08-251-3/+14
| |/ / |/| |
* | | Reduced LeakFinder's stack buffers to half.madmaxoft2013-08-251-2/+5
| | | | | | | | | | | | The LeakFinder's stack buffers were causing too much RAM usage in the Debug mode, rising about 50 MiB per each cLuaState created.
* | | Merging in tigerw's changes from PR #118madmaxoft2013-08-2512-100/+318
|\ \ \ | | |/ | |/|
| * | Fixed iron door opening by handTiger Wang2013-08-251-1/+4
| | |
| * | Fixed public thing in ClientHandleTiger Wang2013-08-251-3/+3
| | |
| * | Redstone fixes [SEE DESC]Tiger Wang2013-08-251-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed pistons not correctly powering down Fixed dispensers not correctly powering down Fixed droppers not correctly power down Fixed TNT not correctly powering up Fixed redstone lamps not correctly powering up Fixed redstone lamps not correctly powering down
| * | Vines now spread when updatedTiger Wang2013-08-241-0/+7
| | |
| * | Fixed inconsistent metas and added snow metasTiger Wang2013-08-242-53/+73
| | |
| * | Added comments and fixed a bugTiger Wang2013-08-242-48/+58
| | | | | | | | | | | | Bug was placing slabs between slabs not making a double slab.
| * | Fixed final slab bugTiger Wang2013-08-241-1/+1
| | | | | | | | | | | | | | | | | | This bug allowed a double slab to be made below by placing a compatible slab on a "top" slab. The coordinates are always one lower, so now it checks to see if the slab orientation can be made into a double.
| * | Fixed incorrect double slab dropsTiger Wang2013-08-231-2/+9
| | |
| * | Double slabs work *choke choke*Tiger Wang2013-08-235-33/+137
| | |
| * | Fixed lighters replacing blocksTiger Wang2013-08-231-3/+6
| | |
| * | Changed comments to be more accurateTiger Wang2013-08-211-4/+4
| | |
| * | Fixed longstanding issue with slabsTiger Wang2013-08-211-1/+12
| | | | | | | | | | | | Fixes FS#298
| * | Fixed broken carpet handler [SEE DESC]Tiger Wang2013-08-202-3/+10
| | | | | | | | | | | | | | | | | | Made BlockHandler pass on control to carpet handler Declared thinggummies in carpet handler Fixed carpet block pushback using incorrect format
* | | Fixed logging in cTracer.madmaxoft2013-08-241-1/+1
| | |
* | | Lifted the debugging 1 GiB RAM limit in LeakFinder to 1.5 GiBmadmaxoft2013-08-241-2/+2
| | |
* | | Slight performance improvement in cWorld::FindClosestPlayer()madmaxoft2013-08-241-6/+3
| | |
* | | cTracer doesn't attempt a trace above the world.madmaxoft2013-08-241-2/+2
| | | | | | | | | | | | This fixes some crashes with out-of-world entities.
* | | Fixed pickup behavior outside the world.madmaxoft2013-08-241-3/+4
| | | | | | | | | | | | One part of #131.
* | | Client can no longer place blocks outside the Y range of the world.madmaxoft2013-08-241-1/+6
| | | | | | | | | | | | Fixes #128.
* | | Added Unicode, Inc.'s notice.madmaxoft2013-08-241-5/+38
| | | | | | | | | | | | Fixes #123.
* | | Fixed AddHook() wanting old-style function names.madmaxoft2013-08-224-22/+22
| | | | | | | | | | | | Error reported by STR_Warrior in the forum http://forum.mc-server.org/showthread.php?tid=1227&pid=9620#pid9620
* | | Removed unwanted VirtualHooks remnants.madmaxoft2013-08-221-2/+1
| |/ |/| | | | | cEntity no longer needs its SpawnOn() default-implemented, it can now be a true pure virtual function.
* | Another fix for #31.madmaxoft2013-08-221-0/+6
| | | | | | | | This seems to have done it, no more crashes for me.
* | cPluginManager.AddHook old-style API usage prints the stack trace.madmaxoft2013-08-211-0/+1
| | | | | | | | This eases migration to #121 API.
* | Added a deprecation warning to the old style API.madmaxoft2013-08-211-0/+1
| | | | | | | | This completes #121.
* | Hook adding uses the new API.madmaxoft2013-08-219-194/+755
| | | | | | | | Multiple hooks per plugin can be added. The cPluginManager.AddHook() has four available signatures, the recommended one is cPluginManager.AddHook(HOOK_TYPE, CallbackFunction)
* | cLuaState: Added LogStackTrace() and GetTypeText() utility functionsmadmaxoft2013-08-212-0/+49
| |
* | Added cWorld:GetIniFileName() to the Lua API.madmaxoft2013-08-213-10/+51
| |
* | Added a delay between the kick packet and socket close.madmaxoft2013-08-202-2/+21
| | | | | | | | This should have helped #31, but the client disagrees.
* | Merge pull request #117 from tigerw/masterMattes D2013-08-203-5/+8
|\| | | | | Bugfix Update
| * Juggled piston code to prioritise block actionTiger Wang2013-08-201-5/+5
| | | | | | | | | | This improves animation chance without long delays. Additionally, queued a previously unqueued base set.
| * Activator rail now uses rail handlerTiger Wang2013-08-201-0/+1
| |
| * Updated block transparenciesTiger Wang2013-08-201-0/+2
| | | | | | | | Now includes activator rails and piston extensions
* | Hotfix for #83.madmaxoft2013-08-201-0/+6
| | | | | | | | Do not tick the player while their chunk is invalid.
* | Fixed player spawning.madmaxoft2013-08-202-3/+10
| | | | | | | | Now the player is spawned only after the chunk they're in is sent to the client. Hopefully no more falling-through-terrain-while-loggin-in.
* | Fixed a warning on closing invalid plugins.madmaxoft2013-08-201-1/+4
| |
* | Small Linux fixes.madmaxoft2013-08-203-3/+4
| |
* | Started work on the cProjectileEntity class.madmaxoft2013-08-201-0/+69
|/
* Reduced delay a littleTiger Wang2013-08-201-1/+1
|
* Increased wait tick delay for pistonsTiger Wang2013-08-201-1/+1
| | | | Pistons again!
* Merge branch 'tigerw-master', fixed pistons pushing extended sticky pistons.madmaxoft2013-08-192-9/+17
|\
| * Additional piston correctionsTiger Wang2013-08-191-12/+12
| | | | | | | | | | Reduced delay time of blockset Fixed invalid blockpush checking
| * Added forgotten initialisationTiger Wang2013-08-191-1/+1
| |
| * Fixed piston animations...Tiger Wang2013-08-191-7/+7
| | | | | | | | ...for the third (and hopefully last) time.
| * Fixed uninitialised thingummiesTiger Wang2013-08-191-1/+1
| |
* | Debuggers: Added continuous hunger reporting.madmaxoft2013-08-193-5/+8
| | | | | | | | Showcases the OnWorldTick() hook to fire events at regular intervals. Will be used for debugging the issues related to hyper-hunger.
* | DeadlockDetect now uses sleep instead of timed-wait semaphores.madmaxoft2013-08-192-18/+5
| | | | | | | | The semaphores' timed-wait still has issues on Linux, it's just easier to use cSleep instead.
* | Fixed WorldTickThread reporting wrong time durations for each tick.madmaxoft2013-08-192-9/+17
| | | | | | | | This had caused food eating to fail and players unable to collect pickups on Linux.
* | Fixed the extreme strain on the world tick thread.madmaxoft2013-08-192-0/+7
|/ | | | Block changes were sent even with empty changesets, causing a lot of lost CPU cycles.
* Fixed cEvent TimedWait on Linux.madmaxoft2013-08-191-1/+1
|
* Added cPickup:IsCollected() to the Lua API.madmaxoft2013-08-193-2/+38
|
* Added cPickup:GetAge() the the Lua API.madmaxoft2013-08-193-5/+37
|
* Moved entities into the Entities subfolder.madmaxoft2013-08-1977-214/+226
|
* Fixed timed event wait on Linux.madmaxoft2013-08-191-16/+11
| | | | Was causing an error message and the DeadlockDetect didn't work.
* Finished renaming cPlugin_NewLua to cPluginLua.madmaxoft2013-08-1911-114/+115
|
* Implemented the OnWorldTick hook.madmaxoft2013-08-196-0/+40
| | | | Triggerred for each world every time it ticks, parameters are the cWorld and the previous tick length (a_Dt)
* cChunk::SetBlock() now uses cChunk::FastSetBlock() for the common code path.madmaxoft2013-08-191-69/+11
|
* Removed an unused CriticalSection from cChunk.madmaxoft2013-08-192-20/+5
| | | | Fixes #109
* Fixed crash when the player is above the world.madmaxoft2013-08-191-1/+1
| | | | Fixes #53.
* Implemented cWorld:QueueSetBlock(), as requested for delayed blocksetting.madmaxoft2013-08-188-4/+186
| | | | Untested yet, so might not work.
* Removed SetServerBlock griefing.madmaxoft2013-08-187-99/+7
|
* Fixed piston code griefing damage.madmaxoft2013-08-181-22/+6
|
* Emergency compilation fix!Tiger Wang2013-08-181-1/+2
|
* Merge branch 'master' of https://github.com/tigerw/MCServer into tigerw-masterTiger Wang2013-08-188-17/+172
|\ | | | | | | | | | | | | Conflicts: source/Piston.cpp Merged pull request and fixed merge conflicts
| * Added checks to bail out if block entities are being pushed by a pistonTiger Wang2013-08-181-2/+21
| |
| * Properly fixed piston non-animationTiger Wang2013-08-187-16/+128
| | | | | | | | Fixes #57
| * Enhancements to Tabcompletion and Compile FixTiger Wang2013-08-182-12/+8
| | | | | | | | | | | | Tab complete now finds the last word and matches accordingly, with a 20% increase in speed! Fixed missing comma breaking compilation
| * Merge remote-tracking branch 'upstream/master'Tiger Wang2013-08-189-39/+73
| |\
| * | Bugfix Update [SEE DESC}Tiger Wang2013-08-183-7/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | Added stained clay, coal block, and hardened clay Block IDs Added stained clay and carpet block Metas Fixed bug with sticky retract bailing out but not unsetting arm Fixed autocomplete not working when not at the first character, fixes #64 Added furnace recipes for hardened clay and coal and coal blocks
* | | Made cPiston code more readable and configurable.madmaxoft2013-08-182-78/+200
| | | | | | | | | | | | Fixed some minor problems with pistons, such as pulling water etc. Thanks to TigerW for some inspiration.
* | | Added cWindow property manipulation API.madmaxoft2013-08-1812-45/+142
| | | | | | | | | | | | Now enchantment table and furnace properties can be set by a plugin
* | | cListenThread correctly closes all sockets.madmaxoft2013-08-181-2/+6
| | | | | | | | | | | | This partially fixes FS 421.
* | | Disabled Lua virtual hooks.madmaxoft2013-08-183-1957/+18
| |/ |/| | | | | This technology was used for old-style plugins and is no longer supported nor needed. Fixes #78.
* | Fixed LuaWindow destructor causing a crash.madmaxoft2013-08-181-0/+10
| | | | | | | | It was leaving the m_Contents' relations to listeners and SlotAreas' relations to m_Contents, which were already gone.
* | Fixed assert failures in cLuaState when using it for pushing a StringVector.madmaxoft2013-08-181-31/+0
| |
* | Added cRoot:BroadcastChat() to the Lua API.madmaxoft2013-08-174-2/+52
| | | | | | | | This allows plugins to broadcast a chat message to all connected players. It is a replacement for previously removed cServer:BroadcastChat().
* | The server Tick thread ticks PluginManager.madmaxoft2013-08-171-0/+5
| | | | | | | | This fixes #104 and #102
* | Fixed compile-time warning in TNTEntity.madmaxoft2013-08-172-6/+6
|/ | | | The FuseTime is now a double instead of a float
* Another compile fixTiger Wang2013-08-161-3/+0
|
* Possible entity ID fix?Tiger Wang2013-08-161-2/+2
|
* Compilation and Minecart fixesTiger Wang2013-08-163-9/+53
|
* Merge remote-tracking branch 'upstream/master'Tiger Wang2013-08-1637-31246/+31890
|\
| * Replaced E_ENTITY_TYPE_XXX with cMonster::mtXXX.madmaxoft2013-08-1618-169/+207
| | | | | | | | Also slightly improved the spawning algorithm.
| * Exported cWorld:DoExplosionAt() to Lua API.madmaxoft2013-08-153-3/+49
| |
| * Attempting to fix CentOS / gcc 4.4.7 compilation problem.madmaxoft2013-08-151-1/+1
| | | | | | | | Reported by ThijsD in the forum http://forum.mc-server.org/showthread.php?tid=1220
| * Merge pull request #93 from mc-server/PerWorldThreadsMattes D2013-08-1523-31107/+31667
| |\ | | | | | | Per world threads
| | * Added simple deadlock detection code.madmaxoft2013-08-143-4/+238
| | | | | | | | | | | | This will assert and then deliberately crash the server once a deadlock is detected. For detection, only the world tick threads are considered, cWorld's m_WorldAge is checked periodically and if it doesn't increment for several seconds, a deadlock is reported.
| | * Fixed world's a_Dt parameter getting time values in wrong units.madmaxoft2013-08-141-1/+1
| | |
| | * cEvent can now wait for the event with a specified timeout.madmaxoft2013-08-142-26/+88
| | |
| | * ClientHandle no longer queues chat messages.madmaxoft2013-08-142-56/+17
| | | | | | | | | | | | It is no longer needed to queue chat messages, because the protocol is parsed within the Tick thread itself, without holding any SocketThread CS.
| | * Clients are deleted when the world is stopped.madmaxoft2013-08-141-0/+11
| | | | | | | | | | | | This fixes #92.
| | * Fixed wrong names for some metas.madmaxoft2013-08-143-18/+18
| | | | | | | | | | | | They were E_BLOCK_ instead of E_META_.
| | * Server counts the players correctly.madmaxoft2013-08-143-3/+6
| | | | | | | | | | | | Was missing the PlayerDestroying() call, so players weren't removed from the playercount.
| | * Fixed crashes in world's clientlist manipulatorsmadmaxoft2013-08-142-2/+28
| | |
| | * Player counts are now properly handled.madmaxoft2013-08-147-16/+108
| | | | | | | | | | | | Fixes #80
| | * Exported cWorld:BroadcastChat() to the Lua API; used in the Core.madmaxoft2013-08-133-4/+41
| | |
| | * Merge branch 'master' into PerWorldThreads.madmaxoft2013-08-136-5/+10
| | |\ | | | | | | | | | | | | Also fixed the AllToLua script not resolving conflicts.
| | * | Clients are now ticked in cServer first, then in cWorld once they get assigned a world.madmaxoft2013-08-1310-168/+182
| | | |
| | * | Fixed logging into debug console.madmaxoft2013-08-122-1/+3
| | | | | | | | | | | | | | | | Was missing the LF at the end.
| | * | Removed cServer::BroadcastChat() and cServer::SendMessage().madmaxoft2013-08-127-133/+42
| | | | | | | | | | | | | | | | These two functions make it difficult to move to the new ticking system, and they aren't used anyway. If so required, they can be emulated by ForEachWorld / ForEachPlayer calls.
| | * | Removed unused cServer::IsConnected() function.madmaxoft2013-08-121-4/+2
| | | |
| | * | Merge branch 'master' into PerWorldThreadsmadmaxoft2013-08-124-17/+14
| | |\ \
| | * | | Added cWorld:QueueSaveAllChunks() function for saving chunks asynchronously.madmaxoft2013-08-114-5/+125
| | | | | | | | | | | | | | | | | | | | The cWorld:SaveAllChunks() is therefore deprecated in the API and will be removed soon, use QueueSaveAllChunks() instead.
| | * | | cIsThread threads get a window identification on Win.madmaxoft2013-08-111-0/+2
| | | | | | | | | | | | | | | | | | | | This enables tools such as TaskInfo to report the thread name directly.
| | * | | Each world now ticks in a separate thread.madmaxoft2013-08-118-112/+135
| | | | |
| | * | | Removed cServer::m_pState, dissolved into direct member variables.madmaxoft2013-08-112-101/+75
| | | | | | | | | | | | | | | | | | | | The server tick thread is now in the cServer::cTickThread object.
| | * | | cIsThread: Added the Stop() method and debugging output in Wait()madmaxoft2013-08-112-22/+26
| | | | |
| | * | | Moved MaxPlayers and Description from cWorld to cServer.madmaxoft2013-08-118-186/+274
| | | | | | | | | | | | | | | | | | | | Also started creating a new cWorld::cTickThread class, but not used yet.
* | | | | Feature and bugfixes [SEE DESC]Tiger Wang2013-08-1612-52/+109
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Generation and simulation defaultsTiger Wang2013-08-142-8/+8
| | | | | | | | | | | | | | | | ...are no longer set, instead, the server operator is told to set them.
* | | | Okay, changed to xoft's partial fixTiger Wang2013-08-141-29/+6
| | | |
* | | | Merge remote-tracking branch 'upstream/master'Tiger Wang2013-08-142-17/+49
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: source/Piston.cpp Merge conflict?
| * | | | Partially fixed tonibm19's mess.madmaxoft2013-08-141-21/+20
| | | | |
| * | | | Merge pull request #85 from tigerw/masterTiger Wang2013-08-142-2/+25
| |\ \ \ \ | | | | | | | | | | | | Fixed #57
| * | | | | Fixed player swimstate crash.madmaxoft2013-08-141-16/+35
| | |_|_|/ | |/| | | | | | | | | | | | | The check for swimming / submersion checks the Y coord first. Fixes #63.
* | | | | Alpha sorted PistonBreakable listTiger Wang2013-08-141-2/+3
| | | | |
* | | | | Buncha bugfixes [SEE DESC]Tiger Wang2013-08-146-9/+23
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | Fixed generation values not being written Fixed piston being able to push water Fixed ice creating a non-source block (still doesn't update though) Removed problematic piston code
* | | | YET ANOTHER ERROR >:(Tiger Wang2013-08-131-3/+3
| | | |
* | | | CreditsTiger Wang2013-08-131-3/+5
| | | |
* | | | Attempt threeTiger Wang2013-08-131-16/+14
| | | | | | | | | | | | | | | | This is extremely embarrassing...
* | | | Attempt twoTiger Wang2013-08-131-3/+3
| | | |
* | | | Attempt at fixing sleep issueTiger Wang2013-08-131-3/+3
| | | |
* | | | Removed more commentsTiger Wang2013-08-131-1/+0
| | | |
* | | | Fixes #57Tiger Wang2013-08-131-1/+25
|/ / /
* | | Keep players from taking damage when teleporting.STRWarrior2013-08-121-1/+1
| | |
* | | Added quartz stairs.STRWarrior2013-08-124-30589/+30592
| | |
* | | Fixed logging into debug console.madmaxoft2013-08-122-1/+3
| |/ |/| | | | | Was missing the LF at the end.
* | Merge pull request #77 from tonibm19/patch-1Tiger Wang2013-08-111-0/+7
|\ \ | | | | | | Now Endermans spawn in The End
| * | Now Endermans spawn in The Endtonibm192013-08-111-0/+7
| | |
* | | Really removed comments this timeTiger Wang2013-08-111-7/+0
|/ /
* | Merge pull request #74 from tigerw/masterTiger Wang2013-08-113-17/+14
|\ \ | |/ |/| Further attempt at fixing torch placements
| * Removed unneeded case clauseTiger Wang2013-08-112-16/+13
| |
| * Tried adding bracketTiger Wang2013-08-111-1/+1
| |
| * Further attempt at fixing torch placementsTiger Wang2013-08-112-10/+10
| | | | | | | | Also fixed block on flower placement. #71
* | Added doxyComments for cIsThread.madmaxoft2013-08-112-7/+13
| |
* | Added the OnHopperPullingItem and OnHopperPushingItem hooks.madmaxoft2013-08-1111-61/+230
| | | | | | | | Requested in FS 412, slightly modified the params.
* | Added an AllowEmptyStacks param to cItemGrid::HowManyCanFit().madmaxoft2013-08-112-3/+6
|/
* Added OnPlayerAnimation() hook.madmaxoft2013-08-116-0/+44
| | | | Initial patch by @STR_Warrior, updated to account for different animation packets.
* Attempt at fixing torch placementTiger Wang2013-08-101-3/+5
| | | Attempt at fixing #71 and placement of torches.
* Added back the required extra line in player.cppAlexander Harkness2013-08-101-0/+1
|
* Removed extra disconnect messageTiger Wang2013-08-101-5/+0
| | | There seems to be already one in the HandleDisconnect hook function.
* Deleting cPlayer now does LOGD instead of LOGTiger Wang2013-08-101-2/+1
| | | Hopefully only prints in debug the debug message!
* Merge pull request #56 from mc-server/LinuxColorConsoleAlexander Harkness2013-08-103-42/+107
|\ | | | | Linux color console
| * Linux color redirection fixed.madmaxoft2013-08-101-1/+1
| | | | | | | | Outputting to stdin, yeah, right, that's gonna work :P
| * Coloring is reset before the LF.madmaxoft2013-08-102-7/+9
| |
| * Another Linux compilation fix.madmaxoft2013-08-101-0/+2
| |
| * Fixed Linux build.madmaxoft2013-08-101-1/+2
| |
| * Disabled coloring for redirected output.madmaxoft2013-08-102-17/+66
| |
| * Use printf() instead of puts().madmaxoft2013-08-101-4/+4
| | | | | | | | puts() outputs an extra newline, making it unsuitable
| * Bad preprocesor used for discovering Linuxmadmaxoft2013-08-101-1/+1
| |
| * First attempt at Linux console colorsmadmaxoft2013-08-092-36/+47
| | | | | | | | Ref.: issue #41
| * Piston head, when removed, removes the associated piston body, too.madmaxoft2013-08-093-1/+50
| | | | | | | | Fixes FS 388
| * Fixed squid crashing the server when above or below the worldmadmaxoft2013-08-091-1/+6
| |
| * Renamed Plugin_NewLua to PluginLua.madmaxoft2013-08-097-7/+18
| |
* | Piston head, when removed, removes the associated piston body, too.madmaxoft2013-08-103-1/+50
| | | | | | | | Fixes FS 388
* | Fixed squid crashing the server when above or below the worldmadmaxoft2013-08-101-1/+6
| |
* | Renamed Plugin_NewLua to PluginLua.madmaxoft2013-08-107-7/+18
| |
* | Merge pull request #55 from mc-server/falldamage-teleportAlexander Harkness2013-08-091-0/+1
|\ \ | |/ |/| Keep players from taking damage when teleporting. (Hopefully).
| * Fixed stupid syntax error (thanks build system).Alexander Harkness2013-08-091-1/+1
| |
| * Keep players from taking damage when teleporting. (Hopefully).Alexander Harkness2013-08-091-0/+1
| | | | | | | | Fixes #29
* | Added OnExploding() and OnExploded() hooks.madmaxoft2013-08-0916-62/+686
| | | | | | | | | | | | | | | | As requested in FS 413, with extra parameters: World, BlockX, BlockY, BlockZ, Size, CanCauseFire, Source, SourceData OnExploding() can return 3 values: StopHook, CanCauseFire, ExplosionSize
* | Merge pull request #52 from ravenscroftj/feature/foodAlexander Harkness2013-08-095-23/+63
|\ \ | |/ |/| A few fixes for the hunger/food system + tests for swimming and submerged in cPlayer.
| * Fixed some formatting issues I accidentally introducedJames Ravenscroft2013-08-092-11/+14
| |
| * Removed the need to recalculate whether player is under water in ApplyFoodExhaustionJames Ravenscroft2013-08-092-16/+10
| |
| * Added IsSwimming and IsSubmerged flags and access methodsJames Ravenscroft2013-08-093-14/+43
| |
| * Fixed the jump food exhaustion being added when player is swimmingJames Ravenscroft2013-08-081-3/+8
| |
| * Fixed food handler for mushroom soup - proper food level and saturation are applied and the player receives a wooden bowl back after nommingJames Ravenscroft2013-08-083-0/+9
| |
* | Fixed a copypasta error in hook function names.madmaxoft2013-08-081-1/+1
| | | | | | | | Thanks STR_Warrior for the report
* | Removed LuaScript.madmaxoft2013-08-086-173/+128
|/ | | | The WebAdmin now uses LuaState directly to call the one function it needs.
* cPlugin_NewLua is now completely rewritten to use templated LuaState calls.madmaxoft2013-08-083-316/+179
|
* cPlugin: Name now defaults to the plugin folder name.madmaxoft2013-08-081-4/+5
|
* LuaState refactoring: using templates for hook function calls.madmaxoft2013-08-084-793/+668
| | | | This simplifies calling Lua functions considerably, it's almost like calling a C++ function, only with an extra argument to delimit args from returned values.
* cPlugin: Removed empty default implementation of virtual calls.madmaxoft2013-08-082-628/+46
|
* Merge pull request #49 from mc-server/RemoveSquirrelmadmaxoft2013-08-0816-1193/+1
|\ | | | | Remove squirrel
| * Removed Squirrel.madmaxoft2013-08-0716-1193/+1
| | | | | | | | This compiles under Windows, but is untested in Linux.
* | Made comments more readable by adding space between // and text content. Added /// doxygen syntax comments to declarationsJames Ravenscroft2013-08-082-9/+9
| |
* | Fixed the formatting issues in player cpp filesJames Ravenscroft2013-08-082-39/+38
| |
* | Made player drowning implementationJames Ravenscroft2013-08-082-2/+56
| |
* | Addeed OnSpawningEntity, OnSpawnedEntity, OnSpawningMonster, OnSpawnedMonster hooks.madmaxoft2013-08-0824-38/+369
|/ | | | As requested in FS 418.
* Merge pull request #48 from mc-server/BlockTracingmadmaxoft2013-08-0722-816/+2046
|\ | | | | Block tracing
| * Added cLineBlockTracer to the APImadmaxoft2013-08-074-55/+296
| |
| * Plugin: Fixed plugin name in the cLuaState's subsystemmadmaxoft2013-08-071-1/+1
| |
| * LuaScript: removed unused codemadmaxoft2013-08-072-19/+0
| |
| * cLuaState has reference management, param checking and a fixed destructor.madmaxoft2013-08-072-4/+234
| | | | | | | | | | References are now managed as RAII objects, cLuaState::cRef. Destructor now calls correct function, either Close() or Detach(), based on the owned-ness of the lua_State *.
| * cLuaScript now uses cLuaStatemadmaxoft2013-08-064-242/+36
| |
| * Fixed compilation in ManualBindingsmadmaxoft2013-08-061-1/+1
| |
| * cLuaState is used for pushing splits in ManualBindingsmadmaxoft2013-08-061-23/+8
| |
| * cLuaState now tracks the function name and number of argsmadmaxoft2013-08-063-277/+459
| |
| * cLuaState can now contain a detached LuaState, too.madmaxoft2013-08-062-1/+89
| | | | | | | | This will be useful for cases when we get a lua_State * from the outside and are asked to perform operations on it.
| * Merge branch 'master' into BlockTracingmadmaxoft2013-08-0510-279/+469
| |\
| * | LuaState refactoring: initial part.madmaxoft2013-08-045-249/+439
| | | | | | | | | | | | The cLuaState class is a wrapper for the lua_State * and for the common functions on it. The cPlugin_NewLua has been rewritten to use it instead of the raw pointer. Part of #33
| * | cWorld: Added a self-test for LineBlockTracer, disabled by an #ifdef.madmaxoft2013-08-041-0/+57
| | |
| * | LineBlockTracer: Fixed initial errorsmadmaxoft2013-08-042-7/+10
| | |
| * | cItem: Removed a warning emitted when creating an item from airmadmaxoft2013-08-041-1/+4
| | |
| * | First attempt at implementing a cLineBlockTracer classmadmaxoft2013-08-043-0/+446
| | | | | | | | | | | | Not yet tested, will probably have lots of bugs, if it is at all usable.
| * | Merge branch 'master' into BlockTracingmadmaxoft2013-08-032-22/+6
| |\ \
| * | | Added cWorld::DoWithChunk() function.madmaxoft2013-08-034-0/+31
| | | | | | | | | | | | | | | | This will be used by the blocktracers to gain direct access to chunk data.
| * | | Removed the unused BlockY parameter from cChunkDef::BlockToChunk()madmaxoft2013-08-034-18/+17
| | | |
* | | | Now zombies spawn in Overworld during nighttonibm192013-08-061-4/+3
| |_|/ |/| |
* | | Exported the cWorld:TryGetHeight() functionmadmaxoft2013-08-052-4/+51
| | |
* | | Exported cWorld:DoWithEntityByID() to Lua APImadmaxoft2013-08-052-203/+294
| | |
* | | Alpha-sorted the manual bindings' functions.madmaxoft2013-08-051-13/+13
| | |
* | | cIniFile now reads .example.ini if not requested not to.madmaxoft2013-08-052-17/+7
| | | | | | | | | | | | As specified in #44, when the .ini file cannot be opened, a .example.ini is tried, and if it succeeds, it is written as .ini. This makes it easy to provide ini file templates.
* | | Added the Carpet block.madmaxoft2013-08-055-44/+104
| | |
* | | Improved logging coloring performance on Windows.madmaxoft2013-08-041-2/+4
| |/ |/|
* | Removed some stuff again.Alexander Harkness2013-08-031-14/+0
| |
* | Revert "Rm'd startup credits & mv'd to README"Alexander Harkness2013-08-031-0/+17
| | | | | | | | This reverts commit 2383977fe76287f4a3cc93c802d83966726ee8a4.
* | Commented out groups spamTiger Wang2013-08-031-3/+2
| | | | | | Further reduces chance of error message burying.
* | Rm'd startup credits & mv'd to READMETiger Wang2013-08-031-17/+0
| | | | | | Removed as I feel it serves no purpose other than spam console and bury real error messages from plugins, etc. This is especially the case with running under screen, which makes it very difficult to scroll up or down.
* | Updated inbuilt commands descriptionTiger Wang2013-08-031-5/+4
|/ | | Did this to meet help format standards.
* AllToLua now resets the git status for the files.madmaxoft2013-08-021-0/+22
| | | | | This should auto-fix merge conflicts when they occur on the Bindings.cpp / Bindings.h files. http://forum.mc-server.org/showthread.php?tid=1200&pid=9315#pid9315
* Shift+clicking won't combine different item metas.madmaxoft2013-08-021-1/+1
| | | | Fixes FS 424.
* Merge pull request #35 from mc-server/foodstuffsbearbin2013-08-021-16/+22
|\ | | | | Add the new food items.
| * Alpha-sort the foodstuffs.bearbin2013-08-021-13/+14
| |
| * Add the new food items.bearbin2013-08-021-16/+21
| | | | | | Enchanted golden apples are not required, as they are a meta value and provide the same nourishment as plain golden apples.
* | Implemented OnPlayerRightClickingEntity() hookmadmaxoft2013-08-029-152/+223
| | | | | | | | Fixes FS 425
* | New players get full healthmadmaxoft2013-08-011-4/+5
| | | | | | | | Fixes #28.
* | ClientHandle: alpha-sorted the HandleXXX functions declarationsmadmaxoft2013-08-011-15/+15
| |
* | Merge branch 'tabcompletion'madmaxoft2013-08-0113-221/+360
|\ \ | |/ |/|
| * Implemented the actual tab completion for commands and playernames.madmaxoft2013-07-314-17/+31
| | | | | | | | Each command is reported only if the player has the permission to use it.
| * Tab completion packet is handled and sent.madmaxoft2013-07-3013-221/+346
| | | | | | | | This only handles the network comm and the overall design logic, the actual completion is not yet implemented, only dummy values are returned for now.
* | Fixed inverted sanity check in SetGameMode()madmaxoft2013-07-301-1/+1
|/ | | | Fixes #22.
* Added the "Edit Sign" packet sent to the client placing a sign.madmaxoft2013-07-2910-0/+65
| | | | Fixes issue #20. The 1.6.2 client wouldn't open the sign editor UI unless it receives a special packet
* Updated the nightbuild script for Gitmadmaxoft2013-07-292-2/+2
|
* Changed everyting to Unix line endings.Alexander Harkness2013-07-29202-33396/+33396
|
* WebAdmin: Removed the duplicate memory usage queryingmadmaxoft2013-07-294-43/+16
|
* Fixed formatting in LuaScript.*madmaxoft2013-07-292-3/+40
|
* Updated the automatic Lua bindingsmadmaxoft2013-07-292-88/+223
|
* Merge remote-tracking branch 'origin/master' into hungermadmaxoft2013-07-2912-397/+1118
|\
| * WebAdmin templates can use LuaFakeTruth2013-07-2912-176/+1032
| | | | | | | | | | New WebAdmin templates can use Lua to completely compose the pages themselves. This should allow infinite WebAdmin design possibilities.
* | Player eating is now properly broadcast to other players.madmaxoft2013-07-286-99/+263
| | | | | | | | Also fixed the API relating to food, determining player gamemode, and removed several unneeded API functions.
* | Implemented basic eating support.madmaxoft2013-07-287-63/+134
| | | | | | | | Food is now properly consumed and it takes 1.5 sec.
* | Hunger-per-distance is calculated only for the XZ distancemadmaxoft2013-07-281-0/+1
| |
* | Player food level is reset on respawnmadmaxoft2013-07-281-0/+4
| |
* | Merge remote-tracking branch 'origin/master' into hungermadmaxoft2013-07-281-8/+7
|\|
| * Fixed Window Titles being MCS-*Tiger Wang2013-07-271-8/+7
| | | | | | For example, MCS-Chest, MCS-DoubleChest, etc.
* | Added cPlayer::IsGameModeXXX() and cWorld::IsGameModeXXX() functions.madmaxoft2013-07-283-2/+58
|/ | | | These are the preferred way of determining the gamemode, you should use those instead of doing manual comparisons to the gamemode value.
* Hunger: If a player dies the food level resets.STRWarrior2013-07-271-1325/+1326
|
* Removed debug-logging the player movement in each tickmadmaxoft@gmail.com2013-07-261-1/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1685 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cItemGrid: ChangeSlotCount() now returns -1 if invalid SlotNummadmaxoft@gmail.com2013-07-261-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1684 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cInventory: Added the ChangeSlotCount() function to the Lua APImadmaxoft@gmail.com2013-07-264-2/+61
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1683 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cEntity doesn't process physics / burning when in an invalid chunkmadmaxoft@gmail.com2013-07-241-2/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1680 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Server shuts down when the stdin is closed (linux Ctrl+D / win Ctrl+Z)madmaxoft@gmail.com2013-07-241-2/+11
| | | | | | Fixes FS #419 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1679 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cListenThread initializes m_ShouldReuseAddr to false (valgrind error)madmaxoft@gmail.com2013-07-221-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1677 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Simulators don't simulate in invalid chunks (valgrind error)madmaxoft@gmail.com2013-07-223-3/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1676 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a StringToMobType() function to the Lua API (patch contributed by STR_Warrior)madmaxoft@gmail.com2013-07-124-2/+86
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1674 0a769ca7-a7f5-676a-18bf-c427514a06d6
* First implementation of movement-related hunger and APImadmaxoft@gmail.com2013-07-126-146/+605
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1673 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the cFastRandom classmadmaxoft@gmail.com2013-07-112-0/+231
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1672 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Server sends PlayerMaxSpeed after a respawn.madmaxoft@gmail.com2013-07-082-1/+13
| | | | | | http://forum.mc-server.org/showthread.php?tid=434&pid=8912#pid8912 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1671 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Color codes are stripped from the DC messagemadmaxoft@gmail.com2013-07-081-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1670 0a769ca7-a7f5-676a-18bf-c427514a06d6
* 1.6.2 protocol implemented, both in MCServer and in ProtoProxymadmaxoft@gmail.com2013-07-086-2/+88
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1669 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Pickups have an initial health of 5madmaxoft@gmail.com2013-07-081-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1668 0a769ca7-a7f5-676a-18bf-c427514a06d6
* World: More unused variables removed.madmaxoft@gmail.com2013-07-071-3/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1667 0a769ca7-a7f5-676a-18bf-c427514a06d6
* World: Removed an unused variablemadmaxoft@gmail.com2013-07-071-1/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1666 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Squid: fixed a possible crash caused by access to a wrong chunkmadmaxoft@gmail.com2013-07-071-4/+7
| | | | | | Fixes FS #411. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1665 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Ice is a solid block.madmaxoft@gmail.com2013-07-071-1/+0
| | | | | | Helps with FS #381 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1664 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Mobs are assigned MaxHealth from monsters.ini; reading monsters.ini doesn't need settings.ini values anymore.madmaxoft@gmail.com2013-07-076-38/+38
| | | | | | Fixes FS #409. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1662 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added StringUtils functions to Lua API; added StripColorCodes(); ChatLog now strips color codes from logged messages.madmaxoft@gmail.com2013-07-075-8/+195
| | | | | | Fixes FS #398 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1661 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed sprinting in 1.6.1, made speeds available through API; fixed messages containing quotes.madmaxoft@gmail.com2013-07-079-26/+412
| | | | | | Fixes FS #415 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1660 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Improved function names for protocol packet sending; alpha-sorted the function listsmadmaxoft@gmail.com2013-07-0719-560/+587
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1659 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Declaring full 1.6.1 compatibilitymadmaxoft@gmail.com2013-07-051-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1651 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Unmounting vehicles implemented in the 1.6.1 waymadmaxoft@gmail.com2013-07-054-0/+52
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1650 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed 1.6.1's movement speedmadmaxoft@gmail.com2013-07-053-4/+28
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1649 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Initial 1.6.1 protocol support.madmaxoft@gmail.com2013-07-055-1/+195
| | | | | | The client connects and is capable of basic gameplay, but the player moves at an incredible speed (50 blocks / sec). git-svn-id: http://mc-server.googlecode.com/svn/trunk@1646 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a crash when moving a player to a non-existent world (reported by tonibm19)madmaxoft@gmail.com2013-07-051-1/+1
| | | | | | http://forum.mc-server.org/showthread.php?tid=434&pid=8865#pid8865 crashdump.zip/crash_mcs_165c.dmp git-svn-id: http://mc-server.googlecode.com/svn/trunk@1645 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Empty buckets replace fluid buckets on use and vice versa (patch contributed by Mgueydan)madmaxoft2013-07-036-29/+74
| | | | | | | Fixes FS #277. API change: added an optional parameter to cItemGrid:AddItem(), cItemGrid:AddItems(), cInventory:AddItem() and cInventory:AddItems() git-svn-id: http://mc-server.googlecode.com/svn/trunk@1643 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed player moving between worlds.madmaxoft@gmail.com2013-07-035-33/+97
| | | | | | | Fixes FS #407. Also fixes a few possible deadlocks between SocketThreads and TickThread git-svn-id: http://mc-server.googlecode.com/svn/trunk@1641 0a769ca7-a7f5-676a-18bf-c427514a06d6
* dtOnFire damage wasn't dealt properlymadmaxoft@gmail.com2013-07-011-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1640 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added DamageType translation to APImadmaxoft@gmail.com2013-07-015-76/+243
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1639 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed burn / fire damage in each game tick.madmaxoft@gmail.com2013-07-011-9/+6
| | | | | | http://forum.mc-server.org/showthread.php?tid=434&pid=8798#pid8798 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1638 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Rewritten entity-on-fire management ("forever on fire" bugs)madmaxoft@gmail.com2013-07-0171-1892/+2086
| | | | | | | | | Fixes FS #297 and part of FS #403. Added sizes to all entities. Moved all damage-related functions from cPawn to cEntity API change: renamed cPawn:TeleportTo() to cEntity:TeleportToCoords() git-svn-id: http://mc-server.googlecode.com/svn/trunk@1635 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed crouch-placing unplaceable items (FS #399)madmaxoft@gmail.com2013-06-291-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1632 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Advanced RCON: Command output is sent to the RCON client.madmaxoft@gmail.com2013-06-2917-146/+375
| | | | | | | | | RCON authentication is now required before executing commands. Console command handlers now return two values, bool (IsHandled) and string (CommandOutput). API change: removed cRoot:ExecuteConsoleCommand(), added cRoot:QueueExecuteConsoleCommand(). API change: removed cPluginManager:ExecuteConsoleCommand(), use cRoot:QueueExecuteConsoleCommand() instead git-svn-id: http://mc-server.googlecode.com/svn/trunk@1631 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a basic RCON protocolmadmaxoft@gmail.com2013-06-276-29/+428
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1628 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a warning when spawning an entity in a non-existent chunkmadmaxoft@gmail.com2013-06-251-0/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1627 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Unified the way mobs are spawned (egg vs natural). Fixed deadlocks in mob moving. Fixed mob destroying code.madmaxoft@gmail.com2013-06-258-55/+55
| | | | | | Should fix FS #400 and partially fix FS #381 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1626 0a769ca7-a7f5-676a-18bf-c427514a06d6
* The weather doesn't change if the dimension is not Overworld.nielsbreu@gmail.com2013-06-241-0/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1624 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Plugins can modify message in the OnChat() hook handler.madmaxoft@gmail.com2013-06-229-13/+18
| | | | | | FS #376 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1622 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the End height and composition generators.madmaxoft@gmail.com2013-06-2210-24/+437
| | | | | | Also made the dimension in world.ini specifiable by a string. Exported StringToDimension() and StringToBiome() to Lua API. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1621 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made redstone lamps turn on when powered and turn off when not powered.nielsbreu@gmail.com2013-06-221-0/+10
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1620 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Dispensers spawn fire if it has Flint and steel.nielsbreu@gmail.com2013-06-221-0/+16
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1619 0a769ca7-a7f5-676a-18bf-c427514a06d6
* TNT changes to primed TNT when powered by redstone.nielsbreu@gmail.com2013-06-221-0/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1618 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Dispensers dispense primed TNTmadmaxoft@gmail.com2013-06-215-8/+23
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1617 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Explosions don't produce warnings in cBlockArea; fixed logging in cBlockAreamadmaxoft@gmail.com2013-06-212-8/+14
| | | | | | Fixes FS #389 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1616 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Simulators are woken up after an explosion.madmaxoft@gmail.com2013-06-216-8/+167
| | | | | | Fixes FS #391 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1615 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Updated the stacking (Patch contributed by Stephen304)madmaxoft@gmail.com2013-06-202-2/+20
| | | | | | http://forum.mc-server.org/showthread.php?tid=503&pid=8609#pid8609 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1614 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Furnace window progressbars are initialized when the window is openedmadmaxoft@gmail.com2013-06-202-0/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1613 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Furnaces light up visually when they're cookingmadmaxoft@gmail.com2013-06-209-39/+102
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1612 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented hopper outputmadmaxoft@gmail.com2013-06-202-5/+233
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1611 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a crash when placing new furnacesmadmaxoft@gmail.com2013-06-201-0/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1610 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Improved commentmadmaxoft@gmail.com2013-06-191-1/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1609 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Explosions do not effect the terrain when they are in water.nielsbreu@gmail.com2013-06-181-0/+11
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1608 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Crouching will allow block placement on otherwise functional blocks.madmaxoft@gmail.com2013-06-181-2/+2
| | | | | | Fixes FS #382 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1607 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a crude limiter for explosions sent to client.madmaxoft@gmail.com2013-06-182-2/+42
| | | | | | Now the client can survive even 3000k TNT blocks exploding without jerking much. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1606 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the API for spawning primed TNTsmadmaxoft@gmail.com2013-06-182-2/+42
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1605 0a769ca7-a7f5-676a-18bf-c427514a06d6
* More TNT fixes.madmaxoft@gmail.com2013-06-1814-65/+78
| | | | | | | | Chain-reaction TNTs are spawned in proper coordinates (FS #390) Centralized Primed TNT entity spawning and made available to the plugins. Internal changes for better TNT performance. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1604 0a769ca7-a7f5-676a-18bf-c427514a06d6
* TNT fixes.madmaxoft@gmail.com2013-06-187-65/+85
| | | | | | | | | Other blocks can be placed next to TNT. Explosions activate nearby TNT blocks. TNT doesn't destroy bedrock, obsidian and liquid blocks. Server doesn't crash when a TNT (or other entity) leaves the valid Y range. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1603 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Rewritten furnacesmadmaxoft@gmail.com2013-06-1615-364/+1019
| | | | | | | | | | | | 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
* cItem: Added useful utility functionsmadmaxoft@gmail.com2013-06-162-3/+55
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1599 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added respawn screen when switching worlds.nielsbreu@gmail.com2013-06-161-1/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1598 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added an elaborative comment on the deadlock prevention codemadmaxoft@gmail.com2013-06-161-1/+12
| | | | | | (FS #375) git-svn-id: http://mc-server.googlecode.com/svn/trunk@1597 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Socket: Removed the absurd function returning localhost addr, now using INADDR_LOOPBACKmadmaxoft@gmail.com2013-06-152-17/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1596 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed compilation on linux.nielsbreu@gmail.com2013-06-151-1/+1
| | | | | | Any idea why SendMessageA works on Windows and not on linux? git-svn-id: http://mc-server.googlecode.com/svn/trunk@1595 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Entity: Added IsTNTnielsbreu@gmail.com2013-06-152-1/+2
| | | | | | Once again I wasn't paying attention.. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1594 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Entity: Added IsTNTnielsbreu@gmail.com2013-06-151-1/+34
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1593 0a769ca7-a7f5-676a-18bf-c427514a06d6
* You can only sleep when the time is day, and beds explode if the dimension is not Overworld.nielsbreu@gmail.com2013-06-151-11/+21
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1592 0a769ca7-a7f5-676a-18bf-c427514a06d6
* First attempt at fixing the inter-threading deadlocks between the tick thread and the socket threadmadmaxoft@gmail.com2013-06-154-1/+39
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1591 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed Linux compilationmadmaxoft@gmail.com2013-06-151-1/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1589 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added hopper entity, it can suck items out of chests, dispensers, droppers and other hopppers above it.madmaxoft@gmail.com2013-06-1313-66/+607
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1587 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cItemGrid: Added IsSlotEmpty() functionsmadmaxoft@gmail.com2013-06-136-10/+113
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1585 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ChestEntity: fixed bindingsmadmaxoft@gmail.com2013-06-123-24/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1584 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented the Hopper block handlermadmaxoft@gmail.com2013-06-127-35/+95
| | | | | | Hoppers can be placed properly, but won't work yet. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1583 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added cWorld::SetSignLines(), re-exported to Lua manually to avoid ghost return valuesmadmaxoft@gmail.com2013-06-129-68/+92
| | | | | | FS #364 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1582 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added dragon egg to falling blocks.nielsbreu@gmail.com2013-06-101-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1577 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed previous commit.nielsbreu@gmail.com2013-06-093-707/+3275
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1573 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added SetTicksUntilWeatherChange/GetTicksUntilWeatherChange. to set/get the amount of ticks before the weather changes. Added SendBlockChange to Lua to create "fake" blocksnielsbreu@gmail.com2013-06-094-3276/+823
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1572 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed 2 more tabs...faketruth2013-06-091-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1571 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Converted spaces to tabsfaketruth2013-06-091-21/+21
| | | | | | Dead bush does not drop pickups when invalidly placed git-svn-id: http://mc-server.googlecode.com/svn/trunk@1570 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added dead bush block handler so a dead bush pickup is dropped when the sand underneath it is removed.faketruth2013-06-092-0/+49
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1569 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added LOGWARNING() function to Lua API, as a synonym to LOGWARN()madmaxoft@gmail.com2013-06-051-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1558 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed cLadder, cSign, cStairs, cTorch and cVine classes, moved their functionality into the appropriate BlockHandlers / ItemHandlersmadmaxoft@gmail.com2013-06-0421-560/+218
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1555 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented proper player crouching.madmaxoft@gmail.com2013-06-046-8/+48
| | | | | | Fixes FS #365 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1553 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cEntity: fixed doxy commentsmadmaxoft@gmail.com2013-06-041-4/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1551 0a769ca7-a7f5-676a-18bf-c427514a06d6
* DistortedHeightmap: Added clay / sand / dirt selection on ocean floormadmaxoft@gmail.com2013-06-042-3/+46
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1550 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a crash when generating a chestmadmaxoft@gmail.com2013-06-041-2/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1549 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Shears mask the leaves' metamadmaxoft@gmail.com2013-06-041-1/+1
| | | | | | Fixes FS #367 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1548 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed cItem::IsStackableWith()madmaxoft@gmail.com2013-06-043-1/+20
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1547 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added cItem copy-constructor to Lua API, made cItem::IsEqual() and IsStackable() enchantment-awaremadmaxoft@gmail.com2013-06-045-7/+126
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1546 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ItemGrid: fixed changing item count when ToRemove == CurrentCountmadmaxoft@gmail.com2013-06-041-1/+1
| | | | | | Fixes FS #380 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1545 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ToLuaDoxy: initial importmadmaxoft@gmail.com2013-06-043-3/+9
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1544 0a769ca7-a7f5-676a-18bf-c427514a06d6
* LuaWindow: Fixed memory leaks with unclosed windowsmadmaxoft@gmail.com2013-06-028-18/+19
| | | | | | | A player disconnecting will now force all windows to close, not respecting any plugin's overrides. http://forum.mc-server.org/showthread.php?tid=1146&pid=8350#pid8350 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1543 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the possibility to specify enchantments by name in the constructor and AddFromString() functionmadmaxoft@gmail.com2013-06-024-5/+89
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1542 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Enchantments are now stored in Anvil world and in player inventorymadmaxoft@gmail.com2013-06-024-7/+33
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1541 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Shift + click doesn't "destroy" item enchantmentmadmaxoft@gmail.com2013-06-021-5/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1540 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Enchantments: API and sending to clientmadmaxoft@gmail.com2013-06-0211-55/+1073
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1539 0a769ca7-a7f5-676a-18bf-c427514a06d6
* StringUtils: Fixed the HexDump in DEBUG modemadmaxoft@gmail.com2013-06-021-4/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1538 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cItem constructor changed to create single-piece items when not given countmadmaxoft@gmail.com2013-06-013-23/+106
| | | | | | http://forum.mc-server.org/showthread.php?tid=1150 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1536 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added cLuaWindow:SetOnSlotChanged(); the callback is called only for non-inventory slotsmadmaxoft@gmail.com2013-05-315-8/+84
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1535 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the OnClosing callback to cLuaWindow APImadmaxoft@gmail.com2013-05-308-9/+151
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1534 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Window contents are sent whenever the window is opened by a player.madmaxoft@gmail.com2013-05-304-3/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1533 0a769ca7-a7f5-676a-18bf-c427514a06d6
* LuaWindow: Initial code, the window can be opened, but not much manipulatedmadmaxoft@gmail.com2013-05-3015-57/+997
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1532 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented right-click inventory paintingmadmaxoft@gmail.com2013-05-302-26/+55
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1530 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented left-click inventory paintingmadmaxoft@gmail.com2013-05-307-29/+338
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1529 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed previous commitmadmaxoft@gmail.com2013-05-282-3/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1528 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Moved BlockEntities to a separate foldermadmaxoft@gmail.com2013-05-2834-109/+157
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1527 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Block entities now receive the cChunk param in their Tick() functionmadmaxoft@gmail.com2013-05-2810-51/+72
| | | | | | They can safely access that chunk and any of its neighbors during ticking. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1526 0a769ca7-a7f5-676a-18bf-c427514a06d6
* More dropspenser redstone interaction fixes.madmaxoft@gmail.com2013-05-281-0/+7
| | | | | | Now the dropspensers are correctly powered off, unless they had been powered by a redstone torch directly next to them. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1525 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a forgotten change to make dropspensers activate only once on redstone activationmadmaxoft@gmail.com2013-05-281-1/+1
| | | | | | Fixes rev 1521 functionality git-svn-id: http://mc-server.googlecode.com/svn/trunk@1524 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cChunk: Added the GetRelNeighborChunkAdjustCoords() functionmadmaxoft@gmail.com2013-05-282-0/+73
| | | | | | Not only does it return the proper neighbor chunk, but also it adjusts the relative coords to be in that returned chunk. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1523 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Chunk / ChunkMap: Added support for unbounded querying blocktype-only or blockmeta-onlymadmaxoft@gmail.com2013-05-286-5/+199
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1522 0a769ca7-a7f5-676a-18bf-c427514a06d6
* DropSpensers: Fixed activation when receiving redstone signal. Now only one item is dropspensed.madmaxoft@gmail.com2013-05-273-14/+33
| | | | | | Fix for FS #378, http://www.mc-server.org/support/index.php?do=details&task_id=378 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1521 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed cItemGrid API, no more changeable GetSlot().madmaxoft@gmail.com2013-05-269-87/+142
| | | | | | Also fixed possible water and lava duplication glitches in the dispenser. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1520 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Clarified documentation on the cItemGrid:RemoveItem() functionsmadmaxoft@gmail.com2013-05-262-2/+10
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1519 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Block entities with storage now correctly mark the chunk as dirty when their contents change.madmaxoft@gmail.com2013-05-266-34/+162
| | | | | | 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
* Implemented droppersmadmaxoft@gmail.com2013-05-2627-405/+1092
| | | | | | Added a common ancestor class "DropSpenser" that has the common code for dropper and dispenser and is Lua-accessible, too. The Debuggers plugin now triggers both droppers and dispensers when rclking them with a redstone torch. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1514 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ItemGrid: Added the RemoveOneItem() functionmadmaxoft@gmail.com2013-05-262-0/+53
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1513 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Alpha-sorted the block meta listmadmaxoft@gmail.com2013-05-261-75/+96
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1512 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added base Code::Blocks project (WIP, still doesn't compile) and fixed some source errors with MinGW.madmaxoft@gmail.com2013-05-253-18/+33
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1510 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added all new bindings, refactored Debuggers; new Debuggers function.madmaxoft@gmail.com2013-05-254-237/+460
| | | | | | Rclk with a redstone torch on a dispenser causes the dispenser to spit out one item each tick. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1509 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed WindowOwner implementationmadmaxoft@gmail.com2013-05-251-3/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1508 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cChestEntity and cDispenserEntity now inherit from a common ancestor, cBlockEntityWithItemsmadmaxoft@gmail.com2013-05-258-85/+186
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1507 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed the cWorld:DoWithChestAt(), DoWithDispenserAt() and DoWithFurnaceAt() callbacks binding.madmaxoft@gmail.com2013-05-254-11/+27
| | | | | | They are now doing what the comment said they are doing. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1506 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added sound to the vaporize simulator. FS #315 nielsbreu@gmail.com2013-05-251-1/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1505 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Slight cleanup in the cInventory / cItemGrid APImadmaxoft@gmail.com2013-05-246-41/+239
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1504 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Refactored cInventory to use cItemGrid for the actual Storagemadmaxoft@gmail.com2013-05-2423-499/+1543
| | | | | | This makes the API more orthogonal and is easier to use in the plugins. Also changes in the inventory are now propagated to the needed places (armor updates to BroadcastEntityEquipment etc.) even when the inventory is changed by a plugin. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1503 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added ItemCategory::IsArmor()madmaxoft@gmail.com2013-05-241-0/+12
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1502 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed linking error from rev 1498madmaxoft@gmail.com2013-05-213-11/+162
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1501 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Entity: Switched detection of ground to use g_BlockIsSolid global variable.keyboard.osh@gmail.com2013-05-211-16/+16
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1499 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added basic functions for width and height for Entitieskeyboard.osh@gmail.com2013-05-211-11/+19
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1498 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Stairs placement fix (patch contributed by Simi)madmaxoft@gmail.com2013-05-201-1/+1
| | | | | | http://forum.mc-server.org/showthread.php?tid=503&pid=8159#pid8159 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1497 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed linux compilationmadmaxoft@gmail.com2013-05-191-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1496 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Inventory changes made by plugins are now propagated to the clientmadmaxoft@gmail.com2013-05-192-23/+18
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1495 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Inventory code cleanup, players can now see each other's armormadmaxoft@gmail.com2013-05-1922-196/+383
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1493 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed cWorld:ForEachEntity()madmaxoft@gmail.com2013-05-191-1/+1
| | | | | | | Fix for FS #374. The function was processing only one chunkmap layer object, due to an inverse condition. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1491 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Empty permission is always grantedmadmaxoft@gmail.com2013-05-191-1/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1490 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed entity chunking.madmaxoft@gmail.com2013-05-195-6/+24
| | | | | | Sand simulator was off, sand in negative coords wouldn't fall properly git-svn-id: http://mc-server.googlecode.com/svn/trunk@1489 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed pickup loggingmadmaxoft@gmail.com2013-05-172-4/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1487 0a769ca7-a7f5-676a-18bf-c427514a06d6
* DistortedHeightmap: Rewritten to use the optimized cPerlinNoise and linear upscalingmadmaxoft@gmail.com2013-05-162-121/+64
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1486 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Moved noise debugging into the Noise.* filesmadmaxoft@gmail.com2013-05-153-77/+93
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1485 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed 2D linear upscale to compile on Linux, added a test for it.madmaxoft@gmail.com2013-05-153-32/+80
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1484 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Pickup: fixed logging parameters causing a crash.madmaxoft@gmail.com2013-05-151-3/+3
| | | | | | http://forum.mc-server.org/showthread.php?tid=434&pid=8059#pid8059 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1483 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Noise3D generator is now using linear upscalingmadmaxoft@gmail.com2013-05-148-56/+241
| | | | | | Measured 30% performance increase. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1482 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added more logging to pickup collection code.madmaxoft@gmail.com2013-05-131-0/+6
| | | | | | Hoping to fix irresponsive pickups, http://forum.mc-server.org/showthread.php?tid=434&pid=8019#pid8019 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1481 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added logging to pickup collection when a player is near and when collecting.madmaxoft@gmail.com2013-05-131-0/+9
| | | | | | This should help fix the inactive pickups bug, http://forum.mc-server.org/showthread.php?tid=434&pid=8019#pid8019 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@1480 0a769ca7-a7f5-676a-18bf-c427514a06d6
* LinearUpscale: postfixed with InPlace to differentiate from a future src/dst versionmadmaxoft@gmail.com2013-05-127-16/+22
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1479 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Temporarily set all pickups to spawn in the middle of the block from which they fall.madmaxoft@gmail.com2013-05-121-9/+25
| | | | | | (Additional fix for FS #338) git-svn-id: http://mc-server.googlecode.com/svn/trunk@1478 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Noise3D: cleanupmadmaxoft@gmail.com2013-05-121-14/+18
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1477 0a769ca7-a7f5-676a-18bf-c427514a06d6
* DistortedHeightmap: Deserts are now covered with sand and mushroom islands with mycelium (patch contributed by STR_Warrior)madmaxoft@gmail.com2013-05-121-3/+39
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1476 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Renamed linear interpolation from Noise.h to a more proper LinearUpscale and moved it to a separate file.madmaxoft@gmail.com2013-05-129-124/+91
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1475 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cWorld: Temporary fix for FS #338madmaxoft@gmail.com2013-05-121-0/+9
| | | | | | The pickups get spawned with zero speed, not to mess up their physics simulation. Marked as temporary, remove when physics are completed. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1474 0a769ca7-a7f5-676a-18bf-c427514a06d6
* DistortedHeightmap: Added info comment about the parameters tablemadmaxoft@gmail.com2013-05-121-1/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1473 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cItems: Added runtime bounds-checking to avoid server crashes with badly written plugins.madmaxoft@gmail.com2013-05-124-79/+93
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1472 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Converted the Noise3D generator to optimized noise and lerpmadmaxoft@gmail.com2013-05-112-109/+183
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1471 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added generic LinearInterpolation in 1D, 2D and 3D.madmaxoft@gmail.com2013-05-112-0/+311
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1470 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Noise: Fixed optimized Cubic noise calculationmadmaxoft@gmail.com2013-05-111-1/+64
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1469 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Tiny formatting fix of rev 1463madmaxoft@gmail.com2013-05-092-5/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1467 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Noise: Added an efficient 3D cubic noise generationmadmaxoft@gmail.com2013-05-091-0/+252
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1466 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a few out-of-bounds readsmadmaxoft@gmail.com2013-05-092-7/+18
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1465 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed error while compiling.nielsbreu@gmail.com2013-05-091-13/+41
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1464 0a769ca7-a7f5-676a-18bf-c427514a06d6
* function SpawnItemPickups is now exported to Lua. Lua is able to create a Items object.nielsbreu@gmail.com2013-05-094-1/+179
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1463 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added 1.5.2 compatibility.madmaxoft@gmail.com2013-05-084-4/+9
| | | | | | FS #372 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1461 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Refactored window clicking code to use different click actionsmadmaxoft@gmail.com2013-05-0812-130/+511
| | | | | | First part of solving FS #371; should fix #370. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1459 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Please keep the lists alpha-sortedmadmaxoft@gmail.com2013-05-071-3/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1458 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Sand can fall through snow.faketruth2013-05-071-0/+3
| | | | | | Patch courtesy of InHavk git-svn-id: http://mc-server.googlecode.com/svn/trunk@1457 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Replaced MIN / MAX with std::min and std::max (pt 2)madmaxoft@gmail.com2013-05-071-9/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1456 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Replaced MIN / MAX with std::min and std::maxmadmaxoft@gmail.com2013-05-072-5/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1455 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Protocol132: Replaced magic numbers with symbolic packet namesmadmaxoft@gmail.com2013-05-071-5/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1454 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed player teleporting too far away ("Entity lost")madmaxoft@gmail.com2013-05-061-3/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1452 0a769ca7-a7f5-676a-18bf-c427514a06d6
* DistortedHeightmap: Optimized by linear interpolationmadmaxoft@gmail.com2013-05-062-55/+89
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1451 0a769ca7-a7f5-676a-18bf-c427514a06d6
* DistortedHeightmap: Small optimizations, memory leak fix.madmaxoft@gmail.com2013-05-064-2/+34
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1449 0a769ca7-a7f5-676a-18bf-c427514a06d6
* DistortedHeightmap: Slight speed increasemadmaxoft@gmail.com2013-05-062-0/+11
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1448 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Re-worked generator subobject ownership, added a cache for the CompositionGenmadmaxoft@gmail.com2013-05-0510-66/+187
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1447 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed Biomal CompoGen to set heightmap correctly when underwatermadmaxoft@gmail.com2013-05-051-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1446 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the DistortedHeightmap height and composition generator.madmaxoft@gmail.com2013-05-057-8/+486
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1445 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Lighting: Fixed underwater lighting (FS #369)madmaxoft@gmail.com2013-05-053-42/+74
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1444 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ChunkDesc: Added heightmap verification (DEBUG-only), not used yetmadmaxoft@gmail.com2013-05-053-1/+33
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1443 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Entity: Now entites inside a cobweb slow down their speedkeyboard.osh@gmail.com2013-05-051-8/+22
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1442 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Explosion: Switched from a cube to a sphere. Implemented using cBlockArea and moved block changing code to ChunkMapkeyboard.osh@gmail.com2013-05-043-31/+37
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1441 0a769ca7-a7f5-676a-18bf-c427514a06d6
* StringUtils: Fixed StringSplit to work with multiple delimitersmadmaxoft@gmail.com2013-05-012-4/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1438 0a769ca7-a7f5-676a-18bf-c427514a06d6
* FastNBT: Added cFastNBTTag::GetName()madmaxoft@gmail.com2013-05-012-0/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1437 0a769ca7-a7f5-676a-18bf-c427514a06d6
* File: Added file rename and deletion functionsmadmaxoft@gmail.com2013-05-012-0/+24
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1436 0a769ca7-a7f5-676a-18bf-c427514a06d6
* TNT: Added physics to TNT entitykeyboard.osh@gmail.com2013-04-281-0/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1435 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed compilation on Linuxmadmaxoft@gmail.com2013-04-283-7/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1434 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Entity: fixed mass declarationmadmaxoft@gmail.com2013-04-281-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1432 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed most of client slowdowns caused by sending too many block changes (bad condition in FastSetBlock)madmaxoft@gmail.com2013-04-281-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1431 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cEntity: Added mass to entities.keyboard.osh@gmail.com2013-04-282-0/+29
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1430 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added dtAdmin damage type for use in pluginsmadmaxoft@gmail.com2013-04-283-2/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1429 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Pickup: Fixed a possible crash when a pickup went up above the world.madmaxoft@gmail.com2013-04-281-15/+20
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1428 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added support for sending velocity and rotation in PACKET_SPAWN_MOB and PACKET_SPAWN_OBJECTkeyboard.osh@gmail.com2013-04-283-27/+30
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1427 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added initialization of rotation in cEntity.keyboard.osh@gmail.com2013-04-281-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1426 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed crash with Minecart. It was getting added twice to the world and it was causing and ASSERT to fail.keyboard.osh@gmail.com2013-04-281-1/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1425 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Increased Maximum speed to 78 blocks per secondkeyboard.osh@gmail.com2013-04-281-6/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1424 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Noise3D: Re-fixed composition, finally no fake-tree remnantsmadmaxoft@gmail.com2013-04-271-2/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1423 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed server stopping after #363 fixmadmaxoft@gmail.com2013-04-271-10/+10
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1422 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a deadlockmadmaxoft@gmail.com2013-04-272-17/+47
| | | | | | FS #363 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1421 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Noise3D: Fixed composition when reusing the buffer (caused chopped trees)madmaxoft@gmail.com2013-04-271-0/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1420 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Noise3D made into Composable - both a HeightGen and a CompositionGenmadmaxoft@gmail.com2013-04-274-4/+313
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1419 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a few possible crashes upon server stopmadmaxoft@gmail.com2013-04-271-3/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1418 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Noise3D: Made settable through INI, added slight height control, added basic compositingmadmaxoft@gmail.com2013-04-272-49/+154
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1417 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Noise3D: Shifted to normal groundlevel, added water on sealevelmadmaxoft@gmail.com2013-04-271-2/+17
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1416 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a crash in the plugin reload code.madmaxoft@gmail.com2013-04-271-2/+12
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1415 0a769ca7-a7f5-676a-18bf-c427514a06d6
* New terrain generator - Noise3D.madmaxoft@gmail.com2013-04-273-2/+228
| | | | | | A testbed for a generator based on 3D noise. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1414 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a few possible crashes with out-of-bounds Y coordsmadmaxoft@gmail.com2013-04-272-1/+16
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1413 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Initial version of "DistortedMembraneOverhangs"madmaxoft@gmail.com2013-04-253-1/+72
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1412 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the initial version of DirectOverhangsmadmaxoft@gmail.com2013-04-243-0/+138
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1411 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MultiStepMap BiomeGen: made 3x faster by using 2D noise instead of 3D noise.madmaxoft@gmail.com2013-04-242-20/+32
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1410 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a (commented-out) performance test for biome generatormadmaxoft@gmail.com2013-04-241-0/+13
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1409 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Noise: Removed the reference to Noise.incmadmaxoft@gmail.com2013-04-241-8/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1408 0a769ca7-a7f5-676a-18bf-c427514a06d6
* HeiGenBiomal: interpolate in 4x4 blocks on float valuesmadmaxoft@gmail.com2013-04-222-15/+17
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1406 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed underwater sand / dirt generator noise frequencymadmaxoft@gmail.com2013-04-221-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1405 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Generator: Added notes of failed optimization attemptsmadmaxoft@gmail.com2013-04-223-25/+37
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1404 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Noise: Implemented 2D Perlin noise, removed unused parameters.madmaxoft@gmail.com2013-04-222-21/+188
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1402 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a (commented-out) performance test for cHeiGenBiomal and cCompoGenBiomalmadmaxoft@gmail.com2013-04-221-0/+28
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1401 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Moved physics to the cEntity class from the derivative classes (cMonster, cPickup). Added physics override to cPlayer to disable physics calculations. Fixed bug with pitch calculations on mobs.keyboard.osh@gmail.com2013-04-227-274/+207
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1400 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Slight performance improvements in cWorld::DoExplosiontAt()madmaxoft@gmail.com2013-04-191-3/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1397 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed Linux compilation, slight code cleanupmadmaxoft@gmail.com2013-04-199-46/+47
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1396 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cPlayer now uses BroadcastMovementUpdate during its Tick functionkeyboard.osh@gmail.com2013-04-191-40/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1395 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Initial implementation of explosions and TNT blockkeyboard.osh@gmail.com2013-04-1817-2/+266
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1392 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Noise: removed the unused SSE branches and unused interpolation methods. Removed the Noise.inc file.madmaxoft@gmail.com2013-04-173-477/+247
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1391 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Making float the default datatype for noise calculation (it's faster on ARM and same-speed on x86)madmaxoft@gmail.com2013-04-171-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1390 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented the new cCubicNoise in 2Dmadmaxoft@gmail.com2013-04-162-14/+402
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1387 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Proper entity removal functionsmadmaxoft@gmail.com2013-04-135-55/+31
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1386 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick()madmaxoft@gmail.com2013-04-1349-581/+690
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1385 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a bit of coding style and function names in cItemmadmaxoft@gmail.com2013-04-114-67/+80
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1384 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Dispensers rewritten to use ItemGridmadmaxoft@gmail.com2013-04-108-154/+198
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1383 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed gcc buildmadmaxoft@gmail.com2013-04-101-10/+12
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1382 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ItemGrid: Renamed all Item to Slot - better and consistent namingmadmaxoft@gmail.com2013-04-107-114/+114
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1381 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added cItemGrid to represent an XY grid of items; converted chests to use cItemGrid.madmaxoft@gmail.com2013-04-1014-115/+1313
| | | | | | http://forum.mc-server.org/showthread.php?tid=831 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1380 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed chunk possibly writing to uninitialized memorymadmaxoft@gmail.com2013-04-091-0/+12
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1376 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added Expat and LuaExpat, XML parsing now available in the API.madmaxoft2013-04-094-0/+1331
| | | | | | | FS #336 Windows version only, Linux to be fixed soon. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1374 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Anvil loader: fixed Vanilla biomes not being readmadmaxoft@gmail.com2013-04-071-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1370 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed an assert in entities when destroying an entity without ever initializing itmadmaxoft@gmail.com2013-04-071-2/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1369 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added SQLite and LuaSQLite, Lua plugins can now use SQLite.madmaxoft@gmail.com2013-04-075-0/+147483
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1368 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed bug in entities movement: Corrected proper flooring of double values for the relative move packet, and teleport packet. Also, made the velocity packet to be sent first than the positions packets.keyboard.osh@gmail.com2013-04-072-14/+16
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1367 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Mineshafts: randomized start position, tweaked default generator parameters; removed debugging glass pillars.madmaxoft@gmail.com2013-04-062-27/+21
| | | | | | Mineshafts can be considered finished. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1366 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Mineshafts: Added random loot to generated chests and fixed chest directionmadmaxoft@gmail.com2013-04-0613-66/+420
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1365 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Cobwebs are now washed away by water and can be broken by swords and shears, giving string.madmaxoft@gmail.com2013-04-065-2/+35
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1363 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Mineshafts: Added a (nonworking) mob spawner in cobweb spider nests.madmaxoft@gmail.com2013-04-061-1/+44
| | | | | | Since MCServer doesn't support spawners yet, it has a default pig inside and doesn't spawn anything. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1362 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MineShafts: made cobwebs less thickmadmaxoft@gmail.com2013-04-061-5/+10
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1361 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Tracer: removed the "start and end in the same block" warning, it is a normal condition.madmaxoft@gmail.com2013-04-061-29/+59
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1360 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added carrots and potatoes handling, bonemealing and proper lighting.madmaxoft@gmail.com2013-04-057-11/+106
| | | | | | FS #166 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1359 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed personal crafting grid not being tossed on inventory close.madmaxoft@gmail.com2013-04-0410-36/+22
| | | | | | FS #355, http://www.mc-server.org/support/index.php?do=details&task_id=355 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1358 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed CreateHexDump() filling the string with garbagemadmaxoft@gmail.com2013-04-041-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1357 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed crops producing pickups for creative mode players.madmaxoft@gmail.com2013-04-031-8/+4
| | | | | | FS #350 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1356 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a debugging log for melon-growing to catch FS #349madmaxoft@gmail.com2013-04-031-0/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1355 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Server: removed the artificial cap on reported tick durationmadmaxoft@gmail.com2013-04-031-7/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1353 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed bug with Rotation not getting properly wrapped after being set.keyboard.osh@gmail.com2013-04-031-0/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1351 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added support for head yaw tracking and packet sending and fixed bug in BroadcastMovementUpdatekeyboard.osh@gmail.com2013-04-025-40/+84
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1350 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Cobweb lets light through.madmaxoft@gmail.com2013-04-011-0/+1
| | | | | | Fix for FS #351 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1349 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Proper fix for FS #347. Also unification of ticking block entities.madmaxoft@gmail.com2013-04-018-141/+44
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1348 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Hotfix for FS #347.madmaxoft@gmail.com2013-04-011-7/+13
| | | | | | This is not meant to be a permanent solution, but should provide insight into why the issue happens. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1347 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Pawn, Player: fixed asserts when teleporting players outside of the world (setting spawn Y to 256)madmaxoft@gmail.com2013-04-012-10/+27
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1346 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ListenThread: Fixed socket-querying, might have crashed some linux versions.madmaxoft@gmail.com2013-04-011-1/+1
| | | | | | Hopefully this fixes FS #345 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1345 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MineShafts: added random torches, fixed beams on chunk boundariesmadmaxoft@gmail.com2013-04-012-9/+100
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1344 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MineShafts: Added tracks to corridorsmadmaxoft@gmail.com2013-03-314-9/+60
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1342 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cChunkDesc: Added the RandomFillRelCuboid() functionmadmaxoft@gmail.com2013-03-314-3/+153
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1341 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MineShafts: Limited the mineshafts generation into a settable-size cuboidmadmaxoft@gmail.com2013-03-311-10/+21
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1340 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cCuboid: Added the IsCompletelyInside() functionmadmaxoft@gmail.com2013-03-314-2/+56
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1339 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MineShafts: Added (empty) chests and spiderwebs around (still missing) spawnersmadmaxoft@gmail.com2013-03-311-4/+82
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1338 0a769ca7-a7f5-676a-18bf-c427514a06d6
* BlockArea: Added runtime check for coords in Debug modemadmaxoft@gmail.com2013-03-311-0/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1337 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MineShafts: User-settable chance of individual pieces' occurence. Staircase-only mineshafts, yay :)madmaxoft@gmail.com2013-03-313-29/+35
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1336 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MineShafts: Staircases have further connections behind them.madmaxoft@gmail.com2013-03-311-1/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1335 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MineShafts: Added staircases; added floors to mineshafts going through watermadmaxoft@gmail.com2013-03-311-4/+173
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1334 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added cCuboid:Assign() and cChunkDesc:FloorRelCuboid()madmaxoft@gmail.com2013-03-316-2/+204
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1333 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MineShafts: Set the default GridSize to 256madmaxoft@gmail.com2013-03-301-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1332 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MineShafts: Added branching crossingsmadmaxoft@gmail.com2013-03-301-7/+132
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1331 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ChunkDesc: Extended the interface, RelCuboid functions now take either a cCuboid or a set of 6 coords.madmaxoft@gmail.com2013-03-304-33/+170
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1330 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MineShafts: added supports in corridorsmadmaxoft@gmail.com2013-03-301-11/+103
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1329 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MineShafts: Added branching corridorsmadmaxoft@gmail.com2013-03-301-3/+67
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1328 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cTracer: Fixed asserts for invalid coordsmadmaxoft@gmail.com2013-03-301-6/+26
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1327 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MineShafts: implemented basic corridors, without any embellishments or branching yet.madmaxoft@gmail.com2013-03-293-29/+142
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1326 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Cuboid: Fixed intersection calculationmadmaxoft@gmail.com2013-03-292-1/+16
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1325 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ChunkDesc: Cuboid-based manipulationmadmaxoft@gmail.com2013-03-294-2/+181
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1324 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Cuboid: Added DoesIntersect(), more IsInside() and more constructorsmadmaxoft@gmail.com2013-03-294-4/+310
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1323 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ListenThread now reports the protocol used (IPv4 - IPv6) in its error messagesmadmaxoft@gmail.com2013-03-291-8/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1322 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MineShafts: backup commit with initial work, still unusable.madmaxoft@gmail.com2013-03-293-1/+639
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1321 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Cuboid: Added the DifX/Y/Z functionsmadmaxoft@gmail.com2013-03-294-113/+232
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1320 0a769ca7-a7f5-676a-18bf-c427514a06d6
* BlockArea: Finished rotation and mirroring with meta. Implemented example meta handling for vines, stairs and torches.madmaxoft@gmail.com2013-03-265-13/+317
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1319 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cBlockArea: Fixed type / meta copypasta errors in mirroring and rotation codemadmaxoft@gmail.com2013-03-262-13/+43
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1318 0a769ca7-a7f5-676a-18bf-c427514a06d6
* BlockArea: Implemented rotation without meta manipulationmadmaxoft@gmail.com2013-03-251-6/+76
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1317 0a769ca7-a7f5-676a-18bf-c427514a06d6
* BlockArea: Implemented mirroring without meta manipulationmadmaxoft@gmail.com2013-03-254-4/+942
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1316 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed underflow issue in LeakFinder.cppkeyboard.osh@gmail.com2013-03-251-6/+42
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1315 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Tweaked LeakFinder for VC2012 debug build (too much housekeeping info allocated)madmaxoft@gmail.com2013-03-241-1/+13
| | | | | | http://forum.mc-server.org/showthread.php?tid=826&pid=6974#pid6974 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1314 0a769ca7-a7f5-676a-18bf-c427514a06d6
* LeakFinder: Fixed previous commit, housekeeping is now factored in properly in both "alloc" and "free".madmaxoft@gmail.com2013-03-241-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1311 0a769ca7-a7f5-676a-18bf-c427514a06d6
* LeakFinder: Factored in the housekeeping overheadmadmaxoft@gmail.com2013-03-241-4/+9
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1310 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Changed memory leak detection value to 65970823. Also added support for compiling in Visual Studio 2012.keyboard.osh@gmail.com2013-03-241-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1309 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made MultiStepMap BioGen the defaultmadmaxoft@gmail.com2013-03-241-8/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1308 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed rounding error in MultiStepMap BioGen, introduced in rev 1289.madmaxoft@gmail.com2013-03-243-13/+71
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1307 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a problem in Linux handling of ListenThread.madmaxoft@gmail.com2013-03-231-1/+4
| | | | | | | A closed socket doesn't seem to wake up a select() call on that socket on Linux. Fixed by waking up by a timeout regularly (semi-busywait). Fixes FS #334 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1305 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added auto-kill-with-dump to LeakFinder if the allocated memory grows over 1 GiB.madmaxoft@gmail.com2013-03-233-85/+147
| | | | | | | Only works on Windows and only present in Debug mode. Produces memdump.xml for analysis. http://forum.mc-server.org/showthread.php?tid=826&pid=6948#pid6948 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1302 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added helper functions AddSpeed, AddSpeedX, AddSpeedY, AddSpeedZ, AddPosition, AddPosX, AddPosY, AddPosZ. Made sure that all entites use these helper functions.keyboard.osh@gmail.com2013-03-236-24/+107
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1299 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Re-tweaked WormNestCaves for more reasonable cave sizesmadmaxoft@gmail.com2013-03-221-7/+14
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1298 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed block update queueing and water meta change not propagated to clients.madmaxoft@gmail.com2013-03-223-24/+87
| | | | | | Fixes FS #333. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1297 0a769ca7-a7f5-676a-18bf-c427514a06d6
* WormNestCaves: tweaked a bit not to produce the single-block holes in the floormadmaxoft@gmail.com2013-03-221-5/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1296 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Simulator: fixed a problem when manipulating the bedrock layermadmaxoft@gmail.com2013-03-221-2/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1295 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented BroadcastMovementUpdate function. Moved m_Pos,m_Rot,m_Speed to private members and made sure that all classes uses the public functions to access these members.keyboard.osh@gmail.com2013-03-2210-135/+257
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1294 0a769ca7-a7f5-676a-18bf-c427514a06d6
* DelayedFluidSimulator: optimized block storage for large amounts of blocks.madmaxoft@gmail.com2013-03-202-20/+62
| | | | | | Speeds up chunk generation by 15 %. Expected to speed up fluid simulation, unmeasured. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1293 0a769ca7-a7f5-676a-18bf-c427514a06d6
* HeiGenBiomal: added a fast but ugly-looking optimization, disabled by default.madmaxoft@gmail.com2013-03-201-0/+25
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1292 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Alpha-sorted the generators in ComposableGeneratormadmaxoft@gmail.com2013-03-201-15/+15
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1291 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Optimized BioGen-MultiStepMap's performance by using linear interpolation, about 25 % increase in total chunk generation speed.madmaxoft@gmail.com2013-03-192-6/+11
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1289 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Updated bindings for new cChunkDesc functionsmadmaxoft@gmail.com2013-03-192-4/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1288 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Lakes: added a limiter, better height distributionmadmaxoft@gmail.com2013-03-193-11/+22
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1287 0a769ca7-a7f5-676a-18bf-c427514a06d6
* The subgenerators use cChunkDesc instead of raw arrays. cChunkDesc is based on cBlockArea. Initial version of Lakes generator.madmaxoft@gmail.com2013-03-1911-171/+324
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1286 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Trees: fixed a glitch in large jungle trees' leaves (1 column was missing)madmaxoft@gmail.com2013-03-191-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1285 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a copypasta error in cChunkDesc's BlockArea writermadmaxoft@gmail.com2013-03-181-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1284 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added support for the packet #28 (0x1C): ENTITY_VELOCITYkeyboard.osh@gmail.com2013-03-1813-0/+84
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1283 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Rewritten generators so that they use the cChunkDesc class (and thus can use cBlockArea merging)madmaxoft@gmail.com2013-03-1716-662/+444
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1282 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ProbabDistrib: fixed definition string parsing with nonzero startmadmaxoft@gmail.com2013-03-171-1/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1281 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fluid simulator: fixed an out-of-bounds read when determining fluid directionmadmaxoft@gmail.com2013-03-171-2/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1280 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed zero-probability height distribution in FluidSprings finishermadmaxoft@gmail.com2013-03-171-4/+11
| | | | | | FS #330 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1279 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Huge performance boost in blockhandlers, they have direct access to chunk data when blockchecking.madmaxoft@gmail.com2013-03-1522-226/+418
| | | | | | Also fixed vines' placement. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1278 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Small performance improvements in fluid simulator.madmaxoft@gmail.com2013-03-144-31/+41
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1276 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed the Classic fluid simulator, it was too unstable (2nd attempt)madmaxoft@gmail.com2013-03-141-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1275 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed the Classic fluid simulator, it was too unstablemadmaxoft@gmail.com2013-03-143-639/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1274 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Release 1.5 supported, yay :)madmaxoft@gmail.com2013-03-145-9/+108
| | | | | | Although some new blocks are still not recognized and behave badly, the protocol itself is working. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1273 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a Noop fluid simulator that doesn't do anything with the fluid (fluid doesn't spread at all, behaves like a normal block)madmaxoft@gmail.com2013-03-142-0/+46
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1272 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fix for the Vaporize fluid simulator when loading chunks.madmaxoft@gmail.com2013-03-142-1/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1271 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a Vaporize fluid simulator that simply replaces fluid blocks with air.madmaxoft@gmail.com2013-03-143-0/+94
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1270 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added water and lava springs.madmaxoft@gmail.com2013-03-1410-11/+512
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1269 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Changed DelayedFluidSimulatorData to be a vector rather than a list, performance doubled :)madmaxoft@gmail.com2013-03-143-8/+9
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1268 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Initial nether composition generatormadmaxoft@gmail.com2013-03-117-8/+164
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1266 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a crash in LeakFinder when out of memorymadmaxoft@gmail.com2013-03-111-0/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1265 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Anvil: Removed excessive debugging outputmadmaxoft@gmail.com2013-03-111-3/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1264 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Minecarts get saved into Anvil.madmaxoft@gmail.com2013-03-094-11/+47
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1263 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Pickups are now being saved into Anvil.madmaxoft@gmail.com2013-03-0932-439/+1209
| | | | | | Also changed cEntity rotation datatype to double git-svn-id: http://mc-server.googlecode.com/svn/trunk@1262 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed random teleporting into the void when leaving minecartsmadmaxoft@gmail.com2013-03-051-4/+9
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1259 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made ListenThread an OSSupport part, as it's generic enoughmadmaxoft@gmail.com2013-03-053-3/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1258 0a769ca7-a7f5-676a-18bf-c427514a06d6
* IPv6: Windows XP doesn't have the inet_pton() function, resorting to custom-formatting the addressmadmaxoft@gmail.com2013-03-052-3/+20
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1257 0a769ca7-a7f5-676a-18bf-c427514a06d6
* IPv6 support: fixed IP string getting on accept()madmaxoft2013-03-054-17/+23
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1256 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed logic in socketthreads connectingmadmaxoft@gmail.com2013-03-051-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1255 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Listening ports are now loggedmadmaxoft@gmail.com2013-03-051-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1254 0a769ca7-a7f5-676a-18bf-c427514a06d6
* IPv6 support + removed cTCPLink from Lua APImadmaxoft@gmail.com2013-03-0513-591/+194
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1253 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Moved client socket accepting into a separate thread object, cListenThreadmadmaxoft@gmail.com2013-03-048-114/+343
| | | | | | | MCServer can now listen on multiple ports FS #312 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1252 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed the unused cHeartbeat objectmadmaxoft@gmail.com2013-03-042-171/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1251 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Starting an IPv6 support / cSocket rewritemadmaxoft@gmail.com2013-03-044-16/+35
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1250 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Player can sit in minecarts (but not move them yet)madmaxoft@gmail.com2013-03-0321-84/+448
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1249 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Simulators are woken up upon chunk loadmadmaxoft@gmail.com2013-03-033-0/+45
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1248 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Redstone simulator: adding a block now checks if the neighbors are redstone-related; if not, the block is ignored.madmaxoft@gmail.com2013-03-031-107/+144
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1247 0a769ca7-a7f5-676a-18bf-c427514a06d6
* FinishGen: Fixed sand collapsing and fluid stationarizingmadmaxoft@gmail.com2013-03-031-3/+14
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1246 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Simulators now check if they are given a valid chunkmadmaxoft@gmail.com2013-03-032-0/+10
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1244 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added missing item types, fixed placing stone walls.madmaxoft@gmail.com2013-03-034-19/+58
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1243 0a769ca7-a7f5-676a-18bf-c427514a06d6
* SandSimulator: Fixed sand dropping on half-slabs; added more blocks that break falling sand into pickups, fixed instant-fallmadmaxoft@gmail.com2013-03-033-37/+61
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1242 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cSandSimulator: implemented InstantFallmadmaxoft@gmail.com2013-03-021-1/+27
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1241 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Rewritten SandSimulator to use direct chunk access; and sand falling on torches now creates a pickup.madmaxoft@gmail.com2013-03-028-89/+283
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1240 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the anvil blockmadmaxoft@gmail.com2013-03-021-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1239 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Presimulator finisher now drops sand and gravel through fire blocks as wellmadmaxoft@gmail.com2013-03-021-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1238 0a769ca7-a7f5-676a-18bf-c427514a06d6
* DelayedFluidSimulator: removed an obnoxious debugging outputmadmaxoft@gmail.com2013-03-021-4/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1237 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Floody fluid simulator has been converted to use direct chunk accessmadmaxoft@gmail.com2013-03-027-136/+230
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1236 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed gcc compilationmadmaxoft@gmail.com2013-03-021-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1234 0a769ca7-a7f5-676a-18bf-c427514a06d6
* New fire simulator, fully rewritten to the new scheme of things, directly accessing chunk data.madmaxoft@gmail.com2013-03-019-121/+386
| | | | | | http://forum.mc-server.org/showthread.php?tid=617&pid=6626#pid6626 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1233 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Previous commit was missing the Entity.h filemadmaxoft@gmail.com2013-03-011-4/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1232 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Updated cEntity API; removed functions that are unusable from Lua, added a few query functions.madmaxoft@gmail.com2013-03-012-176/+454
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1231 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed previous commit.madmaxoft@gmail.com2013-02-281-1/+1
| | | | | | I'm too sleepy and shouldn't be let around the sources :P git-svn-id: http://mc-server.googlecode.com/svn/trunk@1230 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a bug in cChunk::QueueTickBlockNeighbors() that caused the tick thread to overload easilymadmaxoft@gmail.com2013-02-281-3/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1229 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Converted simulators to take cWorld reference instead of a pointermadmaxoft@gmail.com2013-02-2819-135/+166
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1228 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Simulators now have direct access to the cChunk object in the WakeUp() callmadmaxoft@gmail.com2013-02-2821-125/+230
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1227 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a copypasta error from rev 1224madmaxoft@gmail.com2013-02-271-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1226 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Minecart entity now supports IsA() self-identificationmadmaxoft@gmail.com2013-02-272-6/+10
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1225 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made FAST_FLOOR_DIV work correctly, replaced all floorf() divisions with it.madmaxoft@gmail.com2013-02-275-12/+14
| | | | | | 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
* AnvilStats: Added ChunkExtract mode of operation, splitting Anvil files into individual chunks.madmaxoft@gmail.com2013-02-253-5/+6
| | | | | | Both original zlibbed chunks and re-gzipped chunks are output. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1223 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Moved the Speed member into cEntity class instead of its descendants.madmaxoft@gmail.com2013-02-2117-385/+180
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1222 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added HOOK_EXECUTE_COMMAND for intercepting executed commands and console commands.madmaxoft@gmail.com2013-02-218-14/+98
| | | | | | Note that built-in console commands are exempt to this hook - they are always performed and the hook is not called. Also note that, for reasons unknown, the HookNotify plugin doesn't list the callback arguments. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1221 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Minecarts can now be placed.madmaxoft@gmail.com2013-02-1814-16/+278
| | | | | | No interaction, no physics, though. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1219 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed all E_ITEM_ symbols equivalent to E_BLOCK_, and all obsolete item and block symbols.madmaxoft@gmail.com2013-02-1621-330/+59
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1218 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed previous commitmadmaxoft@gmail.com2013-02-151-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1216 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Block and recipe update by STR_Warrior.madmaxoft2013-02-151-1/+17
| | | | | | | | | Adds missing fuels Adds missing furnace recipes (FS #304) Fixes some recipes (FS #305) Adds current 1.5 weekly snapshot blocks and items. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1215 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Plugins can now bind console commandsmadmaxoft@gmail.com2013-02-1513-225/+621
| | | | | | | FS #300 Most console commands are now implemented in the Core plugin. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1214 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed one-hit-blocks not being broken server-sidemadmaxoft@gmail.com2013-02-141-2/+4
| | | | | | FS #301 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1213 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Exported forgotten API functions in cPluginManager: ExecuteCommand(), ForceExecuteCommand()madmaxoft@gmail.com2013-02-133-4/+80
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1212 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented the cBlockArea:RelLine() API function.madmaxoft@gmail.com2013-02-132-1/+141
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1211 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added HOOK_WEATHER_CHANGING.madmaxoft@gmail.com2013-02-1312-106/+228
| | | | | | http://www.mc-server.org/support/index.php?do=details&task_id=299 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1210 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a forgotten part of the cBlockArea::FillRelCuboid() function.madmaxoft@gmail.com2013-02-111-0/+21
| | | | | | Now meta, blocklight and skylight can be filled, too git-svn-id: http://mc-server.googlecode.com/svn/trunk@1209 0a769ca7-a7f5-676a-18bf-c427514a06d6
* More API functions in cBlockArea: Create(), Fill(), FillRelArea()madmaxoft@gmail.com2013-02-114-5/+360
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1208 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added cBlockArea:Merge() API function to merge two block areas using different strategies.madmaxoft@gmail.com2013-02-104-9/+259
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1207 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed ASSERT / VERIFY mismatch in ManualBindings' error handlingmadmaxoft@gmail.com2013-02-101-4/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1206 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed useless logging from cEntity::GetLookVector()madmaxoft@gmail.com2013-02-102-11/+10
| | | | | | Requested by STR_Warrior http://forum.mc-server.org/showthread.php?tid=434&pid=6368#pid6368 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1205 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cBlockArea: Added empty NBT tags to schematic file saving for better compatibility.madmaxoft@gmail.com2013-02-101-0/+5
| | | | | | Some tools require the presence of Entities and TileEntities tags in the schematic file and they wouldn't open the file if missing. Writing empty list tags. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1204 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added cBlockArea:Expand() API function (untested)madmaxoft@gmail.com2013-02-094-2/+143
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1203 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cChunkDesc can now read and write cBlockAreas.madmaxoft@gmail.com2013-02-087-15/+478
| | | | | | A simple example is provided in the Debuggers plugin. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1201 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Prepared cChunkDesc for further API extension; used it as the sole container for generated chunk data, including entities / block entities.madmaxoft@gmail.com2013-02-089-202/+394
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1200 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added cBlockArea:CopyTo() and :CopyFrom(), so now block areas can be duplicated easily.madmaxoft@gmail.com2013-02-074-2/+121
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1199 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cBlockArea can now be saved as a .schematic file.madmaxoft@gmail.com2013-02-078-7/+121
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1198 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a sanity check to cBlockArea:Crop()madmaxoft@gmail.com2013-02-071-0/+13
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1197 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a cGZipFile class for reading GZipped files.madmaxoft@gmail.com2013-02-075-26/+139
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1196 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cBlockArea can now be loaded from a .schematic file.madmaxoft@gmail.com2013-02-064-3/+170
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1195 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a new API call to cBlockArea: Crop().madmaxoft@gmail.com2013-02-064-4/+138
| | | | | | Also fixed cBlockArea:MakeIndex(), the indexing was wrong. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1194 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added new hooks: OnChunkAvailable(), OnChunkUnloaded() and OnChunkUnloading(). Modified OnChunkGenerated() signature.madmaxoft@gmail.com2013-02-0513-30/+309
| | | | | | http://forum.mc-server.org/showthread.php?tid=464&pid=6312#pid6312 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1193 0a769ca7-a7f5-676a-18bf-c427514a06d6
* BiomeVisualiser: initial importmadmaxoft@gmail.com2013-02-033-8/+12
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1192 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a GetClassStatic function to all entities, as well as cFurnaceEntity, cChestEntity and cWorldfaketruth2013-02-036-403/+421
| | | | | | | Using templates to generate ForEach* functions instead of MACROS Better error reporting in ForEach* functions git-svn-id: http://mc-server.googlecode.com/svn/trunk@1191 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Moved BioGen parameter reading from cComposableGenrator into each BioGen itselfmadmaxoft@gmail.com2013-02-024-48/+96
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1190 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed GCC error in ManualBindingsmadmaxoft@gmail.com2013-02-021-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1189 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Another GCC fix, hopefully this one will workmadmaxoft@gmail.com2013-02-011-3/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1187 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed GCC compilationmadmaxoft@gmail.com2013-02-011-1/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1186 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Simplified cWorld::FindAndDoWithPlayer()madmaxoft@gmail.com2013-02-012-12/+9
| | | | | | It should still work the same - call the callback for the player with the most similar name. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1184 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Moved command API into cPluginManager.madmaxoft@gmail.com2013-02-0111-567/+606
| | | | | | As specified in http://forum.mc-server.org/showthread.php?tid=765 , commands are now bound using a single function, cPluginManager:BindCommand(). git-svn-id: http://mc-server.googlecode.com/svn/trunk@1183 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Renamed HOOK_KILLED to HOOK_KILLING to match naming conventions.madmaxoft@gmail.com2013-01-289-28/+25
| | | | | | Also tweaked the mechanics so that plugins may revive without dropping other plugins out of the picture. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1182 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Renamed HOOK_COLLECT_PICKUP to HOOK_COLLECTING_PICKUP to match other hooks' naming.madmaxoft@gmail.com2013-01-289-19/+19
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1180 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cItems: Fixed parameter names according to conventionsmadmaxoft@gmail.com2013-01-271-4/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1179 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added cItems to Lua API.madmaxoft@gmail.com2013-01-276-342/+311
| | | | | | Now HOOK_BLOCK_TO_PICKUPS is fully functional, as demonstrated by HookNotify. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1178 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the HOOK_BLOCK_TO_PICKUPS hook that fires when a block is dug up and should be converted to pickups.madmaxoft@gmail.com2013-01-2719-85/+80
| | | | | | Note that cItems is used in the function signature but not yet exported in the API, TODO! git-svn-id: http://mc-server.googlecode.com/svn/trunk@1176 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed cMCLogger from Lua APImadmaxoft@gmail.com2013-01-273-155/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1175 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Changed HOOK_PLAYER_MOVED to HOOK_PLAYER_MOVING to match the scheme used for names.madmaxoft@gmail.com2013-01-266-10/+10
| | | | | | -ING means the event is being processed and may be refused by a plugin, -ED means it has already happenned and the plugin cannot do anything about it. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1174 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Merged the usable portion of the "gens" branch.madmaxoft@gmail.com2013-01-2526-788/+1098
| | | | | | Splitting off the Composable generator and fiddling with LuaChunk / ChunkDesc is good, other generators not good yet. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1171 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Adjusted Biomal height generator to have less hills in the rivers.madmaxoft@gmail.com2013-01-251-21/+21
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1165 0a769ca7-a7f5-676a-18bf-c427514a06d6
* A brand new biome generator: cBioGenMultiStepMap.madmaxoft@gmail.com2013-01-243-0/+359
| | | | | | Has proper mushroom biome inside ocean, nice transitions between neighboring biomes. Still needs a bit of tweaking, but generally ok. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1164 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Obsoleted E_BLOCK_COCA_PLANT in favor of E_BLOCK_COCOA_POD.madmaxoft@gmail.com2013-01-221-1/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1162 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a possible crash on server restart.madmaxoft@gmail.com2013-01-211-0/+1
| | | | | | May be related to FS #294 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1161 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed piston placement.madmaxoft@gmail.com2013-01-201-1/+1
| | | | | | FS #293 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1160 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Renamed rclk hook to HOOK_PLAYER_RIGHT_CLICK.madmaxoft@gmail.com2013-01-185-7/+8
| | | | | | http://forum.mc-server.org/showthread.php?tid=464&pid=6163#pid6163 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1158 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed missing bindings in cPluginmadmaxoft@gmail.com2013-01-143-8/+105
| | | | | | FS #291 - crash on "/help" issued via client git-svn-id: http://mc-server.googlecode.com/svn/trunk@1143 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added missing dig status.luksor111@gmail.com2013-01-132-0/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1141 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com2013-01-12113-5329/+3556
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed rclk in doublechestsmadmaxoft@gmail.com2013-01-084-12/+84
| | | | | | FS #284 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1127 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed disappearing pickups - wrong physics simulation.madmaxoft@gmail.com2013-01-061-30/+40
| | | | | | FS #285 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1125 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added version 1.4.7 to the list of supported versions.madmaxoft@gmail.com2013-01-051-1/+1
| | | | | | The protocol used is the same. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1123 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Not sending multiple DC packets to the client.madmaxoft@gmail.com2013-01-052-7/+11
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1120 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Floody fluid simulator can create sourceblocks (configurable in World.ini)madmaxoft@gmail.com2013-01-043-9/+78
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1119 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cBlockArea now has a GetBlockTypeMeta() and GetRelBlockTypeMeta() methodsmadmaxoft@gmail.com2013-01-044-2/+130
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1118 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed compilation error in BlockCauldron.h on Linuxluksor111@gmail.com2012-12-291-2/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1117 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Cauldrons and Brewing Stands are now placeableluksor111@gmail.com2012-12-298-0/+151
| | | | | | Cauldrons can be filled with water and used to fill bottles git-svn-id: http://mc-server.googlecode.com/svn/trunk@1116 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cPickup now uses full cItem, instead of a pointermadmaxoft@gmail.com2012-12-286-108/+45
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1114 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed OnBlockPlace hookluksor111@gmail.com2012-12-271-10/+10
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1113 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed slab usage in creative modeluksor111@gmail.com2012-12-274-9/+17
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1112 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed Linux compilationluksor111@gmail.com2012-12-271-3/+6
| | | | | | Fixed flower pot consuming items in creative mode git-svn-id: http://mc-server.googlecode.com/svn/trunk@1111 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed 1.4.6 falling blocks.madmaxoft@gmail.com2012-12-271-15/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1109 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ProtoProxy: Fixed 1.4.6 compatibility with vehicles, logging for entity metadata.madmaxoft@gmail.com2012-12-271-0/+5
| | | | | | Also removed logging to console, it was slowing the program too much. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1108 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added flower potsluksor111@gmail.com2012-12-276-25/+141
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1107 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Dispensers can spawn mobsluksor111@gmail.com2012-12-261-10/+19
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1106 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Dispensers can dispense items and liquids nowluksor111@gmail.com2012-12-2610-3/+320
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1105 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Adjusted the protocol framework to support different types of falling block spawning.madmaxoft@gmail.com2012-12-2611-30/+104
| | | | | | | In brief, with cProtocol, "say what you want done, not how you want me to do it". But still 1.4.6 crashes on falling block spawning. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1104 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added 1.4.6 items (patch contributed by STR_Warrior)madmaxoft@gmail.com2012-12-241-2/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1101 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the 1.4.6 protocolmadmaxoft@gmail.com2012-12-2413-79/+191
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1099 0a769ca7-a7f5-676a-18bf-c427514a06d6
* PreSimulator finisher should now drop blocks through water and lava (untested)madmaxoft@gmail.com2012-12-221-0/+4
| | | | | | http://forum.mc-server.org/showthread.php?tid=409&pid=5728#pid5728 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1097 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MTRand reference is now passed as a Tick() parameter so that it isn't created and destroyed over and over again. All entities will handle physics (empty callback for now)madmaxoft@gmail.com2012-12-2231-166/+404
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1096 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Reduced most mobs' constructors to oneliners by passing parameters to superclassesmadmaxoft@gmail.com2012-12-2237-220/+122
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1095 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed linux compilationmadmaxoft@gmail.com2012-12-211-2/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1094 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added sounds to levers and mobsluksor111@gmail.com2012-12-2123-1/+57
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1093 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added more constants into eEntityType; made them a compulsory parameter to the constructor, so that all entities have proper type.madmaxoft@gmail.com2012-12-2115-160/+228
| | | | | | Also added a few utility functions to cEntity for distinguishing the types (IsPlayer(), IsPickup() etc.) git-svn-id: http://mc-server.googlecode.com/svn/trunk@1092 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Reworked the IsA() / GetClass() framework to actually be useful. Added GetParentClass().madmaxoft@gmail.com2012-12-2160-381/+308
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1090 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Refactored the TakeDamage API to take equipped weapon and armor into consideration (PvP untested)madmaxoft@gmail.com2012-12-2162-1068/+2460
| | | | | | http://forum.mc-server.org/showthread.php?tid=625 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1087 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Extended player inventory by direct r/o access to armor slotsmadmaxoft@gmail.com2012-12-211-0/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1086 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Replaced "const double &" with plain "double" for simplicitymadmaxoft@gmail.com2012-12-214-43/+45
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1085 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a crash in redstone simulator when destroying blocks in Y < 2madmaxoft@gmail.com2012-12-201-0/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1084 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a bool evaluation warning in BlockDoor.hmadmaxoft@gmail.com2012-12-201-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1083 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed chat messages from consoleluksor111@gmail.com2012-12-201-1/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1082 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added dispensers (they can't dispense items yet)luksor111@gmail.com2012-12-1918-59/+525
| | | | | | | | 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
* Implemented double doorsluksor111@gmail.com2012-12-195-11/+86
| | | | | | | | | Implemented fence gate Updated g_BlockTransparent[] Doors can now only be opened by right clicking Doors will now drop when not supported by block git-svn-id: http://mc-server.googlecode.com/svn/trunk@1080 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed time calculation in cWorld::Tick()madmaxoft@gmail.com2012-12-171-2/+2
| | | | | | Should fix chunk saving bug in http://forum.mc-server.org/showthread.php?tid=434&pid=5663#pid5663 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1079 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cPiston refactoring to use cWorld::GetBlockTypeMeta() and proper typesmadmaxoft@gmail.com2012-12-161-72/+108
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1078 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made WormNest caves generate smaller.madmaxoft@gmail.com2012-12-161-3/+29
| | | | | | http://forum.mc-server.org/showthread.php?tid=409&pid=5654#pid5654 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1077 0a769ca7-a7f5-676a-18bf-c427514a06d6
* RedstoneSimulator refactoring to use cWorld::GetBlockTypeMeta() as much as possiblemadmaxoft@gmail.com2012-12-162-299/+389
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1076 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Levers (patch contributed by Keyboard)madmaxoft@gmail.com2012-12-165-12/+209
| | | | | | http://forum.mc-server.org/showthread.php?tid=649 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1075 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed fall damage againluksor111@gmail.com2012-12-152-1/+3
| | | | | | Added sound effects to pistons git-svn-id: http://mc-server.googlecode.com/svn/trunk@1074 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cChunk now tracks its neighbors as direct pointers; used in UnboundedRelGetBlock et al.madmaxoft@gmail.com2012-12-144-13/+224
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1073 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed cCriticalSection's debugging functionsmadmaxoft@gmail.com2012-12-142-5/+10
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1072 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed warnings in Player.cppluksor111@gmail.com2012-11-271-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1071 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added initial adventure mode supportluksor111@gmail.com2012-11-276-7/+41
| | | | | | | | | Added missing Emerald crafting recipe You get more fall damage when jumping Torch no longer protects players from fall damage Fixed Ender Chest drops git-svn-id: http://mc-server.googlecode.com/svn/trunk@1070 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Furnace now lights up when smelting itemsluksor111@gmail.com2012-11-261-0/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1069 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed certain blocks crashing clients when minedluksor111@gmail.com2012-11-266-5/+34
| | | | | | | | Fixed rail duplication glitch Fixed fall damage calculation Glass no longer drops glass git-svn-id: http://mc-server.googlecode.com/svn/trunk@1068 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Rails don't turn grass into dirt underneath them. (Patch contributed by STR_Warrior)madmaxoft@gmail.com2012-11-251-0/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1066 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented rail placement mechanics.luksor111@gmail.com2012-11-252-0/+319
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1065 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed drops for: Stone, Mycelium, Redstone Torch.luksor111@gmail.com2012-11-246-6/+41
| | | | | | Fixed item usage for Jukeboxes and Spawn eggs in survival. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1064 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ByteBuffer: Fixed buffer overrun possibility.madmaxoft@gmail.com2012-11-221-1/+3
| | | | | | http://forum.mc-server.org/showthread.php?tid=633&pid=5473#pid5473 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1063 0a769ca7-a7f5-676a-18bf-c427514a06d6
* More ByteBuffer checks: Is it used from a single thread only?madmaxoft@gmail.com2012-11-222-0/+74
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1062 0a769ca7-a7f5-676a-18bf-c427514a06d6
* SocketThreads fixes for crashes reported in FS #272madmaxoft@gmail.com2012-11-223-11/+15
| | | | | | http://www.mc-server.org/support/index.php?do=details&task_id=272&project=2 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1061 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added "primaryserverversion" to the "help" list.madmaxoft@gmail.com2012-11-201-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1060 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added primary server version interface to cRoot and "primaryserverversion" console command.madmaxoft@gmail.com2012-11-204-2/+92
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1059 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Aggressive debug mode cByteBuffer validity checking.madmaxoft@gmail.com2012-11-205-22/+98
| | | | | | Hopefully fixed the "BytesToEndOfBuffer" assert. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1057 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Adjusted the default for chunk generator structures.madmaxoft@gmail.com2012-11-201-1/+1
| | | | | | http://forum.mc-server.org/showthread.php?tid=434&pid=5398#pid5398 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1055 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Biome lists can have ":count" in them for adjusting biome occurence rate. Some more error logging.madmaxoft@gmail.com2012-11-202-2/+25
| | | | | | Idea created at FS #274, http://www.mc-server.org/support/index.php?do=details&task_id=274 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1054 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed wrong c++ standard assumptions about bools.madmaxoft@gmail.com2012-11-182-4/+16
| | | | | | | Should fix FS #265. http://forum.mc-server.org/showthread.php?tid=629&pid=5415#pid5415 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1053 0a769ca7-a7f5-676a-18bf-c427514a06d6
* CraftingRecipes parse now dumps lines it cannot parse.madmaxoft@gmail.com2012-11-181-0/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1052 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Android: Made the initial pre-calculated spawn area smallerfaketruth2012-11-165-44/+65
| | | | | | | | | 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
* Fixed boolean comparison.madmaxoft@gmail.com2012-11-165-11/+11
| | | | | | Don't compare booleans to false / true, use them directly. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1048 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed log message when spawning players on a client.madmaxoft@gmail.com2012-11-161-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1047 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed crashes caused LightingThread overwriting memory where it shouldn't (yay valgrind!)madmaxoft@gmail.com2012-11-162-4/+9
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1046 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Added the "wait" music discluksor111@gmail.com2012-11-156-12/+15
| | | | | | - Vines can now be placed on leaves git-svn-id: http://mc-server.googlecode.com/svn/trunk@1045 0a769ca7-a7f5-676a-18bf-c427514a06d6
* More valgrind fixesmadmaxoft@gmail.com2012-11-153-6/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1044 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added an assert for unknown protocol, so that the function isn't missed when upgrading to a new protocol.madmaxoft@gmail.com2012-11-151-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1043 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added support for 1.4.4 client, using the 1.4.2 protocol classmadmaxoft@gmail.com2012-11-153-14/+44
| | | | | | No MCServer-supported packets changed. Initial patch by Setimes. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1042 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a Printf() function that returns a new AString by value.madmaxoft@gmail.com2012-11-152-1/+18
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1041 0a769ca7-a7f5-676a-18bf-c427514a06d6
* More valgrind uninitialized var fixingmadmaxoft2012-11-131-2/+12
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1040 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a valgrind error in lighting thread (uninitialized var value)madmaxoft2012-11-131-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1039 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed block breaking in survival.luksor111@gmail.com2012-11-122-4/+20
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1038 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added DeadBushes finisher (initial patch by STR_Warrior; DeathBushes FTW!)madmaxoft@gmail.com2012-11-113-19/+125
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1037 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed an unused obsolete function chain - cWorld::GetChunkBlockData()madmaxoft@gmail.com2012-11-116-47/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1036 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Settings.ini is read only once on server startmadmaxoft@gmail.com2012-11-113-39/+38
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1035 0a769ca7-a7f5-676a-18bf-c427514a06d6
* PrimaryServerVersion is not force-saved into settings.ini. madmaxoft@gmail.com2012-11-112-3/+14
| | | | | | Server admins are advised to keep the value undefined, which will default in the latest supported version being the primary git-svn-id: http://mc-server.googlecode.com/svn/trunk@1034 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Cleanup: Removed deprecated functions from Lua APImadmaxoft@gmail.com2012-11-116-128/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1033 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Hopefully a fix for crash when chunks are added to a client being destroyed.madmaxoft@gmail.com2012-11-114-18/+37
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1032 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed FS #268 - if a block entity breaking is disallowed by a plugin, the entire blockentity is sent back to the clientmadmaxoft@gmail.com2012-11-111-6/+12
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1031 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made settings.ini default to settings.example.ini when it doesn't existfaketruth2012-11-101-1/+6
| | | | | | I suggest to do the same with the other ini files? git-svn-id: http://mc-server.googlecode.com/svn/trunk@1030 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a bug introduced in rev 1023 (ThuGie's crash)madmaxoft@gmail.com2012-11-101-4/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1029 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Protocol 1.4.2: found out and fixed the reason behind the fake "login" packet: the locale_viewdistance packet had been extendedmadmaxoft@gmail.com2012-11-102-3/+11
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1028 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed the SquirrelVM.madmaxoft@gmail.com2012-11-0813-17/+272
| | | | | | It has been crashing the server. http://forum.mc-server.org/showthread.php?tid=610 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1024 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Hotfix for ThuGie's crash, with a sanity check in debug mode.madmaxoft2012-11-071-1/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1023 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Refactored the world time.madmaxoft@gmail.com2012-11-0123-136/+326
| | | | | | Now it is stored in two values - WorldAge (only incremented, plugins cannot change) and TimeOfDay (plugins can change). Since sub-tick precision is needed in Tick(), we store it both as number of seconds (double) and number of ticks (Int64) is calculated off of that. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1022 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added Bats and Witches.luksor111@gmail.com2012-11-015-0/+132
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1021 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Pickups no longer crash clients.luksor111@gmail.com2012-10-312-2/+22
| | | | | | Removed some unnecessary includes. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1020 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Initial 1.4.2 support.luksor111@gmail.com2012-10-314-2/+159
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1019 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the [Server].PrimaryServerVersion setting to settings.ini; 1.4.2 gets the correct versionmadmaxoft@gmail.com2012-10-316-12/+100
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1018 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed gcc compilationmadmaxoft@gmail.com2012-10-281-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1017 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed NBT IntArray serialization; Biomes are now saved to / loaded from Anvilmadmaxoft@gmail.com2012-10-283-14/+76
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1015 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added cWorld:SpawnMob(PosX, PosY, PosZ, EntityType) to Lua APImadmaxoft@gmail.com2012-10-286-201/+291
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1014 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed more valgrind issuesmadmaxoft@gmail.com2012-10-273-20/+16
| | | | | | ( http://forum.mc-server.org/showthread.php?tid=598&pid=5139#pid5139 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@1013 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Critical sections aren't heap-allocated in linux anymore.madmaxoft@gmail.com2012-10-262-31/+27
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1012 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a valgrind warning in BlockDirt.madmaxoft@gmail.com2012-10-265-13/+18
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1011 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed up a few valgrind warningsmadmaxoft@gmail.com2012-10-253-8/+10
| | | | | | ( http://forum.mc-server.org/showthread.php?tid=598&pid=5071#pid5071 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@1010 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed issues with pickups. sebi.noreply@gmail.com2012-10-245-8/+52
| | | | | | | | | * Now when picking up max. stack amount is checked. * Added cInventory::AddItemAnyAmount() which will not fail if it cannot add all items (it will just modify amount) * If there is no space in inventory and picking up stacked items, it will try to fill stacks already in inventory, partially picking up the item. * When closing inventory player will drop any items it's currently 'dragging' git-svn-id: http://mc-server.googlecode.com/svn/trunk@1008 0a769ca7-a7f5-676a-18bf-c427514a06d6
* #grammarnazi: fixed tabs to spaces and alpha-sortmadmaxoft@gmail.com2012-10-231-67/+68
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1007 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Adjusted the number and sizes of ore nests (Patch contributed by STR_Warrior)madmaxoft@gmail.com2012-10-231-10/+10
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1006 0a769ca7-a7f5-676a-18bf-c427514a06d6
* New Block property g_BlockIsSolid[]; Fixed ladder, torches and vines placement. (Patch contributed by funmaker)luksor111@gmail.com2012-10-237-64/+111
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1005 0a769ca7-a7f5-676a-18bf-c427514a06d6
* You can now see particles and hear sounds when other players are destroying blocks.luksor111@gmail.com2012-10-221-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1004 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Slight formatting tuneup to the previous commit.madmaxoft@gmail.com2012-10-221-4/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1003 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Vine decay (patch contributed by funmaker)madmaxoft@gmail.com2012-10-222-10/+65
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1002 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made DeepSnow remove flowers and mushrooms while snowing.luksor111@gmail.com2012-10-221-0/+12
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1001 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Top blocks are now snowed over, either normally, or in deep snow (patch contributed by funmaker, Luksor and Sebi)madmaxoft@gmail.com2012-10-215-2/+91
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1000 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cFinishGenPreSimulator sets correct fluid type (stationary in the middle, flowing on chunk borders / holes next to water.madmaxoft@gmail.com2012-10-212-2/+94
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@999 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the first part of the PreSimulator finisher, drops floating sand and gravel to ground.madmaxoft@gmail.com2012-10-213-0/+112
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@998 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added more item stacking sizes (patch contributed by Hanfer)madmaxoft@gmail.com2012-10-211-26/+65
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@997 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed manual bindings' ForEachXXX mapping not checking the object instance for validity.madmaxoft@gmail.com2012-10-211-0/+5
| | | | | | ( http://forum.mc-server.org/showthread.php?tid=591&pid=5007#pid5007 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@996 0a769ca7-a7f5-676a-18bf-c427514a06d6
* My OCD has alpha-sorted some stuff :)madmaxoft@gmail.com2012-10-217-144/+130
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@995 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added jukeboxes (patch contributed by Luksor)madmaxoft@gmail.com2012-10-2121-250/+590
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@994 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Double chests are now working, and with sound. (FS #69)madmaxoft@gmail.com2012-10-207-122/+125
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@993 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Double chests are formed correctly in all situations (meta is adjusted for the neighboring chest)madmaxoft@gmail.com2012-10-202-10/+88
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@991 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Got rid of nonsense logging in cPiston's direction calc.madmaxoft@gmail.com2012-10-201-19/+30
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@990 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Chest does check if it can be placed at the coords specified (the client does the check itself, too, but this may be good for scripts)madmaxoft@gmail.com2012-10-201-0/+68
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@989 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed excessive debug loggin in Floody fluid simulator.madmaxoft@gmail.com2012-10-201-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@987 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made cWorld's block query functions more orthogonal, added GetBlockInfo() returning all info on a block.madmaxoft@gmail.com2012-10-209-155/+327
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@986 0a769ca7-a7f5-676a-18bf-c427514a06d6
* PACKET_DESTROY_ENTITY isn't sent for self when the player is kicked (FS #254)madmaxoft@gmail.com2012-10-201-0/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@985 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Use leakfinder in debug builds to dump all currently used memory via the "dumpmem" console command.madmaxoft@gmail.com2012-10-204-207/+132
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@984 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Ravines: Drill only through specific blocks (FS #259)madmaxoft@gmail.com2012-10-191-1/+23
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@983 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed unused [Physics].Water section from settings.ini.madmaxoft@gmail.com2012-10-192-18/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@982 0a769ca7-a7f5-676a-18bf-c427514a06d6
* WormNestCaves: drills only through specific blocks (FS #259)madmaxoft@gmail.com2012-10-191-1/+23
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@981 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fluids will wash away crops and sugarcane.madmaxoft@gmail.com2012-10-191-0/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@980 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added spawn eggs with mobs (patch committed by Luksor)madmaxoft@gmail.com2012-10-1911-2/+431
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@979 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Converted some const char*s and std::strings to AStringsfaketruth2012-10-188-43/+259
| | | | | | | Added a cPlayer:RemoveFromGroup() so players can be removed from groups programmatically Added a cClientHandle:SetUsername to be used by Lua. I'm curious what ThuGie can do with his plugin. git-svn-id: http://mc-server.googlecode.com/svn/trunk@978 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a few bugs in fluid placement - fluid into other fluid, fluid into washable blocks.madmaxoft@gmail.com2012-10-1825-235/+344
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@977 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed item damage value not being read from the 1.3.2 protocol (wtf, why was it disabled?)madmaxoft@gmail.com2012-10-181-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@976 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Reverted previous commit, chose a different solution, much cleaner.madmaxoft@gmail.com2012-10-182-16/+12
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@975 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made constants in cChunkDef enums, compilation fixes for gcc.madmaxoft@gmail.com2012-10-182-12/+16
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@974 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added basic spawn eggs (patch contributed by Luksor)madmaxoft@gmail.com2012-10-182-11/+78
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@973 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a vulnerability in cClientHandle::HandleRespawn()faketruth2012-10-171-1/+9
| | | | | | | | Changed some hook locations: Moved HOOK_PLAYER_JOIN to where HOOK_PLAYER_SPAWN was (before player is added to the world) Added HOOK_PLAYER_SPAWN to after a player's initial spawn and after a player is re-spawned after death git-svn-id: http://mc-server.googlecode.com/svn/trunk@972 0a769ca7-a7f5-676a-18bf-c427514a06d6
* More blocks can be washed away by fluids.madmaxoft@gmail.com2012-10-161-0/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@971 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed floody fluid sim making downward fluid behave like source blocks.madmaxoft@gmail.com2012-10-161-8/+16
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@970 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Decreased logging in floody fluid simulator.madmaxoft@gmail.com2012-10-161-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@969 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed DelayedFluidSimulator.madmaxoft@gmail.com2012-10-154-12/+22
| | | | | | Floody fluid simulator is now woken up properly across chunk borders. git-svn-id: http://mc-server.googlecode.com/svn/trunk@966 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Floody fluid sim: reads params from world.ini; water and lava react together into cobblestone / stone / obsidianmadmaxoft@gmail.com2012-10-143-14/+79
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@965 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Floody fluid simulator now dries up correctly, too.madmaxoft@gmail.com2012-10-148-49/+184
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@964 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Initial Floody fluid simulator.madmaxoft@gmail.com2012-10-1412-54/+430
| | | | | | Can spread, cannot dry. git-svn-id: http://mc-server.googlecode.com/svn/trunk@963 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Biomal CompoGen now generates sea with STATIONARY_WATER instead of regular WATER.madmaxoft@gmail.com2012-10-142-3/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@962 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed the bucket handling code trying to simulate at the wrong coords (client sends all coords as -1 to signify "item use")madmaxoft@gmail.com2012-10-141-12/+12
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@961 0a769ca7-a7f5-676a-18bf-c427514a06d6
* BlockArea: Added const-ness to non-modifying functions, so that a const cBlockArea & can be used.madmaxoft@gmail.com2012-10-142-22/+22
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@960 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Completely removed support for old style Lua plugins (can use both Plugin and NewPlugin in settings.ini for now)faketruth2012-10-1416-492/+518
| | | | | | | | | | | | Removed cPlugin_Lua, obviously cPluginManager stores plugins by their (folder)name cPluginManager now scans the Plugins folder for potential plugins and adds them as non-loaded plugins Added a DisablePlugin and LoadPlugin to disable and load plugins on a per-plugin basis instead of all at once cPluginManager::FindPlugins refreshes the plugin list by removing non-existing plugins and adding new plugins Made it incredibly easy to use new plugins from the WebAdmin Exposed some food/hunger related functions in cPlayer to Lua git-svn-id: http://mc-server.googlecode.com/svn/trunk@959 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Better split of the fluid simulator functionality; removed the old LavaSimulator and WaterSimulator files.madmaxoft@gmail.com2012-10-138-211/+145
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@958 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Forgotten filemadmaxoft@gmail.com2012-10-131-0/+721
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@957 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Preparation for multiple fluid simulators.madmaxoft@gmail.com2012-10-1327-861/+341
| | | | | | | | | Moved all simulators into a subfolder. Replaced cWaterSimulator and cLavaSimulator with a generic cFluidSimulator. Moved original fluid simulation into cClassicFluidSimulator. Fluid simulator parameters (MaxHeight, Falloff) are read from the world.ini file (can have nether-like lava with lower falloff) git-svn-id: http://mc-server.googlecode.com/svn/trunk@956 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added delayed ticking to Lua APImadmaxoft@gmail.com2012-10-134-28/+157
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@953 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Got rid of "self" in plugins, which is deprecated anywayfaketruth2012-10-113-12/+29
| | | | | | | Fixed bug in many On* hooks that did not pop the return values from the stack Fixed Plugin:Call() that removed one too many items from the stack git-svn-id: http://mc-server.googlecode.com/svn/trunk@950 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Can now send usertypes (cPlayer, cEntity, cCuboid) along with a plugin:Call()faketruth2012-10-111-2/+25
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@946 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added functionality so one plugin can call functions on another plugin :Dfaketruth2012-10-101-0/+85
| | | | | | Fixed Core plugin file addresses in the VS2008 project git-svn-id: http://mc-server.googlecode.com/svn/trunk@945 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added an option to disable/enable PVP on a per world basisfaketruth2012-10-103-1/+13
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@944 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed some loggingfaketruth2012-10-101-6/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@943 0a769ca7-a7f5-676a-18bf-c427514a06d6
* All blockticking is now done in cBlockHandlersmadmaxoft@gmail.com2012-10-074-216/+190
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@942 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Split the name for signed and unsigned int writing in cProtocol.madmaxoft@gmail.com2012-10-072-3/+3
| | | | | | Hopefully this fixes compilation problems with 64-bit debian ( http://forum.mc-server.org/showthread.php?tid=575 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@940 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed an invalid direction to AddDirection()madmaxoft@gmail.com2012-10-061-8/+11
| | | | | | ( http://forum.mc-server.org/showthread.php?tid=571&pid=4821#pid4821 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@939 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Completely removed the old (buggy) redstone simulator.madmaxoft@gmail.com2012-10-0612-635/+342
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@937 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed a few debugging messages from the release builds.madmaxoft@gmail.com2012-10-064-8/+11
| | | | | | ( http://forum.mc-server.org/showthread.php?tid=571 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@936 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed player respawning crashing the server.madmaxoft@gmail.com2012-10-061-1/+8
| | | | | | ( http://forum.mc-server.org/showthread.php?tid=520&pid=4789#pid4789 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@935 0a769ca7-a7f5-676a-18bf-c427514a06d6
* BlockArea writing support (BlockTypes with BlockMeta only)madmaxoft@gmail.com2012-10-0611-16/+504
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@933 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Lua plugins can get player's equipped itemmadmaxoft@gmail.com2012-10-061-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@932 0a769ca7-a7f5-676a-18bf-c427514a06d6
* AnvilStats: made FastNBT faster by tweaking the pre-allocation.madmaxoft@gmail.com2012-10-051-1/+7
| | | | | | Although the file is shared between AnvilStats and MCServer, MCServer doesn't use this tweak (it uses too much memory) git-svn-id: http://mc-server.googlecode.com/svn/trunk@931 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed saplings not growing into treesmadmaxoft@gmail.com2012-10-032-4/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@924 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the "collect pickup" sound to 1.3.2madmaxoft@gmail.com2012-10-032-0/+23
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@923 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Minor style cleanupmadmaxoft@gmail.com2012-10-031-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@922 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Moved blockticking into blockhandler classes.madmaxoft@gmail.com2012-10-0375-541/+675
| | | | | | Also slightly refactored the variable / argument names (BlockID is deprecated, use BlockType instead) git-svn-id: http://mc-server.googlecode.com/svn/trunk@921 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added BLOCK_FACE_NONE into the plugin APImadmaxoft@gmail.com2012-10-033-8/+54
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@919 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Slight refactoring of BlockHandlers - dropping unneeded virtual functionsmadmaxoft@gmail.com2012-10-0142-507/+856
| | | | | | ( http://forum.mc-server.org/showthread.php?tid=434&pid=4734#pid4734 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@917 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added some missing block enumsfaketruth2012-09-302-1/+15
| | | | | | Spruce, birch and jungle wood stairs now orient correctly git-svn-id: http://mc-server.googlecode.com/svn/trunk@916 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added falling block entities. Sand and gravel now properly fall downfaketruth2012-09-3023-56/+221
| | | | | | | | | | Implemented the PACKET_SPAWN_OBJECT packet Made some things use BLOCKTYPE instead of char Android: Requests WebAdmin port when pressing the configure button git-svn-id: http://mc-server.googlecode.com/svn/trunk@915 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed initial player head rotation when a player is being spawned on another clientfaketruth2012-09-291-1/+4
| | | | | | | Fixed showing correct item in the player hand when spawned on another client (it didn't include metadata/health before) Fixed player head rotation when moving and looking around at the same time git-svn-id: http://mc-server.googlecode.com/svn/trunk@914 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Forgot to commit BlockBed.cppfaketruth2012-09-291-0/+77
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@913 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed a rogue cSleep from ClientHandle. Since sockets are owned by sockethreads, the client can safely Destroy() itself right after sending a packet.madmaxoft@gmail.com2012-09-291-4/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@912 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Beds can be slept in now (it doesn't change the time though)faketruth2012-09-2914-63/+111
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@911 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed memory leaks in cWindow and cProtocolRecognizermadmaxoft@gmail.com2012-09-292-0/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@910 0a769ca7-a7f5-676a-18bf-c427514a06d6
* SocketThread: clients aren't double-removed anymore.madmaxoft@gmail.com2012-09-293-23/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@909 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Hopefully fixed creative inventory tossing items out of the window.madmaxoft@gmail.com2012-09-291-1/+1
| | | | | | ( http://forum.mc-server.org/showthread.php?tid=434&pid=4657#pid4657 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@905 0a769ca7-a7f5-676a-18bf-c427514a06d6
* SlotArea: removed excessive loggingmadmaxoft@gmail.com2012-09-291-4/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@904 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Unified folder name-casingmadmaxoft@gmail.com2012-09-2977-12/+12
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@902 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Extended the cFile interface with Printf()madmaxoft@gmail.com2012-09-292-0/+16
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@901 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made beds placeablefaketruth2012-09-296-3/+163
| | | | | | Android: Updated some stuff and set default view distance lower git-svn-id: http://mc-server.googlecode.com/svn/trunk@900 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made Anvil the default storage schemafaketruth2012-09-271-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@894 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a bug in the inventory system where it would de-sync when dragging items with non-default metadata/healthfaketruth2012-09-261-1/+1
| | | | | | | | | Android: Updated VS2008 project to point to correct Android files Android: Updated makefiles to compile CryptoPP Android: Modified CryptoPP config.h and misc.cpp so it compiles for Android Android: Added pretty MCServer icons git-svn-id: http://mc-server.googlecode.com/svn/trunk@893 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the block dig animation packet (patch contributed by l0udPL)madmaxoft@gmail.com2012-09-2515-6/+144
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@892 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Sockets are now owned by SocketThreads instead of ClientHandle (FS #246 and FS #247)madmaxoft@gmail.com2012-09-2513-114/+103
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@891 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed Lua bindings for file renaming in previous commitsmadmaxoft@gmail.com2012-09-243-30/+30
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@889 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com2012-09-24217-711/+575
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Source files cleanup: ChunkDataSerializer is Protocol-relatedmadmaxoft@gmail.com2012-09-236-4/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@886 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Source files cleanup: OSSupport-related files in a separate subfolder, renamed.madmaxoft@gmail.com2012-09-2349-59/+51
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@885 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Source files cleanup: Removed unused cBlockToPickupmadmaxoft@gmail.com2012-09-239-125/+36
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@884 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Source files cleanup: Mobs-related files in a separate subfolder, renamed.madmaxoft@gmail.com2012-09-2346-89/+92
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@883 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Source files cleanup: WorldStorage-related files in a separate subfoldermadmaxoft@gmail.com2012-09-239-27/+27
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@882 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Source files cleanup: Generating-related files in a separate subfoldermadmaxoft@gmail.com2012-09-2322-34/+43
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@881 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Source files cleanup: Protocol-related files in a separate subfoldermadmaxoft@gmail.com2012-09-239-31/+31
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@880 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Source files cleanup: UI files renamedmadmaxoft@gmail.com2012-09-2314-20/+17
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@878 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed position confirming for 1.3.2 (FS #245)madmaxoft@gmail.com2012-09-232-1/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@877 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed players not spawning to others when they join the server.madmaxoft@gmail.com2012-09-231-0/+3
| | | | | | Ref.: http://forum.mc-server.org/showthread.php?tid=434&pid=4633#pid4633 git-svn-id: http://mc-server.googlecode.com/svn/trunk@876 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Tweaked logging.madmaxoft@gmail.com2012-09-236-56/+48
| | | | | | | Less output for UI. More output for player pos confirming (FS #245) and for player spawning git-svn-id: http://mc-server.googlecode.com/svn/trunk@875 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed entity equipment packet in the 1.3.2 protocol.madmaxoft@gmail.com2012-09-232-10/+26
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@874 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a potential crash in shift-click (gcc warning)madmaxoft@gmail.com2012-09-211-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@871 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Working shift-click support in crafting areas; window update working in 1.3.2madmaxoft@gmail.com2012-09-216-16/+120
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@869 0a769ca7-a7f5-676a-18bf-c427514a06d6
* UI: Added shift-click support to most slot areas, except crafting.madmaxoft@gmail.com2012-09-206-43/+232
| | | | | | Also fixed survival inventory's crafting grid not working. git-svn-id: http://mc-server.googlecode.com/svn/trunk@868 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Refactored windows.madmaxoft@gmail.com2012-09-2034-1535/+1568
| | | | | | | 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
* Merged in a patch for sounds by l0udPLmadmaxoft@gmail.com2012-09-1147-27/+326
| | | | | | http://forum.mc-server.org/showthread.php?tid=434&pid=4564#pid4564 git-svn-id: http://mc-server.googlecode.com/svn/trunk@858 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ItemToString() now recognizes matches that are in the ini without metadata.madmaxoft@gmail.com2012-09-081-0/+15
| | | | | | "323:0" -> "sign", although ini says "sign=323" only. git-svn-id: http://mc-server.googlecode.com/svn/trunk@856 0a769ca7-a7f5-676a-18bf-c427514a06d6
* StringToItem() sets item's count to 1 after a successful parsemadmaxoft@gmail.com2012-09-081-1/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@854 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed item damage not being set properly in StringToItem()madmaxoft@gmail.com2012-09-081-0/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@853 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Set leaves as a transparent block.madmaxoft@gmail.com2012-09-081-0/+1
| | | | | | Initiated by STR_Warrior, http://forum.mc-server.org/showthread.php?tid=434&pid=4512#pid4512 git-svn-id: http://mc-server.googlecode.com/svn/trunk@852 0a769ca7-a7f5-676a-18bf-c427514a06d6
* GetLocalDirectory should not include FILE_IO_PREFIX since that is already included in cIniFilefaketruth2012-09-081-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@851 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added cPlugin_NewLua::GetLocalDirectory() and exported it to Lua so plugins can store their settings in their own folder.faketruth2012-09-084-3/+46
| | | | | | Core now stores banned players and whitelist data in its own directory git-svn-id: http://mc-server.googlecode.com/svn/trunk@850 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Another fix for the case-sensitiveness. WTF, STL allows different signatures for Debug and Release builds?madmaxoft@gmail.com2012-09-081-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@849 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed the case-sensitiveness of the item map.madmaxoft@gmail.com2012-09-081-1/+10
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@848 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the ItemToString() and ItemTypeToString() functions.madmaxoft@gmail.com2012-09-084-36/+323
| | | | | | Ref.: http://forum.mc-server.org/showthread.php?tid=434&pid=4506#pid4506 git-svn-id: http://mc-server.googlecode.com/svn/trunk@847 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Relaxed the check for held item, the client sometimes sends wrong ItemType.madmaxoft@gmail.com2012-09-071-2/+9
| | | | | | http://forum.mc-server.org/showthread.php?tid=549&pid=4502#pid4502 git-svn-id: http://mc-server.googlecode.com/svn/trunk@846 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Snow is not put atop vines by the snow finisher anymoremadmaxoft@gmail.com2012-09-071-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@843 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed slot parsing in 1.2.5 causing weird behavior ( http://forum.mc-server.org/showthread.php?tid=551&pid=4413#pid4413 )madmaxoft@gmail.com2012-09-062-1/+6
| | | | | | Also added some asserts into ByteBuffer so that this won't happen again. git-svn-id: http://mc-server.googlecode.com/svn/trunk@842 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added protocol-specific authentication, now works for both 1.2.5 and 1.3.2madmaxoft@gmail.com2012-09-0610-19/+154
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@841 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed excessive debug logging in cProtocol132madmaxoft@gmail.com2012-09-062-35/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@840 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Officially added 1.3.2 protocol supportmadmaxoft@gmail.com2012-09-064-8/+13
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@839 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ClientHandle: added an overflow buffer for outgoing data, it fixes the "bad packet id" problem with 1.3.2.madmaxoft@gmail.com2012-09-062-5/+33
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@837 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the possibility of reserved player slots by implementing the HandleHandshake hook!faketruth2012-09-0510-8/+88
| | | | | | More info: http://forum.mc-server.org/showthread.php?tid=555 git-svn-id: http://mc-server.googlecode.com/svn/trunk@836 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Debugging in cByteBuffer::Write(); added the ReadAgain() method to allow ProtoProxy re-send the data it has parsed.madmaxoft@gmail.com2012-09-042-0/+31
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@833 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a possible race condition in cClientHandle's packet sending code; prepared for moving cSocket out of cClientHandle's ownership.madmaxoft@gmail.com2012-09-045-7/+10
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@832 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed preprocessor definitions in Linuxmadmaxoft@gmail.com2012-09-041-3/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@831 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed FS #243, server crash after restart. The blockhandler table and the itemhandler table weren't properly re-initialized.madmaxoft@gmail.com2012-09-043-115/+239
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@830 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Hopefully fixed pointer arithmetic problems in GCC compilation in cProtocol132madmaxoft@gmail.com2012-09-041-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@828 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed OS dependencies from CryptoPP; Removed unused modules that didn't compile on some platformsmadmaxoft@gmail.com2012-09-043-5/+10
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@827 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added writing support to cByteBuffer (will be used by ProtoProxy)madmaxoft@gmail.com2012-09-022-6/+157
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@825 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed Bug #241:lapayo94@gmail.com2012-09-021-0/+5
| | | | | | Torches should drop correct now git-svn-id: http://mc-server.googlecode.com/svn/trunk@824 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed debug-only code leaking into release mode in cCriticalSection, making it incompilable in release mode.madmaxoft@gmail.com2012-09-021-0/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@823 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ToLua does not like the override keyword :(faketruth2012-09-023-46/+14
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@821 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Exported cWorld::DoWithChestAt to Luafaketruth2012-09-025-39/+416
| | | | | | Exported cChestEntity to Lua for handling in DoWithChestAt git-svn-id: http://mc-server.googlecode.com/svn/trunk@820 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Next iteration on the 1.3.2 protocol. Still no good, but sometimes it just gets through. For your testing pleasures ;)madmaxoft@gmail.com2012-09-0210-42/+120
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@819 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a CreateHexDump() function for easier raw data debuggingmadmaxoft@gmail.com2012-09-022-1/+59
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@818 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Critical sectino now allows debug info - is it locked? / is it locked by current thread?madmaxoft@gmail.com2012-09-022-11/+48
| | | | | | Useful for ASSERTs git-svn-id: http://mc-server.googlecode.com/svn/trunk@817 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fix for Rev 814, the correct cPlayer object is actually sent into the callbacks.madmaxoft@gmail.com2012-09-011-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@816 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Quick fix for generator crash upon server stop.madmaxoft@gmail.com2012-09-011-1/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@815 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a Player parameter to OnUpdatedSign and OnUpdatingSign Lua callbacks and to the cWorld:UpdateSign method (http://forum.mc-server.org/showthread.php?tid=464&pid=4393#pid4393)madmaxoft@gmail.com2012-09-0112-58/+83
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@814 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented: http://www.mc-server.org/support/index.php?do=details&task_id=239&project=2&dev=26lapayo94@gmail.com2012-09-013-29/+31
| | | | | | Fixed Bug on build collision git-svn-id: http://mc-server.googlecode.com/svn/trunk@813 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Progress on the 1.3.2 protocol.madmaxoft@gmail.com2012-08-3121-109/+500
| | | | | | Sometimes the client lets the player through, but most of the times the connection breaks for no apparent reason. git-svn-id: http://mc-server.googlecode.com/svn/trunk@812 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Another possible deadlock in cClientHandle averted. Hope this is the one.madmaxoft@gmail.com2012-08-312-5/+16
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@810 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed one possibility of a deadlock in cClientHandle::SendChunkData()madmaxoft@gmail.com2012-08-311-13/+16
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@809 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented 1.3.2 protocol encryption using CryptoPP, up to Client Status packet (http://wiki.vg/Protocol_FAQ step 14)madmaxoft@gmail.com2012-08-305-6/+248
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@808 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a basic protocol recognizer and the base for 1.3.2 protocol.madmaxoft@gmail.com2012-08-3011-42/+658
| | | | | | Also fixed a few type-related warnings. git-svn-id: http://mc-server.googlecode.com/svn/trunk@805 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cProtocol handles the initial handshake up to player loginmadmaxoft@gmail.com2012-08-306-69/+61
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@804 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Gotten completely rid of all cPackets. The cProtocol125 class now does all the parsing and writing by itself.madmaxoft@gmail.com2012-08-2970-2253/+297
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@802 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a check if torch is placed on the bottom face, temporarily fix the assert.madmaxoft@gmail.com2012-08-291-0/+4
| | | | | | Server ignores the placement, but doesn't send correct block to the client. Also, the server should try placing the torch on a side, if available. git-svn-id: http://mc-server.googlecode.com/svn/trunk@801 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Moved all packet-serializing code into cProtocol125; half the packet classes aren't needed anymore.madmaxoft@gmail.com2012-08-2893-2511/+812
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@800 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a few warningsmadmaxoft@gmail.com2012-08-283-6/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@799 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Cut out all packet handling to a separate cProtocol descendantmadmaxoft@gmail.com2012-08-2725-1185/+1685
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@796 0a769ca7-a7f5-676a-18bf-c427514a06d6
* git-svn-id: http://mc-server.googlecode.com/svn/trunk@795 0a769ca7-a7f5-676a-18bf-c427514a06d6madmaxoft@gmail.com2012-08-2614-153/+247
|
* Turned a common assert into a warning logmadmaxoft@gmail.com2012-08-261-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@794 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added basic noteblocks, finished sign storage in Anvil (patch contributed by l0udPL)madmaxoft@gmail.com2012-08-269-7/+316
| | | | | | 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
* Fixed compilation problem on Linux (FS case sensitivity sux)madmaxoft@gmail.com2012-08-261-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@791 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cSocket doesn't use cPackets.madmaxoft@gmail.com2012-08-256-49/+13
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@790 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cWorld doesn't use cPackets.madmaxoft@gmail.com2012-08-259-43/+174
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@789 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed cPackets from cChunk.madmaxoft@gmail.com2012-08-256-124/+155
| | | | | | Also decoupled a possible deadlock in player login code. git-svn-id: http://mc-server.googlecode.com/svn/trunk@788 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed packet includes where they're not neededmadmaxoft@gmail.com2012-08-243-6/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@787 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cPickup doesn't use cPackets.madmaxoft@gmail.com2012-08-2419-81/+175
| | | | | | Also, Lua API change, OnCollectItem -> OnCollectPickup; first param is cPlayer to match other callbacks. git-svn-id: http://mc-server.googlecode.com/svn/trunk@786 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Inventory doesn't use cPacketsmadmaxoft@gmail.com2012-08-241-12/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@784 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Monster classes don't use cPackets. Chat messages are sent / broadcast without cPackets. BlockEntities don't use cPackets.madmaxoft@gmail.com2012-08-2439-421/+557
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@783 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added plugin name to deprecation messagesmadmaxoft@gmail.com2012-08-236-241/+45
| | | | | | Removed duplicate inheritance of m_Name in cPlugin_NewLua by making cWebPlugin interface-only git-svn-id: http://mc-server.googlecode.com/svn/trunk@782 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed Bug #237lapayo94@gmail.com2012-08-232-0/+29
| | | | | | Sign placement git-svn-id: http://mc-server.googlecode.com/svn/trunk@781 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed WebAdmin showing tab names (thanks for pointing it out Lapayo)faketruth2012-08-233-17/+14
| | | | | | Changed some std::string to AString git-svn-id: http://mc-server.googlecode.com/svn/trunk@780 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a RateCompareString function to StringUtilsfaketruth2012-08-237-83/+220
| | | | | | | | | | | Created a preprocessor template (define) for DoWith* functions Exported cWorld::FindAndDoWithPlayer(), cRoot::FindAndDoWithPlayer() and cRoot::ForEachPlayer() to Lua Added a function FindAndDoWithPlayer to cRoot and cWorld. It takes a part of a player name and finds a single player based on that. Fixed Core's MOTD to contain the correct URL to the MCServer site Fixed Core /kick command Fixed Core's WebAdmin kick git-svn-id: http://mc-server.googlecode.com/svn/trunk@779 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a documentation for block and item handlerslapayo94@gmail.com2012-08-225-15/+44
| | | | | | | Probably fixed dependencies on cWebPlugin_Lua Fixed VC2010 Project file git-svn-id: http://mc-server.googlecode.com/svn/trunk@778 0a769ca7-a7f5-676a-18bf-c427514a06d6
* WebAdmin should not cause crashes anymorefaketruth2012-08-2215-359/+360
| | | | | | | | Got rid of cWebPlugin_Lua cPlugin_Lua is also a cWebPlugin now, so plugins don't need a separate cWebPlugin object Changed some stuff to use AString instead of char* git-svn-id: http://mc-server.googlecode.com/svn/trunk@777 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed cWebPlugin_Lua being not thread safe. And I don't know why, but it still crashes in Lua sometimes o_Ofaketruth2012-08-222-0/+3
| | | | | | WebAdmin chat now supports infinite number of chat messages (only client side). The client requests only NEW chat messages from the server. git-svn-id: http://mc-server.googlecode.com/svn/trunk@776 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Chat history limit on the WebAdmin chatfaketruth2012-08-223-37/+34
| | | | | | | | Did some refactoring on the JavaScript side of the WebAdmin chat Got rid of cRoot::sRootState Fixed a crash on the WebAdmin when a page is loaded before a world exists git-svn-id: http://mc-server.googlecode.com/svn/trunk@775 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Now it's possible to only show the plugin's WebAdmin content without the template around it by going to /~webadmin/ instead of /webadmin/faketruth2012-08-221-3/+9
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@772 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Window, Chest, Furnace and Pawn are not using cPackets at allmadmaxoft@gmail.com2012-08-1917-88/+211
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@762 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Almost all packets' handling is now rewritten not to use cPacket descendants elsewhere than in cClientHandle.madmaxoft@gmail.com2012-08-1940-507/+1089
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@761 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Android: Do not create an input thread for Androidfaketruth2012-08-191-4/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@760 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Another handful of packets rewritten.madmaxoft@gmail.com2012-08-1925-183/+376
| | | | | | Also changed cItem::m_ItemID into m_ItemType of type short. Easier handling. m_ItemID kept for compatibility reasons (Lua-interface etc.) git-svn-id: http://mc-server.googlecode.com/svn/trunk@756 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed Bug #236lapayo94@gmail.com2012-08-1910-12/+30
| | | | | | Workbench, Chest and Furnace are usable again git-svn-id: http://mc-server.googlecode.com/svn/trunk@755 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Android: Showing last MCServer related logcat messagefaketruth2012-08-191-1/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@753 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Chat packet handled in the new way; fixed missing packet sending for inventory slot.madmaxoft@gmail.com2012-08-1818-208/+211
| | | | | | Again, API change! cPlugin:OnChat() has had its parameters swapped, to match all the other callbacks - Player first, Message second git-svn-id: http://mc-server.googlecode.com/svn/trunk@751 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Packet refactoring, phase two, partial. Rewritten a few packet handling functions not to use cPacket-descendant objects.madmaxoft@gmail.com2012-08-1848-2307/+1900
| | | | | | This breaks plugin API! Plugins need to modify their hook functions to match those used in the Core plugin git-svn-id: http://mc-server.googlecode.com/svn/trunk@750 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Android: Pressing back button sends stop command to serverfaketruth2012-08-182-1/+3
| | | | | | | | Android: ToJava can call functions on Java by using JNI Android: Plugins work Android: Added android specific files to VS2008 project, but they are excluded from compiling git-svn-id: http://mc-server.googlecode.com/svn/trunk@747 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed an assert in bucket placementmadmaxoft@gmail.com2012-08-171-19/+34
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@746 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Packets now parse themselves from a cByteBuffer object (1st part of packeting rewrite, http://forum.mc-server.org/showthread.php?tid=524 )madmaxoft@gmail.com2012-08-1756-352/+676
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@744 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MCServer should run just fine on Android now :Dfaketruth2012-08-165-10/+20
| | | | | | The server is also stoppable from Android git-svn-id: http://mc-server.googlecode.com/svn/trunk@743 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Windows compilation fix after Android changesmadmaxoft@gmail.com2012-08-165-20/+21
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@742 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Compiles on Android! Added Eclipse project, import it into your workspace and it should be runnable on Android!faketruth2012-08-157-8/+42
| | | | | | | | | Disabled Squirrel for Android cLog now logs to Android LogCat as well Fixed Lua so it compiles on Android Removed/commented out exceptions in JsonCpp so it compiles on Android git-svn-id: http://mc-server.googlecode.com/svn/trunk@741 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added temporary debug statistics of the RelEntMoveLook packet removal efficiencymadmaxoft@gmail.com2012-08-151-0/+12
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@740 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Console command "chunkstats" now lists each world and also totalsmadmaxoft@gmail.com2012-08-153-26/+57
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@739 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a true "all chunks saved" message for the save-all console command (FS #215)madmaxoft@gmail.com2012-08-154-3/+32
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@738 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fix torches broken in rev 724madmaxoft@gmail.com2012-08-142-12/+13
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@737 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Crafting window crafting result shift-click handlingmadmaxoft@gmail.com2012-08-141-9/+53
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@736 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Crafting window crafting grid shift-click handlingmadmaxoft@gmail.com2012-08-142-5/+107
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@735 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Shift-clicking the crafting grid in curvival inventory tries placing things in inventory first, then the hotbar.madmaxoft@gmail.com2012-08-141-0/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@734 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a few more stackable itemsmadmaxoft@gmail.com2012-08-142-14/+29
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@733 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Shift-click completed in survival inventory windowmadmaxoft@gmail.com2012-08-142-2/+37
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@732 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made cobwebs transparentmadmaxoft@gmail.com2012-08-141-8/+9
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@731 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added partial shift+click handling to the survival inventorymadmaxoft@gmail.com2012-08-118-50/+366
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@730 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Updated Bindings to match the new armor categories and torch metasmadmaxoft@gmail.com2012-08-112-2/+127
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@729 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added some stackable items in cItemHandler::GetMaxStackSize()madmaxoft@gmail.com2012-08-111-0/+15
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@728 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added functions for armor item categoriesmadmaxoft@gmail.com2012-08-111-0/+52
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@727 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added cItemHandler::GetMaxStackSize() with a very basic implementationmadmaxoft@gmail.com2012-08-112-0/+28
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@726 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed a useless include file.madmaxoft@gmail.com2012-08-114-25/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@725 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Use named constants instead of magic values - block digging direction and torch placementmadmaxoft@gmail.com2012-08-103-109/+98
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@724 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed cacti and sugarcane not being placeable on themselves (FS #234, patch submitted by STR_Warrior)madmaxoft@gmail.com2012-08-102-21/+50
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@723 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a crash in creative inventory (FS 235, patch submitted by l0udPL)madmaxoft@gmail.com2012-08-106-48/+76
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@722 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Torch placement handling (contributed by l0udPL)madmaxoft@gmail.com2012-08-092-9/+108
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@721 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Prepared WindowOwner class hierarchy for minecart with chest.madmaxoft@gmail.com2012-08-076-18/+94
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@719 0a769ca7-a7f5-676a-18bf-c427514a06d6
* A bit of cleanup and documentation around the UI window handlingmadmaxoft@gmail.com2012-08-0613-86/+143
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@716 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed runtime crashes in generator on Raspberry Pi (damn picky gcc!)madmaxoft@gmail.com2012-08-062-42/+42
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@714 0a769ca7-a7f5-676a-18bf-c427514a06d6
* BLOCKTYPE signedness change - fixed more detailsmadmaxoft@gmail.com2012-08-064-5/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@713 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a few gcc pedantic warnings; made BLOCKTYPE an unsigned char type.madmaxoft@gmail.com2012-08-0321-120/+333
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@711 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Ravines: implemented proper caching - another 10 % in generator speedup :)madmaxoft@gmail.com2012-07-292-12/+61
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@709 0a769ca7-a7f5-676a-18bf-c427514a06d6
* DistortedVoronoi BiomeGen now uses 4x4 linear interpolation for distortion, 50 % speed increase in the chunk generator with a hardly noticeable change in biome shapes.madmaxoft@gmail.com2012-07-293-4/+98
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@708 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Chunk generator outputs its performance in chunks per secondmadmaxoft@gmail.com2012-07-291-0/+28
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@707 0a769ca7-a7f5-676a-18bf-c427514a06d6
* BiomeGen: cca 3% speedupmadmaxoft@gmail.com2012-07-291-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@706 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed *nix compilation for md5.cppmadmaxoft@gmail.com2012-07-291-0/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@705 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed warnings in item handlers - items' damage value is a short, but block meta is only a NIBBLETYPE. Also slight cleanup.madmaxoft@gmail.com2012-07-2914-142/+307
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@704 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed warnings in md5madmaxoft@gmail.com2012-07-291-4/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@703 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a few gcc warningsmadmaxoft@gmail.com2012-07-283-4/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@701 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Caves and Ravines: fixed compilation and linking issues on gccmadmaxoft@gmail.com2012-07-282-4/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@699 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed bottom lava from caves generator, added a new finish generator BottomLava for that. Also fixed a slight error in SameBlock composition generator cfgmadmaxoft@gmail.com2012-07-274-25/+69
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@698 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Basic WormNestCaves are workingmadmaxoft@gmail.com2012-07-271-17/+45
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@697 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Initial WormNestCaves commit. Won't generate caves, only the schematic for caves' centers.madmaxoft@gmail.com2012-07-273-57/+621
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@696 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a possible crash in Ravines.madmaxoft@gmail.com2012-07-271-3/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@695 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a new cave generator: DualRidgeCaves ( somewhat like http://www.gamedev.net/blog/33/entry-2227887-more-on-minecraft-type-world-gen/ )madmaxoft@gmail.com2012-07-225-91/+498
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@694 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Ravines: removed an unneeded membermadmaxoft@gmail.com2012-07-222-2/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@693 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Noise: made interpolation methods public static, so that they can be used by the outside world as wellmadmaxoft@gmail.com2012-07-222-6/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@692 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a (disabled) debugging code for anvil underground overviewing, useful for exploring MC cave generation stylemadmaxoft@gmail.com2012-07-211-4/+15
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@690 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Grass blockticking fixmadmaxoft@gmail.com2012-07-211-30/+32
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@689 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Slight cChunk optimizationmadmaxoft@gmail.com2012-07-211-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@688 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented the missing HOOK_PLAYER_SPAWN hook (although its name is not too good, should be PLAYER_AUTH)madmaxoft@gmail.com2012-07-211-0/+17
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@687 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Ravines: implemented linear finishing, now the ravine walls are smooth.madmaxoft@gmail.com2012-07-201-1/+42
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@685 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Ravines: removed a debugging feature from release buildsmadmaxoft@gmail.com2012-07-191-0/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@684 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Ravines: initial implementation, randomized shapes are working, but still needs some workmadmaxoft@gmail.com2012-07-194-0/+483
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@683 0a769ca7-a7f5-676a-18bf-c427514a06d6
* SocketThreads: hopefully fixed MacOSX failure with client ping crashing the servermadmaxoft@gmail.com2012-07-181-1/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@681 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed incompatibility to apples c++ compiler...lapayo94@gmail.com2012-07-174-8/+16
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@680 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Simple health regeneration systemlapayo94@gmail.com2012-07-1711-143/+208
| | | | | | Prepared for food git-svn-id: http://mc-server.googlecode.com/svn/trunk@679 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed compilation on OS X and maybe *nix as wellmadmaxoft@gmail.com2012-07-171-1/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@678 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Some code improvementslapayo94@gmail.com2012-07-1674-341/+259
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@677 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a copypasta error in previous commitmadmaxoft@gmail.com2012-07-161-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@676 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Changed GetBlockMeta to return NIBBLETYPE instead of charmadmaxoft@gmail.com2012-07-1611-12/+12
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@675 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a compilation warningmadmaxoft@gmail.com2012-07-161-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@674 0a769ca7-a7f5-676a-18bf-c427514a06d6
* fixed redstone repeater placementlapayo94@gmail.com2012-07-162-0/+30
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@673 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed some small bugs :)lapayo94@gmail.com2012-07-169-38/+103
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@672 0a769ca7-a7f5-676a-18bf-c427514a06d6
* A new Block handling system :olapayo94@gmail.com2012-07-1589-1242/+3033
| | | | | | | | | | It was really a lot of work :D Took me the complete weekend :D Would really like to here your opinion on this =) The aim of this is to put all the actions for one block in one place so it is not spread around the source. (ToPickup, Action in cWorld, Action in cChunk, Action here, action there :D) git-svn-id: http://mc-server.googlecode.com/svn/trunk@671 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cThread uses AString instead of char * for name (fixed a warning)madmaxoft@gmail.com2012-07-152-8/+18
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@670 0a769ca7-a7f5-676a-18bf-c427514a06d6
* World threads are stopped before the plugin mgr for clean exit (FS #228)madmaxoft@gmail.com2012-07-154-4/+32
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@669 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Disabled MSVC deprecation / security warnings for external libraries - we expect them to be secure enoughmadmaxoft@gmail.com2012-07-151-0/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@668 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed the deprecated confusing E_BLOCK_WOODmadmaxoft@gmail.com2012-07-153-4/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@667 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Leaves blocks allowed one more block of distance from a log block before they decaymadmaxoft@gmail.com2012-07-151-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@666 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Basic jungle trees with vines, efficient trees handling.madmaxoft@gmail.com2012-07-155-186/+322
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@665 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed case comparison - used the builtin functionmadmaxoft@gmail.com2012-07-132-13/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@663 0a769ca7-a7f5-676a-18bf-c427514a06d6
* fixed /tp commandlapayo94@gmail.com2012-07-132-1/+13
| | | | | | made cWorld::DoWithPlayer case insensitive git-svn-id: http://mc-server.googlecode.com/svn/trunk@662 0a769ca7-a7f5-676a-18bf-c427514a06d6
* The gamemode is now only saved if it is different from the current gamemode.lapayo94@gmail.com2012-07-133-4/+15
| | | | | | Default gamemode now depends on the joined world, not on the default world git-svn-id: http://mc-server.googlecode.com/svn/trunk@661 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Save last gamemodelapayo94@gmail.com2012-07-122-1/+11
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@660 0a769ca7-a7f5-676a-18bf-c427514a06d6
* fixed bug http://www.mc-server.org/support/index.php?do=details&task_id=212&project=2lapayo94@gmail.com2012-07-121-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@658 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Missed a filelapayo94@gmail.com2012-07-121-1/+1
| | | | | | Patched the server to allow shutdown from other threads git-svn-id: http://mc-server.googlecode.com/svn/trunk@657 0a769ca7-a7f5-676a-18bf-c427514a06d6
* http://www.mc-server.org/support/index.php?do=details&task_id=153lapayo94@gmail.com2012-07-124-4/+11
| | | | | | + simple code improvements git-svn-id: http://mc-server.googlecode.com/svn/trunk@656 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed some bugs within the squirrel plugin system.lapayo94@gmail.com2012-07-103-11/+51
| | | | | | Implemented feature request www.mc-server.org/support/index.php?do=details&task_id=53 git-svn-id: http://mc-server.googlecode.com/svn/trunk@655 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Authentication should work now..lapayo94@gmail.com2012-07-101-7/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@654 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed some debug messages and removed an old filelapayo94@gmail.com2012-07-092-155/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@653 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Improved Squirrel Bindingslapayo94@gmail.com2012-07-0910-12/+334
| | | | | | Added AddCommand / BindCommand for Squirrel Plugins git-svn-id: http://mc-server.googlecode.com/svn/trunk@652 0a769ca7-a7f5-676a-18bf-c427514a06d6
* BlockArea name change revertedlapayo94@gmail.com2012-07-096-5/+5
| | | | | | fixed VS2008 building git-svn-id: http://mc-server.googlecode.com/svn/trunk@649 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Squirrel Pluginslapayo94@gmail.com2012-07-0819-190/+759
| | | | | | | | | I worked a little bit on the squirrel Bindings They work now on linux and windows :) (OSX is untested, but should work also) but they are very limited at the moment. (Only made OnChat working) I also fixed some small bugs. git-svn-id: http://mc-server.googlecode.com/svn/trunk@648 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a lilypad finishermadmaxoft@gmail.com2012-07-033-1/+110
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@647 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Temporary jungle trees (swamp-like), based on code by STR_Warrior). Also vines don't overwrite leaves anymore.madmaxoft@gmail.com2012-07-023-2/+51
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@646 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Leaves decay adjusted to 4 blocks in between the leaves and the log, instead of previous 3madmaxoft@gmail.com2012-07-021-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@645 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Leaves decay properly - if they are not connected to a logmadmaxoft@gmail.com2012-07-023-32/+123
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@644 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Only apple leaves can drop applesmadmaxoft@gmail.com2012-07-021-1/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@643 0a769ca7-a7f5-676a-18bf-c427514a06d6
* BLOCKTYPE and NIBBLETYPE are finally exported in Lua API as numbers, not usertypesmadmaxoft@gmail.com2012-07-024-22/+36
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@642 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cBlockArea object added (with only minimal testing so far)madmaxoft@gmail.com2012-07-0210-39/+1840
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@641 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Patch from STR_Warrior, OreNest counts adjustmentmadmaxoft@gmail.com2012-07-021-5/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@640 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the cWorld::DoWithPlayer() function and exported it in the Lua API. Removed the obsolete cWorld::GetPlayer() function.madmaxoft@gmail.com2012-07-025-87/+107
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@639 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ChunkDef: Fixed getters taking a const ptrmadmaxoft@gmail.com2012-07-021-5/+11
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@638 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed json-related methods from Lua APImadmaxoft@gmail.com2012-06-193-75/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@634 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made ForEach API safer to use, now supports Destroy()-ing objects, too ( http://forum.mc-server.org/showthread.php?tid=434&pid=3513#pid3513 )madmaxoft@gmail.com2012-06-193-9/+18
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@633 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a possible crash when restarting / stopping the server.madmaxoft@gmail.com2012-06-191-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@632 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Crops aren't uprooted if farmland is dry.cedeel@gmail.com2012-06-181-3/+12
| | | | | | Vanilla behavior confirmed. git-svn-id: http://mc-server.googlecode.com/svn/trunk@630 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed the deprecated GetBlockEntity(), added several enumerators to replace it.madmaxoft@gmail.com2012-06-179-52/+396
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@629 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Logs completion of chunk saving (FS #215)cedeel@gmail.com2012-06-171-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@628 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Macro-ized the ForEachSomethingInChunk Lua glue code (will soon be used for block entities, too)madmaxoft@gmail.com2012-06-171-92/+95
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@627 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed leaves blockticking - must touch neighboring chunks, too, instead of self at wrong places.madmaxoft@gmail.com2012-06-172-23/+55
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@626 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed lighting for cake, fence, fence gates, glass pane, iron bars, iron door and wooden doormadmaxoft@gmail.com2012-06-164-4/+15
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@625 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Leaves: Applied patch by Luksor.cedeel@gmail.com2012-06-162-1/+25
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@624 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Quick fix to support authentication.cedeel@gmail.com2012-06-161-2/+11
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@623 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added new hooks: UPDATING_SIGN and UPDATED_SIGN. The first one is capable of changing the sign text by returning the new four lines along with the bool valuemadmaxoft@gmail.com2012-06-168-8/+451
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@622 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Proper kick reasons!cedeel@gmail.com2012-06-161-3/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@621 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Exported cWorld::ForEachEntity and cWorld::ForEachEntityInChunk; no idea if they actually workmadmaxoft@gmail.com2012-06-168-40/+216
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@620 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Lua binding for cVine fixedcedeel@gmail.com2012-06-164-73/+110
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@619 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Rewritten ForEach using #define-s, new ones can be added as a simple one-linermadmaxoft@gmail.com2012-06-154-168/+90
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@618 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Lit furnaces can be used by playersmadmaxoft@gmail.com2012-06-151-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@617 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Anvil: added support for signs (why was it still missing??)madmaxoft@gmail.com2012-06-153-3/+51
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@616 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Basic handling of vines. No growth yet.cedeel@gmail.com2012-06-152-13/+42
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@615 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed placing block on tall grass (FS #209)madmaxoft@gmail.com2012-06-151-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@614 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Only spawn nether mobs in nether biome.cedeel@gmail.com2012-06-151-20/+26
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@613 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed snow again, this time for real.cedeel@gmail.com2012-06-141-2/+17
| | | | | | I didn't realize the client would also try to replace the snow from the sides. git-svn-id: http://mc-server.googlecode.com/svn/trunk@612 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixes placing blocks on snow.cedeel@gmail.com2012-06-141-10/+21
| | | | | | Also a little formatting. git-svn-id: http://mc-server.googlecode.com/svn/trunk@611 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Renamed HOOK_WEATHER_CHANGE to HOOK_WEATHER_CHANGED, added the glue code for it to actually workmadmaxoft@gmail.com2012-06-148-7/+152
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@610 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a world parameter to HOOK_CHUNK_GENERATING.madmaxoft@gmail.com2012-06-148-52/+65
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@609 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Attempt to bring sanity to newlines across systems.cedeel@gmail.com2012-06-14330-70605/+70605
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@606 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added HOOK_WEATHER_CHANGE.cedeel@gmail.com2012-06-144-2/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@605 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Exported the ItemCategory functions and added a IsTool() function to it, for easy checking whether an item is a toolfaketruth2012-06-133-4/+198
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@603 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a BlockToPickup hook for modifying pickups when a player breaks a block.madmaxoft@gmail.com2012-06-1313-88/+636
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@602 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Modified ToLua additional script to allow multi-usertype virtual functionsmadmaxoft@gmail.com2012-06-131-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@601 0a769ca7-a7f5-676a-18bf-c427514a06d6
* I think the chunk generation hooks for Lua are pretty good now, though it might still need some tweakingfaketruth2012-06-134-35/+655
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@600 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Revamped the weather system.cedeel@gmail.com2012-06-134-32/+107
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@599 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added working crafting hooks HOOK_PRE_CRAFTING, HOOK_CRAFTING_NO_RECIPE and HOOK_POST_CRAFTINGmadmaxoft@gmail.com2012-06-1211-73/+637
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@598 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Updated the crafting recipes architecture to better support crafting hooks. Removed the old recipe file and implementation altogether.madmaxoft@gmail.com2012-06-1215-675/+1393
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@597 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed an errorcedeel@gmail.com2012-06-121-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@596 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Allow current itemscedeel@gmail.com2012-06-121-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@595 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added implementation of E_PLUGIN_CHUNK_GENERATING lua hookfaketruth2012-06-1110-25/+316
| | | | | | It crashes the server when a plugin actually overrides default behavior though... git-svn-id: http://mc-server.googlecode.com/svn/trunk@594 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a bug in crafting recipes - would consume multiple items of asterisked ingredients (FS #205)madmaxoft@gmail.com2012-06-091-18/+25
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@593 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Disallowed placing cacti in watermadmaxoft@gmail.com2012-06-091-0/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@592 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Snow cover breaks when the block below it is removed (FS #184).madmaxoft@gmail.com2012-06-091-1/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@591 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a forgotten ini file readmadmaxoft@gmail.com2012-06-091-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@590 0a769ca7-a7f5-676a-18bf-c427514a06d6
* More ini settings save their defaultsmadmaxoft@gmail.com2012-06-094-20/+18
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@588 0a769ca7-a7f5-676a-18bf-c427514a06d6
* World generator uses the new Ini interface; also set new defaults for the generator to match the best generation we currently havemadmaxoft@gmail.com2012-06-091-63/+57
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@587 0a769ca7-a7f5-676a-18bf-c427514a06d6
* New IniFile functionality: read value and set default if it isn't present (GetValueSet() ); used by cWorldmadmaxoft@gmail.com2012-06-093-56/+246
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@586 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Sugarcane and cactus max height can be set in world.ini.madmaxoft@gmail.com2012-06-095-8/+77
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@585 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Plants growable by bonemeal are settable in the world.ini. Default matches vanilla MC.madmaxoft@gmail.com2012-06-095-15/+88
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@584 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Cacti grow by themselves and by bonemealmadmaxoft@gmail.com2012-06-097-6/+83
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@583 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Bonemeal is consumed in survival mode when used on growable blocksmadmaxoft@gmail.com2012-06-094-10/+15
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@582 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Tall grass finally drops seedsmadmaxoft@gmail.com2012-06-091-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@581 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Biomal CompoGen now correctly produces sand in desert mountains, toomadmaxoft@gmail.com2012-06-081-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@580 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed random drops not occurring at allmadmaxoft@gmail.com2012-06-081-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@579 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Sugarcane grows and can be grown using bonemeal.madmaxoft@gmail.com2012-06-086-60/+132
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@578 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Simplify ifdef. Makes compiling possible on BSDcedeel@gmail.com2012-06-081-8/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@577 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Sugarcane and Pumpkins get placed (quite rarely) in the SprinkleSmallFoliage FinishGenmadmaxoft@gmail.com2012-06-085-39/+136
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@576 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Configurable classic composition generatorcedeel@gmail.com2012-06-089-61/+47
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@575 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Bonemeal works on crops, melons, pumpkins, saplings and grass. Plant growing has been refactored into separate functions callable from Lua, too.madmaxoft@gmail.com2012-06-0710-6/+286
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@573 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Nightbuild: bindings are automatically update before the buildmadmaxoft@gmail.com2012-06-071-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@572 0a769ca7-a7f5-676a-18bf-c427514a06d6
* BlockChecking split into a separate functionmadmaxoft@gmail.com2012-06-072-94/+98
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@571 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Repeaters' delays can be set by rclkmadmaxoft@gmail.com2012-06-078-4/+49
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@570 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Grass grows under vinesmadmaxoft@gmail.com2012-06-071-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@569 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Multiple packets are serialized in one request.madmaxoft@gmail.com2012-06-071-5/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@568 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a typo in grass spreading causing much of the "too many packets" error.madmaxoft@gmail.com2012-06-071-5/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@567 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added more statistics to the packet queue overfill problem.madmaxoft@gmail.com2012-06-071-2/+20
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@566 0a769ca7-a7f5-676a-18bf-c427514a06d6
* (Temporary) hotfix for the "too many packets" error - set the packet limit 5x higher.madmaxoft@gmail.com2012-06-071-1/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@565 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Snow drops snowballs only when mined with a shovelmadmaxoft@gmail.com2012-06-071-1/+11
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@564 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Grass spreads to adjacent dirt blocks. Doesn't check dest light yet.madmaxoft@gmail.com2012-06-062-17/+53
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@563 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Hopefully fixed lighting around chests and cropsmadmaxoft@gmail.com2012-06-061-0/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@562 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Item-dropping code rewritten and centralized - now there's only one place to modify if we want to split or merge same-item drops: cWorld:SpawnItemPickups(). Also, mined blocks can now drop more items, and they recognize if they're being mined by the correct tool.madmaxoft@gmail.com2012-06-0635-326/+1051
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@561 0a769ca7-a7f5-676a-18bf-c427514a06d6
* BlockIDs, ItemIDs and Metas updated, courtesy of Taugeshtumadmaxoft@gmail.com2012-06-061-5/+168
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@560 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed webadmin for the fixed stringsplittingmadmaxoft@gmail.com2012-06-051-140/+150
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@559 0a769ca7-a7f5-676a-18bf-c427514a06d6
* New hook, E_PLUGIN_CHUNK_GENERATED, called after each chunk is generated (the chunk is already present in cWorld)madmaxoft@gmail.com2012-06-0510-856/+287
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@558 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed tolua++ sources to consider AString a builtin string type. Fixed tolua++ VC projects for compilation with local Lua.madmaxoft@gmail.com2012-06-041-0/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@551 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed Linux compilation.cedeel@gmail.com2012-06-041-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@550 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the new recipe parser, parsing the crafting.txt file. Included are a few recipes. The old parser still works, but will be replaced soon.madmaxoft@gmail.com2012-06-0414-18917/+19801
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@549 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Updated zlib, added chat formatting, fixed upside down stairs and slabs, fixed makefiles, hopefully updated vc project filescedeel@gmail.com2012-06-049-18816/+18942
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@546 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Biomal composition gen: added the bedrock layer at the bottommadmaxoft@gmail.com2012-06-021-4/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@542 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the Biomal composition generator.madmaxoft@gmail.com2012-06-025-18/+283
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@541 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ClientHandle dumps the contents of all packets in the queue if the packet queue gets overloaded to the point of client-kicking. Use this to debug FS #197.madmaxoft@gmail.com2012-06-021-0/+63
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@540 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed Linux compilation complaining about min() and max(), hopefully forever. Use std::min() and std::max()madmaxoft@gmail.com2012-06-023-10/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@539 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a cHeiGenCache object for caching generated heightmaps. World generation is now about twice as fast as before Rev 535 :)madmaxoft@gmail.com2012-06-023-0/+143
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@538 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a cBioGenCache object for caching generated biomesmadmaxoft@gmail.com2012-06-023-0/+144
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@537 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the Biomal height generator, made it the default height generator.madmaxoft@gmail.com2012-06-026-6/+176
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@536 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added Lua function cRoot:ForEachWorld(), removed the obsolete cRoot:GetWorld() method (both C++ and Lua)madmaxoft@gmail.com2012-06-026-64/+137
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@534 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a nasty int overflow bug in blockticking code ( http://forum.mc-server.org/showthread.php?tid=457 )madmaxoft@gmail.com2012-06-011-3/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@533 0a769ca7-a7f5-676a-18bf-c427514a06d6
* DistortedVoronoi biome generatormadmaxoft@gmail.com2012-05-313-36/+67
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@532 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cWorld::UnloadUnusedChunks() exported to Luamadmaxoft@gmail.com2012-05-313-3/+37
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@531 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed melons and pumpkins generating in a wrong place.madmaxoft@gmail.com2012-05-311-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@530 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added more statistics to the "chunkstats" server console commandmadmaxoft@gmail.com2012-05-301-1/+19
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@528 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added support for SetNextBlockTick() function callable from Luamadmaxoft@gmail.com2012-05-308-20/+92
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@527 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Melon and pumpkin stems now grow melons and pumpkinsmadmaxoft@gmail.com2012-05-301-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@526 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed blocktick distributionmadmaxoft@gmail.com2012-05-302-18/+15
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@525 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Lua plugins can now query the world for various queue sizes ( http://forum.mc-server.org/showthread.php?tid=432 )madmaxoft@gmail.com2012-05-303-4/+142
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@524 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Seeds can now be planted and they grow (albeit too quickly and too non-uniformly, need to fix blocktick selection)madmaxoft@gmail.com2012-05-301-1/+28
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@523 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Farmland gets hydrated and dehydrated. Fixed an off-by-one error in neighbor-chunk manipulation.madmaxoft@gmail.com2012-05-302-3/+76
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@522 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a crash when chunks were loaded / generated with entities ( http://forum.mc-server.org/showthread.php?tid=450 )madmaxoft@gmail.com2012-05-301-26/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@521 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Farmland is created using a hoe on dirt or grass.madmaxoft@gmail.com2012-05-292-2/+16
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@520 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Refactored item-eating from cClientHandle into cPlayermadmaxoft@gmail.com2012-05-293-82/+72
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@519 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added code for the chunks to manipulate their neighbors while ticking. Also added some basic farming support - melon and pumpkin growing code. Untested and untestable so far, will test and fix later.madmaxoft@gmail.com2012-05-299-324/+439
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@518 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Cacti don't gather snowmadmaxoft@gmail.com2012-05-281-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@517 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Chests and Furnaces are now saved properly into Anvil scheme.madmaxoft@gmail.com2012-05-289-57/+210
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@516 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Ice finisher generator; fixed snow on water.madmaxoft@gmail.com2012-05-272-1/+33
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@515 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a snow finisher generatormadmaxoft@gmail.com2012-05-271-1/+25
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@514 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added some useful biome synonyms; added block property IsSnowable; alphabetically sorted block property settingmadmaxoft@gmail.com2012-05-273-53/+85
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@513 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Voronoi has a minimum cell size of 4 blocks now, to avoid some extreme corner-casesmadmaxoft@gmail.com2012-05-271-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@512 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a voronoi biome generator (#180)madmaxoft@gmail.com2012-05-273-0/+91
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@511 0a769ca7-a7f5-676a-18bf-c427514a06d6
* DebugBiomes composition generator now uses only blocks suitable for terrain (from an internal list)madmaxoft@gmail.com2012-05-271-1/+28
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@510 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added wool and netherrack block IDsmadmaxoft@gmail.com2012-05-273-4/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@509 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Restructured biome generators with a list of available biomes to use a common ancestor (preparation for Voronoi and DistortedVoronoi)madmaxoft@gmail.com2012-05-272-11/+30
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@508 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ConstantBiome parsing now uses the string-to-biome conversion (#183)madmaxoft@gmail.com2012-05-271-2/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@507 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the CheckerBoardBiomes parameter for setting biomes that CheckerBoard generates (#179). Added string-to-biome conversion (#183). Added OreNests to default Structures configuration.madmaxoft@gmail.com2012-05-275-8/+109
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@506 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Improved logging on mis-configuration in cPlayer and cWorldStoragemadmaxoft@gmail.com2012-05-272-2/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@505 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Merged the composable_generator branch into the trunkmadmaxoft@gmail.com2012-05-2576-2841/+5199
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@504 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed a debugging construct that accidentally leaked into previous commitmadmaxoft@gmail.com2012-05-081-8/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@485 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fast NBT writer (Saving a chunk is now about twice as fast)madmaxoft@gmail.com2012-05-084-73/+364
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@484 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed two "bottlenecks" found using profiling - MakeIndex() instead of MakeIndexNoCheck()madmaxoft@gmail.com2012-05-081-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@483 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fast NBT Parser (loading a chunk is now about 10 times faster)madmaxoft@gmail.com2012-05-076-88/+651
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@481 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Updated version text to include 1.2.5; ChunkSender doesn't serialize chunk packets for chunks without a clientmadmaxoft@gmail.com2012-05-072-1/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@480 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Anvil storage writing (Basic storage is working, NO entities except for chests are working! Don't use for real servers)madmaxoft@gmail.com2012-04-2311-35/+431
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@475 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Lapis gets generated (thanks, Fordship)madmaxoft@gmail.com2012-04-151-0/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@463 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Moved the commands /coords /viewdistance and /regeneratechunks from cServer.cpp to the Core pluginfaketruth2012-04-115-64/+11
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@457 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added error messages to socket closing error conditions for *nixmadmaxoft@gmail.com2012-04-101-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@456 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the permission "builtin.regeneratechunk" needed for regenerating chunks using a command.madmaxoft@gmail.com2012-04-101-0/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@455 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the "/regeneratechunk" command that regenerates either current chunk or a chunk specified with x, z parameters. TODO: permissions - we don't want guests erasing our chunks!madmaxoft@gmail.com2012-04-1010-37/+104
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@454 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Compression error -5 fixmadmaxoft@gmail.com2012-04-041-2/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@452 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a parsing error in NBT classes (doubles weren't parsing correctly);madmaxoft@gmail.com2012-04-042-1/+227
| | | | | | Added a working NBT serialization (verified in another project) git-svn-id: http://mc-server.googlecode.com/svn/trunk@451 0a769ca7-a7f5-676a-18bf-c427514a06d6
* StringUtils' GetDirectoryContents() now accepts empty string and interprets it as "current directory" (*nix fix)madmaxoft@gmail.com2012-04-041-1/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@450 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Logging OnBlockDig and OnBlockPlace only in Debug mode ( http://mc-server.org/support/index.php?do=details&task_id=133&project=2 )madmaxoft@gmail.com2012-04-031-2/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@447 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Attempted a fix for cSocket's Bind() call on MacOS-based systems (initializing the whole sockaddr_in structure with zeroes first)madmaxoft@gmail.com2012-04-031-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@446 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cSocket.cpp should also compile on Mac now (I hope)faketruth2012-03-311-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@443 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a crash when fluid would try to go below the world (y = -1)faketruth2012-03-311-4/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@442 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Got rid of sPluginManagerStatefaketruth2012-03-285-70/+90
| | | | | | | | /pluginlist now also shows the number of active plugins Fixed crash caused by lingering bound Lua commands http://forum.mc-server.org/showthread.php?tid=212&pid=2541#pid2541 Added error messages when binding commands to an invalid plugin git-svn-id: http://mc-server.googlecode.com/svn/trunk@440 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a possible crash in ChunkSender - a client would be reported as removed but still would be in the internal queue.madmaxoft@gmail.com2012-03-272-2/+16
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@438 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed the unneeded header wdirent.hmadmaxoft@gmail.com2012-03-261-369/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@437 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the supported client version to banner; shamelessly added myself to the authors list ;)madmaxoft@gmail.com2012-03-263-4/+13
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@436 0a769ca7-a7f5-676a-18bf-c427514a06d6
* A globally-accessible OS-independent GetDirectoryContents() function for listing all objects in a folder as an AStringListmadmaxoft@gmail.com2012-03-256-85/+81
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@433 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed the Log altogether (doesn't use NULL-to-va_list assignment, compiles for RaspberryPi)madmaxoft@gmail.com2012-03-252-14/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@432 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the new 1.2.4's PlayerAbilities packet; restructures packet files for less files, more dense.madmaxoft@gmail.com2012-03-2414-382/+398
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@431 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Protocol version bumped up to 29 (MC 1.2.4), seems to work.madmaxoft@gmail.com2012-03-241-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@430 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed the split between 1.2.3 and 1.1, left only 1.2.3 codemadmaxoft@gmail.com2012-03-2412-226/+10
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@429 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Reverted the previous commit - it is useless, since entities still depend heavily on cWorldmadmaxoft@gmail.com2012-03-2418-258/+47
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@428 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Encapsulated 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.com2012-03-2318-47/+258
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@427 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a deadlock by removing clients from all chunks upon their exit, not using the clients chunklists.madmaxoft@gmail.com2012-03-226-22/+51
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@426 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed player heads always pointing north (new EntityHeadLook packet)madmaxoft@gmail.com2012-03-196-15/+81
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@424 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a warning in a Release buildmadmaxoft@gmail.com2012-03-191-1/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@423 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made some logging output debug-onlymadmaxoft@gmail.com2012-03-191-6/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@421 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Basic cWindow thread-safetymadmaxoft@gmail.com2012-03-196-63/+132
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@420 0a769ca7-a7f5-676a-18bf-c427514a06d6
* SocketThreads: proper thread finishing sequence (doesn't trigger AppVerifier checks :)madmaxoft@gmail.com2012-03-191-0/+9
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@419 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Got rid of cPlayer::sPlayerStatefaketruth2012-03-162-88/+47
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@418 0a769ca7-a7f5-676a-18bf-c427514a06d6
* That didn't work.. I forgot some cChunk functions were changed. Now it should compile againfaketruth2012-03-162-1/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@417 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Exposed a function to Lua to get a block's sky light valuefaketruth2012-03-166-33/+72
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@416 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Actually commented out the Anvil terrain inversion codemadmaxoft@gmail.com2012-03-141-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@415 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Anvil 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.com2012-03-141-0/+24
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@414 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Unified the chunk data to use the BLOCKDATA datatype.madmaxoft@gmail.com2012-03-1416-33/+52
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@413 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Split chunk data into separate arrays; decoupled most sources from cChunk.h dependencymadmaxoft@gmail.com2012-03-1433-592/+799
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@411 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed the server not waiting for the world to save completely before stoppingmadmaxoft@gmail.com2012-03-131-0/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@410 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed an unwarranted assert in cChunkSendermadmaxoft@gmail.com2012-03-131-2/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@409 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Small optimizations in the SetNibble() and GetNibble() functions; removed unused lighting functions from cChunkmadmaxoft@gmail.com2012-03-132-96/+23
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@408 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a few warnings, lifted up the block interactinos limit to 20 (10 was not enough for Creative mode)madmaxoft2012-03-133-21/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@407 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Gotten rid of stricmp MSVC warningsmadmaxoft@gmail.com2012-03-121-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@406 0a769ca7-a7f5-676a-18bf-c427514a06d6
* *nix compilation fix (for rev 402)madmaxoft@gmail.com2012-03-121-4/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@405 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a flat terrain generator with settable terrain heightmadmaxoft@gmail.com2012-03-125-10/+148
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@404 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed MapChunk packets to include (fake) biome data, makes clients happymadmaxoft@gmail.com2012-03-125-15/+55
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@403 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixing compilation on Drawin 9 / MacOS Xmadmaxoft@gmail.com2012-03-123-14/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@402 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Stopping the ChunkSender upon server stopmadmaxoft@gmail.com2012-03-113-2/+15
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@401 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a small bug in chunk version check D:faketruth2012-03-111-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@400 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Not sending chunks to the client twicemadmaxoft@gmail.com2012-03-115-24/+40
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@399 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Anvil format: fixed loading with XZY orderingmadmaxoft@gmail.com2012-03-111-11/+9
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@398 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a few obsoleted functionsmadmaxoft@gmail.com2012-03-1012-49/+83
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@397 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Completely integrated the new axis ordering. Will update worlds accordinglyfaketruth2012-03-103-2/+151
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@396 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Anvil support: compatible with both chunk orderingsmadmaxoft@gmail.com2012-03-101-0/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@395 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Using references instead of pointers for sending packetsmadmaxoft@gmail.com2012-03-108-26/+24
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@394 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed mob spawn packet for 1.2 client, now client doesn't bail out when mobs are turned onmadmaxoft@gmail.com2012-03-103-8/+11
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@393 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed *nix threading issue;madmaxoft@gmail.com2012-03-1011-88/+93
| | | | | | | Thread objects now use variable names consistent with MCS convention; Fixed a few *nix threading cornercases git-svn-id: http://mc-server.googlecode.com/svn/trunk@392 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Was using "#else if" which is not valid apparently, now using "#elif"faketruth2012-03-104-6/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@391 0a769ca7-a7f5-676a-18bf-c427514a06d6
* You can change axis ordering by setting AXIS_ORDER to AXIS_ORDER_XZY in cChunk.h !THIS WILL SCREW UP YOUR WORLDS THOUGH!faketruth2012-03-105-15/+46
| | | | | | Still need to update world storage schemes, converters and such git-svn-id: http://mc-server.googlecode.com/svn/trunk@390 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Using more of the index functions in cChunk, so it should be easy enough to flip the axis ordering nowfaketruth2012-03-103-82/+94
| | | | | | Added some more functions that use Vector3i for block coordinates in cChunk git-svn-id: http://mc-server.googlecode.com/svn/trunk@389 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cClientHandles have a unique ID now to distinguish themfaketruth2012-03-0924-71/+224
| | | | | | | | | | | cAuthenticator uses unique client ID for authentication Changed the kick function used by cAuthenticator to take a client ID instead of name, so the correct user is kicked Using callback reference instead of pointer in GetChunkData and affiliates GetChunkData returns false when failed, and true when succeeded Renamed entity type enums to something prettier Exposed some functions to Lua git-svn-id: http://mc-server.googlecode.com/svn/trunk@388 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Using the _DEBUG macro for *nix debug builds as well; trying to force 8-byte alignment on critical sections ( http://forum.mc-server.org/showthread.php?tid=384 )madmaxoft@gmail.com2012-03-096-28/+57
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@387 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Anvil format: loading chests' contents.madmaxoft@gmail.com2012-03-074-11/+240
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@385 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ChunkSender: Fixed a potential crash: removing a client means that no Send() is called on that client anymoremadmaxoft@gmail.com2012-03-072-16/+27
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@384 0a769ca7-a7f5-676a-18bf-c427514a06d6
* WSSCompact: fixed switched version values (!); removed unused methodsmadmaxoft@gmail.com2012-03-072-4/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@383 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed bug where cPlayer's cClientHandle was used after cPlayer was destroyed http://forum.mc-server.org/showthread.php?tid=380faketruth2012-03-0713-107/+306
| | | | | | | | | Also removed the SetClientHandle() function from cPlayer Added a Destroyed() function to cEntity that is called ONLY ONCE after an entity has been 'destroyed' Cleaned up some code, using enums for GameMode and Weather and replaced some 'const char *' with 'const AString &' Exposed some more functions to Lua git-svn-id: http://mc-server.googlecode.com/svn/trunk@382 0a769ca7-a7f5-676a-18bf-c427514a06d6
* No need to reset zlib (copypasta error)madmaxoft@gmail.com2012-03-071-1/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@381 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the Anvil level format (MCA) support, read-only for the time being. Now MCS can read your worlds from the official server :)madmaxoft@gmail.com2012-03-076-2/+1258
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@380 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Sticky pistons should work as well nowfaketruth2012-03-061-0/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@379 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a little documentation on ChunkSender.madmaxoft@gmail.com2012-03-061-1/+14
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@378 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed redstone repeater bug where it could not get the direction when it has delay bits setfaketruth2012-03-061-3/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@377 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ChunkSender won't send NULL packets anymoremadmaxoft@gmail.com2012-03-061-1/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@376 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed rev 373 not compiling on linuxmadmaxoft@gmail.com2012-03-061-0/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@375 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Yay redstone repeaters!faketruth2012-03-064-49/+355
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@374 0a769ca7-a7f5-676a-18bf-c427514a06d6
* World storage names are now case-INsensitivemadmaxoft@gmail.com2012-03-061-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@373 0a769ca7-a7f5-676a-18bf-c427514a06d6
* That was not a good place to use ARRAYCOUNT()madmaxoft@gmail.com2012-03-061-5/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@372 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed rev368's ChunkSender, now sends properly even chunks that are loaded. Fixed a deadlock in cClientHandle vs TickThread over cClientHandle::m_CSChunkListsmadmaxoft@gmail.com2012-03-065-26/+155
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@371 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed bug FS#157 http://mc-server.org/support/index.php?do=details&task_id=157faketruth2012-03-061-5/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@370 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a potential deadlock ( http://forum.mc-server.org/showthread.php?tid=374 )madmaxoft@gmail.com2012-03-051-4/+9
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@369 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Using a fixed-size array instead of AString for conversion. Conversion now runs ~10x faster :) (in debug mode)madmaxoft@gmail.com2012-03-051-25/+29
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@368 0a769ca7-a7f5-676a-18bf-c427514a06d6
* WSS conversion quickfix: reserving memory so that AString doesn't need to re-alloc (but still uses painfully slow push_back()s )madmaxoft@gmail.com2012-03-051-0/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@366 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ChunkSender: Chunks are now compressed and sent to clients from a separate threads, proper passive waiting between threads. Not much tested, just appears to work :)madmaxoft@gmail.com2012-03-0518-229/+453
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@365 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed redstone debugging: powered dirt blocks change into stonefaketruth2012-03-041-8/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@364 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Yay tiny commits XD fixed % signfaketruth2012-03-041-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@363 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Lowered the amount of logging while converting chunksfaketruth2012-03-041-1/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@362 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Converted pak files were not marked 'dirty' and wouldn't be saved. Fixed now :)faketruth2012-03-041-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@361 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Forcing the use of the new redstone simulatorfaketruth2012-03-041-1/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@359 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Should have complete support for 256 blocks high worlds. Old save files are converted to new ones at load.faketruth2012-03-043-16/+165
| | | | | | BACK UP YOUR WORLD! git-svn-id: http://mc-server.googlecode.com/svn/trunk@358 0a769ca7-a7f5-676a-18bf-c427514a06d6
* The world can now truly be made higher by incrementing cChunk::c_ChunkHeight to 256. !!HOWEVER THIS WILL DESTROY YOUR SAVED WORLD!!faketruth2012-03-042-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@357 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Changed signed char to unsigned char in block packets, so we can receive height up to 255faketruth2012-03-049-28/+47
| | | | | | Blocks placed above 128 limit don't become obsidian anymore. This was due to the cChunk::MakeIndex() function return 0 when outside of bounds, it now returns an 'error constant' git-svn-id: http://mc-server.googlecode.com/svn/trunk@356 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Got rid of some hardcoded numbers, now using hardcoded variables! woofaketruth2012-03-0311-145/+151
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@355 0a769ca7-a7f5-676a-18bf-c427514a06d6
* That should not have been committed...faketruth2012-03-021-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@354 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Chunk light and metadata are also sent now, should take a load off of the clientfaketruth2012-03-021-5/+38
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@353 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Finally got the multiblock packet working! It seems the byte order was wrongfaketruth2012-03-022-6/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@352 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MultiBlock packet is working partly.. I really don't understand what's wrong with this packet :/faketruth2012-03-024-2/+54
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@351 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Chunks are successfully streamed to clients (in a bad a slow way, but whatever)faketruth2012-03-014-5/+49
| | | | | | Fixed respawn packet for 1.2.2 git-svn-id: http://mc-server.googlecode.com/svn/trunk@350 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Clients can join the server, but chunks are sent completely emptyfaketruth2012-03-012-0/+80
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@349 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Forgot to update packet size (though I'm not even sure it's used anymore)faketruth2012-03-011-2/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@348 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Started carefully moving to 1.2.2faketruth2012-03-016-67/+135
| | | | | | Clients can get up to the login packet, after which the server tries to send chunks but in the wrong format and the client disconnects git-svn-id: http://mc-server.googlecode.com/svn/trunk@347 0a769ca7-a7f5-676a-18bf-c427514a06d6
* New redstone simulator. Should work without crashes!faketruth2012-03-018-8/+650
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@345 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed the authenticator bugmadmaxoft@gmail.com2012-02-292-0/+9
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@344 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Making sure cClientHandle::m_Player was NULL after authentication completedfaketruth2012-02-291-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@343 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added validity checks to world broadcasting. Also added logging to cPlayer deletion to catch that stupid BugByBoo.madmaxoft@gmail.com2012-02-292-4/+12
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@342 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Improved threading performance by reducing thread-hopping in queue locks (cs unlocked before event set)madmaxoft@gmail.com2012-02-283-29/+41
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@341 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Setting the m_bDestroyed flag only after the cClienthandle is truly destroyed; cClientHandle's destructor now locks loaded chunk listsmadmaxoft@gmail.com2012-02-281-3/+10
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@340 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Server uses ~40% less CPU nowfaketruth2012-02-282-87/+93
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@339 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Linux compilation fix (y u no support const_iterator, gcc?)madmaxoft@gmail.com2012-02-281-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@338 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Chunk now has an indicator of load failure; Chunk generator uses cChunkStaymadmaxoft@gmail.com2012-02-289-6/+89
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@337 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented synchronous chunk loading; optimized cChunkStay interface for speed (though still unused ;)madmaxoft@gmail.com2012-02-288-152/+342
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@336 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ChunkGenerator: fixed an inverted condition on chunk-skipping when the generator is overloaded; set the overload threshold to 500 chunks (from original 50 which is not enough even for a single player)madmaxoft@gmail.com2012-02-281-6/+9
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@334 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Const-correctness for packet broadcasting (fixes GCC compilation)madmaxoft@gmail.com2012-02-284-6/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@333 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fix for the perpetual load issuemadmaxoft@gmail.com2012-02-271-1/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@332 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented chunk loading without generating on load-failuremadmaxoft@gmail.com2012-02-263-16/+62
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@331 0a769ca7-a7f5-676a-18bf-c427514a06d6
* New cChunkStay class for temporarily keeping chunks loaded even when then have no clients. For now unused, will be used by generator and lighting in the future.madmaxoft@gmail.com2012-02-266-1/+152
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@330 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Attempt at fixing crashes with disconnecting playersmadmaxoft@gmail.com2012-02-266-18/+38
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@329 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Using cSocketThreads for client outgoing packets. Unfortunately had to put in one intermediate thread (cServer::cNotifyWriteThread) to avoid deadlocks. Still, seems we have a proper multithreading for clients and no more per-client threads, yay :)madmaxoft@gmail.com2012-02-264-150/+253
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@328 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Extended SocketThreads for writing support (unusable in cClientHandle due to too many deadlock possibilities)madmaxoft@gmail.com2012-02-264-33/+218
| | | | | | Extended the range of ignored packets in pre-game client states (fixes connection issues with some mods installed) git-svn-id: http://mc-server.googlecode.com/svn/trunk@327 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made the viewdistance settable by users and default in settings.ini. The default is 9.madmaxoft@gmail.com2012-02-235-28/+73
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@326 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Plain pointer cChunkPtr finishing touches; removed cChunk's critical sectionsmadmaxoft@gmail.com2012-02-234-176/+35
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@325 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made cChunkPtr a plain old pointer again, since it's safe nowmadmaxoft@gmail.com2012-02-232-5/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@324 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cChunk: removed unused codemadmaxoft@gmail.com2012-02-232-8/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@323 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added cmdline parameters "/cdg" and "/cdf" for crashdump flags "globals" and "full memory"madmaxoft@gmail.com2012-02-231-2/+17
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@322 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Rewritten ore generation from scratch, using a different (much faster) algorithm. Chunk generation now about 2x faster :)madmaxoft@gmail.com2012-02-222-25/+111
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@321 0a769ca7-a7f5-676a-18bf-c427514a06d6
* That 2nd assert didn't make much sense...faketruth2012-02-221-1/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@320 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added some asserts to trace a bugfaketruth2012-02-222-2/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@319 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a bug that no chunks were unloaded on the client. Now chunks are properly unloaded on the clients.faketruth2012-02-222-0/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@318 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Noise function optimization (chunk generation now about 1.5x faster :)madmaxoft@gmail.com2012-02-223-10/+33
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@317 0a769ca7-a7f5-676a-18bf-c427514a06d6
* WorldGenerator: fixed small foliage - cacti now generate only at beaches, not underwater.madmaxoft@gmail.com2012-02-221-32/+33
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@316 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Lua seems to have trouble with a combination of overloaded functions and class inheritance, so I renamed TeleportTo( cEntity* ) to TeleportToEntityfaketruth2012-02-224-32/+53
| | | | | | /tp command should work again :) git-svn-id: http://mc-server.googlecode.com/svn/trunk@314 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a potential deadlock in cChunkMap::m_CSLayers vs cWorld::m_CSAllEntitiesmadmaxoft@gmail.com2012-02-221-6/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@313 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a crude way of disabling redstone. It's necessary though, redstone is completely broken, crashes the server all the timefaketruth2012-02-225-158/+199
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@312 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a CriticalSection to cPlugin_NewLua. Lua plugins are not threadsafe but they ARE accessed by multiple threads, this can create some hard to find errors, but I fixed it now :Pfaketruth2012-02-222-0/+18
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@311 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Restricted windows crash dump generating code to 32-bit platforms only due to inline assemblymadmaxoft@gmail.com2012-02-221-5/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@307 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added code to produce dump files on Windows builds to aid with debugging server crashesmadmaxoft@gmail.com2012-02-211-0/+85
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@306 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Changed ASSERT() to not cause warnings during compilefaketruth2012-02-211-1/+9
| | | | | | | Added VERIFY(); it's the same as ASSERT() but also works in release builds VS2010 project uses warning level 4 git-svn-id: http://mc-server.googlecode.com/svn/trunk@305 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed cChunkPtrs from everywhere but internal cChunkMap usage. Now we should finally be threadsafe :)madmaxoft@gmail.com2012-02-2110-109/+231
| | | | | | Also fixed a threading issue when a player connecting might have gotten stuck in "Downloading world" forever git-svn-id: http://mc-server.googlecode.com/svn/trunk@304 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed heightmap optimization from rev 302; removed a few more cChunkPtrsmadmaxoft@gmail.com2012-02-218-38/+146
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@303 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Optimized hightmap recalc when setting a chunk's blockmadmaxoft@gmail.com2012-02-211-7/+31
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@302 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed block-getting so that simulators work againmadmaxoft@gmail.com2012-02-216-24/+128
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@301 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed some more cChunkPtr usagemadmaxoft@gmail.com2012-02-2013-114/+372
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@298 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Using own ASSERT() that logs to filefaketruth2012-02-2021-59/+49
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@297 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed assertion bug in NamedEntitySpawn packet, it used to assert when item ID is 0, but now 0 is allowedfaketruth2012-02-191-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@296 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Substantial cWorld::FastSetBlock() speed up by queueing all such calls and processing them later chunk-wise (makes growing trees in the generator fast again)madmaxoft@gmail.com2012-02-186-45/+106
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@295 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed previous commit: forgot to remove a debugging settingmadmaxoft@gmail.com2012-02-181-3/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@294 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Re-implemented tree-growing. May produce artefacts on old-world / new-world boundaries.madmaxoft@gmail.com2012-02-1811-111/+205
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@293 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Thread-safe chunk generation, storage and generator are queried for progress while initializing servermadmaxoft@gmail.com2012-02-1816-176/+408
| | | | | | Note that this commit breaks foliage generation - there are no trees in the chunks generated! git-svn-id: http://mc-server.googlecode.com/svn/trunk@292 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Logging: added thread ID to the log output in debug buildsmadmaxoft@gmail.com2012-02-183-7/+11
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@291 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Logging: added LOGD macro that logs only in debug buildsmadmaxoft@gmail.com2012-02-181-3/+22
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@290 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Moved stdarg.h inclusion into Globals.hmadmaxoft@gmail.com2012-02-183-5/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@289 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cIsThread: Added support for getting current thread IDmadmaxoft@gmail.com2012-02-182-0/+15
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@288 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the skeleton of the cLightingThread objectmadmaxoft@gmail.com2012-02-172-0/+196
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@286 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Chunk coords mostly "upgraded" to include the Y coord for future compatibilitymadmaxoft@gmail.com2012-02-1711-67/+101
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@285 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed useless log messagesmadmaxoft@gmail.com2012-02-171-1/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@284 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Lots of logging addedmadmaxoft@gmail.com2012-02-176-12/+45
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@282 0a769ca7-a7f5-676a-18bf-c427514a06d6
* git-svn-id: http://mc-server.googlecode.com/svn/trunk@281 0a769ca7-a7f5-676a-18bf-c427514a06d6faketruth2012-02-165-6/+6
|
* New server command "unload" to manually unload unused chunksmadmaxoft@gmail.com2012-02-162-3/+11
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@280 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cWorldGenerator speedup - doesn't call GetChunk() anymore, not queueing the chunk it's generating to be loaded recursively.madmaxoft@gmail.com2012-02-1611-42/+81
| | | | | | cChunk fix - setting a block to the same value doesn't mark chunk dirty (resulted in un-unloadable chunks) git-svn-id: http://mc-server.googlecode.com/svn/trunk@279 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Got rid of dangerous GetEntity(), not using DoWithEntity()faketruth2012-02-165-53/+29
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@278 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Chunks are now marked as savedmadmaxoft@gmail.com2012-02-161-2/+10
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@277 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Marking chunk dirty after generatingmadmaxoft@gmail.com2012-02-161-0/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@276 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cPlayer empty-handed spawn fixmadmaxoft@gmail.com2012-02-161-1/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@275 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Heightmap is properly generated after loading chunks now, so /spawn and /top should work properly againfaketruth2012-02-161-0/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@274 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Chunk is now marked as dirty; saving only dirty chunks; rewritten load / save not to use cChunkPtr; set VC2008 project to level4 warnings; block entities are now loaded and saved properlymadmaxoft@gmail.com2012-02-1623-154/+935
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@273 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Chunks are properly saved before being unloaded nowfaketruth2012-02-162-1/+11
| | | | | | numchunks server command works again git-svn-id: http://mc-server.googlecode.com/svn/trunk@272 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cSocket::GetErrorString() now also compiles on Cygwinfaketruth2012-02-161-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@270 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed logging in cServermadmaxoft@gmail.com2012-02-161-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@269 0a769ca7-a7f5-676a-18bf-c427514a06d6
* No longer using pointers for Vector3(f/d/i) in cEntity's and cTracerfaketruth2012-02-1512-288/+246
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@268 0a769ca7-a7f5-676a-18bf-c427514a06d6
* New players no longer cause an assertfaketruth2012-02-151-3/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@267 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Can use the 'restart' command again. cAuthenticator no longer asserts because it properly stops when the server is stopped.faketruth2012-02-153-3/+16
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@266 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a deadlock in WorldStoragefaketruth2012-02-151-3/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@265 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed logging formatting error in cWorldmadmaxoft@gmail.com2012-02-151-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@264 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Restored chest and furnace functionality as it was (it's basically working but joined chests show single-chest window)madmaxoft@gmail.com2012-02-1513-104/+194
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@263 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Can now pass any argument to cWorld:ForEachPlayer in Lua! But I'm not even using it.. lolfaketruth2012-02-151-18/+46
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@262 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Slight cleanup - removed old code, some additional comments on dangerous functionsmadmaxoft@gmail.com2012-02-145-402/+13
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@261 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Got rid of cWorld::GetAllPlayers() and implemented ForEachPlayer() more or less in Luafaketruth2012-02-143-31/+64
| | | | | | Core now uses ForEachPlayer() to interact with connected players git-svn-id: http://mc-server.googlecode.com/svn/trunk@260 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Updated fluid simulators with geser's patch file!faketruth2012-02-147-58/+338
| | | | | | Fluids should behave more like Minecraft's fluids, and lava+water creates stone/cobble/obsidian! git-svn-id: http://mc-server.googlecode.com/svn/trunk@257 0a769ca7-a7f5-676a-18bf-c427514a06d6
* m_World was never set in cBlockEntity's, now it isfaketruth2012-02-141-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@255 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Apparently the Fire plugin is depreciated since it's implemented in C++ :Pfaketruth2012-02-141-2/+2
| | | | | | Using std::list instead of std::vector for fire, I think this would be faster due to all the adding and removing blocks from lists. Correct me if I'm wrong git-svn-id: http://mc-server.googlecode.com/svn/trunk@254 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed the same leak in FireSimulatorfaketruth2012-02-142-18/+18
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@253 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a (pretty big) memory leak in cSandSimulatorfaketruth2012-02-142-15/+16
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@252 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Rewritten most of the code for multithreading; still not 100%, but getting there. If this commit proves to be too problematic, we can always undo it.madmaxoft@gmail.com2012-02-1377-2687/+6689
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@251 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed unused codemadmaxoft@gmail.com2012-02-084-63/+126
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@249 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added total chunk count to webadminmadmaxoft@gmail.com2012-02-084-7/+133
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@248 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cPluginManager: slight cleanupmadmaxoft@gmail.com2012-02-081-178/+272
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@247 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cMonsterConfig: removed excessive loggingmadmaxoft@gmail.com2012-02-081-43/+62
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@246 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MTRand class is not created in each tick, therefore much improving tick-thread time (now uses ~5 % CPU instead of one full core)madmaxoft@gmail.com2012-02-0810-71/+156
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@245 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cSocketThreads plugged in for cClientHandle reading. Sending still kept the old way. Please help me test this commit thoroughly, this is a change that can break on subtleties.madmaxoft@gmail.com2012-02-088-219/+253
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@244 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cSocket: final localhost fix - made it a function (forgotten file)madmaxoft@gmail.com2012-02-071-3/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@243 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cSocket: final localhost fix - made it a functionmadmaxoft@gmail.com2012-02-072-7/+15
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@242 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Temporary fix for Linux compilation. (gcc won't accept a function call in global var initialization)madmaxoft@gmail.com2012-02-071-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@241 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Rewritten all packets to use buffers instead of direct sockets, for future cSocketThreads compatibility.madmaxoft@gmail.com2012-02-07109-1316/+1907
| | | | | | Moved data sending from cPacket into cSocket git-svn-id: http://mc-server.googlecode.com/svn/trunk@240 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cSocketThreads initial commit. Not yet tested and not yet integratedmadmaxoft@gmail.com2012-02-072-0/+619
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@239 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Slight cleanupmadmaxoft@gmail.com2012-02-072-5/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@238 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cSocket: Added more functions that will be needed for the new cSocketThreadsmadmaxoft@gmail.com2012-02-072-8/+56
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@237 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cSocket: error reporting function now works correctly on GNU Linux; also includes the error number for all errorsmadmaxoft@gmail.com2012-02-061-8/+29
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@236 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cSocket: re-implemented the GetLastErrorString() function; win: error texts are now queried from the system rather than enumerated by the programmadmaxoft@gmail.com2012-02-062-25/+15
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@235 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Now showing proper error messages when sockets fail :)faketruth2012-02-055-18/+30
| | | | | | Crossplatform GetLastError function in cSocket git-svn-id: http://mc-server.googlecode.com/svn/trunk@234 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cSocket: added error logging to Bind() failuresmadmaxoft@gmail.com2012-02-051-39/+48
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@233 0a769ca7-a7f5-676a-18bf-c427514a06d6
* putting default settings back to defaultadmin@omencraft.com2012-02-041-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@232 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a bug in source/cClientHandle.hadmin@omencraft.com2012-02-044-6/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@231 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MCServer should be running fast again on Linux!! YAAAY!!faketruth2012-02-032-0/+7
| | | | | | | | It seems the intialization of MersenneTwister was really slow on Linux because it did some file reading. Doing this 200 times a tick can be pretty slow... StringUtils didn't compile in Cygwin due to missing va_list definition git-svn-id: http://mc-server.googlecode.com/svn/trunk@230 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cClientHandle: split packet handling into separate functions for claritymadmaxoft@gmail.com2012-02-032-989/+1238
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@229 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cClientHandle: gotten rid of the obnoxious m_pState, now using direct members insteadmadmaxoft@gmail.com2012-02-024-351/+405
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@228 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Socket-related assert fixesmadmaxoft@gmail.com2012-02-023-6/+30
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@227 0a769ca7-a7f5-676a-18bf-c427514a06d6
* tolua: modified the binding generator to accept AString as a std::string synonym, re-generated Bindings with these settings. Lua callbacks can now safely use AString functions in C++.madmaxoft@gmail.com2012-02-023-28/+29
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@225 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed nonsense "virtual inline" declaration from functionsmadmaxoft@gmail.com2012-02-027-28/+28
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@223 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cSocket API fix (possible invalid pointer)madmaxoft@gmail.com2012-02-026-45/+103
| | | | | | cMCLogger slight change (CS ptr -> member) git-svn-id: http://mc-server.googlecode.com/svn/trunk@222 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Rewritten cAuthenticator to make use of the new cIsThread architecture - now authentication runs in a single separate thread for all clients;madmaxoft@gmail.com2012-02-0124-289/+667
| | | | | | | Global player-kicking function (cServer, cRoot); More char * -> AString conversion git-svn-id: http://mc-server.googlecode.com/svn/trunk@221 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added all current hooks to the new plugin structure.faketruth2012-02-014-129/+817
| | | | | | | Converted MagicCarpet to the new plugin structure When you fall of the MagicCarpet you teleport back up :D git-svn-id: http://mc-server.googlecode.com/svn/trunk@220 0a769ca7-a7f5-676a-18bf-c427514a06d6
* AString logging fix 2madmaxoft@gmail.com2012-02-017-21/+27
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@218 0a769ca7-a7f5-676a-18bf-c427514a06d6
* AString logging fixmadmaxoft@gmail.com2012-02-011-7/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@217 0a769ca7-a7f5-676a-18bf-c427514a06d6
* sprintf() begone! Replaced with StringUtils' Printf()madmaxoft@gmail.com2012-02-0116-134/+189
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@216 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed a few duplicate includesmadmaxoft@gmail.com2012-02-0110-41/+28
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@215 0a769ca7-a7f5-676a-18bf-c427514a06d6
* new cIsThread object for thread encapsulationmadmaxoft@gmail.com2012-02-012-0/+225
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@214 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cEvent: fixed wrong errorchecking in win32 Set()madmaxoft@gmail.com2012-02-011-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@213 0a769ca7-a7f5-676a-18bf-c427514a06d6
* StringUtils: SplitString() fixmadmaxoft@gmail.com2012-02-011-2/+21
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@212 0a769ca7-a7f5-676a-18bf-c427514a06d6
* auto_ptr fix 2madmaxoft@gmail.com2012-02-011-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@211 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Introducing StringUtils - the place to be if you are a generic string routine :) No more sprintf()!madmaxoft@gmail.com2012-02-0113-105/+384
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@209 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a sigsegv on *nix (cFile double-closing files)madmaxoft@gmail.com2012-02-011-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@208 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Plugins can now be enabled and disabled through WebAdminfaketruth2012-02-015-19/+75
| | | | | | WebPlugins can now have spaces in their tab names git-svn-id: http://mc-server.googlecode.com/svn/trunk@204 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Changed how Lua handles the (Post)Params in the HTTPRequest of a WebPluginfaketruth2012-01-317-79/+193
| | | | | | It should now be theoretically possible to upload files through WebAdmin git-svn-id: http://mc-server.googlecode.com/svn/trunk@203 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Slight code cleanup, no big changesmadmaxoft@gmail.com2012-01-313-45/+129
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@202 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Another cEvent fix, I wish I could get it finally rightmadmaxoft@gmail.com2012-01-311-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@201 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Hopefully fixed pthreads in cEvent (again)madmaxoft@gmail.com2012-01-312-1/+3
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@200 0a769ca7-a7f5-676a-18bf-c427514a06d6
* cEvent class cleanup (single-event only, since multi-event wasn't used and wouldn't work on *nix anyway)madmaxoft@gmail.com2012-01-312-82/+124
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@199 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Linux fixes, but while it compiles, when a user joins it crashes the server with "*** glibc detected *** ./MCServer: double free or corruption (out): 0x00007fb5f5158db0 ***"mtilden@gmail.com2012-01-312-0/+2
| | | | | | Please look into this. Also, am I the only one compiling/using Linux? git-svn-id: http://mc-server.googlecode.com/svn/trunk@198 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Can now receive POST data in WebPlugins!faketruth2012-01-316-8/+41
| | | | | | | Fixed Debug With optimized Noise in VS2010 by having it run the correct MCServer_debug.exe instead of MCServer.exe Changed winsock.h to Winsock2.h in Globals.h so sockets can be graciously closed (See webserver Socket::Close() ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@197 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Replaced most FILE operations with a cFile objectmadmaxoft@gmail.com2012-01-307-151/+210
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@196 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a problem in cCSLock (sorry); reverted cChunkmadmaxoft@gmail.com2012-01-302-3/+9
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@195 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added a WebAdmin interface to view users their groups, and the permissions of groups.faketruth2012-01-308-11/+91
| | | | | | cChunk::Tick did an assertion in cCSLock, I used a cCSUnlock to fix it, but not sure if this is correct. git-svn-id: http://mc-server.googlecode.com/svn/trunk@194 0a769ca7-a7f5-676a-18bf-c427514a06d6
* More cFile cleanup; removed old format writing for block entitiesmadmaxoft@gmail.com2012-01-3011-286/+343
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@193 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Initial cFile implementation (using stdio FILE) and test in cChunkMapmadmaxoft@gmail.com2012-01-304-86/+388
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@192 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added missing #ifdef _DEBUG in cCriticalSection.cpp faketruth2012-01-291-3/+5
| | | | | | Should compile in Release and on Linux now git-svn-id: http://mc-server.googlecode.com/svn/trunk@191 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Old code begone! ChunkMap cleanupmadmaxoft@gmail.com2012-01-294-373/+252
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@189 0a769ca7-a7f5-676a-18bf-c427514a06d6
* VC2008 / VC2010: Enabled precompiled header through Globals.h; the header included in every module in the project. Compilation optimization.madmaxoft@gmail.com2012-01-29172-326/+1051
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@188 0a769ca7-a7f5-676a-18bf-c427514a06d6
* ChunkGenerator: rewritten thread-locking using the new RAII CSLock classmadmaxoft@gmail.com2012-01-295-82/+210
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@186 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Now also compiles in Linuxfaketruth2012-01-281-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@184 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Converted entire Core plugin including WebAdmin interface to new plugin method/system/thingy and sexyfied it.faketruth2012-01-289-98/+773
| | | | | | | | Made some changes to WebAdmin to make the new plugins work Old plugins still work like they're supposed to Not all hooks have been programmed for the new plugins yet, this still needs to be done git-svn-id: http://mc-server.googlecode.com/svn/trunk@182 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MSVC 2008 Express compatibility: Added the projects, modified sources to compile. Tested on MSVC 2008 Express and MSVC 2010 Expressmadmaxoft@gmail.com2012-01-2764-87/+89
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@179 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Converted all of the Core plugin to the new plugin structure, except for the WebAdmin partfaketruth2012-01-272-21/+98
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@175 0a769ca7-a7f5-676a-18bf-c427514a06d6
* No longer hard coded Lua files in new plugin systemfaketruth2012-01-262-20/+406
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@173 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Working on a new plugin design with Lua. While retaining backwards compatibility of course...faketruth2012-01-267-47/+508
| | | | | | In this new design a plugin consists of a folder with Lua files, this should enable plugin developers to keep things separate and have more overview. git-svn-id: http://mc-server.googlecode.com/svn/trunk@172 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Probably fixed a deadlock! http://www.mc-server.org/support/index.php?do=details&task_id=147faketruth2012-01-261-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@171 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Cactus towers can be destroyed by removing the bottom blockfaketruth2012-01-234-4/+89
| | | | | | | | | Added checks whether flowers/mushrooms/saplings can be placed on surface Added checks for cactus to see if it's allowed to be placed Fluids now wash away certain items (flower, sapling, cactus) git-svn-id: http://mc-server.googlecode.com/svn/trunk@169 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed the  sign bugfaketruth2012-01-221-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@168 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Improved Core's WebAmin interface a bit.faketruth2012-01-224-31/+112
| | | | | | | | | Can now kick players through WebAdmin Can now enable/disable whitelist through WebAdmin Tick speed is limited in a better way now, instead of always sleeping 50ms before each tick, it now add only sleeps additional time when the tick time was faster than 50ms. Server should run slightly faster because of this (and use more cpu%) git-svn-id: http://mc-server.googlecode.com/svn/trunk@167 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Bug FS#131 http://www.mc-server.org/support/index.php?do=details&task_id=131 should be fixedfaketruth2012-01-211-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@166 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MCServer is now compatible with Minecraft client 1.1 (as long as the client is not using any mods/plugins I think)faketruth2012-01-205-6/+27
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@165 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Terrain generation is synchronous again, async generation has bugs.faketruth2012-01-1912-85/+129
| | | | | | | | | Made some funky smart pointer things for chunks. Fixed a bug where the client would override the player position on the server and back again, resulting in sending too many chunks to the client which it doesn't even need. Fixed some compiler warnings in cPickup.cpp git-svn-id: http://mc-server.googlecode.com/svn/trunk@164 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed crashing bug in cClientHandle::~cClientHandlefaketruth2012-01-021-1/+3
| | | | | | | When there are players in the server, and a client connects as far as the handshake and then disconnects, the server crashed. This is because there is no m_Player yet after the handshake, and the destructor uses m_Player without checking if it exists git-svn-id: http://mc-server.googlecode.com/svn/trunk@163 0a769ca7-a7f5-676a-18bf-c427514a06d6
* CreativeInventory Updatelapayo94@gmail.com2012-01-019-85/+107
| | | | | | | - Fixed various problems with the new creative inventory (Crafting, furnace, etc) - Creative inventory will now be saved to disk, so you keep your creative inventory also for the next sessions git-svn-id: http://mc-server.googlecode.com/svn/trunk@162 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed the numchunks console command.faketruth2012-01-0110-14/+187
| | | | | | | Added some form of reference counting to cChunk to make sure it's not referenced when deleting it. Right now it's only needed due to the generation of chunks in a separate thread and adding it to the spread light list in cWorld git-svn-id: http://mc-server.googlecode.com/svn/trunk@161 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - implemented separated inventory for creative mode (cSurvivalInventory and cCreativeInventory)lapayo94@gmail.com2012-01-0116-227/+363
| | | | | | | | | | | (Separation is not perfect yet, because maybe there are some mayor changes needed :D) - implemented CreativeInventoryAction (was mistakenly called CreateInventoryAction) -> Fixed meta data for creative selected blocks ->->Slabs/Steps are now placed correctly - slabs can now be build to a double slab - fixed a bug in the inventory which put items with different meta values in the same slot git-svn-id: http://mc-server.googlecode.com/svn/trunk@160 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Chests, furnaces and dispensers face the correct way now.faketruth2012-01-011-0/+5
| | | | | | http://mc-server.org/support/index.php?do=details&task_id=88 git-svn-id: http://mc-server.googlecode.com/svn/trunk@159 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made a couple of functions in cChunk inline, this should speed up several block operations on chunksfaketruth2011-12-315-124/+148
| | | | | | | Players should not spawn in the ground anymore. When an entity was added to cWorld twice (which shouldn't happen actually), the server would crash when the entity is destroyed, this should be fixed now. git-svn-id: http://mc-server.googlecode.com/svn/trunk@158 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Animals burn now when moving into lava or firelapayo94@gmail.com2011-12-293-7/+12
| | | | | | - Monster health is now working properly git-svn-id: http://mc-server.googlecode.com/svn/trunk@157 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Initial food handling by cedeelmtilden@gmail.com2011-12-295-13/+73
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@156 0a769ca7-a7f5-676a-18bf-c427514a06d6
* M$ BS...mtilden@gmail.com2011-12-291-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@155 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Chests open and close on clients when opened/closedmtilden@gmail.com2011-12-296-7/+84
| | | | | | | | - Beginnings of "Double Chest". All that's needed is detection when 2 chests get put next to each other, block other chests from then touching them on any side, load/save with the m_JoinedChest seeing each other and adding and making sure the left side is always the top rows. I'm not sure exactly at this moment how to do all of the detection and saving/loading of the double chest stuff so if you've any ideas feel free to point out some areas in the server code or implement it yourself. git-svn-id: http://mc-server.googlecode.com/svn/trunk@154 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Pickups should now burn in firelapayo94@gmail.com2011-12-295-20/+33
| | | | | | | - The player no longer gets an empty bucket when in creative mode - improved the simulators again (moved to std::list because this should be faster with so many objects) (But the water simulation still is very slow) git-svn-id: http://mc-server.googlecode.com/svn/trunk@153 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - water slacks fire nowlapayo94@gmail.com2011-12-298-17/+20
| | | | | | - Bug which caused lava to disappear is fixed git-svn-id: http://mc-server.googlecode.com/svn/trunk@152 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - little performance improvement on the sand simulatorlapayo94@gmail.com2011-12-282-1/+9
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@151 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - implemented the fire simulation in native c++ (cFireSimulator)lapayo94@gmail.com2011-12-2810-90/+280
| | | | | | | | - Changed the Durationsystem for Items. cPlayer::UseEquippedItem calls cItem::DamageItem this function damages the item if it has a duration. (needed the duration also in another place so this saves code ;)) - added some other burning blocks - the mobtypes for the settings.ini which i must have forgotten in the last commit git-svn-id: http://mc-server.googlecode.com/svn/trunk@150 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Fixed too fast actions kick for realmtilden@gmail.com2011-12-281-5/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@149 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed some small memory leakslapayo94@gmail.com2011-12-283-0/+13
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@148 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Fixed ping displaying same for everyone, knew it was something I messed up with itr :(mtilden@gmail.com2011-12-281-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@147 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed PLI end white, made random mistake late night when I couldn't remember how I did it beforemtilden@gmail.com2011-12-281-1/+1
| | | | | | Thanks to FakeTruth git-svn-id: http://mc-server.googlecode.com/svn/trunk@146 0a769ca7-a7f5-676a-18bf-c427514a06d6
* This bug should be fixed now http://mc-server.org/support/index.php?do=details&task_id=112faketruth2011-12-281-6/+44
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@145 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Linux fixmtilden@gmail.com2011-12-281-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@144 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Didn't notice steak missing as wellmtilden@gmail.com2011-12-281-0/+8
| | | | | | Interesting to note, when you make a food item handled with health it gets rid of the eating animation, this seems backwards. git-svn-id: http://mc-server.googlecode.com/svn/trunk@143 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Added chicken to eatingmtilden@gmail.com2011-12-282-1/+10
| | | | | | - Increased max interactions again, seems to be fine now for even the fastest clickers. git-svn-id: http://mc-server.googlecode.com/svn/trunk@142 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Little improvement to save some cpu time but it´s still very heavy cpu loadlapayo94@gmail.com2011-12-282-1/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@141 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Implemented Drops from Burning animalslapayo94@gmail.com2011-12-2819-297/+218
| | | | | | | | - added right monster health and attack strength - refactored the Pawn/Monster/Player class a little bit - changed some namings to fit the style git-svn-id: http://mc-server.googlecode.com/svn/trunk@140 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Users file was pretty messed up with mixed unix and windows line endings. The ini failed to parse correctly under cygwin.faketruth2011-12-273-2/+10
| | | | | | | | | 'Fixed' a 'bug' where MCServer would seemingly endlessly calculate lighting for an entire world (and then crash), when this entire world has 'wrong' lighting. This happens when running a converted map from Vanilla. Fixed this by only allowing a maximum of 50 chunks to recalculate their lighting per tick. Fixed a small coding error in cChunkMap where it would check PakVersion twice, instead of also ChunkVersion. DeNotch converter does not need the VS2010 runtime thingies anymore git-svn-id: http://mc-server.googlecode.com/svn/trunk@138 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a little error in cPacket_PlayerListItem.cppfaketruth2011-12-271-1/+1
| | | | | | char* was casted to char, but you actually need to get the first index of the array. git-svn-id: http://mc-server.googlecode.com/svn/trunk@137 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Vanity, just to set back to white after a short enough name for the ping image to not change colormtilden@gmail.com2011-12-271-1/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@136 0a769ca7-a7f5-676a-18bf-c427514a06d6
* I'll lower my frequency of commits.. 1000 default ends up sent more often than calc'd packets.mtilden@gmail.com2011-12-271-1/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@135 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Oops, accidentally left debug printmtilden@gmail.com2011-12-271-1/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@134 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Added basic ping handling.mtilden@gmail.com2011-12-275-10/+38
| | | | | | | | Not sure what's up with the MC client, though. It doesn't seem to end up giving good results like the KA packet return is hanging and waiting for other things to process instead of being handled on its own to give a true result. Feel free to update if there's any way to deliver truer results. git-svn-id: http://mc-server.googlecode.com/svn/trunk@133 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Slightly cleaner block change interactions static in headermtilden@gmail.com2011-12-272-2/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@130 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Set player interaction kicking to 5 interactions per .1 seconds to help with lag disconnects. Still need to change code to lessen the false positives.admin@omencraft.com2011-12-271-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@128 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Some kind of 'template' world generator that right now just generates an all dirt world. You can use this to test new algorithmsfaketruth2011-12-275-12/+55
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@127 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Players can switch worlds on the fly with the command /gotoworld [worldName]. This uses the function cPlayer::MoveToWorld()faketruth2011-12-2610-90/+160
| | | | | | Changed isValidItem to IsValidItem in Core.lua git-svn-id: http://mc-server.googlecode.com/svn/trunk@126 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - improved Simulator system lapayo94@gmail.com2011-12-2614-55/+277
| | | | | | | | | | | | -> Manager handles all ticks -> advantage: Much easier to add new simulators, because you only have to register them in the manager - moved sand and gravel simulation to a Simulator-class (cSandSimulator) - Made Squid a little bit more funny and realistic, because it dies now when it´s not in water -Escaping mobs run now faster than normal (They just walked away before :D) git-svn-id: http://mc-server.googlecode.com/svn/trunk@125 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - improved ClosestPlayerDetection (Really the closest now ;))lapayo94@gmail.com2011-12-262-30/+46
| | | | | | | | - renamed function because the old one wasn´t listing - improved some time vars so no move gets dropped when the server laggs for a few seconds git-svn-id: http://mc-server.googlecode.com/svn/trunk@124 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed the little check for max players. If somehow a player was able to connect and the number of players would exceed the max players, everybody is allowed in and the server will never be 'full'. It's fixed nowfaketruth2011-12-261-9/+9
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@122 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Linux compatible fixes including updated makefilemtilden@gmail.com2011-12-2614-47/+72
| | | | | | | | - Mersenne Twister still says uint32 but it's now signed for compatibility with random uses needing negative values - Server seed is sent to clients, but needs to be able to be signed long long later on for authentic reasons - Protocol Version is required to match to ensure client compatibility, this should probably have a settings.ini check as well as store the value there git-svn-id: http://mc-server.googlecode.com/svn/trunk@121 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Added timer to cPlayer PlayerListItem because sending the packets like minecraft does (every tick per player) is 20 pps per client to each client and was causing Kicks for having too high of a packet queuemtilden@gmail.com2011-12-262-7/+17
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@120 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Default Notchian Ping (static until ping implemented through keepalive send/receive)mtilden@gmail.com2011-12-262-4/+12
| | | | | | - Player "left" message regardless of exit reason git-svn-id: http://mc-server.googlecode.com/svn/trunk@119 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Scoreboard deleting moved to cClientHandle::~cClientHandle() with checks. Please test this every way you can with clients disconnecting from the internet, crashing, etc. It should work on all cases as every client gets called in this part to be 'Deleted'mtilden@gmail.com2011-12-261-6/+10
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@118 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Moved the actual world generation from cChunk.cpp to a more isolated file cWorldGenerator.cppfaketruth2011-12-264-251/+274
| | | | | | New generators should inherit cWorldGenerator and implement their own generation algorithms git-svn-id: http://mc-server.googlecode.com/svn/trunk@117 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Cleaned up PLI Packet and its creation/sending and fixed bug of player not being removed on scoreboard (forgot to send color in the removal packet)mtilden@gmail.com2011-12-265-11/+22
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@116 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made some functions in cChunk and cNoise inline, this should significantly increase chunk generation speedfaketruth2011-12-267-73/+104
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@115 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Make Color was using 2 extra characters which took 2 characters off the 16 max (including color codes) for scoreboard displaymtilden@gmail.com2011-12-268-5/+80
| | | | | | | - Added xC9 PlayerListItem packet and added code for player names to be added and removed from the scoreboard (need a catch-all for client disconnects: crashes, timeouts, etc) - Changed wid wording to a_WindowType git-svn-id: http://mc-server.googlecode.com/svn/trunk@113 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Fixed Bug #99 -> Mobs no longer bother you in creative modelapayo94@gmail.com2011-12-2540-1235/+347
| | | | | | - refactored many things in the Monster system git-svn-id: http://mc-server.googlecode.com/svn/trunk@112 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - fixed the code from the last commit :)lapayo94@gmail.com2011-12-252-5/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@111 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Fixed a critical bug, which caused players to not getting spawned on the others clientlapayo94@gmail.com2011-12-252-84/+89
| | | | | | - corrected newline in cMonsterConfig (VS did :D) git-svn-id: http://mc-server.googlecode.com/svn/trunk@110 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Implemented function to check item categorylapayo94@gmail.com2011-12-253-2/+43
| | | | | | | | - (Cobble-)stone don´t drop item anymore if mined without pickaxe - FluidSimulator no longer causes compiler warning - Glowstone drops fixed git-svn-id: http://mc-server.googlecode.com/svn/trunk@109 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Refactored both simulators (water and lava) to make them more flexible and easier to modifylapayo94@gmail.com2011-12-256-549/+382
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@108 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Hold item is now dropped when inventory is closedlapayo94@gmail.com2011-12-254-8/+32
| | | | | | | | Thanks to mtilden for this ( http://forum.mc-server.org/showthread.php?tid=183&pid=1428#pid1428 ) Also the items in the 4 crafting slots are now dropped. git-svn-id: http://mc-server.googlecode.com/svn/trunk@107 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Code improvementslapayo94@gmail.com2011-12-258-5/+486
| | | | | | | | | Fixed authentication (Can be activated now) Added MersenneTwister.h Thanks to mtilden ( http://forum.mc-server.org/showthread.php?tid=183&pid=1428#pid1428 and http://forum.mc-server.org/showthread.php?tid=183&pid=1418#pid1418 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@106 0a769ca7-a7f5-676a-18bf-c427514a06d6
* The missing file! cChunkGenerator.h/cppfaketruth2011-12-252-0/+195
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@105 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - improved and simplified the door system (shorter, clearer)lapayo94@gmail.com2011-12-254-62/+85
| | | | | | | - Doors now drop a complete door & other part gets destroyed - Build a function for pickup counts (cBlockToPickup::PickupCount) (Default is 1) git-svn-id: http://mc-server.googlecode.com/svn/trunk@104 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Chunks are generated in a separate thread allowing players to keep on playing and chatting while chunks are generated. This means, however, that cWorld::GetChunk() does not always return a chunk and is something you need to be aware of. I am not entirely sure if all this is completely stable, but I think so :Ofaketruth2011-12-2510-82/+184
| | | | | | | | | Chunks are now generated before the player is able to see them. This is done because after a chunks is done generating, some blocks might still need to be set (parts of trees from neighboring chunk), causing more bandwidth to be used (each changed block needs to be sent to clients again) and (fps) lagging the clients when changing a lot of blocks. Calculating ahead fixes these issues. Separated the placing of foliage (trees and stuff) when generated chunks into a new function GenerateFoliage() Cleaned up the VS2010 project, now using some VS2010 specific functions like dependencies on projects (no need for setting library dependencies manually). VS2010 project now compiles way faster in Release by using multi threading. git-svn-id: http://mc-server.googlecode.com/svn/trunk@103 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Very alpha water physic for pickups (The swim now)lapayo94@gmail.com2011-12-244-6/+168
| | | | | | | but there are some problems (get stuck on some positions) so someone might look at it because I have no idea how to make it better :D git-svn-id: http://mc-server.googlecode.com/svn/trunk@102 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Max. players and MOTD are now changeable in the settings.inilapayo94@gmail.com2011-12-243-7/+42
| | | | | | Thanks to mtilden ( http://forum.mc-server.org/showthread.php?tid=183&pid=1381#pid1381 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@101 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added thread names to cThread so when debugging in Visual Studio you actually know what thread you're looking atfaketruth2011-12-235-9/+55
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@100 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Digging leaves with shears now drops leaveslapayo94@gmail.com2011-12-227-11/+52
| | | | | | | | | | | | | Falling Sand now notifies water around Implemented Function to get the relative chunk position in the total position (cChunk::PositionToWorldPosition) Pistons don´t drop water and lava items anymore when stopping water/lava implemented Getter for lava and water simulator IsBlockWater and IsBlockLava function in Defines.h git-svn-id: http://mc-server.googlecode.com/svn/trunk@97 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixes:lapayo94@gmail.com2011-12-2210-18/+30
| | | | | | | | - Pickups fall through water now (Server-side they stayed in the water surface) - Suppressed some warnings (int to short etc.) - Water is now passable for cTracer git-svn-id: http://mc-server.googlecode.com/svn/trunk@96 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Missed a class in r94 ;) Sorry guys :Dlapayo94@gmail.com2011-12-212-0/+96
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@95 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Crafting fixed in 1.0.0lapayo94@gmail.com2011-12-2142-275/+315
| | | | | | | | | | - Server compatible with the weapons and equip again. (Some Packets were incompatible) - fixed bucket bugs (not all) - Fixed clients getting crashed by wrong Pickups - fixed nearly all mob drops. (Check wheather they are burning is missing Big Grin) - maybe some other things I can´t recall atm Big Grin git-svn-id: http://mc-server.googlecode.com/svn/trunk@94 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Changed chunk generation so any surface sand with air underneath it will turn into sandstone to prevent most sand cave-ins due to odd cave placement.admin@omencraft.com2011-11-151-12/+37
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@93 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Put view distance back to 13. Didn't mean to change that.admin@omencraft.com2011-11-121-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@92 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Found and fixed a bug not letting users place blocks in water or lava.admin@omencraft.com2011-11-112-3/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@91 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed logging in underground bug this time. A hack, but it works. :Dadmin@omencraft.com2011-11-101-4/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@90 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Can now set gamemode via lua.admin@omencraft.com2011-11-105-4/+19
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@89 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Some more changes to redstone. admin@omencraft.com2011-11-101-12/+14
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@88 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made block action sanity checks more robust, water buckets, lava buckets and empty buckets should all now work.admin@omencraft.com2011-11-106-26/+258
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@87 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed doors. I forgot to actually return proper Hex value. Started work on adding farmland, farming, and leaf decay support.admin@omencraft.com2011-11-102-6/+11
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@86 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added code for doors. Doors now place correctly but opening them is buggy and I need to change the current opening code to use bitwise operators.admin@omencraft.com2011-11-103-5/+108
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@85 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Storms were WAY too frequent. I toned them down.admin@omencraft.com2011-11-101-4/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@84 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added random weather that persists per world. Also added SetWeather, GetWeather, and CastThunderbolt to lua bindings.admin@omencraft.com2011-11-105-20/+191
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@83 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added m_IP to player class and binding to get IP for LUA. (Probably should use m_pState)admin@omencraft.com2011-11-096-3/+79
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@82 0a769ca7-a7f5-676a-18bf-c427514a06d6
* bugfix to redstone, it can climb walls again.admin@omencraft.com2011-11-092-16/+43
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@81 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Redstone clocks now work. even one clocks. torches don't update themselves when placed yet, but redstone wire updates the torch. Fixed a bug with piston animations.admin@omencraft.com2011-11-096-108/+298
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@80 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed world timefaketruth2011-11-082-1/+13
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@78 0a769ca7-a7f5-676a-18bf-c427514a06d6
* It's a Squirrel!!faketruth2011-11-0811-31/+529
| | | | | | In SquirrelBindings.h use #define USE_SQUIRREL 1 to enable squirrel git-svn-id: http://mc-server.googlecode.com/svn/trunk@76 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed bug in cChunk.cpp not calculating RedstoneCircuits at the correct positions. Also, forgot to mention you can now place colored wool.admin@omencraft.com2011-11-081-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@75 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Updated redstone and pistons some mode. If you break an extended piston the piston extension will now also break. When a redstone device is broken by something other than a person the redstone circuit should now update.admin@omencraft.com2011-11-076-121/+238
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@74 0a769ca7-a7f5-676a-18bf-c427514a06d6
* More updates to cPiston.cpp. Piston action will now only be broadcasted to players who have the chunk with the moving piston loaded.admin@omencraft.com2011-11-071-2/+6
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@73 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added Sebi's changes to pistons and item drops.admin@omencraft.com2011-11-076-423/+172
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@72 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Pistons now generate noise and animate when moving.admin@omencraft.com2011-11-073-4/+50
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@71 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added three new packets and cleaned up cPacket_Thunderbolt.cpp... cPacket_BlockAction, cPacket_Explosion, and cPacket_SoundEffect.admin@omencraft.com2011-11-078-50/+232
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@70 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Redstone wire now updates correctly when added and removed. it also updates all currently programmed redstone items and wire circuits. Also cleaned up the mess I left of the code.admin@omencraft.com2011-11-063-194/+47
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@69 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Redstone is now self aware. It's not quite as dumb as it used to be at any rate. Redstone wires have no range and understand they are supposed to stay on whenever there's an active torch touching it. (Need to add other power devices)admin@omencraft.com2011-11-063-42/+232
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@68 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Patch with diff file created by Sebi (implemented some stuff like lava physics, drops are deleted when in lava, water is now slower, lava gives actual damage etc.). Pistons now work mostly as they should. They do not yet show the motion animation and do not emit sound. They do extend, push, and retract as they should though. Right now the only way to activate a piston is to light redstone wire adjacent to it with a redstone torch.admin@omencraft.com2011-11-0612-276/+523
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@67 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Finished most of piston class. Pistons should work when a redstone current with wire is lit up or extinguished near them but don't yet. There'sa bug to kill.admin@omencraft.com2011-11-063-48/+408
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@66 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Change SetBlock to FastSetBlock in cRedstone.cpp and grass will now grow if any one hit block is above it.admin@omencraft.com2011-11-052-22/+27
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@65 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added all the items up to Beta 1.9.5. Added pistons and piston class.admin@omencraft.com2011-11-055-18/+364
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@63 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added cRedstone to project filefaketruth2011-11-042-7/+6
| | | | | | Changed NetworkToHostFloat4(), maybe it works now on 64bit linux git-svn-id: http://mc-server.googlecode.com/svn/trunk@54 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Changed use of deprecated function.admin@omencraft.com2011-11-041-14/+19
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@53 0a769ca7-a7f5-676a-18bf-c427514a06d6
* celeaning up the mess I made of cRedstone.h. >.>admin@omencraft.com2011-11-041-77/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@52 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added (Probably incorrectly) a cRedstone class. Also, palcing a redstone torch will recursively light any redstone wire it's connected to. Removing a torch from an active wire will unlight the entire length. Class needs to be updated to make use of non deprecated function. Current deprecated function warning drastically slows redstone performance.admin@omencraft.com2011-11-045-25/+215
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@51 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed some redstone items and a bug that prevented floats from client to server packets reading correctly on 64 bit linux.admin@omencraft.com2011-11-035-14/+15
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@50 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added some redstone items.admin@omencraft.com2011-11-033-7/+54
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@49 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Updated the thunderbolt packet. Lightning and rain can be tested with a workbench and a chest. >:)admin@omencraft.com2011-11-033-11/+42
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@48 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added New/Invaid State and Thunderbolt packets. For testing purposes it now rains whenever a player opens a workbench and stops when they pen a chest. The rain start/stop in only sent to the sole clientopening the items.admin@omencraft.com2011-11-026-7/+128
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@47 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed some "Entity was not found in any chunk!" warningsfaketruth2011-11-028-28/+74
| | | | | | | Player's current world is saved in the player file. When a player joins the server, the player joins the last world he was in. It seems MCServer can finally run multiple worlds! It just needs functionality to switch between them git-svn-id: http://mc-server.googlecode.com/svn/trunk@46 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed player spawn teleport postion.admin@omencraft.com2011-11-021-1/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@45 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed crash when client only sends a space in the chatfaketruth2011-11-021-0/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@44 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Changed world gamemode location to world.ini for world based gamemodes.admin@omencraft.com2011-11-021-2/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@43 0a769ca7-a7f5-676a-18bf-c427514a06d6
* fixed player spawning in the ground.admin@omencraft.com2011-11-013-6/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@42 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Accidentally removed a line of codefaketruth2011-11-011-1/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@41 0a769ca7-a7f5-676a-18bf-c427514a06d6
* You can now run multiple worlds by defining them in settings.ini . However there's no way to change worlds on the fly yetfaketruth2011-11-0116-165/+476
| | | | | | | | | | | Players are now stored in separate folder /players instead of in the world folder (!so move the folder!) Fixed a memory leak/error in cPickup.cpp Multiple worlds are stored in cRoot cClientHandle lists are taken out of cWorld and now stored in cServer Worlds now have names to distinguish them by Some functions in the Core plugin now distinguish between worlds git-svn-id: http://mc-server.googlecode.com/svn/trunk@40 0a769ca7-a7f5-676a-18bf-c427514a06d6
* forogt to update all of cPlayer.cpp for player based gamemode.admin@omencraft.com2011-11-011-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@39 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Put in some sanity checks to ensure players don't interact with blocks too quickly. Changed gamemode to be player based. (MCServer crashes when picking up an item. Need to find and fix bug.)admin@omencraft.com2011-11-013-14/+56
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@38 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Players can now place blocks in creative mode. The blocks players select from the creative mode inventory are not stored in the players' inventory. (I kind of like that)admin@omencraft.com2011-11-012-3/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@37 0a769ca7-a7f5-676a-18bf-c427514a06d6
* denotch map converter works! :Dadmin@omencraft.com2011-10-311-8/+9
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@36 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Player data is saved and loaded as human readable JSON now.faketruth2011-10-3110-74/+317
| | | | | | | | cFileFormatUpdate will loop through old files and convert them to new files (should replace legacy old format loading code) cItem has two new functions to load from Json and output Json, this will keep the items in Json standard ChestEntity and FurnaceEntity use the new functions in cItem git-svn-id: http://mc-server.googlecode.com/svn/trunk@35 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Prepared some parts of the code for multi world support, I created lots of TODO'sfaketruth2011-10-3140-206/+402
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@29 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Changed cChunkMat.cpp back to normal. Made more changes to the denotch map converter. Testing cNBTData parser.admin@omencraft.com2011-10-301-5/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@21 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added denotch map converter. Program currently reads the only mcr file in the region dir and writes the uncompressed chunk data in world/X0-Z0.pak. I compile in linux with "g++ cConvert.cpp -lz -o denotch"admin@omencraft.com2011-10-292-6/+11
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@20 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a memory leakfaketruth2011-10-271-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@19 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Made several recomended changes. Gamemode is now world based. Need to add it to player.admin@omencraft.com2011-10-2611-19/+26
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@18 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Moved GAMEMODE declaration to a single place... cPacket.h. Player can't take damage any more but can still sometimes die on spawn. Not sure why. Falling through the void does not kill you yet.admin@omencraft.com2011-10-263-8/+9
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@17 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Creative mode now breaks blocks without providing block drops. Need to work with Player's Inventory for proper creative mode support. GAMEMODE is declared and set twice.admin@omencraft.com2011-10-265-5/+8
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@16 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added CreateInventoryAction packet for creative mode. Used cPacketEntityEquipment as template. Forced server into Creative Mode. Can't break blocks yet. Player can stil be damaged in creative mode and dying takes you back to survival mode.admin@omencraft.com2011-10-268-6/+81
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@15 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Updated VS2010 project filesfaketruth2011-10-261-104/+43
| | | | | | | Made monster spawning code in cWorld.cpp a bit more compact and readable srand() is only supposed to be called once in the whole program, and it's already called in the constructor of cWorld so it doesn't have to be in cWorld::Tick() git-svn-id: http://mc-server.googlecode.com/svn/trunk@14 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed bug in cMakeDir where it would only create directories named "world"faketruth2011-10-263-34/+16
| | | | | | The user input thread now properly stops when the server restarts or stops git-svn-id: http://mc-server.googlecode.com/svn/trunk@13 0a769ca7-a7f5-676a-18bf-c427514a06d6
* added simple code for server side item durabilty on tool items that have durabilty. need to add block destroyed durability modifier.admin@omencraft.com2011-10-261-3/+70
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@12 0a769ca7-a7f5-676a-18bf-c427514a06d6
* git-svn-id: http://mc-server.googlecode.com/svn/trunk@10 0a769ca7-a7f5-676a-18bf-c427514a06d6admin@omencraft.com2011-10-2629-10/+1707
|
* Using SSE instructions for noise (terrain generation)faketruth2011-10-253-9/+84
| | | | | | Unfortunately the noise functions is only like 7% faster, so you won't even notice git-svn-id: http://mc-server.googlecode.com/svn/trunk@9 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Abstracted sockets some more to ensure the same behavior over the entire program and on multiple platforms.faketruth2011-10-236-88/+165
| | | | | | | MCSocket.h should soon be deprecated and deleted Do a full rebuild (mine bugged out when I didn't) git-svn-id: http://mc-server.googlecode.com/svn/trunk@8 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Found something that calls a function when a segfault happens, might be useful.faketruth2011-10-221-4/+16
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@7 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Compiles for linuxfaketruth2011-10-2117-24/+63
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@6 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MCServer c++ source filesfaketruth2011-10-03233-0/+35759
git-svn-id: http://mc-server.googlecode.com/svn/trunk@3 0a769ca7-a7f5-676a-18bf-c427514a06d6