summaryrefslogtreecommitdiffstats
path: root/src/Protocol/ProtocolRecognizer.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-08-02Add WakeUp/AddBlock distinctionTiger Wang1-1/+0
* WakeUp is for singular changes (block breaking for example). The simulator should check blocks around the position and discover other affected blocks as it sees fit * AddBlock is for when you know a whole area is to be updated; chunk loading, or area wakeups for example + Prepares for correct handling of destroyed blocks after removal of SolidBlockHandler in the redstone simulator
2020-07-261.14 connection supportTiger Wang1-7/+11
2020-07-191.13.1, 1.13.2 connection supportTiger Wang1-0/+4
2020-07-18Use cMultiVersionProtocol's bufferTiger Wang1-2/+2
2020-07-18Delete duplicated status request handlersTiger Wang1-26/+26
Here we go again...
2020-07-181.13 items supportTiger Wang1-3/+0
+ Add 1.16 block and item definitions
2020-07-17cProtocolRecognizer goes on a diet (#4770)Tiger Wang1-1023/+175
- Removed inheritance from cProtocol
2020-07-14Introduce recipe book functionality (#4493)Tobias Wilken1-0/+21
* Introduce recipe book functionality The recipe book helps especially new players. Missing it gives the impression that cuberite is not as advanced as it is. The handling of the recipe book uses the following functions: - Unlock Recipes (https://wiki.vg/index.php?title=Protocol&oldid=14204#Unlock_Recipes) to make recipes available and show the notification for new recipes. Initialization is done on player login for known ones, the update is done when new items are discovered. - Craft Recipe Request (https://wiki.vg/index.php?title=Protocol&oldid=14204#Craft_Recipe_Request) when the user selects a recipe from the recipe book to fill the slots. Known recipes are initialized on player login via `Unlock Recipes` with `Action` 0. As soon as a new recipe is discovered this is added via `Unlock Recipes` with `Action` 1. To be able to know and recognize new recipes the player class is extended with `KnownItems` and `KnownRecipes`. As soon as a player touches an item this is compared to the list of `KnownItems`, if the item is unknown the recipes are checked for this item and the other ingredients are checked with the list of `KnownItems`. If a full match is discovered the recipe is unlocked with the client and stored in the `KnownRecipes`. To unlock recipes the recipe ID is sent to the client. A mapping file (for protocol 1.12.2) translated the minecraft recipe names to ids. The crafting.txt is extended with and minecraft recipe names is possible. Limitations: Only a single recipe is added to the crafting area. Multiple clicks or shift click does not increase the number of builds. Co-authored-by: peterbell10 <peterbell10@live.co.uk> * Address first issues mentioned by @peterbell10 - Some linting - Extract loading of recipe specific protocol mapping into a function - Build `RecipeNameMap` only once - Use `std::optional` - Extract `LoadRecipe` from `Window` * Start to implement new suggestions * Update with suggestions from @peterbell10 * Some minor cleanup * Update protocol packet IDs * Remove unused include * Include header in cmake * Change a vector to integer counter * Change dromedaryCase method names to PascalCase * Address suggestions from @madmaxoft * Read Protocol subdirectories to load recipe books To load all recipebooks iterate over the `Protocol` subdirectories to find mapping files. Co-authored-by: peterbell10 <peterbell10@live.co.uk>
2020-05-09Update submodules (#4727)peterbell101-2/+2
Closes #4708 This updates jsoncpp, mbedtls, TCLAP and SQLiteCpp to their latest stable release. A few additional changes were needed: * jsoncpp deprecated Reader, FastWriter and StyledWriter which I've replaced with some helper functions in JsonUtils.cpp * SQLiteCpp changed how it builds with external sqlite libraries, now expecting them to be installed. The simplest path was to remove sqlite from cuberite's submodule and just use SQLiteCpp's internal version.
2020-05-04Improve entity position updates (#4701)Tiger Wang1-36/+16
* Make puking pickups fly nicer * Improve entity position updates * Move determination of whether a delta is too big for a packet into the protocol handlers + Less jittery movement + Generalise CollectEntity to take any entity
2020-05-01Unify entity spawn packet sendingTiger Wang1-41/+2
2020-04-20Delet SpawnObject paramsTiger Wang1-2/+2
* Fix #4679 awkward...
2020-04-16Using Super.Mattes D1-1/+1
2020-04-07Initial resource pack support (#4622)Mat1-0/+10
2020-03-29Add protocol mob ID remapping (#4538)Mat1-0/+9
2020-01-07Added temporary block type mapping for 1.13+ protocols.Mattes D1-1/+18
2020-01-07ProtocolRecognizer: Updated to unique_ptr.Mattes D1-23/+13
2019-09-16Initial support for 1.13 clientsTiger Wang1-0/+6
+ Can look at *shape* of world + Can look at *shape* of inventory
2019-09-10Protocol: Use logical outgoing packet types.Mattes D1-3/+22
2018-08-29Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell101-1/+1
Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
2018-08-26Store and pass entity effect duration as an int not a short. (#4293)Alexander Harkness1-5/+1
Fixes #4292.
2018-07-26CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell101-1/+2
Add check for number of empty lines between functions and fix the corresponding failures
2018-07-23recover hotbar selected slot after reconnect (#4249)changyong guo1-0/+11
1. implement protocol message SendHeldItemChange 2. add save / load inventory equipped item slot in JSON 3. send held item slot message after player connect to server Fixes #4189
2017-09-21Add support for release 1.12.2 (#4041)peterbell101-0/+5
2017-08-21Fully implemented leashes (#3798)Pablo Beltrán1-0/+20
2017-08-17Add support for 1.12.1 (#3908)Bond-0091-0/+6
2017-07-28Tentative fix for player-limit race condition (#3862)Tiger Wang1-2/+2
* Attempts to fix #2257 Derived from d233e9843148313c71fbaba96ccff660e47b07b1 * Changed player count type to int * Clarified certain actions
2017-07-26Handle incomplete packets in cProtocolRecognizerpeterbell101-42/+55
2017-06-16Protocol: Do not assume anything about unknown packets. (#3647)Mattes D1-35/+38
2017-06-14Added support for protocol 1.12 (#3757)Lukas Pioch1-0/+7
2017-05-16Use FastWriter instead of StyledWritermathiascode1-2/+2
2017-02-21Add 1.11.1/1.11.2 protocol (#3575)mathiascode1-0/+6
2016-12-16Initial support for the 1.11 protocol.Mattes D1-15/+21
2016-10-21Added SendMessageRaw for sending json string.Lukas Pioch1-0/+10
2016-10-12Spectators added (#2852)bibo381-0/+9
2016-09-02Added support for the Minecraft 1.10 protocol(#210) (#3348)bibo381-5/+12
* Added support for the Minecraft 1.10 protocol(#210) * Fixed the Clang compilation errors * Fixed wrong sound pitch value and fixed SendPlayerSpawn Metadata value. * Prefixed each enum item with the appropriate class name.
2016-08-29Proper respawn packets on dimension travelLogicParrot1-2/+2
2016-07-21Dropped 1.7 support (#3253)Mathias1-13/+0
2016-05-141.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135)Pokechu221-65/+175
* Semistable update to 15w31a I'm going through snapshots in a sequential order since it should make things easier, and since protocol version history is written. * Update to 15w34b protocol Also, fix an issue with the Entity Equipment packet from the past version. Clients are able to connect and do stuff! * Partially update to 15w35e Chunk data doesn't work, but the client joins. I'm waiting to do chunk data because chunk data has an incomplete format until 15w36d. * Add '/blk' debug command This command lets one see what block they are looking at, and makes figuring out what's supposed to be where in a highly broken chunk possible. * Fix CRLF normalization in CheckBasicStyle.lua Normally, this doesn't cause an issue, but when running from cygwin, it detects the CR as whitespace and creates thousands of violations for every single line. Lua, when run on windows, will normalize automatically, but when run via cygwin, it won't. The bug was simply that gsub was returning a replaced version, but not changing the parameter, so the replaced version was ignored. * Update to 15w40b This includes chunk serialization. Fully functional chunk serialization for 1.9. I'm not completely happy with the chunk serialization as-is (correct use of palettes would be great), but cuberite also doesn't skip sending empty chunks so this performance optimization should probably come later. The creation of a full buffer is suboptimal, but it's the easiest way to implement this code. * Write long-by-long rather than creating a buffer This is a bit faster and should be equivalent. However, the code still doesn't look too good. * Update to 15w41a protocol This includes the new set passengers packet, which works off of the ridden entity, not the rider. That means, among other things, that information about the previously ridden vehicle is needed when detaching. So a new method with that info was added. * Update to 15w45a * 15w51b protocol * Update to 1.9.0 protocol Closes #3067. There are still a few things that need to be worked out (picking up items, effects, particles, and most importantly inventory), but in general this should work. I'll make a few more changes tomorrow to get the rest of the protocol set up, along with 1.9.1/1.9.2 (which did make a few changes). Chunks, however, _are_ working, along with most other parts of the game (placing/breaking blocks). * Fix item pickup packet not working That was a silly mistake, but at least it was an easy one. * 1.9.2 protocol support * Fix version info found in server list ping Thus, the client reports that it can connect rather than saying that the server is out of date. This required creating separate classes for 1.9.1 and 1.9.2, unfortunately. * Fix build errors generated by clang These didn't happen in MSVC. * Add protocol19x.cpp and protocol19x.h to CMakeLists * Ignore warnings in protocol19x that are ignored in protocol18x * Document BLOCK_FACE and DIG_STATUS constants * Fix BLOCK_FACE links and add separate section for DIG_STATUS * Fix bat animation and object spawning The causes of both of these are explained in #3135, but the gist is that both were typos. * Implement Use Item packet This means that buckets, bows, fishing rods, and several other similar items now work when not looking at a block. * Handle DIG_STATUS_SWAP_ITEM_IN_HAND * Add support for spawn eggs and potions The items are transformed from the 1.9 version to the 1.8 version when reading and transformed back when sending. * Remove spammy potion debug logging * Fix wolf collar color metadata The wrong type was being used, causing several clientside issues (including the screen going black). * Fix 1.9 chunk sending in the nether The nether and the end don't send skylight. * Fix clang build errors * Fix water bottles becoming mundane potions This happened because the can become splash potion bit got set incorrectly. Water bottles and mundane potions are only differentiated by the fact that water bottles have a metadata of 0, so setting that bit made it a mundane potion. Also add missing break statements to the read item NBT switch, which would otherwise break items with custom names and also cause incorrect "Unimplemented NBT data when parsing!" logging. * Copy Protocol18x as Protocol19x Aditionally, method and class names have been swapped to clean up other diffs. This commit is only added to make the following diffs more readable; it doesn't make any other changes (beyond class names). * Make thrown potions use the correct appearence This was caused by potions now using metadata. * Add missing api doc for cSplashPotionEntity::GetItem * Fix compile error in SplashPotionEntity.cpp * Fix fix of cSplashPotionEntity API doc * Temporarilly disable fall damage particles These were causing issues in 1.9 due to the changed effect ID. * Properly send a kick packet when connecting with an invalid version This means that the client no longer waits on the server screen with no indication whatsoever. However, right now the server list ping isn't implemented for unknown versions, so it'll only load "Old" on the ping. I also added a GetVarIntSize method to cByteBuffer. This helps clean up part of the code here (and I think it could clean up other parts), but it may make sense for it to be moved elsewhere (or declared in a different way). * Handle server list pings from unrecognized versions This isn't the cleanest way of writing it (it feels odd to use ProtocolRecognizer to send packets, and the addition of m_InPingForUnrecognizedVersion feels like the wrong technique), but it works and I can't think of a better way (apart from creating a full separate protocol class to handle only the ping... which would be worse). * Use cPacketizer for the disconnect packet This also should fix clang build errors. * Add 1.9.3 / 1.9.4 support * Fix incorrect indentation in APIDesc
2016-02-05Bulk clearing of whitespaceLogicParrot1-1/+1
2015-11-24Add enum for Sound and Particle EffectsDave Tucker1-1/+1
Fixes #2603 Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2015-10-02Improved types of utf 16 stringstycho1-3/+3
2015-09-21Refactored cProtocol Chat handlingtycho1-64/+4
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney1-6/+6
2015-07-14Improved mapsTiger Wang1-22/+2
2015-06-02Added system and above action bar chat messagesjan641-0/+60
2015-05-07Added support for additional data in the ParticleEffect Packettycho1-0/+11
Also started refactoring how broadcasts are handled
2015-04-13Implement backend for /title commandScott Moore1-0/+70
2015-03-22Unified cPacketizer across all protocols.Mattes D1-0/+12
2015-03-21Fixed signedness warnings in Protocol.Mattes D1-2/+2
2015-03-21Unified cByteBuffer types.Mattes D1-11/+11
cByteBuffer now reads and writes any of the [U]Int<N> types.
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-77/+77
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-77/+77
2014-10-05cClientHandle: Added protocol version knowledge.Mattes D1-0/+1
2014-10-03Improved furnacesTiger Wang1-1/+1
* Fixed progress bar on 1.8 * Fixed bugs * Improved code * Fixes #1068 * Fixes #1070
2014-09-29Style fixes.madmaxoft1-3/+3
2014-09-28Compilation fixTiger Wang1-1/+1
2014-09-27Bug fixTiger Wang1-2/+15
2014-09-27Dropped support for <1.7.xTiger Wang1-202/+3
2014-09-26Fixed players custom name in 1.8Howaner1-2/+2
2014-09-19Code improvements.Howaner1-1/+1
2014-09-18Exported player list states to extra functions.Howaner1-2/+42
2014-09-17Initial BungeeCord support.madmaxoft1-1/+1
Ref.: #1392
2014-09-131.8: Fixed maps.Howaner1-4/+4
2014-09-11Removed GetProtocolVersion() from the protocols.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-2/+2
2014-09-08Added GetProtocolVersion() to cProtocol.Howaner1-2/+2
2014-09-04Started implementing of the 1.8 protocol.Howaner1-1/+24
2014-09-02Added SetCustomName() to players.Howaner1-2/+2
2014-09-01Make sure packets are validworktycho1-6/+24
Fixes CID 66408, 66409 and 72045
2014-08-20Renamed a_Motd to a_ServerDescription.Howaner1-4/+4
2014-08-20Added a_ClientHandle to the HOOK_SERVER_PING hook.Howaner1-0/+3
2014-08-20Added "HOOK_SERVER_PING" call to older protocolsHowaner1-13/+12
2014-08-11Exported daylight cycle flag to the protocol.Howaner1-2/+2
2014-07-21Style: Normalized to no spaces before closing parenthesis.madmaxoft1-1/+1
2014-07-19Fixed attempts to call c_str on ChatColorsarchshift1-2/+2
2014-07-19Fixed style: spaces after commas.madmaxoft1-1/+1
2014-07-18ProtocolRecognizer.cpp: removed unused NumBytesReadarchshift1-2/+0
2014-07-17Basic style fixes.madmaxoft1-3/+3
2014-07-13Changed BroadcastSoundEffect function to take floating pos.Howaner1-2/+2
2014-06-29Fixed respawningTiger Wang1-2/+2
* Fixes #1103
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-19Nullify deleted pointers.archshift1-0/+1
2014-06-12Portals animate and delay correctlyTiger Wang1-2/+2
2014-06-08Fixed deadlock when moving players to other worlds.Mattes D1-2/+2
Fixes #1039, fixes #851
2014-05-31Implemented end and nether portalsTiger Wang1-2/+2
2014-05-11Statistic Managerandrew1-0/+10
2014-05-09Fixed MSVC 64-bit build warnings.Mattes D1-2/+2
2014-05-08Fixed MSVC 64-bit build warnings.Mattes D1-2/+2
2014-05-01Fixed warnings in ClientHandle.madmaxoft1-1/+1
2014-04-18Did some static analysis, fixed some bugs and optimized a lot of codejfhumann1-6/+7
2014-04-14Implemented the 1.7.6 protocol and authenticator.madmaxoft1-0/+10
Server works both in online and offline modes with 1.7.9.
2014-04-14Initial 1.7.6 protocol support.madmaxoft1-0/+13
Doesn't work yet because of missing UUIDs.
2014-04-04More Clang warning fixes in the protocols.madmaxoft1-3/+3
2014-04-04Fixed some Clang warnings in protocols.madmaxoft1-1/+1
2014-03-07WarningsTycho1-1/+1
2014-02-18Map decorators; Map clientsandrew1-0/+10
2014-02-18Implemented paintings, fixes #689Tiger Wang1-0/+8
+ Implemented paintings
2014-02-15Implemented cCompositeChat.madmaxoft1-0/+10
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/+20
2014-01-23PolarSSL is fully used for 1.3.2 protocol encryption.madmaxoft1-1/+1
2014-01-21Scoreboard protocol supportandrew1-1/+31
2014-01-19Removed unneeded paramtersTiger Wang1-2/+2
2014-01-19Changed SendBlockEntity format slightlyTiger Wang1-2/+2
* Writing NBT is now in Protocol, not BlockEntity files * Fixed a last output bug
2014-01-19Improved command blocksTiger Wang1-0/+10
* 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-09Added cClientHandle::SendPluginMessage().madmaxoft1-0/+10
It is not yet exported in the API, though.
2014-01-06Fixed a few MSVC warnings.madmaxoft1-1/+1
2013-12-22Implented BroadcastParticleEffectSTRWarrior1-0/+10
2013-12-14Added SendEntityEffect and SendRemoveEntityEffect. Also a Player now gets the hunger effect when he has food poison.STRWarrior1-0/+20
2013-12-07Renamed animation functionTiger Wang1-2/+2
Renamed BroadcastPlayerAnimation to BroadcastEntityAnimation. Not just players can have animations, you know.
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-15finished #143 I believeDaniel O'Brien1-2/+2
2013-11-14cProtocol add SendExperience() and debuggingDaniel O'Brien1-0/+10
2013-11-08Declaring 1.7.2 compatibility.madmaxoft1-0/+1
2013-11-08cProtocol::SendWindowOpen() signature changed.madmaxoft1-2/+2
This implements #313.
2013-11-05Removed the obsolete SendWholeInventory(cInventory &) function.madmaxoft1-10/+0
This won't compile because there's still a change in Protocol17x.cpp pending; the next commit will fix this.
2013-11-01Protocol 1.7: Implemented the first batch of sent packets.madmaxoft1-0/+10
2013-10-30Added 1.7 to protocol recognizer.madmaxoft1-7/+113
The 1.7 protocol currently only reports server description and playercount.
2013-10-23Removed cRoot:m_PrimaryServerVersion from Lua API.madmaxoft1-3/+3
We have the accessor methods for it.
2013-09-19Added support for 1.6.3 and 1.6.4 protocols.madmaxoft1-0/+6
No relevant changes have been detected, using the 1.6.2 protocol handler.
2013-08-29Implemented xoft's suggestions [SEE DESC]Tiger Wang1-2/+2
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
2013-08-28Fixed Minecart spawning issuesTiger Wang1-2/+2
Now you can have everything!
2013-08-18Added cWindow property manipulation API.madmaxoft1-2/+2
Now enchantment table and furnace properties can be set by a plugin
2013-08-11Moved MaxPlayers and Description from cWorld to cServer.madmaxoft1-8/+9
Also started creating a new cWorld::cTickThread class, but not used yet.
2013-07-30Tab completion packet is handled and sent.madmaxoft1-0/+10
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.
2013-07-29Added the "Edit Sign" packet sent to the client placing a sign.madmaxoft1-0/+10
Fixes issue #20. The 1.6.2 client wouldn't open the sign editor UI unless it receives a special packet
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-771/+771
2013-07-081.6.2 protocol implemented, both in MCServer and in ProtoProxymadmaxoft@gmail.com1-0/+7
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1669 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-07Improved function names for protocol packet sending; alpha-sorted the function listsmadmaxoft@gmail.com1-20/+41
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1659 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-05Initial 1.6.1 protocol support.madmaxoft@gmail.com1-0/+8
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
2013-06-18More TNT fixes.madmaxoft@gmail.com1-1/+1
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
2013-05-08Added 1.5.2 compatibility.madmaxoft@gmail.com1-0/+3
FS #372 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1461 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-19Fixed Linux compilation, slight code cleanupmadmaxoft@gmail.com1-2/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1396 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-18Initial implementation of explosions and TNT blockkeyboard.osh@gmail.com1-0/+10
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1392 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-04Fixed personal crafting grid not being tossed on inventory close.madmaxoft@gmail.com1-2/+2
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
2013-03-18Added support for the packet #28 (0x1C): ENTITY_VELOCITYkeyboard.osh@gmail.com1-0/+8
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1283 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-14Release 1.5 supported, yay :)madmaxoft@gmail.com1-0/+8
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
2013-03-03Player can sit in minecarts (but not move them yet)madmaxoft@gmail.com1-0/+10
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1249 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-21Moved the Speed member into cEntity class instead of its descendants.madmaxoft@gmail.com1-2/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1222 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-18Minecarts can now be placed.madmaxoft@gmail.com1-0/+10
No interaction, no physics, though. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1219 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-26Adjusted the protocol framework to support different types of falling block spawning.madmaxoft@gmail.com1-0/+10
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
2012-12-24Added the 1.4.6 protocolmadmaxoft@gmail.com1-3/+10
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1099 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-15Added an assert for unknown protocol, so that the function isn't missed when upgrading to a new protocol.madmaxoft@gmail.com1-0/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1043 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-15Added support for 1.4.4 client, using the 1.4.2 protocol classmadmaxoft@gmail.com1-11/+36
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
2012-11-01Refactored the world time.madmaxoft@gmail.com1-2/+2
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
2012-10-31Initial 1.4.2 support.luksor111@gmail.com1-0/+6
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1019 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-31Added the [Server].PrimaryServerVersion setting to settings.ini; 1.4.2 gets the correct versionmadmaxoft@gmail.com1-9/+53
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1018 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-21My OCD has alpha-sorted some stuff :)madmaxoft@gmail.com1-44/+44
git-svn-id: http://mc-server.googlecode.com/svn/trunk@995 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-21Added jukeboxes (patch contributed by Luksor)madmaxoft@gmail.com1-1/+13
git-svn-id: http://mc-server.googlecode.com/svn/trunk@994 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-30Added falling block entities. Sand and gravel now properly fall downfaketruth1-0/+10
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
2012-09-29Beds can be slept in now (it doesn't change the time though)faketruth1-0/+10
git-svn-id: http://mc-server.googlecode.com/svn/trunk@911 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-29Fixed memory leaks in cWindow and cProtocolRecognizermadmaxoft@gmail.com1-0/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@910 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-25Added the block dig animation packet (patch contributed by l0udPL)madmaxoft@gmail.com1-0/+10
git-svn-id: http://mc-server.googlecode.com/svn/trunk@892 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-25Sockets are now owned by SocketThreads instead of ClientHandle (FS #246 and FS #247)madmaxoft@gmail.com1-0/+8
git-svn-id: http://mc-server.googlecode.com/svn/trunk@891 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-4/+4
git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-23Source files cleanup: Protocol-related files in a separate subfoldermadmaxoft@gmail.com1-4/+4
git-svn-id: http://mc-server.googlecode.com/svn/trunk@880 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-11Merged in a patch for sounds by l0udPLmadmaxoft@gmail.com1-0/+8
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
2012-09-06Added protocol-specific authentication, now works for both 1.2.5 and 1.3.2madmaxoft@gmail.com1-0/+10
git-svn-id: http://mc-server.googlecode.com/svn/trunk@841 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-06Officially added 1.3.2 protocol supportmadmaxoft@gmail.com1-0/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@839 0a769ca7-a7f5-676a-18bf-c427514a06d6
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-2/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@819 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-31Progress on the 1.3.2 protocol.madmaxoft@gmail.com1-2/+2
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
2012-08-30Implemented 1.3.2 protocol encryption using CryptoPP, up to Client Status packet (http://wiki.vg/Protocol_FAQ step 14)madmaxoft@gmail.com1-2/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@808 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-30Added a basic protocol recognizer and the base for 1.3.2 protocol.madmaxoft@gmail.com1-0/+522
Also fixed a few type-related warnings. git-svn-id: http://mc-server.googlecode.com/svn/trunk@805 0a769ca7-a7f5-676a-18bf-c427514a06d6