1
0
Commit Graph

593 Commits

Author SHA1 Message Date
madmaxoft@gmail.com
427e582d5f Almost all packets' handling is now rewritten not to use cPacket descendants elsewhere than in cClientHandle.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@761 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-19 19:42:32 +00:00
faketruth
5b36aa1567 Android: Do not create an input thread for Android
git-svn-id: http://mc-server.googlecode.com/svn/trunk@760 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-19 16:57:22 +00:00
madmaxoft@gmail.com
eb3ed1aec1 Another handful of packets rewritten.
Also changed cItem::m_ItemID into m_ItemType of type short. Easier handling. m_ItemID kept for compatibility reasons (Lua-interface etc.)

git-svn-id: http://mc-server.googlecode.com/svn/trunk@756 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-19 11:51:17 +00:00
lapayo94@gmail.com
f6ae6002c3 Fixed Bug #236
Workbench, Chest and Furnace are usable again

git-svn-id: http://mc-server.googlecode.com/svn/trunk@755 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-19 10:44:19 +00:00
faketruth
cc13cbbe3d Android: Showing last MCServer related logcat message
git-svn-id: http://mc-server.googlecode.com/svn/trunk@753 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-18 23:42:27 +00:00
madmaxoft@gmail.com
1b5eaa92b5 Chat packet handled in the new way; fixed missing packet sending for inventory slot.
Again, API change! cPlugin:OnChat() has had its parameters swapped, to match all the other callbacks - Player first, Message second

git-svn-id: http://mc-server.googlecode.com/svn/trunk@751 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-18 10:38:15 +00:00
madmaxoft@gmail.com
2691e8daed Packet refactoring, phase two, partial. Rewritten a few packet handling functions not to use cPacket-descendant objects.
This breaks plugin API! Plugins need to modify their hook functions to match those used in the Core plugin

git-svn-id: http://mc-server.googlecode.com/svn/trunk@750 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-18 09:56:28 +00:00
faketruth
c40af4c4ab Android: Pressing back button sends stop command to server
Android: ToJava can call functions on Java by using JNI
Android: Plugins work
Android: Added android specific files to VS2008 project, but they are excluded from compiling

git-svn-id: http://mc-server.googlecode.com/svn/trunk@747 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-17 22:20:35 +00:00
madmaxoft@gmail.com
1f42ef9a1e Fixed an assert in bucket placement
git-svn-id: http://mc-server.googlecode.com/svn/trunk@746 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-17 10:54:13 +00:00
madmaxoft@gmail.com
70a4ca5bc1 Packets now parse themselves from a cByteBuffer object (1st part of packeting rewrite, http://forum.mc-server.org/showthread.php?tid=524 )
git-svn-id: http://mc-server.googlecode.com/svn/trunk@744 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-17 10:18:07 +00:00
faketruth
33ca4d5003 MCServer should run just fine on Android now :D
The server is also stoppable from Android

git-svn-id: http://mc-server.googlecode.com/svn/trunk@743 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-16 20:28:14 +00:00
madmaxoft@gmail.com
1c4c0b5698 Windows compilation fix after Android changes
git-svn-id: http://mc-server.googlecode.com/svn/trunk@742 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-16 06:47:09 +00:00
faketruth
d21e4dacf7 Compiles on Android! Added Eclipse project, import it into your workspace and it should be runnable on Android!
Disabled Squirrel for Android
cLog now logs to Android LogCat as well
Fixed Lua so it compiles on Android
Removed/commented out exceptions in JsonCpp so it compiles on Android

git-svn-id: http://mc-server.googlecode.com/svn/trunk@741 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-15 21:24:11 +00:00
madmaxoft@gmail.com
5bc07ba743 Added temporary debug statistics of the RelEntMoveLook packet removal efficiency
git-svn-id: http://mc-server.googlecode.com/svn/trunk@740 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-15 20:37:08 +00:00
madmaxoft@gmail.com
16dda8e037 Console command "chunkstats" now lists each world and also totals
git-svn-id: http://mc-server.googlecode.com/svn/trunk@739 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-15 12:08:11 +00:00
madmaxoft@gmail.com
b687be9e44 Added a true "all chunks saved" message for the save-all console command (FS #215)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@738 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-15 11:54:13 +00:00
madmaxoft@gmail.com
d58db08c1b Fix torches broken in rev 724
git-svn-id: http://mc-server.googlecode.com/svn/trunk@737 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-14 15:53:05 +00:00
madmaxoft@gmail.com
004401a70a Crafting window crafting result shift-click handling
git-svn-id: http://mc-server.googlecode.com/svn/trunk@736 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-14 14:41:57 +00:00
madmaxoft@gmail.com
8f79074c42 Crafting window crafting grid shift-click handling
git-svn-id: http://mc-server.googlecode.com/svn/trunk@735 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-14 14:18:24 +00:00
madmaxoft@gmail.com
da23911dbc Shift-clicking the crafting grid in curvival inventory tries placing things in inventory first, then the hotbar.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@734 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-14 09:45:38 +00:00
madmaxoft@gmail.com
dfa9a1e7c4 Added a few more stackable items
git-svn-id: http://mc-server.googlecode.com/svn/trunk@733 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-14 09:28:17 +00:00
madmaxoft@gmail.com
e946616772 Shift-click completed in survival inventory window
git-svn-id: http://mc-server.googlecode.com/svn/trunk@732 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-14 08:33:09 +00:00
madmaxoft@gmail.com
63e68865b1 Made cobwebs transparent
git-svn-id: http://mc-server.googlecode.com/svn/trunk@731 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-14 08:32:23 +00:00
madmaxoft@gmail.com
18b04ab93f Added partial shift+click handling to the survival inventory
git-svn-id: http://mc-server.googlecode.com/svn/trunk@730 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-11 19:54:57 +00:00
madmaxoft@gmail.com
9e3aadb7d0 Updated Bindings to match the new armor categories and torch metas
git-svn-id: http://mc-server.googlecode.com/svn/trunk@729 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-11 19:49:36 +00:00
madmaxoft@gmail.com
b68163582c Added some stackable items in cItemHandler::GetMaxStackSize()
git-svn-id: http://mc-server.googlecode.com/svn/trunk@728 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-11 19:45:03 +00:00
madmaxoft@gmail.com
339992ffcd Added functions for armor item categories
git-svn-id: http://mc-server.googlecode.com/svn/trunk@727 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-11 19:43:28 +00:00
madmaxoft@gmail.com
15a5031885 Added cItemHandler::GetMaxStackSize() with a very basic implementation
git-svn-id: http://mc-server.googlecode.com/svn/trunk@726 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-11 12:46:09 +00:00
madmaxoft@gmail.com
ecf6217ae9 Removed a useless include file.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@725 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-11 11:51:32 +00:00
madmaxoft@gmail.com
897733a58e Use named constants instead of magic values - block digging direction and torch placement
git-svn-id: http://mc-server.googlecode.com/svn/trunk@724 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-10 20:42:59 +00:00
madmaxoft@gmail.com
e6ac77a2c1 Fixed cacti and sugarcane not being placeable on themselves (FS #234, patch submitted by STR_Warrior)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@723 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-10 20:26:50 +00:00
madmaxoft@gmail.com
6711fcd636 Fixed a crash in creative inventory (FS 235, patch submitted by l0udPL)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@722 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-10 19:01:36 +00:00
madmaxoft@gmail.com
521087fc07 Torch placement handling (contributed by l0udPL)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@721 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-09 08:43:26 +00:00
madmaxoft@gmail.com
b53b40b561 Prepared WindowOwner class hierarchy for minecart with chest.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@719 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-07 12:05:35 +00:00
madmaxoft@gmail.com
e8366993ce A bit of cleanup and documentation around the UI window handling
git-svn-id: http://mc-server.googlecode.com/svn/trunk@716 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-06 20:10:16 +00:00
madmaxoft@gmail.com
3884503031 Fixed runtime crashes in generator on Raspberry Pi (damn picky gcc!)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@714 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-06 10:41:49 +00:00
madmaxoft@gmail.com
323612e5c0 BLOCKTYPE signedness change - fixed more details
git-svn-id: http://mc-server.googlecode.com/svn/trunk@713 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-06 10:36:20 +00:00
madmaxoft@gmail.com
2a72c5c838 Fixed a few gcc pedantic warnings; made BLOCKTYPE an unsigned char type.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@711 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-03 11:53:11 +00:00
madmaxoft@gmail.com
f670ff3690 Ravines: implemented proper caching - another 10 % in generator speedup :)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@709 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-29 20:42:35 +00:00
madmaxoft@gmail.com
e49313202c DistortedVoronoi BiomeGen now uses 4x4 linear interpolation for distortion, 50 % speed increase in the chunk generator with a hardly noticeable change in biome shapes.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@708 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-29 20:15:03 +00:00
madmaxoft@gmail.com
41e7452dcc Chunk generator outputs its performance in chunks per second
git-svn-id: http://mc-server.googlecode.com/svn/trunk@707 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-29 17:51:04 +00:00
madmaxoft@gmail.com
f4bf435528 BiomeGen: cca 3% speedup
git-svn-id: http://mc-server.googlecode.com/svn/trunk@706 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-29 16:44:47 +00:00
madmaxoft@gmail.com
bd871e0848 Fixed *nix compilation for md5.cpp
git-svn-id: http://mc-server.googlecode.com/svn/trunk@705 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-29 12:38:34 +00:00
madmaxoft@gmail.com
9dc0e3c233 Fixed warnings in item handlers - items' damage value is a short, but block meta is only a NIBBLETYPE. Also slight cleanup.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@704 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-29 12:07:22 +00:00
madmaxoft@gmail.com
0e7bef4452 Fixed warnings in md5
git-svn-id: http://mc-server.googlecode.com/svn/trunk@703 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-29 12:03:04 +00:00
madmaxoft@gmail.com
e806198388 Fixed a few gcc warnings
git-svn-id: http://mc-server.googlecode.com/svn/trunk@701 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-28 12:21:50 +00:00
madmaxoft@gmail.com
015b3a5d19 Caves and Ravines: fixed compilation and linking issues on gcc
git-svn-id: http://mc-server.googlecode.com/svn/trunk@699 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-28 12:20:36 +00:00
madmaxoft@gmail.com
5b69087b72 Removed bottom lava from caves generator, added a new finish generator BottomLava for that. Also fixed a slight error in SameBlock composition generator cfg
git-svn-id: http://mc-server.googlecode.com/svn/trunk@698 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-27 21:00:11 +00:00
madmaxoft@gmail.com
ccd7e3f38c Basic WormNestCaves are working
git-svn-id: http://mc-server.googlecode.com/svn/trunk@697 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-27 18:37:37 +00:00
madmaxoft@gmail.com
b521456a01 Initial WormNestCaves commit. Won't generate caves, only the schematic for caves' centers.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@696 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-27 16:47:55 +00:00