Dylan K. Taylor
92193fd27b
Use entity IDs in EntityDamageBy*EntityEvents, fixed memory leaks related to PvP/PvE/PvM ( #418 )
2017-03-13 10:30:31 +00:00
Dylan K. Taylor
4fbc5738e3
Re-implemented chunk sending ( #304 )
...
Re-implement chunk sending, send chunks inside a radius instead of below a count
This sends chunks in concentric squares around players. When the radius is hit, it will pad out the radius until a full circle of chunks is loaded around the player.
TODO: implement radius-per-tick, send chunks in concentric circles, use radius for player spawning.
To set your server chunk radius, change `view-distance` in server.properties. Values are intended to be the same as MCPE render distance values. With matching client and server render distances the chunks should reach the horizon.
NOTE: You may notice significantly increased memory usage per player when increasing these values to something respectable. This is normal and expected.
A player with render distance 14 for example will cause loading of 600+ chunks. A player cannot however exceed the render distance limit set in server.properties - the server will simply not send any more chunks.
Render distance of 8 chunks is approximately 200 chunks. This is roughly equivalent to the original default max-chunks of 192 in pocketmine.yml, but sent in a circle instead of a square.
Wait for client to request a chunk radius before ordering chunks
Use 8 for default maximum radius (roughly matches old setting of 192)
Calculate spawn chunk count from chunk-sending.spawn-radius
2017-03-02 10:30:30 +00:00
Dylan K. Taylor
9c36e0cd1c
Added crafting data packet cache, reduces on-join lag spikes, close #248 ( #269 )
2017-01-23 11:03:46 +00:00
Dylan K. Taylor
8ba0b49022
Initial working R/W of 0.16 + 1.0 worlds, highly unstable
2017-01-15 17:26:20 +00:00
Dylan K. Taylor
74c9ed04a0
LevelDB is loaded? Tell me about it
2017-01-15 17:17:57 +00:00
Dylan K. Taylor
b28e38ab26
Move some exceptions out of utils into their relevant namespaces, move some Chunk methods to ChunkUtils for I/O, refactor "colour" -> "color"
2017-01-15 11:31:12 +00:00
Dylan K. Taylor
4577f3ee22
Added config to warn if assertions are enabled and to disable exception throws
2017-01-15 00:38:30 +00:00
Dylan K. Taylor
ad0553fbf8
Bump to API 3.0.0-ALPHA2 - READ DESCRIPTION!
...
Refactored level\format\generic\GenericChunk -> level\format\Chunk.
Re-added support for async chunk sending
Refactored most Level IO into new namespaces for more organisation
Removed LevelDB loader completely (will be re-added at a later date)
2017-01-06 17:13:45 +00:00
Dylan K. Taylor
096836faaa
Moved Entity initialization into Entity class
2017-01-03 22:24:41 +00:00
Dylan K. Taylor
0bd7ea211d
Refactored Server::broadcastPacket() to be non-static
...
Why the hell was this static at all? Seriously Shoghi?
2017-01-03 22:24:40 +00:00
Dylan K. Taylor
747aae94ec
Refactor PMCustomAnvil -> PMAnvil
2016-12-23 20:38:31 +00:00
Dylan K. Taylor
e2bbb76900
Use PMCustomAnvil as the default format for new worlds
...
mcregion is now "deprecated" due to its lack of suitability (fullchunk style, and no support for 256-high worlds)
2016-12-23 18:15:10 +00:00
Dylan K. Taylor
f180167955
Add PMCustomAnvil format
...
Exactly the same as Anvil, but with XZY data ordering. Significantly more performant than Anvil due to no re-ordering necessary.
2016-12-23 18:15:09 +00:00
Dylan K. Taylor
00158d4805
Refactor namespace of Anvil/McRegion
2016-12-23 11:52:55 +00:00
Dylan K. Taylor
8bdfe0d297
Report CPU and tick usage accurately using averages ( #195 )
2016-12-22 14:11:46 +00:00
Dylan K. Taylor
e2b143a7cf
Merge branch 'master' into mcpe-1.0
2016-12-20 13:03:49 +00:00
Dylan K. Taylor
4063bc4ffb
Relocated Server->registerTiles() to Tile::init()
2016-12-20 12:59:27 +00:00
Dylan K. Taylor
90957cd908
Some tile improvements and added ItemFrame tile
2016-12-20 12:59:26 +00:00
Dylan K. Taylor
50d59619a6
Remove unnecessary @throws
2016-12-20 12:25:46 +00:00
Dylan K. Taylor
8db4b7116c
Silence this error
...
Apply STFU operator
2016-12-20 11:08:46 +00:00
SOFe
a122ea9e75
Merge pull request #161 from pmmp/deprecate-version-constants
...
Deprecate Minecraft game version constants in the `pocketmine` root namespace
2016-12-19 21:21:38 +08:00
Dylan K. Taylor
a8694dcbf7
Relocated MINECRAFT_VERSION and MINECRAFT_VERSION_NETWORK to ProtocolInfo and deprecated the originals
2016-12-19 13:16:29 +00:00
SOFe
175dd0efa6
PhpStorm inspections
...
Fixed some minor bugs and dropped some obsolete code
pocketmine\level\generator namespace is ignored in this commit
2016-12-14 21:49:35 +00:00
Dylan K. Taylor
a0111d04ee
Log exception with backtrace
2016-11-24 21:20:10 +00:00
Dylan K. Taylor
c494af618c
Clean up some old code
2016-11-04 21:46:14 +00:00
Dylan K. Taylor
fdf3c0c1c7
Change Unknown Command message colour to Gold to highlight client command issues
2016-10-30 10:20:17 +00:00
Dylan K. Taylor
9d16f145dd
Creative inventory update with unknown item filter
2016-10-27 12:13:27 +01:00
Dylan K. Taylor
5eb2459355
Fix player list duplicates
2016-10-27 10:55:02 +01:00
Dylan K. Taylor
dd0c5efb56
Initial spawn on 0.16
2016-10-27 10:55:00 +01:00
Dylan K. Taylor
3692ddab1d
Remove duplicate call to gc_collect_cycles
...
This is already done in forceShutdown(), and if it is not then the
process will have committed suicide and this will never be called
anyway. Either way, it's useless.
2016-10-19 22:08:44 +01:00
SOF3
2a07638af3
Do not show playerNotFound notice if player data should not be saved
2016-10-07 17:52:25 +08:00
Dylan K. Taylor
d6fd9259cf
Added options to disable saving player.dat
2016-10-07 10:25:26 +01:00
SOFe
58ff381557
PhpStorm automated formatting ( #11 )
...
* PhpStorm reformatting
* Tuned PhpStorm reformatting
* Improved ItemIds and BlockIds formatting
* Tuned more PhpStorm reformatting
* Improved string concatenation
2016-10-03 19:05:48 +08:00
SOF3
e913b16804
Fixed some lines indented with 4 spaces rather than tabs
2016-10-03 00:58:34 +08:00
SOFe
39f731aa06
Remove use of deprecated Utils::getRandomBytes(16) ( #3 )
...
Whichever guy did that, somehow this one just got missed out?
2016-10-01 16:08:59 +01:00
Dylan K. Taylor
7b8548b2b1
Added Flower Pots
2016-09-30 19:19:51 +01:00
Tux
8e9a078ff9
Use built-in random_bytes functionality
2016-09-06 11:47:58 +01:00
Intyre
6fb41c5c7f
UpdateBlockPacket fixed and changed skinName to skinId
2016-06-22 01:09:48 +02:00
Jorge González
012d46dfd8
Added Mob Heads
...
Fixed duplicated items in JSON file
2016-03-22 22:25:36 -06:00
PEMapModder
ed9888a2cb
Fixed #3963 , closes #3979 , added hash for non-numeric seeds
2016-02-22 19:40:40 +08:00
Intyre
a6cd526e60
PHP7 to master
2016-02-21 12:47:30 +01:00
Dongjoon Hyun
302fb9e65e
Add @throws docs.
...
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
2016-02-17 14:22:47 -08:00
Intyre
a2734f6dc0
Merged master into php7 to support 0.13.1
2016-01-22 17:36:45 +01:00
Intyre
90c3e66e6b
Updated for .13.1. skinName replaces isSlim, API bump
2015-12-16 14:37:46 +01:00
Intyre
09b4d4dc7a
Fixes for derps found with PHPStorm code inspector
2015-10-10 23:10:24 +02:00
Shoghi Cervantes
cf3d8f449e
Added some asserts
2015-09-27 19:48:42 +02:00
Shoghi Cervantes
ddc140af5e
Updated to new pthreads version, updated RakLib
2015-09-27 13:37:27 +02:00
Shoghi Cervantes
0bcf639a98
Changed how exceptions work and are logged, throw proper exceptions on tasks
2015-09-18 12:03:24 +02:00
Shoghi Cervantes
472fcfa4c7
Removed ThreadedFactory
2015-09-18 11:18:41 +02:00
Shoghi Cervantes
3ffdb8e552
Removed @deprecated classes, methods and properties, added some type hints
2015-09-12 17:10:11 +02:00