1
0
Fork 0
cuberite-2a/src
Pokechu22 a4f327118b 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135)
* 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-05-14 20:12:42 +01:00
..
Bindings Revert "Lua callback" 2016-03-21 09:58:15 +01:00
BlockEntities Reduced unnecessary block updates 2016-04-23 00:30:00 +03:00
Blocks Reduced unnecessary block updates 2016-04-23 00:30:00 +03:00
Entities 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
Generating Reduced unnecessary block updates 2016-04-23 00:30:00 +03:00
HTTP HTTP: Added missing HasAuth flag initialization. 2016-03-11 10:44:35 +01:00
Items Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Mobs 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
Noise Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
OSSupport Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
PolarSSL++ Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Protocol 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
Resources Updated icons and logo 2016-03-28 19:42:14 +03:00
Simulator Update RedstoneSimulator to delete unused cached PowerData 2016-02-09 22:19:29 +01:00
UI Revert "Lua callback" 2016-03-21 09:58:15 +01:00
WorldStorage Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
AllocationPool.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
BiomeDef.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
BiomeDef.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
BlockArea.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
BlockArea.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
BlockID.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
BlockID.h Reduced unnecessary block updates 2016-04-23 00:30:00 +03:00
BlockInServerPluginInterface.h Placing a fluid from bucket calls plugin hooks. 2015-04-14 10:49:01 +02:00
BlockInfo.cpp Updated cChunk::SetMeta, fixed grass growth, reduced markDirty/setMeta usage 2016-04-16 19:04:45 +03:00
BlockInfo.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
BlockTracer.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
BoundingBox.cpp Improved tamed wolf pack cooperation and projectile reactions 2016-01-22 21:16:27 +02:00
BoundingBox.h Improved tamed wolf pack cooperation and projectile reactions 2016-01-22 21:16:27 +02:00
BrewingRecipes.cpp Implemented brewing 2015-11-03 18:00:55 +01:00
BrewingRecipes.h Implemented brewing 2015-11-03 18:00:55 +01:00
Broadcaster.cpp Fixed some Visual Studio warnings 2015-05-08 23:32:02 +01:00
Broadcaster.h Added support for additional data in the ParticleEffect Packet 2015-05-07 03:47:46 +01:00
BuildInfo.h.cmake Added abilty to set build info 2014-09-10 16:07:00 +01:00
ByteBuffer.cpp 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
ByteBuffer.h 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
CMakeLists.txt Renamed HTTPServer folder to HTTP. 2016-03-01 16:19:56 +01:00
ChatColor.cpp Refactored cChatColor 2014-07-19 11:09:39 -07:00
ChatColor.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
CheckBasicStyle.lua 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
Chunk.cpp 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
Chunk.h 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
ChunkData.cpp Out of world blocks are now always considered air blocks 2016-04-23 09:54:34 +03:00
ChunkData.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
ChunkDataCallback.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
ChunkDef.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
ChunkMap.cpp 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
ChunkMap.h 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
ChunkSender.cpp 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
ChunkSender.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
ChunkStay.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
ChunkStay.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
ClientHandle.cpp 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
ClientHandle.h 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
Color.cpp Leather Armor can now be dyed. 2015-07-15 14:05:36 -06:00
Color.h Added CircleCI for stylechecking. 2015-09-17 11:20:10 +02:00
CommandOutput.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
CommandOutput.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
CompositeChat.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
CompositeChat.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
CraftingRecipes.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
CraftingRecipes.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Cuberite.vcxproj.user Renamed leftover strings to Cuberite / Server, as needed. 2016-01-01 21:05:09 +01:00
Cuboid.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Cuboid.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
DeadlockDetect.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
DeadlockDetect.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Defines.h 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
EffectID.h Add enum for Sound and Particle Effects 2015-11-24 13:21:40 +00:00
Enchantments.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Enchantments.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Endianness.h Fixes compilation failures on MacOSX 10.10 2015-07-09 11:15:37 -06:00
FastRandom.cpp Use an unreserved qualifier for thread local storage 2015-11-03 12:09:40 +03:00
FastRandom.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
ForEachChunkProvider.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
FurnaceRecipe.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
FurnaceRecipe.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Globals.cpp
Globals.h Removed old and wrong code from Globals.h. 2016-02-24 14:57:34 +01:00
IniFile.cpp Revert "Issue3136" 2016-04-14 12:40:46 +03:00
IniFile.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Inventory.cpp Proper entity destruction in non-ticking chunks 2016-02-19 07:05:22 +02:00
Inventory.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Item.cpp change from single followable item to multiple 2015-11-23 22:20:31 +01:00
Item.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
ItemGrid.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
ItemGrid.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
LeakFinder.cpp Added the _UNICODE flag on Windows 2015-09-26 22:19:29 +01:00
LeakFinder.h En masse NULL -> nullptr replace 2014-10-22 20:12:49 -07:00
LightingThread.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
LightingThread.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
LineBlockTracer.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
LineBlockTracer.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
LinearInterpolation.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
LinearInterpolation.h Unified the doxy-comment format. 2015-07-31 16:49:10 +02:00
LinearUpscale.h Fixed LinearUpscale's bounds checking. 2016-02-24 14:57:36 +01:00
Logger.cpp Increase robustness of the logging subsystem 2015-09-15 16:19:49 +01:00
Logger.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
LoggerListeners.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
LoggerListeners.h Increase robustness of the logging subsystem 2015-09-15 16:19:49 +01:00
Map.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Map.h Improved maps 2015-07-14 21:46:30 +01:00
MapManager.cpp Improved maps 2015-07-14 21:46:30 +01:00
MapManager.h Improved maps 2015-07-14 21:46:30 +01:00
Matrix4.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
MemoryLeak.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
MemorySettingsRepository.cpp Initial implementation of IniFile overloading 2015-05-16 10:46:51 +01:00
MemorySettingsRepository.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
MobCensus.cpp Fixed warnings in MSVC. 2015-06-02 12:51:43 +02:00
MobCensus.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
MobFamilyCollecter.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
MobFamilyCollecter.h Fixed spaces around single-line comments. 2014-07-17 19:13:23 +02:00
MobProximityCounter.cpp Silenced and fixed many warning messages across multiple files. 2015-07-29 09:49:30 -06:00
MobProximityCounter.h CheckBasicStyle: checks spaces around * and &. 2015-05-09 12:58:55 +02:00
MobSpawner.cpp Mobs no longer spawn at the top of the nether. 2016-03-01 12:07:46 +01:00
MobSpawner.h Unified the doxy-comment format. 2015-07-31 16:49:10 +02:00
MonsterConfig.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
MonsterConfig.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
NetherPortalScanner.cpp Work on NetherPortalScanner. Setup portal scanner to reset PortalCooldown. Changed where player is spawned. Added a_InitSpawn flag to CreateAndInitializeWorld. 2015-06-13 16:09:43 -05:00
NetherPortalScanner.h Prevent Nether teleportation loops 2016-04-04 17:53:08 +03:00
OverridesSettingsRepository.cpp Proper fix for #3136 (#3143) 2016-04-18 23:04:13 +01:00
OverridesSettingsRepository.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
ProbabDistrib.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
ProbabDistrib.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
RCONServer.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
RCONServer.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
RankManager.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
RankManager.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Root.cpp Auto clean bad world linkages 2016-04-19 12:06:52 +03:00
Root.h Renamed HTTPServer folder to HTTP. 2016-03-01 16:19:56 +01:00
Scoreboard.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Scoreboard.h cTeam:GetName returning wrong name 2015-12-21 20:25:33 +01:00
SelfTests.cpp If defined, not just if. 2015-06-12 12:37:22 +01:00
SelfTests.h SelfTests are registered and executed after logging framework init. 2015-06-11 22:20:04 +02:00
Server.cpp Updated old forum links 2016-01-31 02:25:03 +02:00
Server.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
SetChunkData.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
SetChunkData.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
SettingsRepositoryInterface.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
SpawnPrepare.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
SpawnPrepare.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
StackWalker.cpp MSVC: Ignore the deprecation warning in 3rd party StackWalker. 2015-08-09 09:23:12 +02:00
StackWalker.h En masse NULL -> nullptr replace 2014-10-22 20:12:49 -07:00
Statistics.cpp Made -Weverything an error. 2015-05-24 12:56:56 +01:00
Statistics.h Fixed spaces around single-line comments. 2014-07-17 19:13:23 +02:00
Stopwatch.h Added PieceStructures generator. 2015-12-01 10:35:07 +01:00
StringCompression.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
StringCompression.h Unified the doxy-comment format. 2015-07-31 16:49:10 +02:00
StringUtils.cpp Fix unicode handling in StringUtils::TrimString 2016-02-16 16:58:27 +02:00
StringUtils.h Added PieceStructures generator. 2015-12-01 10:35:07 +01:00
Tracer.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Tracer.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
Vector3.h Updated vector hashing bit operations 2016-04-22 17:45:45 +03:00
VoronoiMap.cpp Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
VoronoiMap.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
WebAdmin.cpp Revert "Lua callback" 2016-03-21 09:58:15 +01:00
WebAdmin.h Revert "Lua callback" 2016-03-21 09:58:15 +01:00
World.cpp 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
World.h 1.9 / 1.9.2 / 1.9.3 / 1.9.4 protocol support (#3135) 2016-05-14 20:12:42 +01:00
XMLParser.h Bulk clearing of whitespace 2016-02-05 23:50:18 +02:00
main.cpp Revert "Issue3136" 2016-04-14 12:40:46 +03:00