summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp (unfollow)
Commit message (Expand)AuthorFilesLines
2016-01-16Fix crash when tamed wolf is hit by arrowsLogicParrot1-1/+4
2016-01-13Limited the username length to 16 characters.bibo381-0/+6
2016-01-12Tamed wolf assists owner (attack / defence)LogicParrot1-67/+69
2015-12-18Reorganised the redstone simulatorTiger Wang1-0/+6
2015-12-13allow use failures to propagate from the entity/block to the playerGargaj1-7/+8
2015-11-24Add enum for Sound and Particle EffectsDave Tucker1-2/+3
2015-11-02Examined a fix for #2588Tiger Wang1-0/+6
2015-10-21Fixed a crash when sending messages too early after connection.Mattes D1-1/+12
2015-10-05Improved the data structure for storing loaded chunkstycho1-7/+7
2015-09-25Maked it compileable for clang-3.7Lukas Pioch1-5/+5
2015-09-21Refactored cProtocol Chat handlingtycho1-8/+10
2015-08-20Fixed food drain bugsTiger Wang1-24/+14
2015-08-12Fix old style casts and implicit conversionsMatti Hänninen1-1/+1
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney1-23/+23
2015-07-14Improved mapsTiger Wang1-20/+2
2015-07-07Fixed warnings generated by 64-bit MSVC.Mattes D1-2/+2
2015-06-10Reinstate "Chunk queue collapsing"Tiger Wang1-15/+12
2015-06-07Revert "Chunk queue collapsing"worktycho1-12/+15
2015-06-05Made the list of chunks to stream an unordered_settycho1-15/+12
2015-06-02Added system and above action bar chat messagesjan641-0/+58
2015-05-30Fix Destroy() calling behaviourTiger Wang1-1/+2
2015-05-29Fix for the way connecting clients receive player lists and broadcast chatb33duck1-3/+3
2015-05-28Fixed the way connecting clients receive player lists and broadcast chat to worldsb33duck1-2/+2
2015-05-28Potential crash fixesTiger Wang1-6/+3
2015-05-26Fixed ClientHandle not getting properly removed from the worldtycho1-2/+9
2015-05-13Fixed chat message manipulation by plugins.Mattes D1-1/+1
2015-05-09More style checking.Mattes D1-6/+6
2015-05-07Added support for additional data in the ParticleEffect Packettycho1-0/+9
2015-04-19ClientHandle: Fixed re-sending refused right-clicks.Mattes D1-1/+8
2015-04-14Placing a fluid from bucket calls plugin hooks.Mattes D1-1/+3
2015-04-13Implement backend for /title commandScott Moore1-0/+63
2015-03-21Fixed signedness warnings in Protocol.Mattes D1-1/+1
2015-03-21Fixed signedness issues in protocols.Mattes D1-1/+1
2015-03-21Unified cByteBuffer types.Mattes D1-12/+12
2015-03-20Correct world height validations.Tommy Santerre1-0/+6
2015-03-05Reverted non-functional changesTiger Wang1-1/+2
2015-02-22Fixed race condition for TCP link deleting.Mattes D1-2/+6
2015-02-08Handle client 'leave bed' requestTiger Wang1-25/+3
2015-01-27Fixed a deadlock in cClientHandle network sending.Mattes D1-4/+23
2015-01-27Client: Only decode protocol when there's actual data incoming.Mattes D1-2/+8
2015-01-27Fixed enchant packet handling.Mattes D1-3/+3
2015-01-27Converted cServer to use the cNetwork API.Mattes D1-108/+106
2015-01-18Fixed warnings in 1.7 protocol.Mattes D1-2/+2
2014-12-24Refactored all player block placing to go through hooks.Mattes D1-148/+10
2014-12-13Own classes for all windows.Howaner1-0/+3
2014-12-11Cosmetic touchups.Mattes D1-1/+1
2014-12-10Changed method call to DoesAllowMultiLogin() instead of IsAllowMultiLogin()Vincent1-1/+1
2014-12-09Fixed return value in CheckMultiLogin()Vincent1-1/+2
2014-12-09Fixed indent problems and added return definitions to CheckMultiLogin().Vincent1-3/+3
2014-12-08Changed CheckMultiLogin() to not have main body wrapped in an if statement.Vincent1-19/+22
2014-12-08created callback in Root and changed CheckMultiLogin() to use the DoWithPlayer function at Root instead of World.Vincent1-1/+1
2014-12-08Fixed compile errorsVincent1-8/+3
2014-12-08removed last space in handlehandshakeVincent1-1/+0
2014-12-08Changed HandleHandshake to return the result of CheckMultiLogin instead of just true since it already returns true if it finds and kicks the current player.Vincent1-24/+23
2014-12-08Moved the check into a new function and just calls that function and a blank FindAndDoWithPlayer added.Vincent1-22/+38
2014-12-07changed from using iterator to auto for server and clienthandleVincent1-2/+2
2014-12-07Fixed c++11 branch issues.Mattes D1-4/+8
2014-12-05BasicStyle: Added missing braces to control statements.Mattes D1-0/+4
2014-11-30Changed Kick messagevincentleung11-2/+2
2014-11-30removed extra space and fixed some formatting in cCallbackvincentleung11-3/+3
2014-11-30Uses callback for players already in World.Vincent1-5/+12
2014-11-29fixed naming of strings and changed from i to IVincent1-4/+4
2014-11-29issue 1253 - prevent multiple logins with same usernameVincent1-0/+18
2014-11-25ClientHandle: Fixed max block place distance check.Mattes D1-4/+10
2014-11-17Fixed a wrong assert in cClientHandle::SetViewDistance().Mattes D1-4/+8
2014-11-15Use LastPlacedSign instead of LastPlacedBlock.Howaner1-3/+4
2014-11-15Renamed m_UsedViewDistance to m_CurrentViewDistanceHowaner1-8/+8
2014-11-15Renamed m_SetViewDistance to m_RequestedViewDistanceHowaner1-4/+4
2014-11-15Fixed a security problem with signs.Howaner1-2/+7
2014-11-14Use m_UsedViewDistance and m_SetViewDistance.Howaner1-8/+10
2014-10-30Fixed m_SentChunks list chunk removing.Howaner1-1/+1
2014-10-30Added a MaxViewDistance option.Howaner1-1/+3
2014-10-23Use 3 priorities.Howaner1-1/+1
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-26/+26
2014-10-21Reverted hook move.Howaner1-5/+5
2014-10-21Use two lists and 2 chunk send prioritys.Howaner1-41/+0
2014-10-21New c++11 stuff.Howaner1-4/+4
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-26/+26
2014-10-20Migrated cSleep and cTimer to std::chronoTiger Wang1-13/+5
2014-10-19Migrated random generators to std::randomTiger Wang1-12/+0
2014-10-16Merged branch 'fix_chunks'.Mattes D1-3/+34
2014-10-15Functions in cPluginManager get references instead of pointers.Mattes D1-2/+2
2014-10-15Usernames are lowercased before generating offline UUID.Mattes D1-1/+4
2014-10-07Added distance check.Howaner1-0/+12
2014-10-07Corrected drops from dead bush, tall grass and cobweb.Howaner1-5/+5
2014-10-06Stream 4 chunks per tick. Added priority.Howaner1-13/+22
2014-10-06Better StreamNextChunk() methodHowaner1-15/+116
2014-10-05cClientHandle: Added protocol version knowledge.Mattes D1-2/+10
2014-10-03Improved furnacesTiger Wang1-1/+1
2014-10-02Optimized chunk loaderHowaner1-86/+77
2014-09-30Rewritten plugin messages, vanilla are being parsed directly.madmaxoft1-90/+30
2014-09-28Fixed trailing whitespace.madmaxoft1-1/+1
2014-09-27Combined conditionsMasy981-8/+11
2014-09-27Added barriers correctlyMasy981-0/+5
2014-09-27Dropped support for <1.7.xTiger Wang1-14/+0
2014-09-26Fixed players custom name in 1.8Howaner1-2/+2
2014-09-18Exported player list states to extra functions.Howaner1-6/+42
2014-09-17BungeeCord compatibility: don't overwrite UUID / properties.madmaxoft1-2/+10
2014-09-131.8: Fixed maps.Howaner1-4/+4
2014-09-12Play placesound from the middle of the block.Howaner1-1/+1
2014-09-12Fixed block place sounds.Howaner1-2/+14
2014-09-12Players in survival mode are not allowed to break a bedrock.Howaner1-0/+6
2014-09-12Fixed many right click issues.Howaner1-4/+10
2014-09-121.8: Fixed eating.Howaner1-0/+1
2014-09-111.8: Added ParticleEffect packet.Howaner1-2/+2
2014-09-091.8: Added MultiBlockChange packet.Howaner1-3/+4
2014-09-09Moved sound-configs into BlockID.h and fixed/ added loads of soundsMasy981-1/+1
2014-09-09Added the player list to the 1.8 protocol.Howaner1-3/+7
2014-09-091.8: Added new uuid field.Howaner1-17/+25
2014-09-08More fixes.Howaner1-11/+1
2014-09-08Fixed more 1.8 packets.Howaner1-12/+21
2014-09-02Added SetCustomName() to players.Howaner1-7/+5
2014-08-28Added speed entity effect.Hownaer1-1/+1
2014-08-28Fire can be destroyed with the sword in creative-modeHownaer1-1/+2
2014-08-28Fixed crashes and use std::swap.Hownaer1-3/+19
2014-08-28remove y-coord from chunksLO1ZB1-10/+10
2014-08-22Fixed item drop.Howaner1-14/+18
2014-08-21Added initializers for class members.Mattes D1-0/+10
2014-08-11Revert "Removes the fire if the block under the fire was broken."Howaner1-5/+0
2014-08-11Removes the fire if the block under the fire was broken.Howaner1-0/+5
2014-08-11Moved the clicked-through block check to the top of the function.Howaner1-36/+17
2014-08-11Fixed cancelled fire interact from all directions.Howaner1-4/+12
2014-08-11Exported daylight cycle flag to the protocol.Howaner1-9/+3
2014-08-10Added a comment and simplified code.Howaner1-6/+3
2014-08-07Added SetDoDaylightCycle() and IsDaylightCycleEnabled() to cWorld.Howaner1-1/+10
2014-08-06Resending fire to the client when the interact cancelled.Howaner1-0/+8
2014-08-02Fixed a bug who can used from hacked clients.Howaner1-1/+16
2014-08-01Compile fix.Howaner1-2/+1
2014-07-31Import Statistics.hHowaner1-0/+1
2014-07-31Fixed hunger bugs, Implemented golden apple, added jump statistic, added correct food effects.Howaner1-1/+3
2014-07-31Renamed "select..." methods to "set..." and better IsValidEffect() function.Howaner1-2/+2
2014-07-31Renamed functions and added beacon json saving.Howaner1-12/+12
2014-07-30Added beacon.Howaner1-0/+54
2014-07-30MojangAPI: Implemented UUID shortening and dashing.madmaxoft1-1/+2
2014-07-29Slight cleanup after portalsTiger Wang1-2/+1
2014-07-27Fixed group color's.Howaner1-15/+4
2014-07-23SuggestionsTiger Wang1-2/+2
2014-07-21Style: Normalized to no spaces before closing parenthesis.madmaxoft1-3/+3
2014-07-20Bug and crash fixesTiger Wang1-0/+2
2014-07-19Fixed attempts to call c_str on ChatColorsarchshift1-4/+4
2014-07-19Fixed style: spaces after commas.madmaxoft1-2/+2
2014-07-18Fix failed merge and other issuesTiger Wang1-2/+2
2014-07-18Fixed creative players not being able to drinkarchshift1-3/+4
2014-07-17Normalized comments.madmaxoft1-1/+1
2014-07-17Fixed spaces around single-line comments.madmaxoft1-11/+13
2014-07-17Fixed basic whitespace problems.madmaxoft1-10/+10
2014-07-16Store properties as Json::ValueTiger Wang1-1/+1
2014-07-14Player properties are now retrievedTiger Wang1-3/+4
2014-07-13Changed BroadcastSoundEffect function to take floating pos.Howaner1-3/+3
2014-07-13Revert failed fix for #31Tiger Wang1-27/+4
2014-06-30Unnecessary returnHowaner1-2/+0
2014-06-29Fixed respawningTiger Wang1-2/+2
2014-06-29Fixed offline UUID generator.Mattes D1-2/+4
2014-06-29Send statistics to the player, when he logged in.Howaner1-0/+3
2014-06-28Fixed issue with breaking blocks at -1 coordinatesTiger Wang1-6/+1
2014-06-27Added generic entity-collecting.Mattes D1-2/+2
2014-06-27Removed the md5 library, obsoleted by PolarSSL.Mattes D1-13/+9
2014-06-21Added cClientHandle::IsUUIDOnline function.madmaxoft1-0/+29
2014-06-17ItemHandler: changed IsDrinkable() to take a short argumentarchshift1-3/+4
2014-06-17Implemented drinkable potions, noeffect entity effect,archshift1-3/+3
2014-06-17Implemented milk, added documentation to Pawn.harchshift1-3/+3
2014-06-17Add more documentation.Howaner1-0/+2
2014-06-17Add comment.Howaner1-0/+1
2014-06-17Revert "Fix right click bugs."Howaner1-41/+40
2014-06-12Portals animate and delay correctlyTiger Wang1-4/+3
2014-06-08Fixed deadlock when moving players to other worlds.Mattes D1-16/+5
2014-06-08Proper fix for long interaction.madmaxoft1-7/+14
2014-06-04Fixed bad coordinateworktycho1-1/+1
2014-05-31Implemented end and nether portalsTiger Wang1-4/+3
2014-05-28Fix fire break.Howaner1-16/+17
2014-05-28Fix right click bugs.Howaner1-40/+41
2014-05-27ClientHandle.cpp: Process look before posarchshift1-1/+1
2014-05-26ClientHandle.cpp: remove redundant codearchshift1-22/+2
2014-05-26Revert "Add more move checks"madmaxoft1-58/+16
2014-05-25Hopefully fixed piston duplication issuesTiger Wang1-1/+0
2014-05-18Implemented cacti damageTiger Wang1-2/+3
2014-05-16Add more move checksHowaner1-16/+58
2014-05-15Fix compile error.Howaner1-1/+1
2014-05-15Move radius check.Howaner1-25/+40
2014-05-11Fixed stat serializationandrew1-8/+0
2014-05-11Statistic Managerandrew1-1/+18
2014-05-11Rename HandleBlockDigCancel to FinishDigAnimtion.Howaner1-3/+3
2014-05-09Add block place/break distance check.Howaner1-0/+21
2014-05-09Add DIG_STATUS_CANCELLED packet and add item resend, when a block can't place/break.Howaner1-17/+44
2014-05-06Simplified the HandleAnvilItemName() code.Howaner1-7/+2
2014-05-05Changed HandleAnvilItemName() length to size_t in ClientHandle.hHowaner1-1/+1
2014-05-05Add clicks, exp subtraction, item check, ...Howaner1-1/+1
2014-05-05Add MC|ItemName plugin message.Howaner1-0/+32
2014-05-02HOOK_DISCONNECT has cClientHandle as its first parameter.madmaxoft1-3/+3
2014-05-01More ClientHandle fixes.madmaxoft1-2/+2
2014-05-01Fixed warnings in ClientHandle.madmaxoft1-2/+2
2014-05-01Fixed crashes in the SSL HTTP connection.madmaxoft1-1/+2
2014-04-29Delayed sending the KeepAlive packet for 3 seconds after login.madmaxoft1-0/+5
2014-04-28Fixed braces.madmaxoft1-1/+5
2014-04-28Fixed missing return value warning in MSVC.madmaxoft1-0/+1
2014-04-27Redstone simulator now directly accesses cChunkTiger Wang1-1/+2
2014-04-26More small fixes.archshift1-9/+9
2014-04-26Moar alignment.archshift1-7/+7
2014-04-26Further refactored, Reverted Minecart changearchshift1-57/+21
2014-04-25Oops, fixed that.archshift1-0/+2
2014-04-25Refactored SendChat(), placing the message-type formatting into its own function.archshift1-84/+78
2014-04-24Fix armor in survival mode.Howaner1-1/+1
2014-04-19Declared one mutex as mutable in order to allow for const correct get accessors.jfhumann1-4/+4
2014-04-18Small style changesjfhumann1-1/+1
2014-04-18Did some static analysis, fixed some bugs and optimized a lot of codejfhumann1-8/+10
2014-04-18Removed old includedaniel09161-1/+1
2014-04-17Fixed some Errors (not all)daniel09161-7/+10
2014-04-17Modified many thingsdaniel09161-856/+1
2014-04-16Fixed conflicting enchantments checkingdaniel09161-23/+23
2014-04-16Added deletions from merge conflictdaniel09161-0/+875
2014-04-16Fixed merge conflictdaniel09161-877/+0
2014-04-15Attempted fix for the client crash with the new protocols.madmaxoft1-6/+9
2014-04-15Code Optimizationdaniel09161-356/+180
2014-04-15Added Book Enchantingdaniel09161-1/+310
2014-04-15Modified namesdaniel09161-47/+47
2014-04-15Add linux compatibilityHowaner1-61/+71
2014-04-14Implemented the 1.7.6 protocol and authenticator.madmaxoft1-8/+22
2014-04-14A client UUID is generated when the server is in offline mode.madmaxoft1-0/+24
2014-04-14Removed Debug Messagedaniel09161-2/+0
2014-04-14Added/Modified last things for Enchanting Systemdaniel09161-15/+53
2014-04-14Bug fixesdaniel09161-2/+2
2014-04-13Fixed invisibility enchantmentsdaniel09161-1/+3
2014-04-13Fixed mistakedaniel09161-1/+1
2014-04-13Fixed Server Crashdaniel09161-0/+6
2014-04-13Some Fixesdaniel09161-1/+8
2014-04-13Added Yggdrasil Authentication Systemdaniel09161-2/+5
2014-04-12Added complete Enchanting Systemdaniel09161-15/+662
2014-04-12Entities handle chunks properly againTiger Wang1-1/+1
2014-04-04Fixed some Clang warnings in protocols.madmaxoft1-2/+2
2014-04-02Fixed All signedness warnings in HTTPServer.cppTycho1-1/+1
2014-03-31Simplified and fixed slabs, fixes #835Tiger Wang1-1/+1
2014-03-29Compare for inequality in FACE_NONE checksTiger Wang1-3/+3
2014-03-29Removed leftover clienthandle codeTiger Wang1-10/+6
2014-03-29Fixed players not updating after world changeTiger Wang1-4/+2
2014-03-28Fixed block interaction rate checkTiger Wang1-2/+4
2014-03-23Implemented lilypad placementTiger Wang1-4/+8
2014-03-11Fixed a load of format string errorsTycho1-1/+1
2014-03-11Unified Vector classesandrew1-3/+0
2014-03-10Removed Some unnessicary macrosTycho1-13/+0
2014-03-09!= FACE_NONETiger Wang1-1/+1
2014-03-09Fixed data length issuesTiger Wang1-1/+1
2014-03-09CheckBlockInteractionsRate() fixed & enabledTiger Wang1-29/+19
2014-03-09Slight plugin messaging changesTiger Wang1-0/+13
2014-03-08Split cClientHandle::HandleEntityAction() into three seperate functions HandleEntityCrouch, HandleEntityLeaveBed and HandleEntitySprinting.Jan-Fabian Humann1-28/+30
2014-03-08Fixed issues with int vs size_t and a few other warningsTycho1-2/+2
2014-03-05Add data backsending, when the Client interacts a Block and the Interact is cancelled.Howaner1-4/+10
2014-03-02cBlockInfo now manages the respective cBlockHandlerandrew1-3/+3
2014-03-01g_BlockXXX => cBlockInfo::XXXandrew1-1/+1
2014-02-28Use switch in GetStepSoundHowaner1-1/+1
2014-02-28Fix Double Slabs, fix Slab Meta and add more things to burnableHowaner1-1/+1
2014-02-23Use the ItemCategorie::IsSword() Method.Howaner1-1/+1
2014-02-23No Sword Block Destroying in Creative ModeHowaner1-0/+10
2014-02-20cClientHandle manages the client-registered plugin channels.madmaxoft1-10/+77
2014-02-18Map decorators; Map clientsandrew1-13/+9
2014-02-18Implemented paintings, fixes #689Tiger Wang1-0/+8
2014-02-17Map item handler; Fixed several bugsandrew1-2/+0
2014-02-16Links sent via chat messages are clickable.madmaxoft1-8/+14
2014-02-16Add Locale to ClientHandleHowaner1-0/+1
2014-02-15Implemented cCompositeChat.madmaxoft1-1/+11
2014-02-15cMap::UpdateRadiusandrew1-0/+2
2014-02-14Send map when selectedandrew1-0/+13
2014-02-13Implementation of in-game mapsandrew1-0/+18
2014-02-07Added sender name to PM if prefixes disabledTiger Wang1-1/+1
2014-02-07Improved chat messaging functionsTiger Wang1-6/+108
2014-02-06Server internally uses new functionsTiger Wang1-8/+6
2014-02-05Reduced max explosions per tickTiger Wang1-1/+1
2014-02-05Fixed explosions bugTiger Wang1-20/+10
2014-02-04Improved Type safety of eBlockFaceTycho1-5/+5
2014-02-03Fixed a crash bugTiger Wang1-8/+2
2014-02-03Server now handles join messages alsoTiger Wang1-9/+11
2014-02-01Changed Signiture of OnDiggingTycho1-3/+3
2014-02-01Changed Signiture of OnDestroyedByPlayerTycho1-3/+4
2014-02-01Changed pointers to referencesTycho1-4/+3
2014-02-01Changed signitures of Several BLockHandler MethodsTycho1-1/+2
2014-01-31Some updates for enchanting (2)daniel09161-0/+36
2014-01-26Refactored cBlockHandler::OnUse and dependentsTycho1-1/+4
2014-01-25First attempt at Implementing InterfacesTycho1-1/+1
2014-01-25Two minor changesTiger Wang1-1/+1
2014-01-24Fixed a possible deadlock on client disconnect.madmaxoft1-9/+0
2014-01-23Command block fixes 2andrew1-16/+9
2014-01-23Split TossItem into three Toss functions (Held, Equipped and Pickup)Mike Hunsinger1-2/+3
2014-01-21Scoreboard SendTo()andrew1-0/+3
2014-01-21Scoreboard protocol supportandrew1-0/+30
2014-01-19Removed unneeded paramtersTiger Wang1-2/+2
2014-01-19Rewritten SocketThreads for proper shutdown scenario.madmaxoft1-5/+1
2014-01-19Changed SendBlockEntity format slightlyTiger Wang1-3/+6
2014-01-19Implemented MC|Brand responseTiger Wang1-3/+9
2014-01-19Improved command blocksTiger Wang1-0/+9
2014-01-18Command block fixesandrew1-5/+12
2014-01-18Parse the MC|AdvCdm plugin messageandrew1-0/+64
2014-01-16Removed obsoleted functionsTiger Wang1-2/+2
2014-01-15Implemented Ctrl-Q drop stackTiger Wang1-0/+11
2014-01-09Added cClientHandle::SendPluginMessage().madmaxoft1-0/+9
2014-01-07Plugin messages are received and handed to plugins.madmaxoft1-0/+9
2013-12-31fixed ClientHandle warningsTycho Bickerstaff1-0/+1
2013-12-22Implented BroadcastParticleEffectSTRWarrior1-0/+9
2013-12-20Fixed the rest of constructor reorders.madmaxoft1-21/+20
2013-12-19Fixed PlayerAbilities and creativeTiger Wang1-3/+3
2013-12-19Fixed 1.7 arm swing animationTiger Wang1-1/+23
2013-12-18Disconnection message no longer shown if pingTiger Wang1-5/+8
2013-12-18The "<>" of a player name is now colouredTiger Wang1-1/+1
2013-12-18Fixed 1.7 player disconnection not calling hookTiger Wang1-4/+14
2013-12-18Renamed back EntityAnimation to PlayerAnimationTiger Wang1-1/+1
2013-12-16Fixed cClientHandle::Tick() being called from two threads.madmaxoft1-6/+43
2013-12-16Fixed multiple player spawn broadcasts.madmaxoft1-3/+0
2013-12-15Fixed calling OnPlayerJoined() in the wrong place.madmaxoft1-6/+1
2013-12-15This adds a function that allows you to 'shoot' a player towards a direction.STRWarrior1-2/+0
2013-12-15Moved reading flags to the protocol.STRWarrior1-17/+3
2013-12-15Added m_IsFlying and m_CanFly. Both have a Get and Set function. Added cClientHandle::SendPlayerAbilities() functionSTRWarrior1-0/+33
2013-12-14Forgot to commit the ClientHandle.STRWarrior1-0/+18
2013-12-12Unknown packet type extended to 32 bits.madmaxoft1-3/+3
2013-12-08Moved bindings-related to a Bindings subfolder.madmaxoft1-1/+1
2013-12-07Fixed trapdoors not togglingTiger Wang1-1/+1
2013-12-07Renamed animation functionTiger Wang1-7/+7
2013-12-06Fixed bed leave animationTiger Wang1-1/+1
2013-12-06Updated comments for slabsTiger Wang1-5/+6
2013-12-02Switched to using provided ReadItem function.Samuel Barney1-0/+9
2013-11-30Properly fixed snow height, fixes #98 and #264Tiger Wang1-9/+14
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-15finished #143 I believeDaniel O'Brien1-2/+5
2013-11-15added cProtocol function to pass xp to clientDaniel O'Brien1-0/+9
2013-11-10Bundled fixes [SEE DESC]Tiger Wang1-2/+2
2013-11-08cProtocol::SendWindowOpen() signature changed.madmaxoft1-2/+2
2013-11-05Removed the obsolete SendWholeInventory(cInventory &) function.madmaxoft1-11/+2
2013-11-04Autogeneration of settings.ini and webadmin.iniTiger Wang1-2/+2
2013-11-03ClientHandle: Fixed an error in player-joining hook.madmaxoft1-2/+2
2013-10-29Changed GameMode() == 1 to IsGameModeCreative in AggressiveMonster.cpp and ClientHandle.cppSTRWarrior1-1/+1
2013-10-29Fixed bug where creative inventory didn't work.STRWarrior1-1/+1
2013-10-28Renamed cWindow constants to include the "wt" prefix.madmaxoft1-2/+2
2013-09-22Changed a commentTiger Wang1-1/+1
2013-09-21Fixed pickup spawning with inherited gamemode.madmaxoft1-0/+1
2013-09-15Removed leftover CanBePlacedOnSideTiger Wang1-7/+0
2013-09-15Removed leftover DoesAllowBlockOnTopTiger Wang1-9/+0
2013-09-09Removed the cDoors class.madmaxoft1-1/+0
2013-09-08Fixed client spawning.madmaxoft1-108/+51
2013-09-06Implemented SteerVehicle packet.madmaxoft1-0/+9
2013-09-06Implemented SteerVehicle packet.madmaxoft1-0/+9
2013-08-30Shooting a bow kinda works.madmaxoft1-4/+4
2013-08-29Implemented xoft's suggestions [SEE DESC]Tiger Wang1-2/+2
2013-08-28Fixed Minecart spawning issuesTiger Wang1-2/+2
2013-08-24Client can no longer place blocks outside the Y range of the world.madmaxoft1-1/+6
2013-08-24Added comments and fixed a bugTiger Wang1-9/+21
2013-08-24Fixed final slab bugTiger Wang1-1/+1
2013-08-23Double slabs work *choke choke*Tiger Wang1-20/+49
2013-08-22Another fix for #31.madmaxoft1-0/+6
2013-08-20Added a delay between the kick packet and socket close.madmaxoft1-2/+17
2013-08-20Fixed player spawning.madmaxoft1-0/+10
2013-08-19Fixed the extreme strain on the world tick thread.madmaxoft1-0/+2
2013-08-19Moved entities into the Entities subfolder.madmaxoft1-3/+2
2013-08-18Added cWindow property manipulation API.madmaxoft1-17/+17
2013-08-14ClientHandle no longer queues chat messages.madmaxoft1-47/+17
2013-08-14Player counts are now properly handled.madmaxoft1-1/+37
2013-08-13Clients are now ticked in cServer first, then in cWorld once they get assigned a world.madmaxoft1-31/+32
2013-08-12Removed cServer::BroadcastChat() and cServer::SendMessage().madmaxoft1-6/+8
2013-08-11Moved MaxPlayers and Description from cWorld to cServer.madmaxoft1-7/+7
2013-08-11Added OnPlayerAnimation() hook.madmaxoft1-0/+6
2013-08-10Removed extra disconnect messageTiger Wang1-5/+0
2013-08-09Fixed some formatting issues I accidentally introducedJames Ravenscroft1-0/+2
2013-08-09Added IsSwimming and IsSubmerged flags and access methodsJames Ravenscroft1-4/+2
2013-08-08Fixed the jump food exhaustion being added when player is swimmingJames Ravenscroft1-3/+8
2013-08-02Implemented OnPlayerRightClickingEntity() hookmadmaxoft1-0/+4
2013-07-31Implemented the actual tab completion for commands and playernames.madmaxoft1-1/+1
2013-07-30Tab completion packet is handled and sent.madmaxoft1-0/+26
2013-07-29Added the "Edit Sign" packet sent to the client placing a sign.madmaxoft1-0/+9
2013-07-28Player eating is now properly broadcast to other players.madmaxoft1-0/+5
2013-07-28Implemented basic eating support.madmaxoft1-12/+8
2013-07-12First implementation of movement-related hunger and APImadmaxoft@gmail.com1-9/+19
2013-07-08Color codes are stripped from the DC messagemadmaxoft@gmail.com1-1/+1
2013-07-07Fixed sprinting in 1.6.1, made speeds available through API; fixed messages containing quotes.madmaxoft@gmail.com1-0/+11
2013-07-07Improved function names for protocol packet sending; alpha-sorted the function listsmadmaxoft@gmail.com1-148/+157
2013-07-05Unmounting vehicles implemented in the 1.6.1 waymadmaxoft@gmail.com1-0/+13
2013-07-05Fixed 1.6.1's movement speedmadmaxoft@gmail.com1-0/+3
2013-07-03Fixed player moving between worlds.madmaxoft@gmail.com1-13/+54
2013-06-29Fixed crouch-placing unplaceable items (FS #399)madmaxoft@gmail.com1-1/+1
2013-06-22Plugins can modify message in the OnChat() hook handler.madmaxoft@gmail.com1-2/+3
2013-06-18Crouching will allow block placement on otherwise functional blocks.madmaxoft@gmail.com1-2/+2
2013-06-18Added a crude limiter for explosions sent to client.madmaxoft@gmail.com1-1/+27
2013-06-18More TNT fixes.madmaxoft@gmail.com1-1/+1
2013-06-16Added an elaborative comment on the deadlock prevention codemadmaxoft@gmail.com1-1/+12
2013-06-15First attempt at fixing the inter-threading deadlocks between the tick thread and the socket threadmadmaxoft@gmail.com1-1/+11
2013-06-04Removed cLadder, cSign, cStairs, cTorch and cVine classes, moved their functionality into the appropriate BlockHandlers / ItemHandlersmadmaxoft@gmail.com1-4/+0
2013-06-04Implemented proper player crouching.madmaxoft@gmail.com1-4/+18
2013-05-30LuaWindow: Initial code, the window can be opened, but not much manipulatedmadmaxoft@gmail.com1-1/+1
2013-05-28Moved BlockEntities to a separate foldermadmaxoft@gmail.com1-2/+2
2013-05-24Refactored cInventory to use cItemGrid for the actual Storagemadmaxoft@gmail.com1-4/+3
2013-05-19Inventory code cleanup, players can now see each other's armormadmaxoft@gmail.com1-5/+5
2013-05-08Refactored window clicking code to use different click actionsmadmaxoft@gmail.com1-5/+5
2013-04-19Fixed Linux compilation, slight code cleanupmadmaxoft@gmail.com1-2/+2
2013-04-18Initial implementation of explosions and TNT blockkeyboard.osh@gmail.com1-0/+9
2013-04-13Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick()madmaxoft@gmail.com1-16/+14
2013-04-04Fixed personal crafting grid not being tossed on inventory close.madmaxoft@gmail.com1-4/+4
2013-04-02Added support for head yaw tracking and packet sending and fixed bug in BroadcastMovementUpdatekeyboard.osh@gmail.com1-0/+2
2013-03-18Added support for the packet #28 (0x1C): ENTITY_VELOCITYkeyboard.osh@gmail.com1-0/+11
2013-03-03Player can sit in minecarts (but not move them yet)madmaxoft@gmail.com1-1/+25
2013-02-27Made FAST_FLOOR_DIV work correctly, replaced all floorf() divisions with it.madmaxoft@gmail.com1-2/+2
2013-02-21Moved the Speed member into cEntity class instead of its descendants.madmaxoft@gmail.com1-2/+2
2013-02-18Minecarts can now be placed.madmaxoft@gmail.com1-0/+9
2013-02-14Fixed one-hit-blocks not being broken server-sidemadmaxoft@gmail.com1-2/+4
2013-01-13Added missing dig status.luksor111@gmail.com1-0/+6
2013-01-12Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com1-171/+307
2013-01-05Not sending multiple DC packets to the client.madmaxoft@gmail.com1-6/+9
2012-12-27Fixed OnBlockPlace hookluksor111@gmail.com1-10/+10
2012-12-26Adjusted the protocol framework to support different types of falling block spawning.madmaxoft@gmail.com1-0/+9
2012-12-24Added the 1.4.6 protocolmadmaxoft@gmail.com1-2/+2
2012-12-21Refactored the TakeDamage API to take equipped weapon and armor into consideration (PvP untested)madmaxoft@gmail.com1-6/+4
2012-12-20Removed chat messages from consoleluksor111@gmail.com1-1/+0
2012-12-19Added dispensers (they can't dispense items yet)luksor111@gmail.com1-15/+21
2012-11-18Fixed wrong c++ standard assumptions about bools.madmaxoft@gmail.com1-2/+4
2012-11-16Fixed boolean comparison.madmaxoft@gmail.com1-1/+1
2012-11-16Removed log message when spawning players on a client.madmaxoft@gmail.com1-1/+1
2012-11-12Fixed block breaking in survival.luksor111@gmail.com1-4/+15
2012-11-11Hopefully a fix for crash when chunks are added to a client being destroyed.madmaxoft@gmail.com1-4/+21
2012-11-01Refactored the world time.madmaxoft@gmail.com1-7/+10
2012-10-22You can now see particles and hear sounds when other players are destroying blocks.luksor111@gmail.com1-0/+1
2012-10-21Added jukeboxes (patch contributed by Luksor)madmaxoft@gmail.com1-0/+9
2012-10-18Converted some const char*s and std::strings to AStringsfaketruth1-0/+9
2012-10-17Fixed a vulnerability in cClientHandle::HandleRespawn()faketruth1-1/+9
2012-10-10Added an option to disable/enable PVP on a per world basisfaketruth1-0/+9
2012-10-06Fixed an invalid direction to AddDirection()madmaxoft@gmail.com1-8/+11
2012-10-06Completely removed the old (buggy) redstone simulator.madmaxoft@gmail.com1-1/+0
2012-10-01Slight refactoring of BlockHandlers - dropping unneeded virtual functionsmadmaxoft@gmail.com1-3/+3
2012-09-30Added falling block entities. Sand and gravel now properly fall downfaketruth1-0/+8
2012-09-29Removed a rogue cSleep from ClientHandle. Since sockets are owned by sockethreads, the client can safely Destroy() itself right after sending a packet.madmaxoft@gmail.com1-4/+0
2012-09-29Beds can be slept in now (it doesn't change the time though)faketruth1-0/+27
2012-09-29Unified folder name-casingmadmaxoft@gmail.com1-2/+2
2012-09-25Added the block dig animation packet (patch contributed by l0udPL)madmaxoft@gmail.com1-2/+45
2012-09-25Sockets are now owned by SocketThreads instead of ClientHandle (FS #246 and FS #247)madmaxoft@gmail.com1-27/+12
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-23/+23
2012-09-23Source files cleanup: ChunkDataSerializer is Protocol-relatedmadmaxoft@gmail.com1-1/+0
2012-09-23Source files cleanup: OSSupport-related files in a separate subfolder, renamed.madmaxoft@gmail.com1-4/+2
2012-09-23Source files cleanup: Removed unused cBlockToPickupmadmaxoft@gmail.com1-1/+0
2012-09-23Source files cleanup: Mobs-related files in a separate subfolder, renamed.madmaxoft@gmail.com1-1/+1
2012-09-23Source files cleanup: Protocol-related files in a separate subfoldermadmaxoft@gmail.com1-1/+1
2012-09-23Source files cleanup: UI files renamedmadmaxoft@gmail.com1-2/+2
2012-09-23Fixed position confirming for 1.3.2 (FS #245)madmaxoft@gmail.com1-1/+2
2012-09-23Fixed players not spawning to others when they join the server.madmaxoft@gmail.com1-0/+3
2012-09-23Tweaked logging.madmaxoft@gmail.com1-0/+6
2012-09-20Refactored windows.madmaxoft@gmail.com1-12/+14
2012-09-11Merged in a patch for sounds by l0udPLmadmaxoft@gmail.com1-0/+11
2012-09-07Relaxed the check for held item, the client sometimes sends wrong ItemType.madmaxoft@gmail.com1-2/+9
2012-09-06Added protocol-specific authentication, now works for both 1.2.5 and 1.3.2madmaxoft@gmail.com1-1/+1
2012-09-06ClientHandle: added an overflow buffer for outgoing data, it fixes the "bad packet id" problem with 1.3.2.madmaxoft@gmail.com1-5/+32
2012-09-05Added the possibility of reserved player slots by implementing the HandleHandshake hook!faketruth1-0/+17
2012-09-04Fixed a possible race condition in cClientHandle's packet sending code; prepared for moving cSocket out of cClientHandle's ownership.madmaxoft@gmail.com1-2/+5
2012-09-02Next iteration on the 1.3.2 protocol. Still no good, but sometimes it just gets through. For your testing pleasures ;)madmaxoft@gmail.com1-1/+1
2012-09-01Fix for Rev 814, the correct cPlayer object is actually sent into the callbacks.madmaxoft@gmail.com1-1/+1
2012-09-01Implemented: http://www.mc-server.org/support/index.php?do=details&task_id=239&project=2&dev=26lapayo94@gmail.com1-1/+1
2012-08-31Progress on the 1.3.2 protocol.madmaxoft@gmail.com1-2/+2
2012-08-31Another possible deadlock in cClientHandle averted. Hope this is the one.madmaxoft@gmail.com1-5/+13
2012-08-31Fixed one possibility of a deadlock in cClientHandle::SendChunkData()madmaxoft@gmail.com1-13/+16
2012-08-30Added a basic protocol recognizer and the base for 1.3.2 protocol.madmaxoft@gmail.com1-25/+10
2012-08-30cProtocol handles the initial handshake up to player loginmadmaxoft@gmail.com1-58/+4
2012-08-29Gotten completely rid of all cPackets. The cProtocol125 class now does all the parsing and writing by itself.madmaxoft@gmail.com1-4/+4
2012-08-28Moved all packet-serializing code into cProtocol125; half the packet classes aren't needed anymore.madmaxoft@gmail.com1-38/+36
2012-08-27Cut out all packet handling to a separate cProtocol descendantmadmaxoft@gmail.com1-892/+175
2012-08-26git-svn-id: http://mc-server.googlecode.com/svn/trunk@795 0a769ca7-a7f5-676a-18bf-c427514a06d6madmaxoft@gmail.com1-0/+16
2012-08-25cSocket doesn't use cPackets.madmaxoft@gmail.com1-10/+7
2012-08-25cWorld doesn't use cPackets.madmaxoft@gmail.com1-0/+58
2012-08-25Removed cPackets from cChunk.madmaxoft@gmail.com1-2/+69
2012-08-24cPickup doesn't use cPackets.madmaxoft@gmail.com1-0/+13
2012-08-24Monster classes don't use cPackets. Chat messages are sent / broadcast without cPackets. BlockEntities don't use cPackets.madmaxoft@gmail.com1-0/+77
2012-08-19Window, Chest, Furnace and Pawn are not using cPackets at allmadmaxoft@gmail.com1-0/+39
2012-08-19Almost all packets' handling is now rewritten not to use cPacket descendants elsewhere than in cClientHandle.madmaxoft@gmail.com1-49/+286
2012-08-19Another handful of packets rewritten.madmaxoft@gmail.com1-31/+123
2012-08-19Fixed Bug #236lapayo94@gmail.com1-3/+3
2012-08-18Chat packet handled in the new way; fixed missing packet sending for inventory slot.madmaxoft@gmail.com1-26/+28
2012-08-18Packet refactoring, phase two, partial. Rewritten a few packet handling functions not to use cPacket-descendant objects.madmaxoft@gmail.com1-115/+196
2012-08-17Packets now parse themselves from a cByteBuffer object (1st part of packeting rewrite, http://forum.mc-server.org/showthread.php?tid=524 )madmaxoft@gmail.com1-15/+37
2012-08-15Added temporary debug statistics of the RelEntMoveLook packet removal efficiencymadmaxoft@gmail.com1-0/+12
2012-08-06A bit of cleanup and documentation around the UI window handlingmadmaxoft@gmail.com1-2/+4
2012-07-17Simple health regeneration systemlapayo94@gmail.com1-14/+3
2012-07-16Fixed some small bugs :)lapayo94@gmail.com1-1/+1
2012-07-15A new Block handling system :olapayo94@gmail.com1-560/+78
2012-07-13The gamemode is now only saved if it is different from the current gamemode.lapayo94@gmail.com1-1/+2
2012-07-12Save last gamemodelapayo94@gmail.com1-1/+9
2012-06-16Leaves: Applied patch by Luksor.cedeel@gmail.com1-0/+5
2012-06-16Proper kick reasons!cedeel@gmail.com1-3/+6
2012-06-16Exported cWorld::ForEachEntity and cWorld::ForEachEntityInChunk; no idea if they actually workmadmaxoft@gmail.com1-1/+1
2012-06-15Lit furnaces can be used by playersmadmaxoft@gmail.com1-0/+1
2012-06-15Basic handling of vines. No growth yet.cedeel@gmail.com1-13/+18
2012-06-15Fixed placing block on tall grass (FS #209)madmaxoft@gmail.com1-1/+1
2012-06-14Fixed snow again, this time for real.cedeel@gmail.com1-2/+17
2012-06-14Fixes placing blocks on snow.cedeel@gmail.com1-10/+21
2012-06-14Attempt to bring sanity to newlines across systems.cedeel@gmail.com1-2084/+2084
2012-06-13Added a BlockToPickup hook for modifying pickups when a player breaks a block.madmaxoft@gmail.com1-2/+4
2012-06-09Disallowed placing cacti in watermadmaxoft@gmail.com1-0/+2
2012-06-09Plants growable by bonemeal are settable in the world.ini. Default matches vanilla MC.madmaxoft@gmail.com1-1/+1
2012-06-09Bonemeal is consumed in survival mode when used on growable blocksmadmaxoft@gmail.com1-1/+5
2012-06-08Sugarcane grows and can be grown using bonemeal.madmaxoft@gmail.com1-0/+5
2012-06-07Bonemeal works on crops, melons, pumpkins, saplings and grass. Plant growing has been refactored into separate functions callable from Lua, too.madmaxoft@gmail.com1-3/+33
2012-06-07Repeaters' delays can be set by rclkmadmaxoft@gmail.com1-3/+8
2012-06-07Multiple packets are serialized in one request.madmaxoft@gmail.com1-5/+6
2012-06-07Added more statistics to the packet queue overfill problem.madmaxoft@gmail.com1-2/+20
2012-06-07(Temporary) hotfix for the "too many packets" error - set the packet limit 5x higher.madmaxoft@gmail.com1-1/+7
2012-06-06Item-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.com1-41/+41
2012-06-04Updated zlib, added chat formatting, fixed upside down stairs and slabs, fixed makefiles, hopefully updated vc project filescedeel@gmail.com1-4/+21
2012-06-02ClientHandle 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.com1-0/+63
2012-05-30Seeds can now be planted and they grow (albeit too quickly and too non-uniformly, need to fix blocktick selection)madmaxoft@gmail.com1-1/+28
2012-05-29Farmland is created using a hoe on dirt or grass.madmaxoft@gmail.com1-2/+12
2012-05-29Refactored item-eating from cClientHandle into cPlayermadmaxoft@gmail.com1-71/+2
2012-05-29Added 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.com1-65/+4
2012-05-25Merged the composable_generator branch into the trunkmadmaxoft@gmail.com1-4/+33
2012-04-10Added 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.com1-1/+16
2012-04-03Logging OnBlockDig and OnBlockPlace only in Debug mode ( http://mc-server.org/support/index.php?do=details&task_id=133&project=2 )madmaxoft@gmail.com1-2/+8
2012-03-26Added the supported client version to banner; shamelessly added myself to the authors list ;)madmaxoft@gmail.com1-1/+1
2012-03-24Added the new 1.2.4's PlayerAbilities packet; restructures packet files for less files, more dense.madmaxoft@gmail.com1-7/+3
2012-03-24Protocol version bumped up to 29 (MC 1.2.4), seems to work.madmaxoft@gmail.com1-1/+1
2012-03-24Removed the split between 1.2.3 and 1.1, left only 1.2.3 codemadmaxoft@gmail.com1-16/+0
2012-03-22Fixed a deadlock by removing clients from all chunks upon their exit, not using the clients chunklists.madmaxoft@gmail.com1-4/+7
2012-03-14Split chunk data into separate arrays; decoupled most sources from cChunk.h dependencymadmaxoft@gmail.com1-4/+4
2012-03-11Not sending chunks to the client twicemadmaxoft@gmail.com1-21/+16
2012-03-10Fixed a few obsoleted functionsmadmaxoft@gmail.com1-6/+8
2012-03-10Using references instead of pointers for sending packetsmadmaxoft@gmail.com1-15/+15
2012-03-09cClientHandles have a unique ID now to distinguish themfaketruth1-1/+11
2012-03-07Fixed bug where cPlayer's cClientHandle was used after cPlayer was destroyed http://forum.mc-server.org/showthread.php?tid=380faketruth1-1/+0
2012-03-06Fixed rev368's ChunkSender, now sends properly even chunks that are loaded. Fixed a deadlock in cClientHandle vs TickThread over cClientHandle::m_CSChunkListsmadmaxoft@gmail.com1-4/+11
2012-03-05ChunkSender: 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.com1-33/+22
2012-03-04Changed signed char to unsigned char in block packets, so we can receive height up to 255faketruth1-4/+6
2012-03-03Got rid of some hardcoded numbers, now using hardcoded variables! woofaketruth1-2/+2
2012-03-02That should not have been committed...faketruth1-1/+1
2012-03-01Started carefully moving to 1.2.2faketruth1-1/+18
2012-02-29Fixed the authenticator bugmadmaxoft@gmail.com1-0/+6
2012-02-29Making sure cClientHandle::m_Player was NULL after authentication completedfaketruth1-0/+1
2012-02-28Setting the m_bDestroyed flag only after the cClienthandle is truly destroyed; cClientHandle's destructor now locks loaded chunk listsmadmaxoft@gmail.com1-3/+10
2012-02-26Attempt at fixing crashes with disconnecting playersmadmaxoft@gmail.com1-0/+8
2012-02-26Using 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.com1-115/+73
2012-02-26Extended SocketThreads for writing support (unusable in cClientHandle due to too many deadlock possibilities)madmaxoft@gmail.com1-9/+8
2012-02-23Made the viewdistance settable by users and default in settings.ini. The default is 9.madmaxoft@gmail.com1-6/+27
2012-02-22Fixed a bug that no chunks were unloaded on the client. Now chunks are properly unloaded on the clients.faketruth1-0/+2
2012-02-21Removed cChunkPtrs from everywhere but internal cChunkMap usage. Now we should finally be threadsafe :)madmaxoft@gmail.com1-12/+9
2012-02-21Fixed heightmap optimization from rev 302; removed a few more cChunkPtrsmadmaxoft@gmail.com1-11/+3
2012-02-20Removed some more cChunkPtr usagemadmaxoft@gmail.com1-1/+4
2012-02-20Using own ASSERT() that logs to filefaketruth1-5/+5
2012-02-17Chunk coords mostly "upgraded" to include the Y coord for future compatibilitymadmaxoft@gmail.com1-14/+14
2012-02-16Got rid of dangerous GetEntity(), not using DoWithEntity()faketruth1-6/+20
2012-02-15Restored chest and furnace functionality as it was (it's basically working but joined chests show single-chest window)madmaxoft@gmail.com1-87/+85
2012-02-13Rewritten 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.com1-294/+406
2012-02-08MTRand class is not created in each tick, therefore much improving tick-thread time (now uses ~5 % CPU instead of one full core)madmaxoft@gmail.com1-9/+10
2012-02-08cSocketThreads 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.com1-110/+65
2012-02-07Rewritten all packets to use buffers instead of direct sockets, for future cSocketThreads compatibility.madmaxoft@gmail.com1-23/+38
2012-02-05Now showing proper error messages when sockets fail :)faketruth1-1/+1
2012-02-03cClientHandle: split packet handling into separate functions for claritymadmaxoft@gmail.com1-969/+1158
2012-02-02cClientHandle: gotten rid of the obnoxious m_pState, now using direct members insteadmadmaxoft@gmail.com1-332/+333
2012-02-01Rewritten cAuthenticator to make use of the new cIsThread architecture - now authentication runs in a single separate thread for all clients;madmaxoft@gmail.com1-40/+28
2012-02-01sprintf() begone! Replaced with StringUtils' Printf()madmaxoft@gmail.com1-8/+12
2012-01-31Slight code cleanup, no big changesmadmaxoft@gmail.com1-40/+126
2012-01-29VC2008 / VC2010: Enabled precompiled header through Globals.h; the header included in every module in the project. Compilation optimization.madmaxoft@gmail.com1-8/+3
2012-01-23Cactus towers can be destroyed by removing the bottom blockfaketruth1-1/+53
2012-01-20MCServer is now compatible with Minecraft client 1.1 (as long as the client is not using any mods/plugins I think)faketruth1-2/+6
2012-01-19Terrain generation is synchronous again, async generation has bugs.faketruth1-1/+33
2012-01-02Fixed crashing bug in cClientHandle::~cClientHandlefaketruth1-1/+3
2012-01-01Fixed the numchunks console command.faketruth1-8/+8
2012-01-01- implemented separated inventory for creative mode (cSurvivalInventory and cCreativeInventory)lapayo94@gmail.com1-17/+37
2012-01-01Chests, furnaces and dispensers face the correct way now.faketruth1-0/+5
2011-12-31Made a couple of functions in cChunk inline, this should speed up several block operations on chunksfaketruth1-16/+6
2011-12-29 - Initial food handling by cedeelmtilden@gmail.com1-13/+30
2011-12-29 - Chests open and close on clients when opened/closedmtilden@gmail.com1-1/+1
2011-12-29- Pickups should now burn in firelapayo94@gmail.com1-2/+9
2011-12-28- implemented the fire simulation in native c++ (cFireSimulator)lapayo94@gmail.com1-84/+43
2011-12-28 - Fixed too fast actions kick for realmtilden@gmail.com1-5/+5
2011-12-28Fixed some small memory leakslapayo94@gmail.com1-0/+5
2011-12-28 - Didn't notice steak missing as wellmtilden@gmail.com1-0/+8
2011-12-28 - Added chicken to eatingmtilden@gmail.com1-0/+9
2011-12-27I'll lower my frequency of commits.. 1000 default ends up sent more often than calc'd packets.mtilden@gmail.com1-1/+0
2011-12-27Oops, accidentally left debug printmtilden@gmail.com1-1/+0
2011-12-27 - Added basic ping handling.mtilden@gmail.com1-3/+27
2011-12-27Slightly cleaner block change interactions static in headermtilden@gmail.com1-2/+2
2011-12-27Set 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.com1-2/+2
2011-12-26Players can switch worlds on the fly with the command /gotoworld [worldName]. This uses the function cPlayer::MoveToWorld()faketruth1-0/+14
2011-12-26Fixed 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 nowfaketruth1-9/+9
2011-12-26 - Linux compatible fixes including updated makefilemtilden@gmail.com1-3/+7
2011-12-26 - Default Notchian Ping (static until ping implemented through keepalive send/receive)mtilden@gmail.com1-2/+10
2011-12-26 - 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.com1-6/+10
2011-12-26 - 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.com1-6/+6
2011-12-26 - Make Color was using 2 extra characters which took 2 characters off the 16 max (including color codes) for scoreboard displaymtilden@gmail.com1-0/+11
2011-12-25Hold item is now dropped when inventory is closedlapayo94@gmail.com1-2/+4
2011-12-25Code improvementslapayo94@gmail.com1-0/+1
2011-12-25- improved and simplified the door system (shorter, clearer)lapayo94@gmail.com1-26/+25
2011-12-25Chunks 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 :Ofaketruth1-7/+21
2011-12-24Max. players and MOTD are now changeable in the settings.inilapayo94@gmail.com1-3/+9
2011-12-23Added thread names to cThread so when debugging in Visual Studio you actually know what thread you're looking atfaketruth1-3/+3
2011-12-22Digging leaves with shears now drops leaveslapayo94@gmail.com1-1/+2
2011-12-21- Crafting fixed in 1.0.0lapayo94@gmail.com1-7/+26
2011-11-11Found and fixed a bug not letting users place blocks in water or lava.admin@omencraft.com1-2/+7
2011-11-10Fixed logging in underground bug this time. A hack, but it works. :Dadmin@omencraft.com1-4/+4
2011-11-10Can now set gamemode via lua.admin@omencraft.com1-1/+1
2011-11-10Made block action sanity checks more robust, water buckets, lava buckets and empty buckets should all now work.admin@omencraft.com1-15/+70
2011-11-10Added 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.com1-2/+48
2011-11-10Added random weather that persists per world. Also added SetWeather, GetWeather, and CastThunderbolt to lua bindings.admin@omencraft.com1-17/+7
2011-11-09Added m_IP to player class and binding to get IP for LUA. (Probably should use m_pState)admin@omencraft.com1-0/+2
2011-11-08It's a Squirrel!!faketruth1-0/+1
2011-11-07Updated 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.com1-15/+34
2011-11-07Added Sebi's changes to pistons and item drops.admin@omencraft.com1-13/+20
2011-11-07Pistons now generate noise and animate when moving.admin@omencraft.com1-1/+1
2011-11-06Redstone 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.com1-2/+6
2011-11-06Redstone 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.com1-9/+29
2011-11-06Patch 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.com1-7/+5
2011-11-05Added all the items up to Beta 1.9.5. Added pistons and piston class.admin@omencraft.com1-2/+10
2011-11-04Added (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.com1-5/+27
2011-11-03Fixed some redstone items and a bug that prevented floats from client to server packets reading correctly on 64 bit linux.admin@omencraft.com1-2/+0
2011-11-03Added some redstone items.admin@omencraft.com1-6/+30
2011-11-03Updated the thunderbolt packet. Lightning and rain can be tested with a workbench and a chest. >:)admin@omencraft.com1-7/+17
2011-11-02Added 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.com1-7/+26
2011-11-02Fixed some "Entity was not found in any chunk!" warningsfaketruth1-4/+8
2011-11-02Fixed player spawn teleport postion.admin@omencraft.com1-1/+2
2011-11-01fixed player spawning in the ground.admin@omencraft.com1-0/+4
2011-11-01Accidentally removed a line of codefaketruth1-1/+2
2011-11-01You can now run multiple worlds by defining them in settings.ini . However there's no way to change worlds on the fly yetfaketruth1-46/+49
2011-11-01Put 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.com1-5/+23
2011-11-01Players 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.com1-3/+3
2011-10-31Prepared some parts of the code for multi world support, I created lots of TODO'sfaketruth1-15/+16
2011-10-27Fixed a memory leakfaketruth1-0/+1
2011-10-26Made several recomended changes. Gamemode is now world based. Need to add it to player.admin@omencraft.com1-3/+4
2011-10-26Moved 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.com1-2/+2
2011-10-26Creative 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.com1-3/+3
2011-10-26Added 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.com1-0/+2
2011-10-26added simple code for server side item durabilty on tool items that have durabilty. need to add block destroyed durability modifier.admin@omencraft.com1-3/+70
2011-10-23Abstracted sockets some more to ensure the same behavior over the entire program and on multiple platforms.faketruth1-19/+3
2011-10-21Compiles for linuxfaketruth1-2/+8
2011-10-03MCServer c++ source filesfaketruth1-0/+1082