summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-02-08Protocol 1.7: Fixed Coverity issues.Mattes D1-4/+7
Fixes CID 66411, CID 103166 and CID 103167.
2015-01-18Fixed warnings in 1.7 protocol.Mattes D1-106/+127
2015-01-03Fixed Linux compilation.Mattes D1-1/+1
2015-01-03Protocols: Ignore garbage data at the end of PluginMessage packets.Mattes D1-0/+11
Fixes #1692.
2014-12-24Refactored all player block placing to go through hooks.Mattes D1-2/+2
Fixes #1618.
2014-12-21Fixed coverity issues in protocols.Mattes D1-2/+5
Fixes CID 73099, CID 66411.
2014-11-29Many api fixes, add vanilla names to mob type -> string functions and mob spawner fixes.Howaner1-1/+1
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-3/+3
2014-10-21Properly exported cItemFrame and cHangingEntity to Lua.Mattes D1-1/+1
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-3/+3
2014-10-03Improved furnacesTiger Wang1-1/+1
* Fixed progress bar on 1.8 * Fixed bugs * Improved code * Fixes #1068 * Fixes #1070
2014-10-02Optimized chunk loaderHowaner1-0/+1
2014-09-30Fixed a missing semicolon.madmaxoft1-1/+1
2014-09-30Rewritten plugin messages, vanilla are being parsed directly.madmaxoft1-0/+92
This should finally fix the compatibility problems between 1.7 and 1.8 protocols with the changes in the vanilla plugin messages.
2014-09-27Dropped support for <1.7.xTiger Wang1-14/+0
2014-09-26Fixed players custom name in 1.8Howaner1-16/+4
2014-09-251.7 Protocol: fixed potential problems with no-payload packets.madmaxoft1-4/+4
2014-09-19Implemented mob spawner.Howaner1-1/+13
2014-09-18Exported player list states to extra functions.Howaner1-7/+59
2014-09-17Added an explicit setting for allowing BungeeCord handshake.madmaxoft1-1/+1
2014-09-17Added first test to show the object can be createdTycho1-15/+15
2014-09-17Full BungeeCord compatibility.madmaxoft1-0/+4
Fixes #1392. Fixes SpigotMC/BungeeCord#1211.
2014-09-17Initial BungeeCord support.madmaxoft1-0/+9
Ref.: #1392
2014-09-13Moved chat json creating to the CompositeChat class.Howaner1-170/+3
2014-09-131.8: Fixed maps.Howaner1-3/+2
2014-09-12Spawn exp if you break a mob spawner.Howaner1-3/+3
2014-09-11Removed GetProtocolVersion() from the protocols.Howaner1-3/+1
2014-09-111.8: Fixed hangings.Howaner1-1/+1
2014-09-111.8: Added ParticleEffect packet.Howaner1-2/+2
2014-09-09Added the player list to the 1.8 protocol.Howaner1-4/+9
2014-09-08More fixes.Howaner1-1/+1
2014-09-08Recoded cProtocol180 class.Howaner1-56/+16
2014-09-08Fixed more 1.8 packets.Howaner1-19/+40
2014-09-08Updated chunk sending to 1.8Howaner1-6/+6
2014-09-08Added GetProtocolVersion() to cProtocol.Howaner1-14/+12
2014-09-08Implemented packet compression.Howaner1-1/+25
ChunkData packet needs this.
2014-09-06Added Y-wise asserts to signs.Mattes D1-0/+1
This should help detect #1313's second case.
2014-09-04Fixed client errors.Howaner1-1/+1
2014-09-04Added more 1.8 protocol things.Howaner1-0/+1
2014-09-04Started implementing of the 1.8 protocol.Howaner1-2/+4
2014-09-02Added SetCustomName() to players.Howaner1-6/+20
2014-09-01Added CustomName to cMonster.Howaner1-0/+10
2014-08-21Fixed 1.7.2 login packet reading.Mattes D1-1/+5
Fixes #1317.
2014-08-20Renamed a_Motd to a_ServerDescription.Howaner1-3/+3
2014-08-20Added a_ClientHandle to the HOOK_SERVER_PING hook.Howaner1-2/+2
2014-08-20Cleaned up code.Howaner1-1/+0
2014-08-20Added HOOK_SERVER_PINGHowaner1-28/+71
2014-08-11cProtocol172: Check return values.madmaxoft1-4/+9
Fixes CID 43489, CID 43490, CID 43491, CID 43493, CID 66410, CID 66411, CID 66416, CID 66417, CID 66418, CID 66419, CID 66420, CID 66421, CID 66422, CID 66423, CID 66424, CID 66425, CID 66429, CID 66430, CID 66431
2014-08-11Exported daylight cycle flag to the protocol.Howaner1-1/+6
2014-08-04Fixed #1286Howaner1-1/+1
2014-08-04Changed properties for-loop.Howaner1-1/+1
2014-08-03Fixed skins in mc 1.7.9/1.7.10Howaner1-6/+5
2014-07-31Renamed functions and added beacon json saving.Howaner1-2/+2
2014-07-30Added beacon.Howaner1-0/+15
2014-07-30MojangAPI: Implemented UUID shortening and dashing.madmaxoft1-3/+3
2014-07-21Style: Normalized spaces after if, for and while.madmaxoft1-1/+1
2014-07-19Fixed spaces after commas in protocol data.madmaxoft1-7/+7
The JSON data is well-formatted with spaces, too; we can afford to waste the few bytes.
2014-07-19Fixed style: spaces after commas.madmaxoft1-1/+1
2014-07-18Fix failed merge and other issuesTiger Wang1-1/+1
2014-07-17Fixed tabs used for alignment.madmaxoft1-3/+4
2014-07-17Basic style fixes.madmaxoft1-1/+1
2014-07-17Normalized comments.madmaxoft1-32/+32
This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
2014-07-16SuggestionsTiger Wang1-2/+5
2014-07-16Store properties as Json::ValueTiger Wang1-6/+2
2014-07-14Player properties are now retrievedTiger Wang1-1/+13
2014-07-13Fixed MSVC warnings in SoundEffect functions.madmaxoft1-7/+3
2014-07-13Changed BroadcastSoundEffect function to take floating pos.Howaner1-5/+9
2014-07-04Crash and compile fixTiger Wang1-1/+1
2014-06-29Fixed respawningTiger Wang1-3/+3
* Fixes #1103
2014-06-29Send statistics to the player, when he logged in.Howaner1-2/+1
2014-06-27Added generic entity-collecting.Mattes D1-2/+2
Now any cEntity can be collected, not only cPickups. This should help PR #1098.
2014-06-12Portals animate and delay correctlyTiger Wang1-4/+4
2014-06-08Fixed deadlock when moving players to other worlds.Mattes D1-3/+12
Fixes #1039, fixes #851
2014-05-31Implemented end and nether portalsTiger Wang1-2/+2
2014-05-28Fixed a crash in message formatter.madmaxoft1-1/+2
The code would fail if a message is sent to a player not yet added to a world.
2014-05-19cCompositeChat message type is now formattedTiger Wang1-1/+1
2014-05-19Added client translation to achievementsTiger Wang1-0/+29
2014-05-12cEntity::Killed(cEntity *) Handler; Achievement triggers; cPlayer::AwardAchievement()andrew1-5/+1
2014-05-11Statistic Managerandrew1-7/+41
2014-05-09Fixed MSVC 64-bit build warnings.Mattes D1-9/+9
2014-05-08Fixed MSVC 64-bit build warnings.Mattes D1-9/+9
2014-05-07Change m_RepairCost to int.Howaner1-2/+2
2014-05-07Add repair cost to cItem, add custom name to NBTChunkSerializer and fix anvil bugs.Howaner1-0/+11
2014-05-01Fixed warnings in ClientHandle.madmaxoft1-1/+1
2014-04-29Moved the rest of the Crypto objects into their own respective files.madmaxoft1-2/+3
2014-04-29Moved cRsaPrivateKey to PolarSSL++, rewritten using existing objects.madmaxoft1-1/+1
2014-04-28Revert "Changed the old invulnerable methods from the wither to the new."Howaner1-8/+1
This reverts commit d50f8f6f11f69e7e1e56be92fb2d72a5014a3e34.
2014-04-28Fixed projectile source filenames, indentationsarchshift1-2/+2
2014-04-27Another attempt at #889.madmaxoft1-3/+5
The packet was being sent after the state was adjusted, so another thread *may* have sent another packet in the meantime.
2014-04-27Moved cFireworkEntity out of ProjectileEntity.harchshift1-0/+1
2014-04-27Moved cArrowEntity out of ProjectileEntity.harchshift1-0/+1
2014-04-26Changed the old invulnerable methods from the wither to the new.Howaner1-1/+8
2014-04-26FixesHowaner1-1/+1
2014-04-18Did some static analysis, fixed some bugs and optimized a lot of codejfhumann1-37/+48
2014-04-16Added asserts for proper game state.madmaxoft1-5/+131
This is to help hunt #889.
2014-04-15Attempted fix for the client crash with the new protocols.madmaxoft1-0/+7
2014-04-14Implemented the 1.7.6 protocol and authenticator.madmaxoft1-22/+40
Server works both in online and offline modes with 1.7.9.
2014-04-14A client UUID is generated when the server is in offline mode.madmaxoft1-4/+10
1.7.9 client works with these changes in offline mode.
2014-04-14Initial 1.7.6 protocol support.madmaxoft1-0/+36
Doesn't work yet because of missing UUIDs.
2014-04-14Bug fixesdaniel09161-3/+0
2014-04-13Fixed mistakedaniel09161-1/+1
2014-04-04Fixed format string mismatch.madmaxoft1-1/+1
2014-04-04More Clang warning fixes in the protocols.madmaxoft1-1/+1
2014-04-04Fixed some Clang warnings in protocols.madmaxoft1-2/+2
2014-03-25Protocol: Wither metadataandrew1-0/+10
2014-03-20Plugins can set flying speed.madmaxoft1-2/+1
2014-03-20Rewritten player speeds to be relative unit-less.madmaxoft1-3/+4
Value of 1 means "default speed", 2 means "double the speed", 0.5 means "half the speed". This allows for easier plugins and is more future-proof.
2014-03-12Added additional macros to support the MSVC size_t format and changed all formats to use the macrosTycho1-6/+6
2014-03-11Fixed a load of format string errorsTycho1-3/+3
2014-03-11Fixed format errors in protocolTycho1-3/+3
2014-03-09Adjusted style of switch/caseJan-Fabian Humann1-15/+5
2014-03-08Changed if-else to switch-caseJan-Fabian Humann1-13/+11
2014-03-08Split cClientHandle::HandleEntityAction() into three seperate functions HandleEntityCrouch, HandleEntityLeaveBed and HandleEntitySprinting.Jan-Fabian Humann1-1/+21
2014-03-08Fixed issues with int vs size_t and a few other warningsTycho1-2/+2
2014-03-07WarningsTycho1-1/+1
2014-03-07Add Flower PotsHowaner1-1/+15
2014-02-27Implemented ballistic missiles (fireworks)Tiger Wang1-25/+52
+ Added fireworks
2014-02-23Rename SkullEntity to MobHeadEntityHowaner1-9/+9
2014-02-23Add break to Protocol17x.cpp and use new comment delimiterHowaner1-0/+1
2014-02-23Add Skulls/HeadsHowaner1-0/+14
2014-02-19Rename SkullEntity to MobHeadEntityHowaner1-9/+9
2014-02-19Add break to Protocol17x.cpp and use new comment delimiterHowaner1-0/+1
2014-02-18De-breaked stuffTiger Wang1-2/+0
2014-02-18Map decorators; Map clientsandrew1-0/+20
2014-02-18Implemented paintings, fixes #689Tiger Wang1-0/+15
+ Implemented paintings
2014-02-18Implemented item frames, a part of #689Tiger Wang1-2/+14
+ Implemented Item Frames * Fixed Pitch and Yaw being wrongly flipped in the protocol (XOFT!)
2014-02-17Add Skulls/HeadsHowaner1-0/+14
2014-02-16Add Locale to ClientHandleHowaner1-0/+2
2014-02-16Set max. Players in the Tablist to 60Howaner1-1/+1
2014-02-15Implemented cCompositeChat.madmaxoft1-0/+153
This allows plugins to send composite chat messages, containing URLs, commands to run and cmdline suggestions. Fixes #678.
2014-02-13Implementation of in-game mapsandrew1-0/+35
2014-02-05Improved the signedness conversion.madmaxoft1-2/+2
2014-02-05Fixed a bunch of MSVS warningsTiger Wang1-1/+2
* Possibly also fixed some bugs with pathfinding and TNT, though unlikely
2014-02-04Protocol 1.7: Fixed a signed / unsigned comparison warning.madmaxoft1-2/+2
2014-02-04Protocol 1.7 uses char for blockface.madmaxoft1-2/+2
That should fix #644 on RasPi.
2014-02-04Improved Type safety of eBlockFaceTycho1-2/+2
May Fix #640
2014-01-31Some updates for enchanting (2)daniel09161-13/+4
2014-01-29Limited sign lines to 15 chars.madmaxoft1-4/+5
Fixes #598.
2014-01-29Protocol 1.7: Encryption is enabled only with auth.madmaxoft1-1/+1
2014-01-28Protocol 1.7: Forced encryption on all connections.madmaxoft1-3/+99
This is for testing purposes only, to find bugs in the encryption. Once the encryption is deemed stable, it will be enabled only for servers with enabled Authentication.
2014-01-26Fixed client packet parsing.madmaxoft1-12/+33
When the packet wouldn't fit the current buffer, the server would mis-parse the next packet. This was the cause for #541. Also modified comm logging, now each direction can be turned on separately.
2014-01-25Comm logging is available in both Debug and Release modes.madmaxoft1-10/+16
2014-01-25Protocol17: Comm logging shows the data left over from previous parse.madmaxoft1-2/+15
2014-01-24Added per-connection comm logging in debug mode.madmaxoft1-0/+64
It is meant for debugging only, so it is compiled only into debug mode. It is activated by starting the server with "/logcomm" parameter.
2014-01-24removed hook from enchanting commitdaniel09161-1/+1
2014-01-24Some updates for enchantingdaniel09161-3/+11
2014-01-23PolarSSL is fully used for 1.3.2 protocol encryption.madmaxoft1-4/+4
2014-01-21Scoreboard SendTo()andrew1-3/+3
2014-01-21Scoreboard protocol supportandrew1-0/+40
2014-01-20Fix a crash but somewhere...Alexander Harkness1-2/+1
2014-01-20first changes for enchanting (not finished)daniel09161-0/+17
- added enchanting table block handler and added it to the blockhandler - added enchanting window - drop item in the slot 0 when the player close the window - added enchanting packet (1.7 only) - some more...
2014-01-19Removed unneeded paramtersTiger Wang1-5/+13
2014-01-19Switched EnchantmentSerilizer to namespaceTycho1-2/+2
2014-01-19Spilt Writing of Enchantments to seperate classTycho1-2/+3
Created a new class cEnchantmentSerializer to serilize Enchantments to NBT. This breaks a dependecy chain between cChunkGenerator and cWorld. cEnchantmentSerializer is seperate from NBTWriter as it needs to access private members of cEnchantments so having it seperate reduces the spread of the frein modifier
2014-01-19Changed SendBlockEntity format slightlyTiger Wang1-4/+39
* Writing NBT is now in Protocol, not BlockEntity files * Fixed a last output bug
2014-01-19Improved command blocksTiger Wang1-0/+25
* Their command and previous output are displayed on the client * They have a BlockHandler implementation, so you can't place blocks on them anymore + As a side effect, implemented UpdateBlockEntity
2014-01-17Protocol 1.7: More output on unknown packets / protocol states.madmaxoft1-4/+21
2014-01-16Fixed block break packet numberTiger Wang1-1/+1
2014-01-16Changed newline character because of issuesTiger Wang1-3/+3
2014-01-16Protocol 1.7: Unknown packets are dumped to log in Debug mode.madmaxoft1-1/+14
2014-01-16Added packet diagnostics to 1.7 protocol.madmaxoft1-28/+36
When the packet is mis-interpreted, a log message is output about the packet type and lengths.
2014-01-15Implemented custom names and loreTiger Wang1-5/+55
+ Added custom names and lore + Added saving and loading + Added writing and parsing of NBT
2014-01-13Added handshake processing to protocol 1.7.madmaxoft1-2/+23
This fixes #495
2014-01-12Renamed cEmptyMinecart to cRideableMinecartSTRWarrior1-6/+6
2014-01-12EmptyMinecarts should be able to get a block inside of them.STRWarrior1-1/+16
2014-01-09Fixed wrong packet number for PluginMessage packet.madmaxoft1-1/+1
2014-01-09Added cClientHandle::SendPluginMessage().madmaxoft1-0/+12
It is not yet exported in the API, though.
2014-01-07Fixed faviconsTiger Wang1-1/+1
2014-01-07Plugin messages are received and handed to plugins.madmaxoft1-1/+1
Note that MCS doesn't currently handle any channel registrations, this will come later on.
2014-01-07A few more touch upsBill Derouin1-11/+1
2014-01-07Implement favicon for 1.7.2Bill Derouin1-0/+13
Favicon data is a png encoded in base64 which is stored in the server and sent in the server response packet
2014-01-07Fixed a few MSVC warnings.madmaxoft1-1/+1
2014-01-06Fixed a few MSVC warnings.madmaxoft1-1/+0
2013-12-22Implented BroadcastParticleEffectSTRWarrior1-0/+18
2013-12-19Fixed PlayerAbilities and creativeTiger Wang1-10/+3
2013-12-17Fixed player falling through the floor on spawn.madmaxoft1-1/+5
The 1.7 client seems to have math issues with exact coords. Adding 0.001 to the Y coord fixed the problem.
2013-12-15Fixed player spawning packet.madmaxoft1-1/+1
The player was spawned 1.62 blocks below their pos. This fixes #323.
2013-12-15Moved reading flags to the protocol.STRWarrior1-1/+19
2013-12-15Added m_IsFlying and m_CanFly. Both have a Get and Set function. Added cClientHandle::SendPlayerAbilities() functionSTRWarrior1-2/+10
2013-12-14Removed leftover debugging messages from cProtocol172.madmaxoft1-4/+0
2013-12-14Added SendEntityEffect and SendRemoveEntityEffect. Also a Player now gets the hunger effect when he has food poison.STRWarrior1-0/+24
2013-12-13Fixed threading issues affecting cProtocol172.madmaxoft1-163/+163
2013-12-12Fixed protocol 1.7 recovery after unknown packet.madmaxoft1-4/+0
2013-12-08Fixed tabcompletion packet, fixes #356Tiger Wang1-8/+4
2013-12-08Fixed falling block metas, fixes #406Tiger Wang1-1/+1
2013-12-07Renamed animation functionTiger Wang1-2/+2
Renamed BroadcastPlayerAnimation to BroadcastEntityAnimation. Not just players can have animations, you know.
2013-12-02Removed stray printf, again.Samuel Barney1-1/+0
2013-12-02Switched to using provided ReadItem function.Samuel Barney1-17/+3
Fixed misplacing when clicking on the bottom of bottom slabs and the top of top slabs.
2013-12-02Removed stray printf.Samuel Barney1-1/+0
2013-12-02Fixed 1.7 slab and stair placement.Samuel Barney1-0/+19
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-16fixed bug and added SpendExperience()Daniel O'Brien1-3/+3
2013-11-15finished #143 I believeDaniel O'Brien1-1/+1
2013-11-14cProtocol add SendExperience() and debuggingDaniel O'Brien1-0/+12
2013-11-12Bundled fixes [SEE DESC]Tiger Wang1-3/+7
* 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
2013-11-10Bundled fixes [SEE DESC]Tiger Wang1-3/+3
* Fixed compiler warning in Monster.cpp * Future proofed particle effects * Improved pickups, made less jittery
2013-11-10Protocol 1.7: Fixed crashes and d/c with bad packets.madmaxoft1-3/+3
Fixes #332.
2013-11-10Bundled fixes [SEE DESC]Tiger Wang1-5/+35
* 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
2013-11-10Using DoWithPlayer instead of FindAndDoWithPlayer for callbacks.STRWarrior1-0/+2
You are able to dye the collar.
2013-11-10Protocol 1.7: Attempt at fixing SoundParticleEffect packet.madmaxoft1-5/+3
2013-11-10Fixed Player animation packet.madmaxoft1-1/+1
Fixes #329.
2013-11-08Fixed sprinting in 1.7 protocol.madmaxoft1-1/+17
Fixes #324
2013-11-08cProtocol::SendWindowOpen() signature changed.madmaxoft1-10/+13
This implements #313.
2013-11-08Protocol 1.7: Fixed using entities.madmaxoft1-2/+1
The mouse buttons were swapped.
2013-11-08Protocol 1.7: Copied Mob Metadata code from 1.2.5.madmaxoft1-4/+195
2013-11-07Added hardcore client effectTiger Wang1-1/+1
Also fixed multiple world comments issue.
2013-11-07Fix for entity spawning in generalTiger Wang1-3/+3
2013-11-07Possible fix for 1.7 pickup spawningTiger Wang1-1/+1
2013-11-07Protocol 1.7: Fixed the Spawn Mob packet.madmaxoft1-1/+1
This should fix #318
2013-11-06Protocol 1.7: Added the remaining server-bound packets.madmaxoft1-14/+99
2013-11-06Protocol 1.7: Added more server-bound packets.madmaxoft1-25/+132
2013-11-06Protocol 1.7: Finished the client-bound packets.madmaxoft1-7/+32
2013-11-05Protocol 1.7: More client-bound packets.madmaxoft1-17/+27
Also removed the SendWholeInventory(cInventory &) function, as promised in prev commit.
2013-11-04Protocol 1.7: Added more client-bound packets.madmaxoft1-15/+164
Untested, still more to come.
2013-11-03Protocol 1.7: Added client status packet.madmaxoft1-1/+22
2013-11-03Protocol 1.7: Rewritten packet-sending to use cPacketizer.madmaxoft1-159/+316
Implemented enough of the protocol that the client now spawns in the world (but cannot do anything).
2013-11-01Protocol 1.7: Implemented the first batch of sent packets.madmaxoft1-0/+577
2013-10-31Protocol 1.7: Added skeleton functions for reading client packets.madmaxoft1-17/+317
Untested, this is skeleton code only.
2013-10-30Protocol 1.7: Added status ping handling.madmaxoft1-0/+25
2013-10-30Added 1.7 to protocol recognizer.madmaxoft1-0/+216
The 1.7 protocol currently only reports server description and playercount.