1
0
Commit Graph

96 Commits

Author SHA1 Message Date
madmaxoft
e2e948015e Protocol 1.7: More client-bound packets.
Also removed the SendWholeInventory(cInventory &) function, as promised in prev commit.
2013-11-05 18:37:57 +01:00
madmaxoft
88472b7ce6 Removed the obsolete SendWholeInventory(cInventory &) function.
This won't compile because there's still a change in Protocol17x.cpp pending; the next commit will fix this.
2013-11-05 18:37:57 +01:00
madmaxoft
d47a8ea008 Protocol 1.7: Added more client-bound packets.
Untested, still more to come.
2013-11-04 21:20:36 +01:00
madmaxoft
3002dc8bbf Protocol 1.7: Added client status packet. 2013-11-03 21:34:46 +01:00
madmaxoft
9b84d68d27 Protocol 1.7: Rewritten packet-sending to use cPacketizer.
Implemented enough of the protocol that the client now spawns in the world (but cannot do anything).
2013-11-03 11:59:07 +01:00
madmaxoft
b6faeaba18 Protocol 1.7: Implemented the first batch of sent packets. 2013-11-01 16:20:15 +01:00
madmaxoft
7a77986d88 Protocol 1.7: Added skeleton functions for reading client packets.
Untested, this is skeleton code only.
2013-10-31 23:48:43 +01:00
madmaxoft
feaea31b78 Protocol 1.7: Added status ping handling. 2013-10-30 23:38:55 +01:00
madmaxoft
dab398d5d6 Added 1.7 to protocol recognizer.
The 1.7 protocol currently only reports server description and playercount.
2013-10-30 23:24:46 +01:00
madmaxoft
df20c19986 Renamed cWindow constants to include the "wt" prefix. 2013-10-28 13:30:24 +01:00
madmaxoft
d3db97301b Removed cRoot:m_PrimaryServerVersion from Lua API.
We have the accessor methods for it.
2013-10-23 11:06:39 +02:00
madmaxoft
e62cac07c0 Merge branch 'metadata' of git://github.com/tigerw/MCServer into tigerw-metadata. 2013-10-13 18:26:45 +02:00
Tiger Wang
d8d2f35e9d Eight round of fixes
* Changed IsA() to *long if statement*
- Removed deprecated values in Entity.h - to blazes with the plugins!
* Renamed villager type enumerations to be LESS SHOUTY and more vt-y
+ Use vtMax for World.cpp testificate spawning
2013-10-13 12:47:55 +01:00
Tiger Wang
d0acb37aed Seventh round of fixes
* Fixed arrows not critical-effecting because they were in MOBS! (derp)
* Used cMonster::mtXX as per xoft's suggestions
2013-10-12 23:05:15 +01:00
Tiger Wang
ee2df34d03 Fourth round of fixes
* Switchified WriteMobMetadata
* Renamed Horse functions to be better
2013-10-11 01:00:16 +01:00
Tiger Wang
d7b2c534fd Third round of fixes
* Split WriteMetadata into three functions for common, entity, and mob
* Edited a few mob sizes to Vanilla values
2013-10-11 00:41:54 +01:00
Tiger Wang
fe6fa23a97 Second round of fixes
* Implemented suggestions
2013-10-09 21:02:59 +01:00
Tiger Wang
7401fc000d Initial round of fixes
* Fixed intentional misspelling of baby! :D
* Better chested horse bool name
* Fixed some weird continuity issues with my recent changes not being
pushed up initially
* Fixed derpy hexadecimal values
2013-10-08 22:21:55 +01:00
Tiger Wang
5db6213f34 Initial Metadata Commit [SEE DESC]
+ Pigs, Minecarts, Sheep, Skeletons, Slimes, Villagers, Wolves, and
Horses have metadata
+ Base code on taming wolves, shearing sheep, and taming horses
+ Sheep and horses have different colours when spawned
2013-10-08 19:20:49 +01:00
madmaxoft
f08d78c887 Fixed rounding errors in cProtocol125::SendExplosion().
This should fix #129.
2013-09-19 22:03:02 +02:00
madmaxoft
111fd58914 Added support for 1.6.3 and 1.6.4 protocols.
No relevant changes have been detected, using the 1.6.2 protocol handler.
2013-09-19 20:49:09 +02:00
madmaxoft
becb36d2d1 Fixed a crash on immediate re-login.
Fixes #155.
2013-09-09 18:34:38 +02:00
madmaxoft
6c0c1f1d0c Implemented proper chunk unloading in all 1.3.2+ clients 2013-09-08 17:57:50 +02:00
madmaxoft
67e8f75318 Implemented SteerVehicle packet. 2013-09-06 00:04:49 +02:00
Tiger Wang
20b64e18e4 Merge remote-tracking branch 'upstream/master'
Conflicts:
	source/Bindings.cpp
	source/Entities/Entity.cpp

Updated from upsteam
2013-09-02 14:15:28 +01:00
Tiger Wang
7056992d0d Implemented xoft's suggestions [SEE DESC]
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-29 13:47:22 +01:00
Tiger Wang
1e91002229 Fixed Minecart spawning issues
Now you can have everything!
2013-08-28 22:13:27 +01:00
madmaxoft
654c34705c Fixed player spawning.
Now the player is spawned only after the chunk they're in is sent to the client. Hopefully no more falling-through-terrain-while-loggin-in.
2013-08-20 21:13:28 +02:00
madmaxoft
1a7912744f Moved entities into the Entities subfolder. 2013-08-19 11:39:13 +02:00
madmaxoft
0d323563e4 Added cWindow property manipulation API.
Now enchantment table and furnace properties can be set by a plugin
2013-08-18 13:26:37 +02:00
madmaxoft
0cb00996de Replaced E_ENTITY_TYPE_XXX with cMonster::mtXXX.
Also slightly improved the spawning algorithm.
2013-08-16 10:48:30 +02:00
madmaxoft
eb9d45e906 Moved MaxPlayers and Description from cWorld to cServer.
Also started creating a new cWorld::cTickThread class, but not used yet.
2013-08-11 19:18:06 +02:00
madmaxoft
e9f18f8b4f Tab completion packet is handled and sent.
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-30 22:48:59 +02:00
madmaxoft
9efcd5b82f Added the "Edit Sign" packet sent to the client placing a sign.
Fixes issue #20. The 1.6.2 client wouldn't open the sign editor UI unless it receives a special packet
2013-07-29 21:42:05 +02:00
Alexander Harkness
53e22b1185 Changed everyting to Unix line endings. 2013-07-29 12:13:03 +01:00
madmaxoft@gmail.com
4fb771f3ff First implementation of movement-related hunger and API
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1673 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-12 20:01:25 +00:00
madmaxoft@gmail.com
94a92a219b Server sends PlayerMaxSpeed after a respawn.
http://forum.mc-server.org/showthread.php?tid=434&pid=8912#pid8912

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1671 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-08 18:30:27 +00:00
madmaxoft@gmail.com
791bf732fd 1.6.2 protocol implemented, both in MCServer and in ProtoProxy
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1669 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-08 12:59:15 +00:00
madmaxoft@gmail.com
0224a4f7fc Fixed sprinting in 1.6.1, made speeds available through API; fixed messages containing quotes.
Fixes FS #415

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1660 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-07 14:13:43 +00:00
madmaxoft@gmail.com
b1d05b0f57 Improved function names for protocol packet sending; alpha-sorted the function lists
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1659 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-07 13:06:06 +00:00
madmaxoft@gmail.com
762f78774d Declaring full 1.6.1 compatibility
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1651 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-05 21:14:55 +00:00
madmaxoft@gmail.com
37590c4bd8 Unmounting vehicles implemented in the 1.6.1 way
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1650 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-05 21:11:06 +00:00
madmaxoft@gmail.com
b818addde4 Fixed 1.6.1's movement speed
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1649 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-05 21:02:08 +00:00
madmaxoft@gmail.com
de5cec7419 Initial 1.6.1 protocol support.
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-07-05 19:40:19 +00:00
madmaxoft@gmail.com
b2138b132c More TNT fixes.
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-06-18 19:09:51 +00:00
madmaxoft@gmail.com
a19a070121 Enchantments: API and sending to client
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1539 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-02 10:40:20 +00:00
madmaxoft@gmail.com
cf87169737 Refactored cInventory to use cItemGrid for the actual Storage
This makes the API more orthogonal and is easier to use in the plugins. Also changes in the inventory are now propagated to the needed places (armor updates to BroadcastEntityEquipment etc.) even when the inventory is changed by a plugin.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1503 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-24 07:30:39 +00:00
madmaxoft@gmail.com
da85eb9db2 Added 1.5.2 compatibility.
FS #372

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1461 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-08 11:10:55 +00:00
madmaxoft@gmail.com
7cbf36bf17 Refactored window clicking code to use different click actions
First part of solving FS #371; should fix #370.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1459 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-08 09:45:07 +00:00
madmaxoft@gmail.com
8aa88e7815 Protocol132: Replaced magic numbers with symbolic packet names
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1454 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-07 08:24:06 +00:00