Commit Graph

  • 3269a022a8 Add KeepAlivePacket test to ConnectTest and derived tests. joo 2017-08-22 18:12:51 +01:00
  • b79e7b5f28 Add tests for early and outgoing packet listeners. joo 2017-08-22 17:50:16 +01:00
  • 9497aae8fa Make FakeServer class more reusable, and extract it into its own module. joo 2017-08-22 14:06:17 +01:00
  • f1d04e6610 start.py: add --dump-packets option. joo 2017-08-21 21:06:39 +01:00
  • 593c98f168 Add support for early and outgoing packet listeners. joo 2017-08-21 21:06:28 +01:00
  • 9765e936c9 Fix incorrect packet IDs for PlayerPositionAndLookPacket for old protocol versions. joo 2017-08-20 07:35:14 +01:00
  • 46e058dd08 Update all tests, docs and code to use new packet names. joo 2017-08-09 20:53:54 +01:00
  • f1ae765458 Add docstring about legacy packet names to packets module. joo 2017-08-09 19:32:07 +01:00
  • 4a7d06c3cf Add proper matrix for travis Ammar Askar 2017-08-09 12:40:09 -04:00
  • 997a59efb0 Revert "List out the python versions we need for travis" Ammar Askar 2017-08-09 12:33:05 -04:00
  • ef790d2f08 List out the python versions we need for travis Ammar Askar 2017-08-09 12:31:34 -04:00
  • 304f08bf8c Configure Travis to use "dist: precise" to allay build errors. joo 2017-08-09 17:04:03 +01:00
  • 61b07f52f2 better packet names to match new packet structure TheSnoozer 2017-08-09 10:14:29 +02:00
  • 64cf23436b the class 'Type' needs to have '__slots__ = ()', otherwise every instance of 'Position' will have an unnecessary empty '__dict__' allocated TheSnoozer 2017-08-09 10:07:40 +02:00
  • 2f0dbf5cbb fix flake error as suggested TheSnoozer 2017-08-08 23:49:20 +02:00
  • 7eef61bfde use 'zlib.decompressobj' to handle the 'faulty' compression correctly as suggested in https://github.com/ammaraskar/pyCraft/pull/68 TheSnoozer 2017-08-08 20:29:25 +02:00
  • 0c64623696 fix wrong import; note we don't need to consider legacy import inside the packets module since this packet just got added before the structure changed TheSnoozer 2017-08-08 20:27:40 +02:00
  • ab71aeeb7d Revert "deal with faulty compression's" TheSnoozer 2017-08-08 20:09:04 +02:00
  • 346b3081ec fix broken tests TheSnoozer 2017-08-08 16:22:56 +02:00
  • 4a508f935b use namedtuple for position type and use it as subclass for ClientExplosion.Record TheSnoozer 2017-08-08 15:26:04 +02:00
  • 8552c6efe5 regorganize packet structure as outlined in https://github.com/ammaraskar/pyCraft/pull/68 TheSnoozer 2017-08-08 15:07:33 +02:00
  • f8781c19c8 The packet IDs of Entity Velocity (0x3E), Update Health (0x41), Combat Event (0x2D), and Client Status (0x03) changed in [protocol 336 (snapshot 17w31a)](http://wiki.vg/index.php?title=Pre-release_protocol&oldid=13265) TheSnoozer 2017-08-08 10:31:30 +02:00
  • 6137436d03 feedback: add write method TheSnoozer 2017-08-05 14:23:03 +02:00
  • 5349ff2730 feedback: we can use enum since subclass packets do no vary depending on the type id TheSnoozer 2017-08-05 14:06:19 +02:00
  • d8fc742862 feedback: pass x, y, z as arguments since types classes are supposed to abstract away the python types and sending them over the network and calling an encode method before sending breaks that a little. TheSnoozer 2017-08-05 14:04:27 +02:00
  • 9ab2e1ae69 fix tox -e pylint-errors TheSnoozer 2017-08-05 01:52:03 +02:00
  • fdb5a0bb72 fix tox -e flake TheSnoozer 2017-08-05 01:49:16 +02:00
  • cc466bb0ea fixed an issue with mc 1.8.8 where velocity is not being sent and self.data is negative TheSnoozer 2017-08-03 00:51:41 +02:00
  • 6fbf75203c add Multi Block Change (client bound) TheSnoozer 2017-08-02 17:53:51 +02:00
  • 93227e26fa add Block Change Packet (client bound) TheSnoozer 2017-08-02 16:21:00 +02:00
  • ca30ff2e74 add spawn object (client bound) TheSnoozer 2017-08-01 23:28:46 +02:00
  • 3ad5d1abd5 add Explosion Packet (client bound) TheSnoozer 2017-07-31 23:11:38 +02:00
  • 81f2ae4070 add Combat Event Packet (client bound) TheSnoozer 2017-07-31 21:49:21 +02:00
  • fecb1d10e9 add Client Status Packet and allow client to respawn when issuing '/respawn' TheSnoozer 2017-07-31 14:34:03 +02:00
  • 0dc333237b add Update Health Packet (client bound) TheSnoozer 2017-07-31 11:21:46 +02:00
  • 6f52ceac0d add Entity Velocity Packet (client bound) TheSnoozer 2017-07-31 10:53:10 +02:00
  • 9caff502ca add ClientSpawnPlayer packet TheSnoozer 2017-07-31 09:50:07 +02:00
  • 42ede3f83d deal with faulty compression's TheSnoozer 2017-07-31 01:02:02 +02:00
  • 89a1bfb796 Update README.rst joo 2017-08-04 16:15:55 +01:00
  • 9e7e75f9a7 Increment package version to 0.5.0. joo 2017-08-03 19:08:36 +01:00
  • 33cd42848e Add version data for Minecraft 1.12.1 (protocol 338). joo 2017-08-03 18:48:36 +01:00
  • 5aa2d3df59 Add support for Minecraft 17w31a and 1.12.1-pre1 (protocols 336 and 337). joo 2017-08-03 18:31:00 +01:00
  • cf464d2da2 Add compression tests to test_connection. joo 2017-08-03 13:04:47 +01:00
  • cab8d56746 Revert "Remove unnecessary fileno method from FileObjectWrapper" This partially addresses issue #65. joo 2017-07-18 13:33:16 +01:00
  • f450ef5ff4 Add test for reactors Ammar Askar 2017-07-16 20:02:50 -07:00
  • d686b6487f Add testing for MapPacket Ammar Askar 2017-07-16 15:17:11 -07:00
  • 5b261b840e Refactor out the action of writing out the packet header. Ammar Askar 2017-07-16 13:38:04 -07:00
  • 4ce8c7f6ca Fix flake errors in test file Ammar Askar 2017-07-16 02:53:52 -07:00
  • 8859e0f7bf Add test coverage for PlayerList packet Ammar Askar 2017-07-16 02:42:16 -07:00
  • da967a4e56 Minor coverage improvement for packets Ammar Askar 2017-07-16 01:14:18 -07:00
  • c87d7bc6f3 Remove unnecessary fileno method from FileObjectWrapper Ammar Askar 2017-07-16 01:03:47 -07:00
  • d8226d266f Improve tests of types.py Ammar Askar 2017-07-16 01:00:14 -07:00
  • ca4fd6680e Connect to localhost instead of the socket's binding address. Ammar Askar 2017-07-16 00:19:30 -07:00
  • 2cf1d3cb03 Fix incorrect packet ID for PlayerPositionAndLookPacket. Fix: PlayerPositionAndLookPacket.apply() does not correctly restrict angles. joo 2017-07-03 10:32:46 +01:00
  • 991f0b3da6 Increment package version to 0.4.0. joo 2017-06-09 09:25:56 +01:00
  • 5b5f36048c Update README.rst. joo 2017-06-08 06:52:46 +01:00
  • ece5fd903d Fix incorrect packet ID for MapPacket. joo 2017-06-08 06:10:40 +01:00
  • 8d1dcec3e2 Add version data for Minecraft 1.12 (protocol 335). joo 2017-06-07 22:06:01 +01:00
  • bcf22b8312 Add version data for Minecraft pre-release 1.12-pre7 (protocol 334). joo 2017-06-02 21:32:11 +01:00
  • 0cc96f7dc5 Add version data for Minecraft pre-release 1.12-pre6 (protocol 333). joo 2017-05-29 17:31:04 +01:00
  • b7290cf327 Add support for Minecraft pre-release 1.12-pre5 (protocol 332). joo 2017-05-20 04:17:52 +01:00
  • a1570bd3a9 Add version data for Minecraft pre-releases 1.12-pre3 and 1.12-pre4 (protocols 330 and 331). joo 2017-05-19 12:22:42 +01:00
  • 3f4571d9e9 Update testing configuration: (1) Add py35 job to Travis. (2) To address issue #57: run tests that connect to Mojang's auth server exactly once, during the py35 job. (3) Measure coverage exactly once, during the py35 job; always submit the result to coveralls. (4) Fix miscellaneous errors in generate_travis_yml.py. joo 2017-05-19 11:58:14 +01:00
  • 19cdf80952 Require cryptography>=1.5 -- see issue #60. joo 2017-05-19 10:43:51 +01:00
  • 028ef3f802 Add version data for Minecraft pre-release 1.12-pre2 (protocol 329). joo 2017-05-12 00:52:31 +01:00
  • 0d42c18211 Add version data for Minecraft pre-release 1.12-pre1 (protocol 328). joo 2017-05-11 10:16:11 +01:00
  • 0ffb08327a Add version data for Minecraft snapshot 17w18b (protocol 327). Nigel Todman 2017-05-05 03:11:59 -04:00
  • 623d2f00c9 Merge pull request #58 from Veritas83/patch-1 joo 2017-05-04 06:06:33 +01:00
  • 5805d6e476 Added 17w18a Nigel Todman 2017-05-03 23:23:19 -04:00
  • e2c4c97ea5 Add version data for Minecraft snapshots 17w16a-17w17b (protocols 322-325). joo 2017-04-28 19:48:27 +01:00
  • a77092572c Update README.rst joo 2017-04-17 11:07:22 +01:00
  • 9e369cb938 Update README.rst. joo 2017-04-16 05:06:12 +01:00
  • b1edff913b Fix comment spacing in previous commit. joo 2017-04-16 04:19:42 +01:00
  • df9171edd1 Suppress erroneous Pylint not-context-manager errors. See: https://github.com/PyCQA/pylint/issues/782 joo 2017-04-16 03:58:35 +01:00
  • 3981c46569 Add version data for Minecraft snapshot 17w15a (protocol 321). joo 2017-04-16 01:47:48 +01:00
  • f27689f729 Add version data for Minecraft snapshots 17w13b and 17w14a (protocols 319 and 320). joo 2017-04-06 13:45:51 +01:00
  • 8eb1cdeee7 start.py: add hashbang and make executable. joo 2017-04-06 13:45:14 +01:00
  • e99d2a4ef5 Add documentation for YggdrasilError. joo 2017-03-31 14:33:51 +01:00
  • bc260b0a91 Add Python 3.6 to supported Python versions. joo 2017-03-31 13:16:35 +01:00
  • 66a0603acf Fix various problems in minecraft.authentication and its tests: - Return value of _make_request() is treated as a requests.Request, when it is in fact a requests.Response. - Some tests in test_authentication use assertRaises() incorrectly, resulting in testing code that never gets run. - Other miscellaneous errors exposed by the above changes. joo 2017-03-31 12:59:43 +01:00
  • 73672401ef Add support for Minecraft snapshot 17w13a (protocol 318). joo 2017-03-31 08:59:14 +01:00
  • b0f15ed5a2 Add version data for Minecraft snapshot 17w06a (protocol 317). joo 2017-03-31 08:27:04 +01:00
  • 7fd37a79f2 Add version data for Minecraft 1.11.2 (protocol 316). joo 2016-12-21 17:06:35 +00:00
  • 00ab1b4209 Add version data for Minecraft 1.11.1 (protocol 316). joo 2016-12-20 16:09:56 +00:00
  • 89ca73532a Fully cover authentication module Ammar Askar 2016-12-19 06:56:52 -05:00
  • 10fb291752 Add some additional tests for the authentication module Ammar Askar 2016-12-19 06:39:01 -05:00
  • 0c31e748e8 Fix flake error caused by doc change. Ammar Askar 2016-12-19 05:41:28 -05:00
  • 9aa369c7da Fix outdated documentation Ammar Askar 2016-12-19 05:26:12 -05:00
  • f560f73df8 Add support for Minecraft snapshot 16w50a (protocol 316). joo 2016-12-16 08:01:26 +00:00
  • 988653a922 Increment package version to 0.3.0. joo 2016-11-23 20:27:20 +00:00
  • bf17f99083 Change version negotiator to use a status query. joo 2016-11-22 12:13:09 +00:00
  • d72f05c8b0 Show exceptions by default and add `handle_exception' parameter to Connection. joo 2016-11-20 06:02:57 +00:00
  • 115693f8c3 Implement full Server List Ping capability with test. joo 2016-11-20 05:03:23 +00:00
  • 56b06ca80f Make validate treat HTTP code 204 as a success. Ammar Askar 2016-11-17 14:34:14 -05:00
  • 37a9bb66f1 Fix test failures caused by new flake8 version. joo 2016-11-15 00:02:02 +00:00
  • 037ca68b19 Add support for Minecraft 1.11 (protocol 315). joo 2016-11-14 23:33:08 +00:00
  • b429a4579b Add support for Minecraft 16w43a, 16w44a (protocol 313) and 1.11-pre1 (protocol 314). joo 2016-11-13 22:11:56 +00:00
  • 8e3f1b18b7 Add support for Minecraft snapshot 16w42a (protocol 312). joo 2016-10-19 19:24:45 +01:00
  • 9ce454a818 Fix #51 Danil Yarancev 2016-10-19 14:11:22 +03:00
  • 4f263a0038 Add support for Minecraft snapshot 16w41a (protocol 311). joo 2016-10-14 07:42:09 +01:00