1
0
Commit Graph

808 Commits

Author SHA1 Message Date
madmaxoft@gmail.com
9eed83c33a Merged in a patch for sounds by l0udPL
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-11 12:01:34 +00:00
faketruth
2132599cbb Core's Web Chat should work on FireFox again. Apparently it appends "charset=utf-8" to the content type which was not properly handled.
Right now any trailing data in the content type is ignored, which seems to work

git-svn-id: http://mc-server.googlecode.com/svn/trunk@857 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-09 12:30:16 +00:00
madmaxoft@gmail.com
92c7d48af0 ItemToString() now recognizes matches that are in the ini without metadata.
"323:0" -> "sign", although ini says "sign=323" only.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@856 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-08 21:49:27 +00:00
faketruth
917259f2e7 Core now uses built in item functions ( StringToItem() ) for the /item command
git-svn-id: http://mc-server.googlecode.com/svn/trunk@855 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-08 21:41:17 +00:00
madmaxoft@gmail.com
27b02efffa StringToItem() sets item's count to 1 after a successful parse
git-svn-id: http://mc-server.googlecode.com/svn/trunk@854 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-08 21:33:53 +00:00
madmaxoft@gmail.com
3f1eb05593 Fixed item damage not being set properly in StringToItem()
git-svn-id: http://mc-server.googlecode.com/svn/trunk@853 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-08 21:20:36 +00:00
madmaxoft@gmail.com
985fd3ca2c Set leaves as a transparent block.
Initiated by STR_Warrior, http://forum.mc-server.org/showthread.php?tid=434&pid=4512#pid4512

git-svn-id: http://mc-server.googlecode.com/svn/trunk@852 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-08 21:08:21 +00:00
faketruth
8199aeb18a GetLocalDirectory should not include FILE_IO_PREFIX since that is already included in cIniFile
git-svn-id: http://mc-server.googlecode.com/svn/trunk@851 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-08 20:51:47 +00:00
faketruth
6bc916fc3c Added cPlugin_NewLua::GetLocalDirectory() and exported it to Lua so plugins can store their settings in their own folder.
Core now stores banned players and whitelist data in its own directory

git-svn-id: http://mc-server.googlecode.com/svn/trunk@850 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-08 20:49:29 +00:00
madmaxoft@gmail.com
675d35cd46 Another fix for the case-sensitiveness. WTF, STL allows different signatures for Debug and Release builds?
git-svn-id: http://mc-server.googlecode.com/svn/trunk@849 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-08 17:02:11 +00:00
madmaxoft@gmail.com
fbefff45b1 Fixed the case-sensitiveness of the item map.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@848 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-08 16:38:27 +00:00
madmaxoft@gmail.com
8c43857b73 Added the ItemToString() and ItemTypeToString() functions.
Ref.: http://forum.mc-server.org/showthread.php?tid=434&pid=4506#pid4506

git-svn-id: http://mc-server.googlecode.com/svn/trunk@847 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-08 16:08:29 +00:00
madmaxoft@gmail.com
a66f6d905d Relaxed the check for held item, the client sometimes sends wrong ItemType.
http://forum.mc-server.org/showthread.php?tid=549&pid=4502#pid4502

git-svn-id: http://mc-server.googlecode.com/svn/trunk@846 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-07 20:53:37 +00:00
madmaxoft@gmail.com
4f052b2650 ProtoProxy: fixed a few mis-interpreted packets, added block placement packet parsing. Added leftover dumping for unparsed data (should not happen, if so, parsing is probably wrong)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@845 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-07 20:15:06 +00:00
madmaxoft@gmail.com
81e7eca286 Fixed profiling to work under the new project layout
git-svn-id: http://mc-server.googlecode.com/svn/trunk@844 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-07 16:40:05 +00:00
madmaxoft@gmail.com
4a3b5e93ec Snow is not put atop vines by the snow finisher anymore
git-svn-id: http://mc-server.googlecode.com/svn/trunk@843 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-07 16:05:10 +00:00
madmaxoft@gmail.com
c3f82c53db Fixed slot parsing in 1.2.5 causing weird behavior ( http://forum.mc-server.org/showthread.php?tid=551&pid=4413#pid4413 )
Also added some asserts into ByteBuffer so that this won't happen again.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@842 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-06 18:17:47 +00:00
madmaxoft@gmail.com
0ba2be666f Added protocol-specific authentication, now works for both 1.2.5 and 1.3.2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@841 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-06 17:36:59 +00:00
madmaxoft@gmail.com
d75bdabc90 Removed excessive debug logging in cProtocol132
git-svn-id: http://mc-server.googlecode.com/svn/trunk@840 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-06 16:22:08 +00:00
madmaxoft@gmail.com
879806e5a1 Officially added 1.3.2 protocol support
git-svn-id: http://mc-server.googlecode.com/svn/trunk@839 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-06 12:39:07 +00:00
madmaxoft@gmail.com
9696aa242c ProtoProxy: Added blockchange packet parsing
git-svn-id: http://mc-server.googlecode.com/svn/trunk@838 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-06 08:34:08 +00:00
madmaxoft@gmail.com
1135b6742f ClientHandle: added an overflow buffer for outgoing data, it fixes the "bad packet id" problem with 1.3.2.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@837 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-06 08:33:43 +00:00
faketruth
f94456dd3e Added the possibility of reserved player slots by implementing the HandleHandshake hook!
More info: http://forum.mc-server.org/showthread.php?tid=555

git-svn-id: http://mc-server.googlecode.com/svn/trunk@836 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-05 20:30:27 +00:00
madmaxoft@gmail.com
692afbca68 ProtoProxy: Added about 10 new packet types parsed
git-svn-id: http://mc-server.googlecode.com/svn/trunk@835 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-05 19:06:40 +00:00
madmaxoft@gmail.com
d50f30c3c4 ProtoProxy: Parsing some initial packets early in the conversation
git-svn-id: http://mc-server.googlecode.com/svn/trunk@834 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-04 20:21:23 +00:00
madmaxoft@gmail.com
5e5b87a187 Debugging in cByteBuffer::Write(); added the ReadAgain() method to allow ProtoProxy re-send the data it has parsed.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@833 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-04 19:06:46 +00:00
madmaxoft@gmail.com
e3d5da2409 Fixed a possible race condition in cClientHandle's packet sending code; prepared for moving cSocket out of cClientHandle's ownership.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@832 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-04 19:05:35 +00:00
madmaxoft@gmail.com
b379f35f4f Fixed preprocessor definitions in Linux
git-svn-id: http://mc-server.googlecode.com/svn/trunk@831 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-04 15:29:45 +00:00
madmaxoft@gmail.com
58b1b3160d Fixed FS #243, server crash after restart. The blockhandler table and the itemhandler table weren't properly re-initialized.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@830 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-04 15:07:08 +00:00
madmaxoft@gmail.com
c2288fce98 Fixed a typo in PDB packlist
git-svn-id: http://mc-server.googlecode.com/svn/trunk@829 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-04 10:37:31 +00:00
madmaxoft@gmail.com
2b46f67712 Hopefully fixed pointer arithmetic problems in GCC compilation in cProtocol132
git-svn-id: http://mc-server.googlecode.com/svn/trunk@828 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-04 10:21:03 +00:00
madmaxoft@gmail.com
49f6828834 Removed OS dependencies from CryptoPP; Removed unused modules that didn't compile on some platforms
git-svn-id: http://mc-server.googlecode.com/svn/trunk@827 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-04 10:17:27 +00:00
madmaxoft@gmail.com
532ed91a72 Protocol proxy now decrypts the data (but doesn't understand the packets yet)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@826 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-02 21:38:13 +00:00
madmaxoft@gmail.com
38efe73154 Added writing support to cByteBuffer (will be used by ProtoProxy)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@825 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-02 19:38:37 +00:00
lapayo94@gmail.com
5042944d9a Fixed Bug #241:
Torches should drop correct now

git-svn-id: http://mc-server.googlecode.com/svn/trunk@824 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-02 18:15:50 +00:00
madmaxoft@gmail.com
51b3d28cee Fixed debug-only code leaking into release mode in cCriticalSection, making it incompilable in release mode.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@823 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-02 15:40:39 +00:00
madmaxoft@gmail.com
e1c83be32d ProtoProxy: Initial import of the protocol proxy project.
Currently it logs all communication, doesn't decode anything, doesn't decrypt.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@822 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-02 15:38:28 +00:00
faketruth
f075bed23c ToLua does not like the override keyword :(
git-svn-id: http://mc-server.googlecode.com/svn/trunk@821 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-02 13:54:33 +00:00
faketruth
9db307bb53 Exported cWorld::DoWithChestAt to Lua
Exported cChestEntity to Lua for handling in DoWithChestAt

git-svn-id: http://mc-server.googlecode.com/svn/trunk@820 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-02 13:34:59 +00:00
madmaxoft@gmail.com
c7d5c00a17 Next iteration on the 1.3.2 protocol. Still no good, but sometimes it just gets through. For your testing pleasures ;)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@819 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-02 12:09:58 +00:00
madmaxoft@gmail.com
926903905b Added a CreateHexDump() function for easier raw data debugging
git-svn-id: http://mc-server.googlecode.com/svn/trunk@818 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-02 09:04:11 +00:00
madmaxoft@gmail.com
b229560132 Critical sectino now allows debug info - is it locked? / is it locked by current thread?
Useful for ASSERTs

git-svn-id: http://mc-server.googlecode.com/svn/trunk@817 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-01 22:32:11 +00:00
madmaxoft@gmail.com
65cc040971 Fix for Rev 814, the correct cPlayer object is actually sent into the callbacks.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@816 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-01 21:44:18 +00:00
madmaxoft@gmail.com
79a9c8cf1c Quick fix for generator crash upon server stop.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@815 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-01 21:37:41 +00:00
madmaxoft@gmail.com
63bd1976cc Added a Player parameter to OnUpdatedSign and OnUpdatingSign Lua callbacks and to the cWorld:UpdateSign method (http://forum.mc-server.org/showthread.php?tid=464&pid=4393#pid4393)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@814 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-01 21:31:20 +00:00
lapayo94@gmail.com
476748ac8b Implemented: http://www.mc-server.org/support/index.php?do=details&task_id=239&project=2&dev=26
Fixed Bug on build collision

git-svn-id: http://mc-server.googlecode.com/svn/trunk@813 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-01 21:21:17 +00:00
madmaxoft@gmail.com
7824ce9d63 Progress on the 1.3.2 protocol.
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-31 21:59:57 +00:00
madmaxoft@gmail.com
c3fd0bf1a5 Fix for the nightbuild script packing the wrong PDBs
git-svn-id: http://mc-server.googlecode.com/svn/trunk@811 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-31 16:42:14 +00:00
madmaxoft@gmail.com
acc4be8034 Another possible deadlock in cClientHandle averted. Hope this is the one.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@810 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-31 16:26:03 +00:00
madmaxoft@gmail.com
f8b2cd99a6 Fixed one possibility of a deadlock in cClientHandle::SendChunkData()
git-svn-id: http://mc-server.googlecode.com/svn/trunk@809 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-31 11:40:54 +00:00